/* =====================================================================
   세린앤코 · T-B Ops — 표 중심 · 정보량 최대 · 행 32px · 왼쪽 메뉴
   T-A 화면(마크업)을 그대로 쓰고 이 파일이 색·글꼴·밀도·레이아웃을 바꿉니다.
   (T-A 템플릿의 인라인 글자 크기를 덮기 위해 일부 !important 사용)
   ===================================================================== */
.t-b {
  --paper: #f4f5f7; --card: #ffffff; --ink: #1d232c; --mute: #6b7480; --line: #dde1e6; --line-2: #eceef1; --hi: var(--ac-soft);
  --th: #f8f9fa; --faint: #8a929d; --body2: #3a424d; --deep: #1d232d; --on-deep: #fdfdfd; --on-ac: #fff; --seg: #eceef1;
  --ok: #1f7a4a; --ok-bg: #e6f4ec; --warn: #9a6a00; --warn-bg: #fbf0d4; --risk: #c2412d; --risk-bg: #fbe5e0; --stop: #4b5563; --stop-bg: #e5e7eb;
  --serif: "IBM Plex Sans KR", "Pretendard", sans-serif; --display: "IBM Plex Sans KR", "Pretendard", sans-serif;
  --font: "IBM Plex Sans KR", "Pretendard", -apple-system, sans-serif; --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --radius: 6px; --radius-sm: 5px; --row-h: 32px; --th-bg: var(--th);
  --chart-grid: #eceef1; --chart-text: #8a929d;
}
body.t-b { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 12px; }
.t-b a:hover { color: var(--ac); }

/* ------------------------------------------------------------ 레이아웃: 왼쪽 메뉴 + 상단 바 */
.b-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100vh; }
.b-nav { background: var(--card); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.b-logo { display: flex; align-items: center; gap: 9px; padding: 2px 8px 10px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.b-logo i { width: 26px; height: 26px; border-radius: 5px; background: var(--deep); color: var(--on-deep); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 600; }
.b-logo b { display: block; font-size: 13px; font-weight: 600; } .b-logo small { font-size: 10px; color: var(--mute); }
.b-grp { display: flex; flex-direction: column; gap: 1px; }
.b-grp .g { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--faint); padding: 0 8px 5px; list-style: none; cursor: default; }
.b-grp summary.g { cursor: pointer; } .b-grp summary::-webkit-details-marker { display: none; }
.b-grp a { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 5px; color: var(--body2); }
.b-grp a:hover { background: var(--line-2); color: var(--ink); }
.b-grp a.on { background: var(--ac-soft); color: var(--ac); font-weight: 600; }
.b-more .sg { font-size: 10px; color: var(--faint); padding: 8px 8px 2px; }
.b-nav-f { margin-top: auto; padding: 10px 8px 2px; border-top: 1px solid var(--line-2); font-size: 10px; color: var(--faint); line-height: 1.6; }
.b-body { min-width: 0; display: flex; flex-direction: column; }
.b-top { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.b-top .l, .b-top .r { display: flex; align-items: center; gap: 12px; min-width: 0; } .b-top .r { gap: 10px; }
.b-back { color: var(--mute); white-space: nowrap; } .b-crumb { color: var(--mute); white-space: nowrap; }
.b-burger { display: none; background: none; border: 0; font-size: 16px; cursor: pointer; }
.b-seg { display: flex; padding: 2px; background: var(--seg); border-radius: 5px; gap: 1px; }
.b-seg a, .b-seg span { padding: 3px 10px; border-radius: 4px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.b-seg a.on { background: var(--card); color: var(--ac); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); } .b-seg .off { color: #b3b9c1; font-weight: 400; }
.b-brands { background: transparent; border: 1px solid var(--line); } .b-brands a { font-weight: 400; color: var(--body2); display: flex; align-items: center; gap: 5px; padding: 3px 8px; }
.b-brands a i { width: 7px; height: 7px; border-radius: 2px; } .b-brands a.on { background: var(--ac-soft); color: var(--ac); box-shadow: none; }
.b-skins { background: transparent; border: 1px solid var(--line); padding: 0; overflow: hidden; gap: 0; font-size: 11px; }
.b-skins a, .b-skins span { border-radius: 0; font-weight: 400; padding: 4px 8px; } .b-skins a.on { background: var(--deep); color: var(--on-deep); }
.b-search input { width: 200px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: 12px; }
.b-search input:focus { outline: none; border-color: var(--ac); background: var(--card); }
.t-b .a-chips .db-chip { width: 13px; height: 13px; border-radius: 3px; }
.t-b .a-user button { display: flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
.b-av { width: 24px; height: 24px; border-radius: 50%; background: var(--deep); color: var(--on-deep); display: flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; }
.t-b .a-pop { border-radius: 6px; border-color: var(--line); box-shadow: 0 6px 20px rgba(29, 35, 44, .12); }
.t-b .a-main { padding: 16px 20px 24px; max-width: none; margin: 0; width: 100%; }
.t-b .a-foot { display: none; }

/* ------------------------------------------------------------ 타이포 · 머리 */
.t-b .a-ph { margin-bottom: 12px; align-items: center; border-bottom: 0 !important; padding-bottom: 0 !important; }
.t-b .a-h1, .t-b .page-title { font-family: var(--font); font-size: 18px !important; font-weight: 600; letter-spacing: 0; line-height: 1.35; margin-top: 2px; }
.t-b .a-kicker { font-family: var(--mono); font-style: normal; font-size: 11px !important; color: var(--mute); }
.t-b .a-crumb { font-size: 11px; } .t-b .a-sub { font-size: 11px; }
.t-b .a-sec-h h2, .t-b .a-h3 b, .t-b .a-book-h b, .t-b .card-title { font-family: var(--font) !important; font-size: 12px !important; font-weight: 600; letter-spacing: 0; }
.t-b .a-sec-h h2 span, .t-b .a-h3 b span { font-size: 11px !important; font-weight: 400; }

/* ------------------------------------------------------------ 카드: 섹션은 흰 카드 + 머리줄 */
.t-b .a-grid { gap: 12px; margin-bottom: 12px; }
.t-b .a-grid > section, .t-b .a-grid > div > section, .t-b .m-po-main > section, .t-b .m-po-2 > section {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 0 14px 10px; min-width: 0; }
.t-b .a-grid > div { gap: 12px !important; }
.t-b .a-sec-h { margin: 0 -14px 4px; padding: 9px 14px; border-bottom: 1px solid var(--line-2); align-items: center; }
.t-b .a-sec-h .r { font-size: 11px; } .t-b .a-sec-h .r a { border: 0; color: var(--ac); }
.t-b section > .a-sec-h:first-child { border-radius: 6px 6px 0 0; }
.t-b section > .a-tbl { margin: 0 -14px -10px; width: calc(100% + 28px); }
.t-b .a-list li { padding: 7px 0; border-bottom: 1px solid var(--line-2); } .t-b .a-list li:last-child { border-bottom: 0; }
.t-b .card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.t-b .card-head { padding: 9px 14px; border-bottom: 1px solid var(--line-2); } .t-b .card-body { padding: 10px 14px; }

/* ------------------------------------------------------------ KPI · 처리할 일 */
.t-b .a-kpis { gap: 10px; border: 0; margin-bottom: 12px; }
.t-b .a-kpi, .t-b .a-kpi:first-child { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; gap: 4px; }
.t-b .a-kpi:hover { border-color: var(--ac); color: inherit; }
.t-b .a-kpi .v { font-family: var(--mono) !important; font-size: 22px !important; font-weight: 500; letter-spacing: 0; }
.t-b .a-kpi .v small { font-size: 11px !important; color: var(--mute); }
.t-b .a-kpi .l { font-size: 11px; letter-spacing: 0; } .t-b .a-kpi .n { font-size: 10px; }
.t-b .a-acts5 { gap: 10px; border: 0; margin-bottom: 12px; }
.t-b .a-act, .t-b .a-act:first-child { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.t-b .a-act.risk { border-left-color: var(--risk); background: var(--card); }
.t-b .a-act .c { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--ac); }

/* ------------------------------------------------------------ 버튼 · 입력 · 탭 · 배지 */
.t-b .a-btn, .t-b .btn { border-radius: 5px; padding: 6px 12px; font-size: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.t-b .a-btn:hover { border-color: var(--ink); }
.t-b .a-btn-ac, .t-b .btn-primary { background: var(--ac); border-color: var(--ac); color: var(--on-ac); } .t-b .a-btn-ac:hover { color: var(--on-ac); filter: brightness(1.08); }
.t-b .a-btn-danger { color: var(--risk); border-color: var(--risk); background: var(--card); }
.t-b .a-in, .t-b .a-sel, .t-b .fld { border-radius: 5px; padding: 5px 9px; font-size: 12px; border-color: var(--line); background-color: var(--card); }
.t-b .a-sel { padding-right: 26px; }
.t-b .a-in:focus, .t-b .a-sel:focus, .t-b .fld:focus { border-color: var(--ac); }
.t-b .a-in.q { border-color: var(--line); width: 240px; }
.t-b .a-tabs { gap: 14px; border-bottom-color: var(--line-2); }
.t-b .a-tabs a { padding: 6px 0; } .t-b .a-tabs a.on { border-bottom-color: var(--ac); color: var(--ac); }
.t-b .a-filter { padding: 10px 0; }
.t-b .a-period { border-radius: 5px; overflow: hidden; } .t-b .a-period a.on { background: var(--ac); }
.t-b .a-chip { border-radius: 4px; border: 0; background: var(--ac-soft); color: var(--ac); padding: 3px 8px; }
.t-b .a-lv { font-size: 10px; padding: 1px 7px; border-radius: 9px; }
.t-b .badge { border-radius: 9px; font-size: 10px; padding: 1px 7px; border-color: var(--body2); }
.t-b .badge.tone-green { background: var(--body2); border-color: var(--body2); }
.t-b .a-tier { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; border-radius: 3px; padding: 1px 6px; }
.t-b .a-ftabs a.on { border-bottom-color: var(--ac); color: var(--ac); font-weight: 600; }
.t-b .a-link { color: var(--ac); }

/* ------------------------------------------------------------ 표 */
.t-b .a-tbl-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: auto; }
.t-b .a-tbl, .t-b .tbl { font-size: 12px; }
.t-b .a-tbl th, .t-b .tbl th { background: var(--th); padding: 7px 10px; font-size: 11px; letter-spacing: 0; border-bottom: 1px solid var(--line); text-transform: none; }
.t-b .a-tbl td, .t-b .tbl td { padding: 6px 10px; height: 32px; border-bottom: 1px solid #f0f1f3; }
.t-b .a-tbl a.a-no { color: var(--ac); border: 0; }
.t-b .a-tbl tr.sel td { background: var(--ac-soft); }
.t-b .a-bulk { border-radius: 6px; margin-bottom: 8px; } .t-b .a-bulk.on { background: var(--deep); }
.t-b .a-pages .cur { background: var(--ac); border-color: var(--ac); color: var(--on-ac); border-radius: 4px; }
.t-b .a-notes { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 10px 14px; margin-top: 12px; }
.t-b .a-notes b { color: var(--ink); font-weight: 600; letter-spacing: 0; }
.t-b .a-empty b { font-family: var(--font); font-size: 14px; font-weight: 600; }
.t-b .a-empty .ic { font-family: var(--mono); font-size: 24px; }

/* ------------------------------------------------------------ 토스트 · 팝업 */
.t-b .a-toast { border-radius: 6px; background: var(--deep); border-left-width: 3px; top: 64px; }
.t-b .a-toasts { top: 60px; }
.t-b .a-modal { border-radius: 8px; border-top: 0; box-shadow: 0 20px 50px rgba(29, 35, 44, .25); }
.t-b .a-modal-h b { font-family: var(--font); font-size: 15px; font-weight: 600; }
.t-b .a-modal textarea { border-radius: 5px; border-color: var(--line); background: var(--card); }
.t-b #a-modal-desc .box { border-radius: 5px; background: var(--th); }

/* ------------------------------------------------------------ Today 세부 */
.t-b .a-brand-row .nm { font-family: var(--font); font-size: 12px; font-weight: 500; }
.t-b .a-best .p, .t-b .a-store li .n { font-family: var(--mono); font-size: 12px; }
.t-b .chart-box { height: 200px; } .t-b .chart-box.lg { height: 220px; }

/* ------------------------------------------------------------ CRM */
.t-b .a-ini { width: 30px; height: 30px; font-family: var(--font); font-size: 12px; border-color: var(--line); background: var(--th); }
.t-b .a-crow { grid-template-columns: 30px minmax(0, 1fr) 140px 100px 84px; padding: 7px 0; gap: 10px; }
.t-b .a-crow .nm a, .t-b .a-ppl .n a, .t-b .a-ev .n, .t-b .a-camp .n, .t-b .a-voc .q, .t-b .a-tc .n { font-family: var(--font); font-size: 12px; font-weight: 600; }
.t-b .a-crow .cta { border-radius: 5px; border-color: var(--line); padding: 4px 9px; }
.t-b .a-crow .cta:hover { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
.t-b .a-ev .dt { border-radius: 5px; border-color: var(--line); } .t-b .a-ev .dt b { font-family: var(--mono); font-size: 18px; }
.t-b .a-tiers .g, .t-b .a-vtier .g { font-family: var(--mono); letter-spacing: .1em; font-size: 12px; }
.t-b .a-tiers .c, .t-b .a-move b, .t-b .a-vtier .c, .t-b .a-who .nums b, .t-b .a-fc b { font-family: var(--mono); font-weight: 500; }
.t-b .a-vtier { border-top: 0; gap: 10px; } .t-b .a-vtier > a { border-radius: 6px; border: 1px solid var(--line); }
.t-b .a-vtier .c { font-size: 30px; }
.t-b .a-book { filter: none; gap: 12px; grid-template-columns: 300px minmax(0, 1fr) 30px; }
.t-b .a-book-l, .t-b .a-book-r { background: var(--card); background-image: none; border: 1px solid var(--line); border-radius: 6px; }
.t-b .a-who h1 { font-family: var(--font); font-size: 22px; font-weight: 600; }
.t-b .a-tc.on { background: var(--ac-soft); } .t-b .a-tc:hover { background: var(--line-2); }
.t-b .a-fit { transform: none; background: var(--th); box-shadow: none; border: 1px solid var(--line); border-radius: 6px; }
.t-b .a-fit span { font-family: var(--font); font-size: 12px; } .t-b .a-fit .k { color: var(--ac); }
.t-b .a-closet .ph, .t-b .a-look .ph { background: repeating-linear-gradient(135deg, #eef0f3 0 6px, #f6f7f9 6px 12px); border-color: var(--line); border-radius: 4px; }
.t-b .a-closet .nm, .t-b .a-look .n { font-family: var(--font); font-weight: 500; }
.t-b .a-idx a { background: var(--line-2); color: var(--mute); border-radius: 0 5px 5px 0; font-family: var(--font); }
.t-b .a-idx a.on, .t-b .a-idx a:hover { background: var(--ac); color: var(--on-ac); }
.t-b .a-note-box { border-color: var(--line); border-radius: 6px; } .t-b .a-note-box .t { font-family: var(--font); font-size: 12px; }
.t-b .a-salon .bk { border-radius: 5px; background: var(--ac-soft); color: var(--ink); border-left-color: var(--ac); }
.t-b .a-salon .bk small { color: var(--mute); } .t-b .a-salon .bk:hover { color: var(--ink); }
.t-b .a-salon .free { border-radius: 5px; }
.t-b .a-msg { font-family: var(--font); font-size: 13px; border-radius: 6px; }
.t-b .a-steps div.done { border-top-color: var(--body2); }

/* ------------------------------------------------------------ 메타포 화면 */
.t-b .m-big { font-family: var(--font); font-weight: 600; font-size: 64px; letter-spacing: -.03em; line-height: 1; }
.t-b .m-run-hero { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 20px; gap: 32px; }
.t-b .m-run-kpis > div { border-left-color: var(--line); } .t-b .m-run-kpis .v { font-family: var(--mono); font-size: 28px; font-weight: 500; }
.t-b .m-run-hero + section { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px 34px; margin-top: 12px !important; }
.t-b .m-run-hero + section h2 { font-family: var(--font) !important; font-size: 13px !important; font-weight: 600; }
.t-b .m-ev { border-radius: 3px; height: 22px; top: 18px; } .t-b .m-lane { background: repeating-linear-gradient(90deg, transparent 0 calc(3.45% - 1px), #f0f1f3 calc(3.45% - 1px) 3.45%); }
.t-b .m-lane-n b { font-weight: 600; } .t-b .m-ev.drop { background: var(--body2); } .t-b .m-ev.retail { background: var(--line-2); }
.t-b .a-grid[style*="1.25fr"] { margin-top: 12px !important; }
.t-b section h2[style*="display"], .t-b .a-sec-h h2[style] { font-family: var(--font) !important; font-size: 12px !important; }
.t-b .m-cat .b, .t-b .m-cat .b i { height: 8px; border-radius: 2px; } .t-b .m-cat .b em { height: 14px; }
.t-b .m-door .r { font-family: var(--mono); font-size: 12px; }
.t-b .m-signal { border-radius: 6px; background: var(--deep); } .t-b .m-signal .big { font-family: var(--mono); font-size: 28px; }
.t-b .m-sig-btn { border-radius: 5px; background: var(--ac); }
.t-b .m-ls { margin: -16px -20px -24px; background: var(--paper); background-image: none; grid-template-columns: minmax(0, 1fr) 440px; }
.t-b .m-ls-l { padding: 16px 20px; } .t-b .m-ls-r { border-left-color: var(--line); }
.t-b .m-ls-h { border-bottom: 1px solid var(--line); } .t-b .m-ls-h h1 { font-family: var(--font); font-size: 18px; }
.t-b .m-card { border-color: var(--line); border-radius: 6px; } .t-b .m-card:hover { box-shadow: none; border-color: var(--ac); }
.t-b .m-card.sel { border: 2px solid var(--ac); } .t-b .m-card .flag { background: var(--ac); border-radius: 3px; }
.t-b .m-card .sk { border-radius: 4px; border-color: var(--line); background: repeating-linear-gradient(0deg, transparent 0 9px, #f3f4f6 9px 10px); }
.t-b .m-card .cd .hot, .t-b .m-warn { color: var(--risk); }
.t-b .m-dlv { border-color: var(--line); border-radius: 5px; overflow: hidden; } .t-b .m-dlv a.on { background: var(--ac); }
.t-b .m-cw > div, .t-b .m-spec, .t-b .m-cost { border-color: var(--line); border-radius: 5px; overflow: hidden; }
.t-b .m-mx td.risk { background: var(--risk); } .t-b .m-mx td.warn { background: var(--risk-bg); }
.t-b .m-tag-g { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.t-b .m-tag-g > aside:first-child { padding: 14px; } .t-b .m-tag-r { padding: 14px; }
.t-b .m-tag { border-radius: 6px; border-color: var(--line); background: var(--card); } .t-b .m-tag::before { display: none; } .t-b .m-tag { padding-left: 14px; border-left: 3px solid var(--risk); }
.t-b .m-tag.on, .t-b .m-tag:hover { background: var(--ac-soft); color: var(--ink); border-color: var(--ac); }
.t-b .m-grid { border-spacing: 2px; } .t-b .m-grid .h { height: 24px; border-radius: 3px; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.t-b .m-grid .l3, .t-b .m-leg .l3 { background: var(--body2); } .t-b .m-grid .l2, .t-b .m-leg .l2 { background: #a3abb6; }
.t-b .m-grid .l1, .t-b .m-leg .l1 { background: #e5e8ec; } .t-b .m-grid .z, .t-b .m-leg .z { background: var(--risk-bg); color: var(--risk); }
.t-b .m-curve i.o { background: var(--ac); } .t-b .m-issue { border-radius: 5px; background: var(--ac); }
.t-b .m-chip { border-radius: 5px; } .t-b .m-chip.on { border-color: var(--ac); }
.t-b .m-col { border-style: solid; background: var(--card); } .t-b .m-scard { border: 1px solid var(--line-2); background: var(--th); }
.t-b .m-scard.sel { outline-color: var(--ac); outline-style: solid; }
.t-b .m-box { border-style: solid; background: var(--card); } .t-b .m-box.ac { border-color: var(--ac); }
.t-b .m-fit div { background: var(--th); }
.t-b .m-stat b { font-size: 20px; font-weight: 500; }
.t-b .m-po-steps em { font-family: var(--mono); font-size: 14px; }
.t-b .m-po-main h3 { font-family: var(--font); font-size: 13px; font-weight: 600; margin: 10px 0 12px; }
.t-b .m-lines .cc, .t-b .m-lines input.q { border-radius: 4px; } .t-b .m-lines input.q:focus { border-color: var(--ac); }
.t-b .m-drop { border-radius: 6px; } .t-b .m-po-foot { margin: 12px -20px -24px; padding: 12px 20px; }
.t-b .m-po-sum { font-family: var(--mono); font-size: 12px; }

@media (max-width: 1100px) {
  .b-shell { grid-template-columns: 1fr; }
  .b-nav { position: fixed; left: -240px; top: 0; z-index: 40; width: 216px; transition: left .2s; box-shadow: 0 0 30px rgba(0, 0, 0, .15); }
  .b-nav.open { left: 0; } .b-burger { display: block; }
  .b-brands, .b-skins, .b-search, .b-crumb { display: none; }
  .t-b .a-main { padding: 12px 16px 24px; }
  .t-b .a-book { grid-template-columns: 1fr; }
}
.t-b .a-grid > section.m-signal { background: var(--deep); color: var(--on-deep); border-color: var(--deep); padding: 16px; }
.t-b .a-user button { font-size: 0; gap: 0; } .t-b .a-user .b-av { font-size: 11px; }
.b-top .r { flex-shrink: 0; } .b-top .l { flex-shrink: 1; overflow: hidden; }
@media (max-width: 1500px) { .b-search input { width: 150px; } .b-brands a { padding: 3px 6px; } }
