/* 로고 */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-sub { font-weight: 600; font-size: 16px; padding-left: 10px; border-left: 1px solid #ffffff40; line-height: 1.1; }
/* 로그인 전(로그인·첫 설정 화면)에는 상단 바를 숨기고 카드의 로고만 보인다 */
.topbar-guest { display: none; }
.auth-logo { display: block; height: 56px; width: auto; margin: 4px auto 14px; }
.auth-card h1 { text-align: center; }
.auth-card h1 + .muted { text-align: center; }

/* 상단 메뉴 결정함 숫자 */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e5534b; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; vertical-align: 1px; }

/* 대시보드: 지금 처리할 건 */
.todo-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.todo-strip a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: 0 1px 2px #1825370a; }
.todo-strip a:hover { text-decoration: none; border-color: var(--primary); }
.todo-strip b { font-size: 24px; line-height: 1.2; }
.todo-strip span { font-weight: 600; font-size: 13px; }
.todo-strip small { color: var(--muted); font-size: 12px; }
.todo-strip a.hot { border-color: #e5cb99; background: #fffdf7; }
.todo-strip a.hot b { color: #b4540a; }
.dash-decisions { margin-bottom: 16px; }
.dash-decisions > .card-head { margin-bottom: 8px; }

/* 결정 카드 */
.dec { border-left: 4px solid var(--primary); }
.dec.late { border-left-color: #e5534b; }
.dec-held { border-left-color: #c9a227; }
.dec-approved { border-left-color: #2e9e5b; }
.dec-rejected { border-left-color: #9aa3ae; }
.dec-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.dec-title { font-size: 15px; overflow-wrap: anywhere; }
.dec-kind { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: #eef2fb; color: #2f5bb5; white-space: nowrap; }
.dec-kind.k-price, .dec-kind.k-lost { background: #fdecea; color: #b42318; }
.dec-kind.k-first_mail, .dec-kind.k-followup { background: #e8f6fb; color: #0b6e8f; }
.dec-detail { margin: 8px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.dec-reco { margin-top: 8px; padding: 8px 10px; background: #f3f7ff; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.dec-reco b { color: var(--primary); margin-right: 4px; }
.dec-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.dec-note { width: 100%; }
.dec-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.dec-draft { margin-top: 8px; }
.dec-draft summary { cursor: pointer; font-size: 13px; color: var(--primary); }
.dec-draft textarea { width: 100%; margin-top: 6px; font-size: 13px; line-height: 1.6; }
.dec-result { margin-top: 8px; }
.st-approved { color: #2e9e5b; } .st-rejected { color: #6b7480; } .st-held { color: #a07d10; }
.danger-text { color: #b42318; }

/* 결정함: 영업 건 줄 */
.inbox-deals { padding: 4px 0; }
.inbox-deal { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text); }
.inbox-deal:first-child { border-top: 0; }
.inbox-deal:hover { background: #f7f9fc; text-decoration: none; }
.inbox-deal-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.inbox-deal-side { text-align: right; white-space: nowrap; }
.block { display: block; margin-top: 2px; }

@media (max-width: 900px) {
  .todo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .todo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-logo { height: 30px; }
  .brand { gap: 5px; }
  .brand-sub { padding-left: 5px; font-size: 13px; white-space: nowrap; }
  .inbox-deal { flex-wrap: wrap; }
  .inbox-deal-side { text-align: left; width: 100%; padding-left: 0; }
}
