/*
 * 공통 화면 모양 (목업과 같은 색·크기)
 * 글자 13px · 남색 머리 · 메뉴는 누를 때만 드롭다운 · 얇은 스크롤바 · 화면 아래 공통 여백 28px
 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
  --navy: #0E2A47;
  --navy-2: #12385F;
  --navy-line: #2E5A86;
  --admin-bar: #1B2433;
  --agent-bar: #1B4F80;
  --line: #CBD2DB;
  --input-line: #C3C9D2;
  --text: #1B1F24;
  --muted: #4A5260;
  --link: #1F4FB8;
  --bg: #F2F4F7;
  --pink: #C2188F;
  --pink-bg: #FCE7F3;
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #B8C0CC transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-thumb { background: #B8C0CC; border-radius: 2px; }
*::-webkit-scrollbar-track { background: transparent; }

html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.5 'Noto Sans KR', 'Malgun Gothic', sans-serif;
}
a { color: var(--link); }
a:hover { color: #173D8F; }

/* 체크박스 · 라디오: 브라우저 기본 대신 앱 디자인 (크기는 화면별 규칙이 있으면 그걸 따른다) */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0; vertical-align: -3px;
  display: inline-grid; place-content: center; border: 1.5px solid #B4BCC8; background: #FFFFFF; cursor: pointer;
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}
input[type="checkbox"] { border-radius: 2px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"]:hover:not(:disabled) { border-color: var(--link); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31,79,184,.2); }
/* 체크: 파란 바탕 + 흰 체크 표시 */
input[type="checkbox"]::after { content: ''; width: 9px; height: 5px; margin-top: -2px; border: solid #FFFFFF; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .12s; }
input[type="checkbox"]:checked { background: var(--link); border-color: var(--link); }
input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
/* 라디오: 파란 테두리 + 가운데 파란 점 */
input[type="radio"]::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--link); transform: scale(0); transition: transform .12s; }
input[type="radio"]:checked { border-color: var(--link); }
input[type="radio"]:checked::after { transform: scale(1); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: not-allowed; opacity: .45; background-color: #F1F3F6; }
input[type="checkbox"]:checked:disabled { background: var(--link); }
button, input, select, textarea { font: inherit; }
.muted { color: var(--muted); }

/* ── 로그인 ── */
.login-page { background: var(--navy); margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
/* 로그인: 화면 정중앙 (가로 · 세로) */
.login-wrap { width: 400px; max-width: calc(100% - 32px); padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.login-brand { color: #FFFFFF; font-size: 26px; font-weight: 700; text-align: center; }
.login-card { width: 100%; background: #FFFFFF; border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 0; font-size: 20px; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.login-card input { height: 44px; padding: 0 12px; border: 1px solid var(--input-line); border-radius: 3px; background: #FFFFFF; color: #111827; }
.login-card button { height: 48px; background: var(--link); color: #FFFFFF; border: 0; border-radius: 3px; font-size: 16px; font-weight: 700; cursor: pointer; }
.alert { background: #FDECEC; color: #8F1D14; border-radius: 2px; padding: 8px; }

/* ── 상단 현황판 ── */
.board { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 16px; background: var(--navy); color: #FFFFFF; }
.rank { flex: 0 0 340px; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 3px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.rank .muted { color: #B9CBE0; }
.rank-title { text-align: center; font-size: 14px; font-weight: 700; color: #FFE08A; border-bottom: 1px solid var(--navy-line); padding-bottom: 6px; }
.gauge-box { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ticker { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 3px; padding: 8px 12px; color: #FFE08A; font-size: 14px; font-weight: 700; }
.gauge { background: #FFFFFF; color: var(--text); border-radius: 3px; padding: 8px 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.gauge-bar { height: 16px; background: #E6E9EE; border-radius: 2px; }
.gauge-legend { display: flex; gap: 16px; }

/* ── 메뉴 줄 ── */
/* 메뉴 줄: 시안(TopBar)대로 — 모든 권한 같은 색 (2026-11-16) */
.topnav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 16px 0 0; background: var(--agent-bar); min-height: 44px; font-size: 13px; }
.role-agent .topnav { background: var(--agent-bar); }
.hello { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; align-self: stretch; min-width: 356px; padding: 0 12px 0 16px; margin-right: 8px; background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 14px; border-right: 1px solid var(--navy-line); white-space: nowrap; }
.hello-name { color: #FFE08A; }
.clock { display: inline-flex; gap: 6px; }
.clock form { margin: 0; }
.btn-in, .btn-out { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 0; border-radius: 3px; color: #FFFFFF; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn-in:hover:not(:disabled), .btn-out:hover { filter: brightness(1.08); }
.btn-in { background: #1F7A45; }
.btn-in:disabled { background: #D7EEDF; color: #14532D; cursor: default; box-shadow: none; }
.btn-out { background: #C2410C; }
/* 알림 종 옆 로그아웃 (퇴근 기록 없이) */
.logout-form { margin: 0 0 0 6px; display: inline-flex; }
.logout-btn { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,0.35); border-radius: 3px; background: transparent; color: #FFFFFF; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.logout-btn:hover { background: rgba(255,255,255,0.12); }

.nav-dd { position: relative; display: inline-flex; align-items: center; align-self: stretch; }
/* 위 메뉴 탭: 알약 모양, 지금 탭은 흰 바탕 · 남색 굵은 글자 (시안) */
.nav-tab { display: inline-flex; align-items: center; padding: 7px 10px; border: 0; border-radius: 2px; background: transparent; color: #FFFFFF; font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-tab:hover { color: #FFFFFF; background: rgba(255, 255, 255, .12); }
.nav-tab.on, .nav-tab.on:hover { background: #FFFFFF; color: #0E2A47; font-weight: 700; }
.nav-dd-menu { position: absolute; top: 100%; left: 0; min-width: 160px; padding: 6px 0; background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--agent-bar); border-radius: 0 0 4px 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); z-index: 30; visibility: hidden; opacity: 0; transition: opacity .12s ease; }
/* 눌렀을 때만 열림(focus-within). 다른 곳을 누르면 닫힘 */
.nav-dd:focus-within .nav-dd-menu { visibility: visible; opacity: 1; }
.nav-dd-menu a { display: block; padding: 9px 16px; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-dd-menu a:hover, .nav-dd-menu a:focus { background: #EEF3FC; color: #173D8F; }
.nav-dd-menu a.on { font-weight: 700; color: var(--link); background: #F3F6FD; }

/* ── 본문 ── */
.page { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 28px; min-height: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.page-head h1 { margin: 0; font-size: 18px; }
.crumb { margin-left: auto; color: var(--muted); white-space: nowrap; }
.crumb b { color: var(--text); }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; }
.card.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ── 목록 아래 줄 (모든 목록 같은 모양: 왼쪽 건수 · 가운데 쪽 넘김 · 오른쪽 단추) ── */
.list-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid #E3E7ED; }
.pager { display: inline-flex; gap: 4px; }
.pager a, .pager span { min-width: 28px; height: 28px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #D5DAE1; border-radius: 2px; color: var(--text); text-decoration: none; background: #FFFFFF; }
.pager .cur { color: var(--pink); font-weight: 700; background: var(--pink-bg); border-color: #F5B5DD; }
.pager .off { color: #B0B7C2; }

/* ── 목록 표 (목록 카드가 남은 높이를 다 쓰고 표만 안에서 스크롤, 머리 고정) ── */
.list-card { flex: 1 1 auto; min-height: 260px; display: flex; flex-direction: column; overflow: hidden; }
.list-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.grid { width: 100%; border-collapse: collapse; white-space: nowrap; }
.grid th { position: sticky; top: 0; background: #F5F7FA; border-bottom: 1px solid var(--line); padding: 7px 8px; font-weight: 700; }
.grid th.l, .grid td.l { text-align: left; }
.grid td { padding: 6px 8px; border-bottom: 1px solid #EEF0F3; }
.grid td.c { text-align: center; }
.grid td.r { text-align: right; }
.grid tr.dup td { background: #FDEAF4; }
/* 「…이 없습니다」 안내 줄: 아래 선 없이 (빈 공간 위에 선만 남지 않게) */
.empty-row { text-align: center; padding: 40px !important; color: var(--muted); border-bottom: 0 !important; }
.foot-btns { display: inline-flex; gap: 8px; justify-content: flex-end; }
.list-foot > :last-child { justify-self: end; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border: 1px solid #C3C9D2; border-radius: 3px; background: #FFFFFF; color: var(--text); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--text); background: #F5F7FA; }
.btn.primary { background: var(--link); border-color: var(--link); color: #FFFFFF; }
.btn.primary:hover { background: #173D8F; color: #FFFFFF; }
.btn.primary:disabled { background: #9DB4D3; border-color: #9DB4D3; cursor: default; }
/* 반전 단추: 흰 바탕 + 파란 테두리 · 글자 (예: + 계정 만들기) */
.btn.primary-line { background: #FFFFFF; border-color: var(--link); color: var(--link); font-weight: 700; }
.btn.primary-line:hover { background: #EEF3FC; color: #173D8F; border-color: #173D8F; }
.btn.ghost { background: #FFFFFF; }
.small { font-size: 12px; }
.lh { line-height: 1.7; }

/* ── 팝업 (목업 엑셀 일괄등록과 같은 모양) ── */
.modal-back { position: fixed; inset: 0; background: rgba(14, 22, 34, .45); display: flex; align-items: flex-start; justify-content: center; padding-top: 90px; z-index: 50; }
.modal { width: 760px; max-width: calc(100% - 32px); background: #FFFFFF; border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px 0; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-x { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #F2F4F7; color: var(--text); text-decoration: none; font-size: 18px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 22px 0; padding: 0; position: relative; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; position: relative; }
.steps li:not(:first-child)::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: #D5DAE1; z-index: 0; }
.steps li.done:not(:first-child)::before, .steps li.now:not(:first-child)::before { background: #1F7A45; }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #FFFFFF; border: 2px solid #D5DAE1; font-weight: 700; z-index: 1; }
.steps li.now { color: var(--link); font-weight: 700; }
.steps li.now .dot { background: var(--link); border-color: var(--link); color: #FFFFFF; }
.steps li.done .dot { background: #1F7A45; border-color: #1F7A45; color: #FFFFFF; }
.modal-body { margin: 18px 0 0; padding: 0 22px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: auto -22px 0; padding: 14px 22px; background: #F7F8FA; border-top: 1px solid #EEF0F3; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px; border: 2px dashed #9DB4D3; border-radius: 6px; background: #F7FAFE; cursor: pointer; }
.row-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-field select { height: 34px; min-width: 220px; padding: 0 8px; border: 1px solid #C3C9D2; border-radius: 3px; }
.req { color: #D92D20; }
.notice { padding: 10px 12px; background: #FFF6DB; border-radius: 4px; line-height: 1.7; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tile { border-radius: 4px; padding: 12px; font-size: 12px; }
.tile b { display: block; font-size: 24px; }
.tile.green { background: #E2F3EA; color: #14532D; }
.tile.orange { background: #FDF1E4; color: #8A3409; }
.tile.red { background: #FDECEC; color: #B42318; }
.tile.gray { background: #EEF0F3; color: var(--muted); }
.tile.gray b { color: var(--text); }
.err-list { margin: 0; padding-left: 18px; color: var(--muted); }
.done-body { align-items: center; text-align: center; padding-top: 24px; }
.check { width: 64px; height: 64px; border-radius: 50%; background: #E2F3EA; color: #1F7A45; font-size: 30px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.done-title { font-size: 18px; font-weight: 700; }
.done-body .modal-foot { align-self: stretch; }

/* ── 칩 · 안내 · 담당자지정 팝업 ── */
.chips { display: flex; gap: 6px; }
/* 진행상태 모아보기 (D59): 점선 상자로 묶은 흰 알약 버튼, 고르면 남색 — 아래 검색 칸과 다른 빠른 거르기 묶음 */
.stage-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border: 1px dashed #B8C0CC; border-radius: 4px; background: #FBFCFD; }
.chips-label { margin-right: 2px; color: #4A5260; font-weight: 700; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 1px solid #C3C9D2; border-radius: 4px; background: #FFFFFF; color: var(--text); text-decoration: none; white-space: nowrap; }
.chip:hover { color: var(--text); background: #F5F7FA; }
.chip.on, .chip.on:hover { background: #1B2433; border-color: #1B2433; color: #FFFFFF; }
/* 날짜 · 시각 칸: 날짜 고르기(datepick)가 붙기 전의 브라우저 기본 칸은 글자 · 아이콘을 숨긴다
   (붙으면 type 이 text 로 바뀌어 이 규칙이 풀린다 — 그 사이 글자가 움직여 보이지 않게) */
input[type="date"], input[type="time"] { color: transparent; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { opacity: 0; }

/* 입력 확인 안내 (브라우저 기본 말풍선 대신, app.js) */
.is-invalid { border-color: #D92D20 !important; box-shadow: 0 0 0 3px rgba(217,45,32,.14) !important; }
/* 입력칸 바로 아래 안내 글 (표 모양 칸에서는 다음 줄 오른쪽 칸에 붙는다) */
.field-err { display: block; margin-top: 4px; color: #D92D20; font-size: 12px; font-weight: 600; line-height: 1.4; }
.field-err::before { content: '!'; display: inline-block; width: 14px; height: 14px; margin-right: 5px; border-radius: 50%; background: #D92D20; color: #FFFFFF;
  font-size: 10px; font-weight: 800; line-height: 14px; text-align: center; vertical-align: 1px; }
.form-grid > .field-err { grid-column: 2; margin-top: -4px; }

/* 상단 업무 바로가기 (랭킹 막대와 메뉴 줄 사이, 기존 상단 그대로) */
/* flex: none — 목록 화면은 화면 높이에 맞춰 줄어드는데, 이 줄은 줄어들면 글자가 잘린다. 크기 · 색은 시안(TopBar)과 같게 */
.shortcuts { flex: none; display: flex; align-items: baseline; /* 글자 크기가 달라도 아래줄(글자 바닥)을 맞춘다 (2026-11-17) */ gap: 6px; padding: 4px 16px; background: #F5F7FA; border-bottom: 1px solid #DDE2E8; font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.shortcuts::-webkit-scrollbar { display: none; }
.shortcuts a { flex: 0 0 auto; letter-spacing: -0.3px; text-decoration: none; }
.shortcuts a:hover { text-decoration: underline; }
.shortcuts .sc-sep { color: #A0A8B4; }

/* 저장 안내는 줄로 보이지 않고 토스트로 뜬다 (app.js 가 .flash 글을 ui.toast 로) */
.flash { display: none; }
.ui-toast { position: fixed; left: 50%; bottom: 32px; z-index: 1000; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 11px 18px 11px 14px; border-radius: 4px; background: #0E2A47; color: #FFFFFF; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 28px rgba(14,42,71,.30); opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; pointer-events: none; }
.ui-toast.on { opacity: 1; transform: translate(-50%, 0); }
.ui-toast-ic { width: 20px; height: 20px; border-radius: 50%; background: #22A06B; color: #FFFFFF; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.assign-dialog { width: 560px; max-width: calc(100% - 32px); padding: 0; border: 0; border-radius: 4px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); }
.assign-dialog::backdrop { background: rgba(14, 22, 34, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #F5F7FA; border-bottom: 1px solid #E3E7ED; font-size: 15px; }
.dlg-x { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; }
.dlg-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dlg-sel { padding: 8px 10px; background: #EEF3FC; border-radius: 3px; }
.dlg-filter { display: flex; gap: 6px; }
.dlg-filter select, .dlg-filter input { height: 34px; padding: 0 8px; border: 1px solid #C3C9D2; border-radius: 2px; }
.dlg-filter input { flex: 1; }
.dlg-table { border: 1px solid #E3E7ED; border-radius: 3px; max-height: 300px; overflow-y: auto; }
.dlg-table tr[data-staff-row] { cursor: pointer; }
.dlg-table tr[data-staff-row]:has(input:checked) td { background: #EEF3FC; }
.dlg-table label { cursor: pointer; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: #F7F8FA; border-top: 1px solid #EEF0F3; }

/* 목록 화면: 화면 높이에 맞추고 표만 안에서 스크롤 → 아래 줄(건수·쪽 넘김·버튼)이 늘 보인다 */
body:has(.list-card) { height: 100vh; }
.page:has(.list-card) { min-height: 0; overflow: hidden; }

/* ── 직원 관리: 위 거르기 줄 · 왼쪽 목록 / 오른쪽 상세 ── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px; }
.toolbar label { display: flex; align-items: center; gap: 4px; }
.toolbar select, .toolbar input[type=text] { height: 30px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; }
.btn.dark { background: #1B2433; border-color: #1B2433; color: #FFFFFF; }
.push-right { margin-left: auto; }
.fixed { padding: 4px 10px; background: #EEF3FC; border-radius: 2px; color: #173D8F; }
body:has(.split) { height: 100vh; }
.page:has(.split) { min-height: 0; overflow: hidden; }
.split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; }
.split .list-card { min-height: 0; }
.grid tr.pick { cursor: pointer; }
.grid tr.pick:hover td { background: #F5F8FD; }
/* 고른 줄: 굵게 하면 글자 폭이 바뀌어 표 칸이 흔들린다 → 바탕색 + 왼쪽 막대로만 표시 */
/* 바탕은 연한 회색 — 파란 꼬리표(지사관리자)와 겹치지 않게, 고른 표시는 왼쪽 파란 막대 */
.grid tr.pick.on td { background: #EEF0F4; }
.grid tr.pick.on td:first-child { box-shadow: inset 3px 0 0 var(--link); }
.role-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; background: #EEF0F3; }
.role-sys, .role-top { background: #FCE7F3; color: #9D174D; }
.role-root { background: #1B2433; color: #fff; }
.role-branch { background: #E0ECFF; color: #173D8F; }
.role-tag.role-lead { background: #E2F3EA; color: #1F7A45; }
/* 직원 상세: 팀 칸 옆 「팀장」 — 입력 칸과 같은 높이의 칩, 체크하면 파랗게 (D84) */
/* 팀 칸 줄: 팀 고르기 · 팀장 칩 · 안내를 한 줄 가운데 정렬 */
.form-grid > span:has(> [data-team-select]) { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.form-grid > span:has(> [data-team-select]) > .muted.small { margin-left: 4px; }
.lead-check { display: inline-flex; align-items: center; gap: 5px; height: 32px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 2px;
  background: #FFFFFF; color: #4A5260; font-size: 12px; font-weight: 500; line-height: 1; cursor: pointer; white-space: nowrap; user-select: none;
  transition: border-color .12s, background-color .12s, color .12s; }
.lead-check:hover { border-color: var(--link); }
.lead-check:has(input:checked) { border-color: var(--link); background: #EEF3FC; color: var(--link); font-weight: 600; }
.lead-check input { width: 14px; height: 14px; vertical-align: 0; }
.lead-check:has(input:disabled) { cursor: not-allowed; opacity: .5; background: #F5F7FA; }
.lead-check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(31,79,184,.2); }
/* 목록의 보기만 하는 체크 (눌러도 안 바뀜 — 줄을 누르면 상세가 열린다) */
/* 칸 한가운데 (글자 기준선에 맞추면 아래로 처진다) */
input[type="checkbox"].ro-check { display: grid; width: 16px; height: 16px; margin: 0 auto; vertical-align: middle; pointer-events: none; }
.detail { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.detail > .empty { padding: 40px; text-align: center; color: var(--muted); }
.detail-form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.detail-head h2 { margin: 0; font-size: 16px; }
.head-right { display: inline-flex; align-items: center; gap: 8px; }
/* 사용 · 퇴사 표시 (목록) */
.status-tag { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: 12px; font-weight: 700; background: #E2F3EA; color: #14532D; }
.status-tag.st-퇴사 { background: #FDECEC; color: #B42318; }
/* 탭: 서류철 모양 — 회색 칸들이 아래 선에 붙어 있고, 고른 탭만 흰 칸 + 위쪽 파란 띠 + 아래 선이 끊겨 내용과 이어진다 */
.tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid #C9D0DA; }
.tabs [role="tab"] { position: relative; height: 36px; padding: 0 20px; margin-bottom: -1px; border: 1px solid transparent; border-radius: 2px 2px 0 0; background-clip: padding-box;
  background: #F1F3F6; font-weight: 600; color: #5B6472; cursor: pointer; transition: background-color .12s, color .12s; }
.tabs [role="tab"]:hover { background: #E7EBF0; color: #333B47; }
.tabs [role="tab"][aria-selected=true] { background: #FFFFFF; color: #0E2A47; font-weight: 700; border-color: #C9D0DA; border-bottom-color: #FFFFFF; box-shadow: inset 0 3px 0 var(--link); }
/* 탭 줄 오른쪽 끝 저장 */
.tabs .tabs-save { margin-left: auto; align-self: center; margin-bottom: 4px; }
.tab-body { flex: 1 1 auto; min-height: 0; overflow: auto; border: 0; margin: 0; padding: 4px 0 0; display: flex; flex-direction: column; gap: 12px; }
.tab-body[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-items: center; gap: 8px 12px; }
.form-grid.narrow { grid-template-columns: 80px minmax(0, 1fr); align-content: start; }
.form-grid input[type=text], .form-grid input[type=password], .form-grid input[type=date], .form-grid select, .form-grid textarea { height: 32px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; max-width: 320px; width: 100%; }
.form-grid textarea { height: auto; padding: 6px 8px; max-width: none; resize: vertical; }
.form-grid .radio { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.form-grid .stack { display: flex; flex-direction: column; gap: 6px; }
.form-grid .w-zip { max-width: 120px; }
/* 주소 묶음: 우편번호는 짧게 */
.form-grid input[type=text].w-zip { width: 110px; max-width: 110px; flex: none; }
/* 누르면 주소 검색 창이 뜨는 칸 (직접 입력 안 함) */
.addr-pick { cursor: pointer; background-color: #F8FAFC !important; caret-color: transparent; }
.addr-pick:hover { border-color: #1F4FB8 !important; }
/* 직원 신상: 주소 · 나머지 주소 · 이메일은 칸 끝까지 (아래 기타사항과 끝선이 같게) */
.form-grid.addr-col input[type=text]:not(.w-zip), .form-grid.addr-col textarea { max-width: none; }
.person-rest { margin-top: 8px; }
.form-grid .pair { display: flex; align-items: center; gap: 6px; }
/* 빨간 안내 (기존 화면처럼 칸 옆에 — 계좌번호 · 비밀번호 변경 · 업무폰) */
.warn-text { color: #D92D20; font-weight: 600; white-space: nowrap; }
.form-grid > span > .warn-text { margin-left: 6px; }
/* 업무폰 여러 대 (D82) */
.wp-list { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.wp-head, .wp-row { display: grid; grid-template-columns: 24px minmax(0, 1.2fr) 150px minmax(0, 1fr) 32px; align-items: center; gap: 8px; }
.wp-head { font-size: 12px; color: #5B6472; font-weight: 600; padding: 0 0 2px; }
.wp-no { text-align: center; font-size: 12px; color: #5B6472; font-weight: 700; }
.wp-row input { height: 32px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; width: 100%; min-width: 0; box-sizing: border-box; font: inherit; }
/* 빼기(×): 입력 칸과 같은 높이 · 테두리 · 모서리 */
.wp-del { width: 32px; height: 32px; padding: 0; border: 1px solid var(--input-line); border-radius: 2px; background: #FFFFFF; color: #8A93A0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.wp-del:hover { border-color: #F3B4AE; background: #FEF3F2; color: #D92D20; }
.wp-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
fieldset:disabled .wp-del { visibility: hidden; }
/* 첫째 줄은 빼기(×) 없음 — 자리는 남겨 줄 정렬은 그대로 */
.wp-list > .wp-head + .wp-row .wp-del { visibility: hidden; }
.form-grid .pair input { max-width: 200px; }
.person-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; }
/* 목록 링크: 글자색 그대로·밑줄 없음, 마우스를 올리면 밑줄 (기존과 같게) */
.row-link { color: inherit; text-decoration: none; }
/* 목록 이름 링크: 마우스를 대도 밑줄 없음 (줄 전체가 눌리는 자리) */
.row-link:hover { color: inherit; text-decoration: none; }
.form-grid > span > .muted.small { margin-left: 6px; }

/* 아이디 중복확인 결과 */
.small-btn { height: 30px; padding: 0 10px; font-size: 12px; }
.ok-text { color: #1F7A45; font-weight: 700; }
.err-text { color: #B42318; font-weight: 700; }

/* ── 고객 등록 · 고객 상세 (목업 Customer-New · Customer-Detail 과 같은 표 모양) ── */
.page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.back-link { font-size: 14px; font-weight: 700; text-decoration: none; }
.dup-tag { padding: 1px 8px; border-radius: 4px; background: var(--pink-bg); color: var(--pink); font-weight: 700; font-size: 12px; }
.sheet-form { display: flex; flex-direction: column; gap: 12px; }
.sheet-legend { align-self: flex-end; color: var(--muted); }
.sheet { background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.sheet-h { margin: 0; padding: 8px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sheet-h.blue { background: #E4EDF8; }
.sheet-h.green { background: #E2F3EA; }
.sheet-h.purple { background: #ECE6F7; }
.sheet-note { padding: 6px 12px; color: var(--muted); }
/* 칸 표: 항목(회색) · 값. 6칸(항목 3쌍) · 8칸(4쌍) · 2칸(1쌍) */
.pgrid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px minmax(0, 1fr) 180px minmax(0, 1fr); align-items: stretch; }
.pgrid.c8 { grid-template-columns: 150px minmax(0, 1fr) 150px minmax(0, 1fr) 150px minmax(0, 1fr) 150px minmax(0, 1fr); }
.pgrid.c2 { grid-template-columns: 150px minmax(0, 1fr); }
.pgrid .lab { padding: 7px 10px; background: #F5F7FA; border-bottom: 1px solid #E3E7ED; border-right: 1px solid #E3E7ED; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.pgrid .cell { padding: 5px 10px; border-bottom: 1px solid #E3E7ED; border-right: 1px solid #E3E7ED; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pgrid .lab.req { background: #FFF8D6; }
.pgrid .cell.req { background: #FFFDE7; }
.req-mark { color: #D92D20; }
.inp { height: 28px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; }
.sel { height: 28px; min-width: 150px; padding: 0 4px; border: 1px solid var(--input-line); border-radius: 2px; background: #FFFFFF; }
.sel:disabled { background: #F2F4F7; color: #8A93A1; }
.inp[hidden] { display: none; }
.age-tag { margin-left: 6px; padding: 1px 8px; border-radius: 4px; background: #EEF3FC; color: #173D8F; }
.hint { color: #8A93A1; font-size: 12px; }
.memo { width: 100%; min-height: 180px; font-size: 14px; line-height: 1.6; padding: 8px 10px; border: 1px solid var(--input-line); border-radius: 2px; resize: vertical; }
.sheet-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; }
.sheet-center { display: flex; justify-content: center; gap: 8px; }
.btn.navy { background: #1B4F80; border-color: #1B4F80; color: #FFFFFF; }
.btn.navy:hover { background: #163F66; color: #FFFFFF; }
.btn.purple { background: #8C3FBF; border-color: #8C3FBF; color: #FFFFFF; }
.btn.purple:hover { background: #7433A0; color: #FFFFFF; }
.btn.danger { color: #B42318; border-color: #F1B5AE; }
.btn.wide { height: 36px; padding: 0 22px; }
.notice .dup-btns { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
/* 상담내역 */
.sheet-scroll { overflow-x: auto; }
.consult-table { min-width: 900px; }
.consult-table th.l { text-align: left; }
.consult-table td.wrap { white-space: normal; }
.text-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--link); text-align: left; cursor: pointer; white-space: pre-line; }
.text-btn:hover { text-decoration: underline; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 12px; border-top: 1px solid #E3E7ED; }
/* 상담 팝업 · 인쇄 미리보기: 화면 가운데, 너무 크면 안에서 스크롤 */
.consult-dialog { width: 640px; max-height: calc(100vh - 32px); overflow: auto; }
.consult-dialog form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field textarea, .field select, .field input { height: 34px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; }
.field textarea { height: auto; padding: 8px; resize: vertical; }
.field select:disabled { background: #F2F4F7; color: #8A93A1; }
.field .readonly { background: #F5F7FA; border-color: #E3E7ED; }
.field .pair { display: flex; gap: 6px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hold-note { padding: 8px; background: #FDF4EC; border-radius: 2px; color: #8A3409; }
.push-left { margin-right: auto; }
/* 인쇄 미리보기: 머리 줄은 밝은 띠(어두운 배경과 구분), 아래 A4 만 안에서 스크롤 */
.print-dialog { width: 840px; max-width: calc(100% - 32px); height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 4px; background: #FFFFFF; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); overflow: hidden; display: none; flex-direction: column; }
.print-dialog[open] { display: flex; }
.print-dialog::backdrop { background: rgba(14, 22, 34, .6); }
.print-head { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #F5F7FA; border-bottom: 1px solid #D5DAE1; font-size: 15px; }
.print-head b span { font-weight: 400; font-size: 13px; color: var(--muted); }
.print-dialog iframe { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; background: #E9ECF1; }

/* ── 고객 목록 ── */
.search-bar .date-range { display: inline-flex; align-items: center; gap: 4px; }
/* 검색 줄 강제 줄바꿈 (예: 고객 목록 「기간」부터 둘째 줄) */
.search-bar input[data-range] { box-sizing: border-box; width: 220px; min-width: 0; padding-right: 30px; }
.search-bar .row-break { flex-basis: 100%; height: 0; margin: 0; padding: 0; }
/* 검색 줄이 그려진 뒤 흔들리지 않게: 날짜 칸(날짜 고르기가 붙기 전 · 뒤 같은 폭) · JS 가 채우는 선택 칸은 폭을 고정 */
.search-bar input[type="date"], .search-bar input[data-dp="date"] { box-sizing: border-box; width: 150px; min-width: 0; padding-right: 30px; }
.search-bar select[data-search-p1] { width: 112px; }
.search-bar select[data-search-p2] { width: 142px; }
.search-bar input[type=date], .search-bar select { height: 30px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; background: #FFFFFF; }
.search-bar select:disabled { background: #F2F4F7; color: #8A93A1; }
.btn.navy { background: #1B4F80; border-color: #1B4F80; color: #FFFFFF; }
.cust-grid th { background: #DDE4F0; }
.cust-grid th.l { text-align: left; }
.cust-grid .last-body { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.cust-grid td.unassigned { color: var(--pink); font-weight: 700; }
.grid tr.pick.dup td { background: #FFDDF4; }
.icon-btn { width: 32px; height: 28px; border: 1px solid #C3CEDF; border-radius: 2px; background: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #EEF3FC; }
.foot-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); }
.size-pick { display: inline-flex; align-items: center; gap: 4px; }
.size-pick select { height: 26px; border: 1px solid var(--input-line); border-radius: 2px; }
.preview-dialog { width: 860px; }
.preview-dialog td.wrap { white-space: normal; min-width: 260px; }
.preview-dialog th.l { text-align: left; }
.preview-dialog .dlg-foot { justify-content: space-between; }
[hidden].btn, .btn[hidden] { display: none; }

/* ── 일일업무 현황보고 줄 (고객 상세) · 필수 칸 표시 ── */
.report-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 3px; padding: 10px 14px; }
.rep-btn { height: 34px; padding: 0 14px; border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer; }
.rep-btn span { font-weight: 400; }
.rep-read { border: 1px solid #9933FF; background: #EBD7FF; }
.rep-recv { border: 1px solid #DA7C0C; background: #FEE8C2; }
.rep-miss { color: #B42318; }
.rep-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.mk { font-weight: 700; }
.mk-read { color: #9900FF; }
.mk-recv { color: #FF6600; }
/* 강조: 열람이면 보라 칸, 접수면 보라+주황 칸. 빈 필수 칸은 빨강 + 「미입력」 */
.hl-read .pgrid .lab[data-req=read] { background: #F1E4FF; box-shadow: inset 3px 0 #9900FF; }
.hl-recv .pgrid .lab[data-req=recv] { background: #FFE9D6; box-shadow: inset 3px 0 #FF6600; }
.pgrid .lab.miss { background: #FDECEC !important; box-shadow: inset 3px 0 #D92D20 !important; }
.report-dialog { width: 520px; }
.report-dialog form { margin: 0; }
.rep-head { padding: 10px; border-radius: 3px; font-weight: 700; }
.rep-head.ok { background: #E2F3EA; color: #14532D; }
.rep-head.bad { background: #FDECEC; color: #8F1D14; }
.report-dialog ul { margin: 0; padding-left: 20px; line-height: 1.8; }

/* ── 일일 현황 (목록은 높이를 정하고 표만 스크롤, 집계는 그 아래 · 넘치면 화면이 스크롤) ── */
.me-tag { padding: 4px 10px; background: #EEF3FC; border-radius: 6px; color: #173D8F; }
/* 근태 · 승인 · 일보 목록: 화면 높이에 맞추고 남은 높이를 목록이 채운다 (위 줄이 늘어도 페이지 스크롤 없이 표만 안에서 스크롤) */
.rep-card { display: flex; flex-direction: column; overflow: hidden; flex: 1 1 auto; min-height: 220px; }
body:has(.rep-card) { height: 100vh; }
.page:has(.rep-card) { min-height: 0; overflow-y: auto; }
.rep-card .list-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.rep-grid th { background: #DDE4F0; }
.rep-grid tbody tr { cursor: pointer; }
.rep-grid tbody tr:hover td { background: #F5F8FD; }
.stat-card { overflow: hidden; flex: 0 0 auto; }
.stat-head { display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: #F5F7FA; }
.stat-head h2 { margin: 0; font-size: 14px; }
.stat-btns { margin-left: auto; display: flex; gap: 6px; }
.stat-btn { display: inline-flex; align-items: center; height: 26px; padding: 0 14px; color: #FFFFFF; font-weight: 700; text-decoration: none; }
.stat-btn:hover { color: #FFFFFF; filter: brightness(1.1); }
.stat-btn.green { background: #009900; }
.stat-btn.blue { background: #1F4FB8; }
.stat-btn.purple { background: #9900CC; }
.stat-btn.on { box-shadow: inset 0 -3px 0 #FFE08A; }
.stat-table { width: 100%; border-collapse: collapse; text-align: center; }
.stat-table th { padding: 7px; }
.stat-table td { padding: 7px; border-top: 1px solid #CFE3EA; }
.stat-table .h1 { background: #E6EDDC; } .stat-table .h2 { background: #EEF59E; } .stat-table .h3 { background: #CCFFCC; }
.stat-table .h4 { background: #D9E5FF; } .stat-table .h6 { background: #CCCCCC; }
.stat-table td.g1 { background: #F0F4EA; }
.stat-table tr.sum td { background: #DDF0FA; font-weight: 700; }
.report-view { width: 640px; max-height: calc(100vh - 32px); overflow: auto; }
.report-view .dlg-head { background: #EEF0FB; }
.view-table { width: 100%; border-collapse: collapse; }
.view-table th { width: 150px; padding: 8px 12px; text-align: left; font-weight: 500; background: #F5F7FA; color: var(--muted); border-top: 1px solid #E3E7ED; }
.view-table td { padding: 8px 12px; border-top: 1px solid #E3E7ED; }

/* ── 2026-11-13 칸 정리 (D43): 고객번호 한 칸 · 주거형태 단계 · 연봉 환산 ── */
.sel-s { min-width: 0; width: auto; }
.nowrap { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
/* 표 칸에 붙으면 칸 모양은 그대로 (inline-flex 가 칸을 깨뜨림) */
td.nowrap, th.nowrap { display: table-cell; }
.calc-tag { padding: 2px 8px; border-radius: 4px; background: #E2F3EA; color: #14532D; font-weight: 700; white-space: nowrap; }
.sel[hidden] { display: none; }
[data-house-dep][hidden] { display: none; }

/* ── 공통코드 (탭 · 권한 표시 · 연봉 환산 비율) ── */
.perm-tag { padding: 3px 10px; border-radius: 6px; background: #EEF0F3; color: var(--muted); font-weight: 700; }
.perm-tag.ok { background: #E2F3EA; color: #14532D; }
.code-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.code-tab { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid #C3C9D2; border-radius: 6px; background: #FFFFFF; color: var(--text); text-decoration: none; }
.code-tab:hover { color: var(--text); background: #F5F7FA; }
.code-tab.on { background: #1B2433; border-color: #1B2433; color: #FFFFFF; font-weight: 700; }
.rate-table th.l { text-align: left; }
.rate-table td.calc { color: #14532D; }
.now-tag { padding: 0 6px; border-radius: 4px; background: #E0ECFF; color: #173D8F; font-size: 11px; }
.inline-form { display: inline; margin: 0; }
.rate-dialog { width: 420px; }
.rate-dialog form { margin: 0; }

/* ── 드롭박스 공통 모양 (2026-11-13): 너무 꽉 끼지 않게 · 꺾쇠(▾)는 오른쪽 끝에서 조금 떼어 ──
   글자 왼쪽 8px · 오른쪽 32px(꺾쇠 자리), 꺾쇠는 오른쪽에서 11px. 다른 규칙의 background 줄임말에 지워지지 않게 !important */
select:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
  padding-left: 8px !important;
  padding-right: 32px !important;
  min-width: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234A5260' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 10px 6px !important;
  cursor: pointer;
}
select:not([multiple]):disabled { cursor: default; opacity: .75; }
.sel-s { min-width: 80px; }
/* 고객신상정보 칸 너비: 가운데(고객번호 = 소유 · 통신사 · 번호, 주거형태 단계)가 한 줄에 들어가게 넓게 */
.pgrid { grid-template-columns: 150px minmax(0, 0.9fr) 150px minmax(0, 1.35fr) 150px minmax(0, 1fr); }
/* 칸 이름이 길면 「미입력」 표시는 다음 줄로 (칸 밖으로 안 나가게) */
.pgrid .lab { flex-wrap: wrap; row-gap: 2px; }
/* 4대보험 칸은 한 줄로 (가입·미가입 · 보험료 · 연봉 환산). 연봉 환산 표시는 최소 길이를 정해 9자리(999,999,999원)까지 줄바꿈 없이,
   그 칸(왼쪽 열)은 내용만큼은 넓어진다 */
.pgrid { grid-template-columns: 150px minmax(min-content, 0.9fr) 150px minmax(0, 1.35fr) 150px minmax(0, 1fr); }
.pgrid .cell[data-insurance] { flex-wrap: nowrap; }
.calc-tag { display: inline-block; min-width: 176px; text-align: center; }
/* 좁은 화면에서 칸 안 입력칸이 칸 밖으로 나가지 않게 (정해 둔 너비보다 칸이 좁으면 줄어든다) */
.pgrid .cell { min-width: 0; }
.pgrid .cell > .inp, .pgrid .cell .nowrap > .inp { max-width: 100%; }

/* 엑셀 업로드 ② 고르는 칸 (이미 있는 고객 · 블랙리스트, D50) */
.choose-box { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid #E3E7ED; border-radius: 4px; background: #FAFBFC; }
.choose-box .row-field { justify-content: space-between; }
.choose-label { display: inline-flex; flex-direction: column; gap: 2px; }
.rule-list { margin: 0; padding-left: 18px; }

/* 비어 있는 필수 칸: 입력칸 아래 안내 (입력하면 app.js 가 .need 를 뗀다, 2026-11-13) */
.pgrid .cell.need { background: #FFF5F5; }
.pgrid .cell.need::after { content: '입력이 필요합니다'; flex-basis: 100%; color: #B42318; font-size: 12px; font-weight: 700; }
/* 4대보험: 「가입」일 때만 보이는 건강보험료 · 연봉 환산 */
.ins-paid { display: inline-flex; align-items: center; gap: 4px; }
.ins-paid[hidden] { display: none; }
/* 누를 수 있는 것은 모두 손 모양 커서 (2026-11-13) */
a[href], button, [role="button"], [role="tab"], summary, select, label[for], label:has(> input[type="checkbox"]), label:has(> input[type="radio"]), label:has(> input[type="file"]),
input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"], input[type="file"], input[type="date"], .btn, [data-href], tr[data-href] { cursor: pointer; }
button:disabled, select:disabled, input:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
/* 꺼진 단추는 흐리게 (예: 아이디를 안 바꿨을 때 「중복확인」) */
button.btn:disabled { opacity: 0.45; }

/* 고객 보고 단계 (D53, 2026-11-13): 등록 → 열람 → 접수 → 승인 */
.stage-bar { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 8px; padding: 8px 12px; background: #FFFFFF; border: 1px solid #CBD2DB; border-radius: 3px; }
.stage-bar li { display: flex; align-items: center; gap: 6px; color: #8A93A1; }
.stage-bar li + li::before { content: ''; width: 40px; height: 2px; margin: 0 10px; background: #D5DBE3; }
.stage-bar li.done + li::before { background: #1F7A45; }
.stage-dot { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #EEF1F5; color: #8A93A1; }
.stage-bar li.done { color: #1B1F24; }
.stage-bar li.done .stage-dot { background: #1F7A45; color: #FFFFFF; }
.stage-bar li.now { color: #1F4FB8; }
.stage-bar li.now .stage-dot { background: #1F4FB8; color: #FFFFFF; box-shadow: 0 0 0 3px #DCE6FA; }
.rep-btn.rep-locked, .rep-btn:disabled { opacity: .5; cursor: not-allowed; }
/* 단계 + 보고 버튼 한 줄 (D53) */
.stage-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 8px; padding: 8px 12px; background: #FFFFFF; border: 1px solid #CBD2DB; border-radius: 3px; }
.stage-row .stage-bar { margin: 0; padding: 0; border: 0; background: none; }
.stage-btns { display: flex; gap: 8px; margin-left: auto; }
/* 단계 줄은 화면을 내려도 위에 붙어 있다 — 저장 · 보고를 어디서든 (2026-11-13) */
.stage-row { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(14, 42, 71, .08); }
/* 단계 줄을 본문(흰 섹션)과 구분: 연한 남색 바탕 + 아래 남색 선 + 그림자 (2026-11-13 사용자 선택 ①) */
.stage-row { background: #EEF3FC; border: 1px solid #C9D6EE; border-bottom: 2px solid #1B4F80; box-shadow: 0 3px 8px rgba(14, 42, 71, .14); }
.stage-row .stage-dot { background: #FFFFFF; }
.stage-row li.done .stage-dot { background: #1F7A45; }
.stage-row li.now .stage-dot { background: #1F4FB8; }

/* 보고 안내 팝업 (2026-11-13): 구분 색 머리 + 상태 아이콘 · 필수 칸 체크 목록 · 보고하면 바뀌는 것 */
.report-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 48px rgba(14, 42, 71, .28); }
.rep-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #FFFFFF; }
.rep-top.rep-read { background: linear-gradient(135deg, #7A2BD6, #9B4DEB); }
.rep-top.rep-recv { background: linear-gradient(135deg, #C2580A, #E07B1F); }
.rep-top .dlg-x { margin-left: auto; color: #FFFFFF; background: rgba(255, 255, 255, .18); border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.rep-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; background: #FFFFFF; }
.rep-top.is-ok .rep-icon { color: #1F7A45; }
.rep-top.is-bad .rep-icon { color: #B42318; }
.rep-top.is-dirty .rep-icon { color: #B26A00; }
.rep-titles { display: flex; flex-direction: column; gap: 2px; }
.rep-titles b { font-size: 17px; }
.rep-titles span { font-size: 13px; opacity: .92; }
.rep-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.rep-check { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.rep-check li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.rep-check li::before { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #FFFFFF; }
.rep-check li.yes::before { content: '✓'; background: #1F7A45; }
.rep-check li.no { color: #B42318; font-weight: 700; }
.rep-check li.no::before { content: '✕'; background: #D92D20; }
.rep-after { background: #F3F6FD; border-radius: 4px; padding: 10px 12px; line-height: 1.8; font-size: 13px; }
.rep-after-h { font-size: 12px; font-weight: 700; color: #4A5260; }
.rep-flow b { color: #1F4FB8; }
.rep-note { background: #FFF6DB; border-radius: 4px; padding: 10px 12px; font-size: 13px; color: #7A4B00; }
.report-dialog .dlg-foot { padding: 0 18px 16px; }
/* 이미 보고한 버튼: 눌리지 않고 「보고함 ✓」 (2026-11-13) */
.rep-btn.rep-done { opacity: 1; cursor: default; background: #E2F3EA; border-color: #1F7A45; color: #14532D; }
.rep-check[hidden], .rep-after[hidden], .rep-note[hidden] { display: none; }
/* 아이콘: 흰 원 대신 반투명 원 + 흰 선 아이콘 (머리 색에 묻어나게, 2026-11-13) */
.rep-icon, .rep-top.is-ok .rep-icon, .rep-top.is-bad .rep-icon, .rep-top.is-dirty .rep-icon { background: rgba(255, 255, 255, .22); color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
/* 보고 안내 — 단순하게 다시 (2026-11-13 사용자 「너무 이상해」): 흰 머리 · 위쪽 얇은 구분 색 줄 · 큰 아이콘 없음 · 상태 한 줄 빨강/초록 글자 */
.rep-top, .rep-top.rep-read, .rep-top.rep-recv { background: #FFFFFF; color: #1B1F24; padding: 14px 18px 10px; border-bottom: 1px solid #E3E7ED; }
.rep-top.rep-read { border-top: 4px solid #9933FF; }
.rep-top.rep-recv { border-top: 4px solid #DA7C0C; }
.rep-top .rep-icon { display: none; }
.rep-titles b { font-size: 16px; }
.rep-titles span { opacity: 1; font-weight: 700; }
.rep-top.is-ok .rep-titles span { color: #1F7A45; }
.rep-top.is-bad .rep-titles span { color: #B42318; }
.rep-top.is-dirty .rep-titles span { color: #B26A00; }
.rep-top .dlg-x { color: #4A5260; background: transparent; }
.rep-top .dlg-x:hover { background: #F2F4F7; }
/* 상태 한 줄 · 빈 항목은 얇게 (2026-11-13) */
.rep-titles span { font-weight: 400; }
.rep-check li.no { font-weight: 400; }

/* 진행상태 칸 (D54): 열람 전 회색 · 열람 보라 · 접수 주황 · 승인 초록 · 부결 빨강 (보고 버튼과 같은 색) */
.stage-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.stage-tag.st-none { background: #EEF1F5; color: #4A5260; }
.stage-tag.st-read { background: #EBD7FF; color: #5B1A99; }
.stage-tag.st-recv { background: #FEE8C2; color: #8A3409; }
.stage-tag.st-ok { background: #D7EEDF; color: #14532D; }
.stage-tag.st-no { background: #FDECEC; color: #B42318; }
.stage-bar li.rejected .stage-dot, .stage-row li.rejected .stage-dot { background: #D92D20; color: #FFFFFF; }
.stage-bar li.rejected { color: #B42318; }
/* 지금 상태가 승인이면 초록 (D54) */
.stage-bar li.now.approved, .stage-row li.now.approved { color: #14532D; }
.stage-bar li.now.approved .stage-dot, .stage-row li.now.approved .stage-dot { background: #1F7A45; box-shadow: 0 0 0 3px #D7EEDF; }
.stage-tag.st-reg { background: #E4EDF8; color: #173D8F; }
/* 블랙리스트 (D57): 진한 회색 — 어느 단계에서든 끝 */
.stage-tag.st-black { background: #3A3F47; color: #FFFFFF; }
.stage-bar li.black .stage-dot, .stage-row li.black .stage-dot { background: #3A3F47; color: #FFFFFF; }
.stage-bar li.black { color: #3A3F47; }
/* 종료 (D58): 회색 테두리 — 더 진행하지 않음 */
.stage-tag.st-end { background: #FFFFFF; color: #4A5260; box-shadow: inset 0 0 0 1.5px #8A93A1; }
/* 끝난 고객(승인 · 부결 · 종료 · 블랙리스트)의 보고 버튼: 회색 · 색 강조 없음 (D58) */
.rep-btn.rep-final, .rep-btn.rep-final:disabled { opacity: 1; background: #F2F4F7; border-color: #C3C9D2; color: #8A93A1; cursor: not-allowed; }
.rep-btn.rep-final span { color: #8A93A1; }

/* ── 대출금액승인 · 승인 금액 (D10, 2026-11-16) ── */
.btn.green { background: #1F7A45; border-color: #1F7A45; color: #FFFFFF; }
.btn.green:hover { background: #18633A; color: #FFFFFF; }
.btn.green:disabled { background: #F2F4F7; border-color: #C3C9D2; color: #8A93A1; cursor: not-allowed; }
.approval-dialog { width: 640px; }
.appr-who { padding: 8px 10px; background: #F5F7FA; border-radius: 2px; color: #4A5260; }
.pair.three select { min-width: 150px; }
.appr-note { padding: 8px 10px; background: #E2F3EA; border-radius: 2px; color: #14532D; }
.appr-hist { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; border-top: 1px solid #E3E7ED; background: #F3FAF5; }
.appr-hist .appr-item { color: #14532D; }
.appr-off, .appr-off td { color: #8A93A1 !important; }
.appr-hist .appr-off { text-decoration: line-through; }
.appr-grid td.amt { font-weight: 700; }
.stat-table .h5 { background: #FFE8C2; }
/* 상단 랭킹 · 승인금액 막대 (실제 값, 2026-11-16) */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-list li { display: grid; grid-template-columns: 44px 1fr 1fr auto; align-items: center; gap: 6px; font-size: 13px; }
.rank-no { text-align: center; font-weight: 700; color: #FFFFFF; }
.rank-no.r1, .rank-no.r2, .rank-no.r3 { border-radius: 4px; color: #1B2433; }
.rank-no.r1 { background: #FFD24D; } .rank-no.r2 { background: #D7DDE6; } .rank-no.r3 { background: #E0A066; }
.rank-name { color: #FFE08A; font-weight: 700; }
.rank-amt { text-align: right; font-weight: 700; }
.rank-unit { margin-top: auto; text-align: right; font-size: 11px; color: #B9CBE0; }
.ticker { display: flex; flex-wrap: wrap; gap: 4px 22px; white-space: nowrap; }
.tick-cheer { color: #7CE38B; }
.tick-cheer.pink { color: #FF8AD8; }
.gauge-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.gauge-bar { position: relative; overflow: hidden; }
.gauge-bar span { position: absolute; left: 0; top: 0; bottom: 0; }
.g-exp { background: #7FD3D6; }
.g-ok { background: #C21E8F; }
.gauge-legend { flex-wrap: wrap; align-items: center; font-size: 13px; }
.gauge-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.dot-ok { background: #C21E8F; } .dot-exp { background: #7FD3D6; }
.gauge-legend .push { margin-left: auto; color: var(--muted); }
/* 승인 실적 통계 · 목표 (2026-11-16) */
.stat-head { flex-wrap: wrap; }
.stat-day { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.stat-day label { display: inline-flex; align-items: center; gap: 6px; }
/* 기준일 칸: 다른 입력 칸과 같은 모양 (날짜 고르기가 붙기 전 · 뒤 같은 폭) */
.stat-day input[type="date"], .stat-day input[data-dp="date"] { box-sizing: border-box; width: 150px; height: 28px; padding: 0 30px 0 6px; border: 1px solid var(--input-line); border-radius: 2px; background: #FFFFFF; font: inherit; }
.stat-scroll { overflow-x: auto; }
.appr-stat td.num { text-align: right; white-space: nowrap; }
.appr-stat tr.sub td { background: #F5F7FA; font-weight: 700; }
.stat-foot { margin-top: 6px; }
.goal-table { border-collapse: collapse; width: 100%; }
.goal-table th, .goal-table td { padding: 6px 8px; border-bottom: 1px solid #E3E7ED; text-align: left; }
.goal-table input.num { text-align: right; }
.gauge-bar span.g-goal { left: auto; width: 3px; margin-left: -1px; background: #1B2433; }

/* ── 공통코드 목록 · 추가 · 수정 · 표시 순서 (2026-11-16) ── */
.code-split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: start; }
.grp-list { display: flex; flex-direction: column; padding: 8px; gap: 2px; position: sticky; top: 0; }
.grp-title { padding: 4px 8px 8px; font-weight: 700; color: #4A5260; border-bottom: 1px solid #E3E7ED; margin-bottom: 4px; }
.grp-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 3px; color: var(--text); text-decoration: none; }
.grp-item:hover { background: #F5F7FA; color: var(--text); }
.grp-item.on { background: #1B2433; color: #FFFFFF; font-weight: 700; }
.grp-item.on .muted { color: #C9D2DE; }
.p1-item { cursor: pointer; }
.p1-item .p1-name a { color: inherit; text-decoration: none; }
.order-card { padding: 0; overflow: hidden; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-bottom: 1px solid #E3E7ED; }
.order-bar { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; background: #FFF6CC; border-radius: 3px; }
.order-bar[hidden] { display: none; }
.order-dirty { color: #8A5A00; font-weight: 700; }
.order-head .push-right { margin-left: auto; }
.order-table { width: 100%; }
.order-table .w-no { width: 80px; }
.order-table .w-mv { width: 220px; }
.order-table td.nowrap { white-space: nowrap; }
.order-table td .small-btn { margin-right: 4px; }
.drag-handle { display: inline-block; margin-right: 6px; color: #8A93A1; cursor: grab; user-select: none; }
.order-table.editable tr[draggable] { cursor: grab; }
.order-table tr.dragging, .order-table tbody.dragging { opacity: .45; }
.order-table .pg-head td { background: #EEF3FC; border-top: 2px solid #CBD2DB; }
.mv { display: inline-flex; gap: 2px; vertical-align: middle; }
.mv-btn { width: 26px; height: 26px; border: 1px solid #C3C9D2; border-radius: 2px; background: #FFFFFF; color: #4A5260; font-size: 11px; cursor: pointer; }
.mv-btn:hover { background: #EEF3FC; border-color: #1F4FB8; color: #1F4FB8; }
.use-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; background: #EEF0F3; color: #8A93A1; }
.use-tag.on { background: #E2F3EA; color: #14532D; }
.lock-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; background: #F5F7FA; color: #4A5260; border: 1px solid #E3E7ED; }
.scope-tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; background: #FEE8C2; color: #8A3409; }
.scope-tag.common { background: #E4EDF8; color: #173D8F; }
/* 공통코드 목록: 화면 높이에 맞춰 목록 안에서 스크롤 (2026-11-16) */
.code-scroll { max-height: max(300px, calc(100vh - 400px)); }
.grp-list { max-height: max(300px, calc(100vh - 400px)); overflow-y: auto; }
/* 진행상황 좌우 표: 왼쪽 진행상황1 목록 (순서 정하기, 2026-11-16) */
.code-split > .order-card { min-width: 0; }
.grp-title { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.p1-list { width: auto; }
.code-split:has(.p1-list) { grid-template-columns: 320px minmax(0, 1fr); }
.p1-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; align-items: center; gap: 4px; }
.p1-item[draggable] { cursor: grab; }
.p1-item a { color: inherit; text-decoration: none; font-weight: 600; }
.p1-item.on a, .p1-item.on .drag-handle { color: #FFFFFF; }
.p1-item.dragging { opacity: .45; }
.head-btns { display: inline-flex; gap: 6px; }
.order-head .push-right { margin-left: auto; }
.p1-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 금융기관 목록 아래: 선택 삭제 */
.fin-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 8px 12px; border-top: 1px solid #E3E7ED; }
/* 제목 옆 설명 */
.head-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 12px; background: #FFFFFF; border: 1px solid #E3E7ED; border-radius: 3px; }
.w-chk { width: 36px; }
.order-table .band-head td { background: #F5F7FA; color: #4A5260; font-weight: 700; font-size: 12px; }
/* 공통코드 표 머리: 데이터와 구분되게 진하게 (2026-11-16) */
.order-table th, .code-scroll .grid th { background: #DDE4F0; color: #1B2433; border-bottom: 1px solid #C3CCDA; }
.similar-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; padding: 8px 10px; background: #FFF6CC; border-radius: 3px; font-weight: 700; color: #8A5A00; }
.similar-ask[hidden] { display: none; }
.new-source { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.new-source[hidden] { display: none; }

/* 운영 설정 (2026-11-16, D70) */
.settings-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.settings-card .card-title { font-size: 16px; margin: 0; }
.settings-form { display: flex; flex-direction: column; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: #FFFFFF; }
.check-row input { width: 18px; height: 18px; }
.settings-foot { display: flex; justify-content: flex-end; }

/* 팀 관리 (2026-11-16, D48) */
.team-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.team-new { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.team-new input { flex: 1 1 auto; height: 32px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; }
.team-detail { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.team-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* 팀 이름 · 이름 바꾸기 · 팀 없애기: 같은 높이로 가운데 정렬 */
.team-head .inline-form { display: inline-flex; align-items: center; gap: 6px; }
.team-head .btn { height: 32px; display: inline-flex; align-items: center; }
.team-head input[type=text] { box-sizing: border-box; height: 32px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; font-size: 15px; font-weight: 700; }
.team-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; background: #F5F7FA; border-radius: 3px; }
.team-row select { height: 32px; min-width: 220px; border: 1px solid var(--input-line); border-radius: 2px; }
.team-label { width: 70px; }
.team-sub { font-weight: 700; color: #1B2433; }
.no-team-row td { background: #FAFBFC; }

/* 운영 설정 — 지사별 (2026-11-16, D72) */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.settings-grid .settings-card { max-width: none; }
.settings-card .card-title { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.set-label { width: 76px; }
.set-row input[type=time] { height: 32px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; }
.set-row input[type=time]:disabled { background: #F0F2F5; color: #8A93A1; }
.set-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; }
.set-add input[type=text], .set-add input[type=date] { height: 32px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; }
.base-row td { background: #F7F8FA; color: #4A5260; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } }
.set-row input.is-base { background: #F0F2F5; color: #8A93A1; }

/* 근태 (2026-11-16, D30) */
.att-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.att-tile { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.att-tile > span:first-child { color: #4A5260; }
.att-tile b { font-size: 20px; }
.att-late-txt { color: #B4470C; } .att-absent-txt { color: #B42318; } .att-open-txt { color: #8A5A00; }
.att-tag { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: 12px; }
.att-ok { background: #D7EEDF; color: #14532D; }
.att-late { background: #FBE7D3; color: #8A3409; font-weight: 700; }
.att-absent { background: #FDECEC; color: #B42318; font-weight: 700; }
.att-early { background: #FEF3C7; color: #8A5A00; font-weight: 700; }
.att-open { background: #EEF0F3; color: #4A5260; font-weight: 700; }
/* 근태 목록: 구분 · 사유는 보기만, 입력은 창에서 */
.att-kind { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: 12px; font-weight: 700; background: #E0ECFF; color: #173D8F; }
.att-reason { color: #333B47; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.att-need-btn { border-color: #F3B4AE; color: #B42318; }
.att-dlg { width: 440px; }
.att-dlg-info { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 10px; margin: 4px 0 6px; padding: 10px 12px; background: #F5F7FA; border-radius: 4px; font-size: 13px; }
.att-dlg-info dt { color: #5B6472; }
.att-dlg-info dd { margin: 0; }
.att-dlg-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #333B47; }
.att-dlg-field select, .att-dlg-field input { height: 36px; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 3px; font: inherit; font-weight: 400; background: #FFFFFF; }
.att-dlg-field select:focus, .att-dlg-field input:focus { outline: none; border-color: #1F4FB8; box-shadow: 0 0 0 3px rgba(31,79,184,.15); }
.att-stat td, .att-stat th { text-align: center; }
@media (max-width: 1100px) { .att-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 스케줄 (2026-11-16, D78 · 시연 ScheduleBody) */
.sch-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.sch-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #E4EDF8; border-bottom: 1px solid var(--line); }
.sch-body { flex: 1 1 auto; min-height: 0; display: flex; }
.sch-cal { flex: 0 0 272px; border-right: 1px solid #E3E7ED; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: #FBFCFE; }
.sch-month { display: flex; align-items: center; justify-content: space-between; }
.sch-month b { font-size: 16px; }
.sch-nav { width: 32px; height: 32px; border-radius: 50%; background: #EEF1F5; color: #0E2A47; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.sch-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; justify-items: center; }
.sch-wd { font-size: 12px; font-weight: 700; color: #8A93A1; }
.sch-grid .sun { color: #D92D20; } .sch-grid .sat { color: #1F4FB8; }
.sch-day { position: relative; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #1B1F24; text-decoration: none; font-size: 13px; }
.sch-day.out { color: #C3C9D2; }
.sch-day.today { box-shadow: inset 0 0 0 2px #1F4FB8; font-weight: 700; }
.sch-day.picked { background: #1B4F80; color: #FFFFFF; font-weight: 700; }
.sch-day:hover { background: #EEF3FC; }
.sch-day.picked:hover { background: #1B4F80; }
.sch-dot { position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2px; border-radius: 50%; background: #FF6600; }
.sch-dot.inline { position: static; display: inline-block; margin: 0; vertical-align: 2px; }
.sch-today { display: flex; justify-content: center; padding-top: 8px; border-top: 1px solid #E3E7ED; }
.sch-main { flex: 1 1 700px; min-width: 0; display: flex; flex-direction: column; }
.sch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 12px; border-bottom: 1px solid #E3E7ED; }
.sch-sw { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; }
.sch-sw.soon { background: #FFD6F5; border: 1px solid #F0A6E0; } .sch-sw.past { background: #F1F1F1; }
.sch-tag { padding: 0 6px; border-radius: 2px; font-weight: 700; font-size: 12px; }
.sch-tag.alarm { background: #FDF4EC; color: #8A3409; } .sch-tag.plan { background: #EEF3FC; color: #173D8F; }
.sch-list { flex: 1 1 auto; min-height: 200px; }
.sch-memo { line-height: 1.55; white-space: pre-line; }
tr.sch-soon td { background: #FFD6F5; }
tr.sch-past td { background: #F1F1F1; color: #6B7280; }
.sch-add { display: grid; grid-template-columns: 110px minmax(0, 1fr); border-top: 2px solid var(--line); }
.sch-add > * { padding: 6px 10px; }
.sch-lab { background: #F5F7FA; color: #1F7A45; padding-top: 10px; }
.sch-add textarea { width: 100%; max-width: 640px; box-sizing: border-box; padding: 6px; border: 1px solid var(--input-line); border-radius: 2px; margin: 6px 10px; }
/* 예정 시간: 시각 고르기(datepick)가 붙으면 type 이 text 로 바뀌므로 이름으로 잡는다 */
.sch-add input[name="time"] { width: 130px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 3px; font: inherit; font-size: 14px; color: #1B1F24; vertical-align: middle; }
.sch-add textarea:focus { outline: none; border-color: #1F4FB8; box-shadow: 0 0 0 3px rgba(31,79,184,.15); }
@media (max-width: 900px) { .sch-body { flex-direction: column; } .sch-cal { flex-basis: auto; border-right: 0; border-bottom: 1px solid #E3E7ED; } }

/* 상단 알림(종) (D78) */
.nav-bell { position: relative; margin-left: auto; }
.bell-btn { position: relative; width: 38px; height: 34px; border: 0; border-radius: 3px; background: rgba(255,255,255,0.12); color: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bell-btn:hover { background: rgba(255,255,255,0.2); }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 4px; background: #C2410C; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 16px; }
.bell-menu { position: absolute; right: 0; top: 40px; z-index: 50; width: 360px; max-height: 420px; overflow: auto; background: #FFFFFF; color: #1B1F24; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid #E3E7ED; background: #F5F7FA; }
.bell-item { display: block; padding: 7px 12px; border-bottom: 1px solid #F0F2F5; color: #1B1F24; text-decoration: none; font-size: 13px; line-height: 1.45; }
.bell-item:hover { background: #EEF3FC; }
.bell-item.soon { background: #FFF0FB; } .bell-item.past { color: #8A93A1; }
.bell-empty { padding: 14px 12px; }

/* 공통 알림 · 확인 창 (시스템 alert · confirm 대신, 2026-11-16) */
.ui-dlg { width: 420px; max-width: calc(100vw - 32px); padding: 0; border: 0; border-radius: 6px; box-shadow: 0 16px 40px rgba(14,42,71,.28); color: #1B1F24; }
.ui-dlg::backdrop { background: rgba(14,22,34,.45); }
.ui-dlg-body { padding: 20px 22px 14px; display: flex; flex-direction: column; gap: 8px; }
.ui-dlg-title { font-size: 16px; }
.ui-dlg-msg { margin: 0; line-height: 1.6; white-space: pre-line; word-break: keep-all; color: #333B47; }
.ui-dlg-title + .ui-dlg-msg { color: #4A5260; font-size: 13px; }
.ui-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: #F5F7FA; border-top: 1px solid #E3E7ED; border-radius: 0 0 6px 6px; }
.ui-dlg-foot .btn { min-width: 76px; height: 34px; }
.btn.danger-fill { background: #D92D20; border-color: #D92D20; color: #FFFFFF; font-weight: 700; }
.btn.danger-fill:hover { background: #B42318; }

/* 공통 주소 검색 창 (다음 우편번호를 창 안에 끼움) */
.addr-dlg { width: 520px; max-width: calc(100vw - 32px); height: min(600px, calc(100vh - 48px)); padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(14,42,71,.28); color: #1B1F24; }
.addr-dlg[open] { display: flex; flex-direction: column; }
.addr-dlg::backdrop { background: rgba(14,22,34,.45); }
.addr-head { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px 12px 20px; border-bottom: 1px solid #E3E7ED; }
.addr-head b { font-size: 16px; }
.addr-x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: #4A5260; font-size: 22px; line-height: 1; cursor: pointer; align-self: center; }
.addr-x:hover { background: #EEF1F5; }
.addr-body { flex: 1; min-height: 0; }
.addr-row { display: flex; align-items: center; gap: 6px; }

/* 총관리자만 관리하는 팀 표시 (D80) */
.team-top { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11px; line-height: 18px; border-radius: 3px; background: #EEF2F7; color: #0E2A47; font-weight: 600; vertical-align: 1px; }
.team-title { font-size: 16px; }
.team-check { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }

/* 고객 상세: 저장 · 보고를 못 하는 까닭 (미배분 · 담당자 아님, D85) */
.work-block { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 2px; background: #FFF6DB; color: #6B4B00; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* 운영 설정 › 이달 목표 */
.goal-in { display: inline-flex; align-items: center; gap: 6px; }
.goal-in input { width: 140px; height: 32px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; text-align: right; font: inherit; }

/* ── 승인 금액·실적 (목업 Admin-Loans · Staff-Loans 그대로, 2026-11-17) ── */
/* 제목 줄 오른쪽 초록 안내 */
.head-pill { margin-left: auto; padding: 4px 10px; background: #E2F3EA; border-radius: 2px; color: #14532D; }
.head-pill + .crumb { margin-left: 12px; }
.appr-search .fixed-wrap { display: inline-flex; align-items: center; gap: 4px; }
.appr-search .appr-q { width: 130px; }
.appr-search select[name="inst"] { min-width: 110px; }
/* 목록: 머리 줄 진한 색 · 고객명은 밑줄 링크 · 취소 줄은 회색 취소선 */
.appr-grid th { background: #DDE4F0; }
.appr-grid th.r { text-align: right; }
.appr-grid td.wrap { white-space: normal; min-width: 120px; }
.appr-grid .row-link { color: var(--link); text-decoration: underline; }
.appr-grid tr.appr-off td { text-decoration: line-through; }
.appr-grid tr.appr-off .row-link { color: #8A93A1; }
.appr-grid tr.appr-off input { text-decoration: none; }
.appr-grid tr.appr-total td { background: #F5F7FA; font-weight: 700; border-bottom: 0; }
.appr-grid .pink, .appr-sum .pink { color: var(--pink); }
/* 승인취소: 빨간 테두리 · 글자 (체크한 게 없으면 흐리게) */
.btn.danger-line { color: #B42318; border-color: #B42318; }
.btn.danger-line:hover { background: #FDECEC; color: #B42318; }
.btn.danger-line:disabled { color: #D79A94; border-color: #E8BDB8; background: #FFFFFF; cursor: default; }
/* 직원 화면 위 요약 4칸 */
.appr-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.appr-sum .card { padding: 10px 12px; }
.appr-sum b { display: block; font-size: 20px; }
/* 통계: 머리 띠 · 오른쪽 기준일 + 탭 (흰 단추, 지금 탭은 진한 2px 테두리 · 굵게) */
.appr-stat-card .stat-head { justify-content: space-between; gap: 8px; padding: 8px 12px; background: #E4EDF8; }
.stat-right { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.appr-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.appr-tab { display: inline-flex; align-items: center; box-sizing: border-box; height: 28px; padding: 0 10px; border: 1px solid #C3C9D2; border-radius: 2px; background: #FFFFFF; color: var(--text); text-decoration: none; white-space: nowrap; }
.appr-tab:hover { color: var(--text); background: #F5F7FA; }
.appr-tab.on { border: 2px solid #1B2433; padding: 0 9px; font-weight: 700; }
/* 승인 취소 팝업 */
.appr-cancel-dialog { width: 460px; }
.appr-cancel-dialog .dlg-body { padding: 20px 22px 14px; gap: 8px; }
.appr-cancel-dialog .cancel-title { font-size: 16px; }
.appr-cancel-dialog .cancel-labels { display: flex; flex-direction: column; gap: 2px; }
.appr-cancel-dialog .dlg-foot { padding: 12px 22px; }

/* 승인·실적: 목록은 기본 5줄(머리 38 + 줄 36.5 × 5) 높이로 고정 — 넘치면 목록 안 스크롤, 통계 탭을 바꿔도 그대로 */
.rep-card:has(~ .appr-stat-card) { flex: 0 0 auto; min-height: 0; }
.rep-card:has(~ .appr-stat-card) .list-scroll { flex: 0 0 auto; height: 222px; }

/* ── 일일 현황 집계 (기존 「일일 현황 지점별 집계 정보」와 같은 모양 · 색, 2026-11-17) ── */
.stat-btn.steel { background: #6699CC; }
.rep-stat th, .rep-stat td { border: 1px solid #CFD8DC; text-align: center; vertical-align: middle; }
.rep-stat .h1 { background: #E6EDDC; } .rep-stat .h2 { background: #EEFF99; } .rep-stat .h3 { background: #CCFFCC; }
.rep-stat .h4 { background: #D9E5FF; } .rep-stat .h6 { background: #CCCCCC; }
.rep-stat td.g1 { background: #E6EDDC; }
.rep-stat td.w { background: #FFFFFF; }
.rep-stat td.src { font-weight: 700; }
.rep-stat tr.sum td { background: #DDF0FA; font-weight: 700; }
.rep-stat tr.grand td { background: #FFFFFF; font-weight: 700; }

/* ── 승인·실적 통계 4종: 기존 화면 색 (2026-11-17) ── */
.appr-stat th, .appr-stat td { border: 1px solid #B9D3DC; }
.appr-stat td { background: #FFFFFF; }
.appr-stat td.num { text-align: right; }
.appr-stat th.st-lab, .appr-stat td.st-lab, .appr-stat th.st-ag { background: #E6EDDC; }
.appr-stat th.st-inst, .appr-stat td.st-inst { background: #EEFF99; }
.appr-stat th.st-inst2 { background: #E6EDDC; } .appr-stat td.st-inst2 { background: #EEFF99; }
.appr-stat th.st-grp { background: #EEFF99; font-weight: 400; }
.appr-stat th.st-a0 { background: #CCCCFF; } .appr-stat th.st-a1 { background: #FFCCFF; } .appr-stat th.st-a2 { background: #99DDDD; }
.appr-stat th.st-a3 { background: #FFCC00; } .appr-stat th.st-a4 { background: #CCFFCC; } .appr-stat th.st-a5 { background: #FFDDAA; }
.appr-stat th.st-tot { background: #CCCCCC; } .appr-stat td.st-tot { font-weight: 700; }
.appr-stat .st-day { background: #E6FFF5; } .appr-stat .st-one { background: #FFFFEE; } .appr-stat .st-mon { background: #DDE4FF; }
.appr-stat .st-avg { background: #BBEEFF; } .appr-stat .st-exp { background: #FFE0DD; } .appr-stat .st-goal { background: #FFDDE6; }
.appr-stat tr.st-sum td { font-weight: 700; }
.appr-stat tr.st-k0 td { background: #BFE3F7; } .appr-stat tr.st-k1 td { background: #E8D9F7; } .appr-stat tr.st-k2 td { background: #FFD9A6; }
.appr-stat tr.st-k3 td { background: #8ED9DB; } .appr-stat tr.st-k4 td { background: #FFCCE5; } .appr-stat tr.st-k5 td { background: #FFFFC2; }
.appr-stat tr.st-total td { font-weight: 700; border-top: 2px solid #9DBFCB; }

/* ── 위 메뉴 「전체메뉴」: 드롭다운을 모두 연 것처럼 — 판은 첫 탭 아래에서 시작, 칸은 각 탭 아래 (2026-11-17) ── */
.topnav { position: relative; }
/* 메뉴 탭 간격을 넓혀 전체메뉴 칸이 탭 바로 아래 같은 폭으로 놓이게 */
.nav-dd:not(.nav-all) { min-width: 120px; }
.nav-dd:not(.nav-all) > .nav-tab { padding: 7px 16px; }
.nav-all { position: static; margin-left: 8px; }
.nav-all-btn { gap: 6px; border: 1px solid rgba(255, 255, 255, .35); }
.nav-all-menu { display: flex; align-items: stretch; padding: 6px 0; min-width: 0; border-radius: 0 0 2px 2px; }
.nav-all-col { display: flex; flex-direction: column; box-sizing: border-box; min-width: 0; }
.nav-all-col + .nav-all-col { border-left: 1px solid #E3E7ED; }
.nav-all-menu a { padding: 9px 16px; }

/* 메뉴 드롭다운은 자기 탭 폭 안에서만 열린다 — 탭 = 칸 폭, 드롭다운 = 탭 폭 (2026-11-17) */
.nav-dd:not(.nav-all) { min-width: 112px; } /* 탭 사이 여백 줄임 (140 → 112px, 2026-11-17) */
.nav-dd:not(.nav-all) > .nav-tab { flex: 1 1 auto; justify-content: center; }
.nav-dd:not(.nav-all) > .nav-dd-menu { right: 0; min-width: 0; }
.nav-dd:not(.nav-all) > .nav-dd-menu a { padding: 9px 14px; white-space: normal; }

/* ── 실시간 랭킹 (2026-11-17, 시안 Admin-Ranking): 탭 · 고르기 줄 · 위 3등 카드 · 4~10등 막대 · 순위 표 · 이름 패널 · 월별 총매출 · 근태·매출 · 랭킹 문구 ── */
.rk-tabs { margin-bottom: 0; }
.rk-tabs a[role="tab"] { display: inline-flex; align-items: center; text-decoration: none; padding: 0 18px; }
.rk-bar { gap: 8px 18px; }
.rk-bar b.muted, .rk-pick > b { color: var(--muted); }
.rk-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* 단위 · 기간: 붙은 단추 줄 (고른 것 = 진한 남색, 앱 칩과 같은 색) */
.rk-seg { display: inline-flex; border: 1px solid var(--input-line); border-radius: 2px; overflow: hidden; }
.rk-seg a { display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-left: 1px solid var(--input-line); background: #FFFFFF; color: var(--text); text-decoration: none; white-space: nowrap; }
.rk-seg a:first-child { border-left: 0; }
.rk-seg a:hover { background: #F5F7FA; color: var(--text); }
.rk-seg a[aria-checked="true"] { background: #1B2433; color: #FFFFFF; font-weight: 700; }
.rk-chips .chip { height: 30px; padding: 0 12px; border-radius: 2px; }
.rk-chips .chip:first-of-type { margin-right: 4px; }
.toolbar input.rk-range { width: 206px; height: 30px; }
.toolbar input.rk-range:not(.on) { background-color: #F5F7FA !important; color: #8A93A1; }
.toolbar input.rk-q { width: 170px; height: 30px; padding: 0 8px; }
.rk-btn { height: 30px; border-radius: 2px; font-weight: 500; }
.rk-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.rk-title h2 { margin: 0; font-size: 16px; }
/* 위: 3등 카드 + 막대 */
.rk-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
.rk-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rk-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: #FFFFFF; border: 1px solid var(--line); border-top: 4px solid #E8B923; border-radius: 2px; }
.rk-card.r2 { border-top-color: #BFC5CC; } .rk-card.r3 { border-top-color: #B87333; }
.rk-card.empty { opacity: .6; }
.rk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 26px; }
.rk-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 26px; padding: 0 8px; border-radius: 13px; background: #E8B923; color: var(--text); font-weight: 700; font-size: 14px; }
.rk-card.r2 .rk-badge { background: #BFC5CC; } .rk-card.r3 .rk-badge { background: #B87333; }
.rk-badge.none { background: #EEF0F3 !important; border-radius: 2px; }
.rk-card-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rk-card-main > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-card-main b, .rk-card-main .rk-name { font-size: 17px; font-weight: 700; text-align: left; }
.rk-amt { font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.rk-amt span { font-size: 13px; font-weight: 500; color: var(--muted); }
.rk-share { display: flex; flex-direction: column; gap: 4px; }
.rk-share-bar { height: 6px; background: #E6E9EE; border-radius: 2px; overflow: hidden; }
.rk-share-bar i { display: block; height: 100%; background: var(--pink); }
.rk-share-txt { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.rk-share-txt b { color: var(--text); }
.rk-facts { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding-top: 8px; border-top: 1px dashed #E3E7ED; font-size: 12px; }
.rk-facts dt { color: var(--muted); }
.rk-facts dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.rk-chg { display: inline-block; min-width: 26px; font-size: 12px; color: #8A93A1; }
.rk-chg.up { color: #1F7A45; font-weight: 700; } .rk-chg.down { color: #B42318; font-weight: 700; } .rk-chg.new { color: var(--link); font-size: 11px; }
.rk-bars { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; border-radius: 2px; min-width: 0; }
.rk-bars-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rk-bar-row { display: grid; grid-template-columns: 34px 170px minmax(0, 1fr) 64px 64px; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.rk-bar-row .r { text-align: right; }
.rk-bar-place { font-weight: 700; text-align: right; color: var(--muted); }
.rk-bar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-bar-track { display: block; height: 14px; background: #EEF0F3; border-radius: 2px; overflow: hidden; }
.rk-att-table .rk-bar-track { height: 12px; }
.rk-bar-track i { display: block; height: 100%; background: #1B4F80; }
.rk-bar-gap { text-align: right; color: #8A93A1; font-size: 12px; }
.rk-bars-none { color: #8A93A1; padding: 8px 0; }
.rk-zero-note { color: #8A93A1; font-size: 12px; border-top: 1px dashed #E3E7ED; padding-top: 5px; }
.rk-name { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--link); text-decoration: underline; cursor: pointer; }
.rk-name:hover { color: #173D8F; }
/* 순위 표 */
.rk-table-card { border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.rk-table-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 12px; background: #F5F7FA; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.rk-table-head b { color: var(--text); font-size: 13px; }
.rk-sw { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; }
.rk-sw.max { background: var(--pink-bg); border: 1px solid #F3B5D9; } .rk-sw.quit { background: #FFF3B0; border: 1px solid #E8D27A; }
.rk-scroll { overflow-x: auto; }
.rk-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-table[data-rk-sort], .rk-month-table { min-width: 1280px; }
.rk-att-table { min-width: 1100px; }
.rk-table th { background: #DDE4F0; padding: 7px 8px; font-weight: 700; }
.rk-table th:has(> button) { padding: 0; }
.rk-table th > button { width: 100%; padding: 7px 8px; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: center; }
.rk-table th > button.r, .rk-table th.r { text-align: right; }
.rk-table th.l, .rk-table td.l { text-align: left; }
.rk-table th.rk-metric { background: #C9D6EC; box-shadow: inset 0 -3px 0 #1B4F80; }
.rk-th-sub { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.rk-arrow { color: var(--link); }
.rk-table td { padding: 6px 8px; border-bottom: 1px solid #E3E7ED; }
.rk-table td.c { text-align: center; } .rk-table td.r { text-align: right; }
.rk-table tbody tr:hover td { box-shadow: inset 0 0 0 9999px rgba(31, 79, 184, .04); }
.rk-table td.rk-place { font-weight: 700; }
.rk-table td.rk-metric { font-weight: 700; }
.rk-table td.rk-max { background: var(--pink-bg); color: var(--pink); font-weight: 700; }
.rk-table td.rk-zero { color: #B8C0CC; }
.rk-table td.rk-quit { background: #FFF3B0; }
.rk-table td.rk-up { color: #1F7A45; } .rk-table td.rk-down { color: #B42318; }
.rk-table td.rk-warn { color: #B42318; font-weight: 700; }
.rk-table td.rk-curm { color: #8A3409; }
.rk-table tfoot td { padding: 7px 8px; border-top: 2px solid var(--line); border-bottom: 0; background: #F5F7FA; font-weight: 700; }
.rk-table .rk-pink { color: var(--pink); }
.rk-quit-row td { background: #FFFDF0; }
.rk-quit-tag { padding: 0 5px; background: #FFF3B0; border-radius: 2px; font-size: 11px; font-weight: 400; }
.rk-foot { padding: 6px 12px; border-top: 1px solid var(--line); background: #F5F7FA; color: var(--muted); font-size: 12px; }
.rk-att-table .rk-att-barh { width: 26%; }
/* 이름 패널 (오른쪽) */
.rk-panel-back { position: fixed; inset: 0; background: rgba(14, 22, 34, .35); z-index: 60; }
.rk-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%; background: #FFFFFF; box-shadow: -12px 0 32px rgba(10, 20, 40, .22); z-index: 61; display: flex; flex-direction: column; }
.rk-panel[hidden], .rk-panel-back[hidden] { display: none; }
.rk-panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--navy); color: #FFFFFF; }
.rk-panel-head .rk-badge { height: 28px; }
.rk-panel-head .rk-badge.far { background: var(--navy-line); color: #FFFFFF; }
.rk-panel-head .rk-badge.m2 { background: #BFC5CC; } .rk-panel-head .rk-badge.m3 { background: #B87333; }
.rk-panel-who { display: flex; flex-direction: column; min-width: 0; }
.rk-panel-who b { font-size: 16px; }
.rk-panel-pos, .rk-panel-sub { font-weight: 400; font-size: 13px; color: #B9CBE0; }
.rk-panel-sub { font-size: 12px; }
.rk-panel-x { margin-left: auto; width: 32px; height: 32px; border: 0; background: rgba(255, 255, 255, .12); color: #FFFFFF; border-radius: 2px; font-size: 18px; cursor: pointer; }
.rk-panel-body { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.rk-panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; background: #F7F8FA; border-top: 1px solid #EEF0F3; }
.rk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rk-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: #F5F7FA; border-radius: 2px; min-width: 0; }
.rk-tile.pink { background: var(--pink-bg); }
.rk-tile span { font-size: 12px; color: var(--muted); } .rk-tile b { font-size: 17px; } .rk-tile small { font-size: 11px; color: var(--muted); }
.rk-sec { display: flex; flex-direction: column; gap: 6px; }
.rk-sec-head { display: flex; justify-content: space-between; align-items: baseline; }
.rk-trend { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end; height: 150px; border-bottom: 1px solid var(--line); }
.rk-trend > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.rk-trend .v { font-size: 10px; text-align: center; color: var(--muted); white-space: nowrap; }
.rk-trend .g { display: flex; flex-direction: column; justify-content: flex-end; border-radius: 2px 2px 0 0; }
.rk-trend .g.cur { background: #D6F0F1; outline: 1px dashed #7FD3D6; outline-offset: -1px; }
.rk-trend .g i { display: block; border-radius: 2px 2px 0 0; background: #1B4F80; }
.rk-trend .g.cur i { background: var(--pink); }
.rk-trend-lab { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; text-align: center; font-size: 11px; color: var(--muted); }
.rk-trend-lab .cur { font-weight: 700; color: var(--pink); }
.rk-split-bar { display: flex; height: 16px; border-radius: 2px; overflow: hidden; background: #EEF0F3; }
.rk-split-bar i { display: block; height: 100%; }
.rk-split { display: grid; grid-template-columns: 14px 1fr auto 48px; gap: 4px 8px; align-items: center; }
.rk-split i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.rk-split b, .rk-split .p { text-align: right; } .rk-split .p { color: var(--muted); }
.rk-compare { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.rk-compare span { color: var(--muted); }
.rk-compare .up { color: #1F7A45; } .rk-compare .down { color: #B42318; }
/* 월별 총매출 */
.rk-month { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 2px; }
.rk-month-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.rk-month-head h2 { margin: 0; font-size: 15px; }
.rk-big { font-size: 16px; }
.rk-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.rk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.rk-legend i.ghost { background: #D6F0F1; border: 1px dashed #7FD3D6; }
.rk-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: end; height: 230px; padding: 0 4px; border-bottom: 1px solid var(--line); }
.rk-col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; min-width: 0; }
.rk-col-val { text-align: center; font-size: 11px; white-space: nowrap; color: var(--muted); }
.rk-col-val.cur { color: var(--pink); font-weight: 700; white-space: normal; line-height: 1.25; }
.rk-col-bar { display: flex; flex-direction: column-reverse; border-radius: 2px 2px 0 0; overflow: hidden; }
.rk-col-bar.ghost { background: #D6F0F1; outline: 1px dashed #7FD3D6; outline-offset: -1px; }
.rk-col-bar i { display: block; flex: none; }
.rk-chart-labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; padding: 0 4px; text-align: center; color: var(--muted); font-size: 12px; }
.rk-chart-labels .cur { font-weight: 700; color: var(--pink); }
/* 랭킹 문구 */
.rk-msg-lead { margin: 0; }
.rk-msg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); gap: 10px; align-items: start; }
.rk-msg-list, .rk-msg-form { border-radius: 2px; overflow: hidden; }
.rk-msg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.rk-msg-bar input[type=text] { height: 30px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; }
.rk-msg-table td { white-space: normal; }
.rk-msg-table td.nowrap-cell { white-space: nowrap; }
.rk-msg-head { display: inline-block; white-space: nowrap; padding: 2px 8px; background: var(--navy-2); border-radius: 2px; font-weight: 700; }
.rk-msg-head.big { font-size: 14px; }
.rk-msg-form-head { padding: 8px 12px; background: #F5F7FA; border-bottom: 1px solid var(--line); }
.rk-form-grid { padding: 12px; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.rk-form-grid input[type=text], .rk-form-grid select, .rk-form-grid textarea { height: 30px; padding: 0 8px; border: 1px solid var(--input-line); border-radius: 2px; background: #FFFFFF; }
.rk-form-grid select { max-width: 220px; }
.rk-form-grid input.dp-in, .rk-form-grid input[type=date] { width: 150px; min-width: 150px; justify-self: start; }
.rk-form-grid textarea { height: auto; padding: 6px 8px; resize: vertical; }
.rk-form-grid .rk-top-lab { align-self: start; padding-top: 6px; }
.rk-form-grid > span > .fixed { display: inline-block; }
.rk-head-in { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rk-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.rk-swatch { position: relative; display: inline-flex; cursor: pointer; }
.rk-swatch input[type=radio] { position: absolute; inset: 0; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.rk-swatch i { display: block; width: 22px; height: 22px; border-radius: 2px; border: 1px solid var(--input-line); box-sizing: border-box; }
.rk-swatch input:checked + i { border: 2px solid #1B2433; box-shadow: inset 0 0 0 2px #FFFFFF; }
.rk-swatch input:focus-visible + i { outline: 2px solid rgba(31, 79, 184, .45); outline-offset: 1px; }
.rk-big-chk { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.rk-preview-wrap { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.rk-preview { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 2px; padding: 8px 12px; color: #FFFFFF; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-weight: 700; min-height: 40px; }
.rk-preview [data-pv="head"].big { font-size: 16px; }
.rk-msg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; background: #F7F8FA; border-top: 1px solid #EEF0F3; }
/* 상단 띠의 오늘 문구 서두 (랭킹 문구 「큰 글씨」) */
.tick-head.big { font-size: 16px; }
@media (max-width: 1200px) { .rk-top, .rk-msg { grid-template-columns: minmax(0, 1fr); } }

/* 일일 현황 집계: 칸 자리 고정 (지사명(팀명) · 사원명 · 숫자 3칸, 2026-11-17) */
.rep-stat { table-layout: fixed; width: 100%; }
.rep-stat col.rs-c1 { width: 16%; }
.rep-stat col.rs-c2 { width: 16%; }
.rep-stat td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 일일 현황: 목록은 기본 6줄(두 줄 머리 53.5 + 줄 36.5 × 6) 높이로 고정 — 아래 집계가 늘어도 목록은 그대로, 넘치면 화면이 스크롤 (2026-11-17) */
.rep-card:has(~ .rep-stat-card) { flex: 0 0 auto; min-height: 0; }
.rep-card:has(~ .rep-stat-card) .list-scroll { flex: 0 0 auto; height: 273px; }

/* 스케줄: 「내 스케줄 보기」 체크 (2026-11-17) */
.sch-mine { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-weight: 600; }

/* 스케줄: 고객명은 검은 밑줄 (누르면 고객 상담 화면, 2026-11-17) */
.sch-memo a.row-link, .sch-memo a.row-link:hover { color: #1B1F24; text-decoration: underline; text-decoration-color: #1B1F24; text-underline-offset: 3px; }

/* 모든 목록 표에 세로줄 (2026-11-17) — 머리는 조금 진하게, 칸 사이에만 (바깥 테두리 없음) */
.grid th + th, .rk-table th + th { border-left: 1px solid #DDE2E8; }
.grid td + td, .rk-table td + td { border-left: 1px solid #E8EBF0; }

/* 실시간 랭킹 탭: 회색 바탕 위라 선택 안 된 탭도 테두리 · 진한 바탕으로 탭처럼 (2026-11-17) */
.rk-tabs [role="tab"]:not([aria-selected=true]) { background: #E4E8EE; border-color: #C9D0DA; border-bottom-color: #C9D0DA; color: #4A5260; }
.rk-tabs [role="tab"]:not([aria-selected=true]):hover { background: #D9DFE7; color: #1B2433; }

/* 랭킹 이름 패널 머리: 뒤 남색 상단과 겹치지 않게 밝은 바탕 + 파란 윗줄 (2026-11-17) */
.rk-panel { border-left: 1px solid #C9D0DA; }
.rk-panel-head { background: #EEF3FC; color: #0E2A47; border-top: 4px solid var(--link); border-bottom: 1px solid #C9D6EC; }
.rk-panel-pos, .rk-panel-sub { color: #4A5260; }
.rk-panel-head .rk-badge.far { background: #0E2A47; color: #FFFFFF; }
.rk-panel-x { background: #FFFFFF; color: #0E2A47; border: 1px solid #C9D0DA; }
.rk-panel-x:hover { background: #E4E8EE; }

/* 랭킹 이름 패널 넓게 (520 → 740px, 2026-11-17 사용자 요청) */
.rk-panel { width: 740px; }

/* 공통코드 › 바로가기 (상단 업무 바로가기 줄 관리, 2026-11-17) — 구역 머리 줄에 구역 이름 · 상단에 보이는 모양 · + 추가, 긴 주소는 줄여 보임 (마우스를 올리면 전체) */
.sc-band-row { display: flex; align-items: center; gap: 10px; }
.sc-band-row .push-right { margin-left: auto; }
.sc-sample { padding: 1px 8px; background: #FFFFFF; border: 1px solid #DDE2E8; border-radius: 3px; letter-spacing: -0.3px; line-height: 1.6; }
.sc-table td.sc-href { max-width: 0; width: 60%; }
.sc-table .sc-url { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--link); }

/* 상단 랭킹 띠: 제목은 늘 앞에, 승인이 없으면 흐린 안내 (2026-11-17) */
.ticker .tick-title { flex: none; margin-right: 14px; font-weight: 700; }
.ticker .tick-empty { color: #9FB3C8; font-weight: 400; }

/* 상단 랭킹 띠: 오른쪽에서 왼쪽으로 흐름 (기존 화면처럼), 마우스를 올리면 멈춤 (2026-11-17) */
.ticker { overflow: hidden; flex-wrap: nowrap; }
.ticker .tick-track { display: inline-flex; align-items: center; gap: 4px 22px; padding-left: 100%; white-space: nowrap; animation: tick-flow 28s linear infinite; }
.ticker:hover .tick-track { animation-play-state: paused; }
@keyframes tick-flow { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker .tick-track { animation: none; padding-left: 0; } }
/* 게이지 눈금 0 · 500 · 1000 · 1500 · 2000 (백만원) */
.gauge-scale { position: relative; display: block; height: 16px; }
.gauge-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.gauge-scale span:first-child { transform: none; }
.gauge-scale span:last-child { transform: translateX(-100%); }
.gauge-bar .g-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .7); z-index: 2; }

/* 상단 랭킹: 금액 칸 폭 고정 — 줄마다 금액 길이가 달라 이름 칸이 밀리지 않게 (왕관은 뺐다, 2026-11-17) */
.rank-list li { grid-template-columns: 44px 1fr 1fr 64px; column-gap: 6px; }
.rank-list .rank-br { padding-left: 12px; } /* 순위 칸과 지사 사이 띄움 (2026-11-17) */

/* 게이지 아래 글: 승인금액 왼쪽 · 예상금액 가운데 · 목표금액 오른쪽 (기존 화면처럼, 2026-11-17) */
.gauge-legend { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.gauge-legend > span:nth-child(1) { justify-self: start; }
.gauge-legend > span:nth-child(2) { justify-self: center; }
.gauge-legend > span:nth-child(3) { justify-self: end; }

/* 게이지 아래 보조 글 (일평균 × 영업일 · 영업일) 한 단계 작게 (2026-11-17) */
.gauge-legend .muted { font-size: 12px; }

/* 운영 설정 — 시안(Admin-Settings) 그대로 (2026-11-17): 제목 줄 「저장」 · 2×2 카드(같은 줄 같은 높이) · 엑셀 권한 */
.set-scope { display: flex; align-items: center; gap: 4px; margin: 0; }
.set-scope label { display: flex; align-items: center; gap: 4px; }
.set-scope select { height: 30px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; font: inherit; }
.set-save { height: 36px; padding: 0 18px; }
.page-head .crumb.set-crumb { margin-left: 12px; }
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
@media (max-width: 1100px) { .set-grid { grid-template-columns: minmax(0, 1fr); } }
.set-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; min-width: 0; }
.set-card.set-col { display: flex; flex-direction: column; }
.set-card h2 { margin: 0; padding: 6px 12px; font-size: 14px; background: #E4EDF8; }
.set-sub { font-weight: 400; color: var(--muted); }
.set-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 12px; background: #E4EDF8; }
.set-head h2 { background: none; }
.set-nav { white-space: nowrap; }
.set-in { height: 26px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; font: inherit; }
.set-in.num { width: 130px; text-align: right; }
.set-in:disabled { background: #F0F2F5; color: #8A93A1; }
/* ① 업무 시간: 왼쪽 이름 170px */
.set-rows { padding: 10px 12px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 5px 10px; align-items: center; }
.set-times { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.set-pair { display: inline-flex; align-items: center; gap: 6px; }
/* 시각 칸은 앱 시각 고르기(datepick, type=text 로 바뀜) — 시계 아이콘 자리만큼 */
.set-pair input:not([type=checkbox]) { height: 26px; width: 96px; padding: 0 6px; border: 1px solid var(--input-line); border-radius: 2px; font: inherit; }
.set-pair input.is-base:not([type=checkbox]), .set-pair input:disabled:not([type=checkbox]) { background-color: #F0F2F5 !important; color: #8A93A1; }
.set-base { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
/* ② 휴무일 달력: 주말 회색, 휴무일 빨강, 오늘 파란 테두리 */
.set-cal-box { margin: 0; padding: 6px 12px 10px; }
.set-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.set-cal > span.sun { color: #B42318; font-weight: 700; }
.set-cal > span.sat { color: var(--link); font-weight: 700; }
.set-cal .day { height: 26px; padding: 0; border: 1px solid #E3E7ED; border-radius: 2px; background: #FFFFFF; color: var(--text); font: inherit; cursor: pointer; }
.set-cal .day:hover:not(:disabled) { border-color: var(--link); }
.set-cal .day:disabled { cursor: default; }
.set-cal .day.wkend { background: #F0F2F5; border-color: #F0F2F5; }
.set-cal .day.sun { color: #B42318; }
.set-cal .day.sat { color: var(--link); }
.set-cal .day.off { background: #FDECEC; border-color: #F4B4AE; color: #B42318; font-weight: 700; }
.set-cal .day.off.base { background: #F8E3E1; border-style: dashed; }
.set-cal .day.today { outline: 2px solid var(--link); outline-offset: -1px; font-weight: 700; }
.set-cal-foot { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.set-cal-foot .set-in { width: 150px; }
.set-hols { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.set-hol { padding: 1px 8px; border-radius: 2px; background: #FDECEC; color: #8F1D14; font-size: 12px; }
.set-hol.base { background: #F5F7FA; color: var(--muted); }
/* ③ ④ 표: 6줄 높이로 고정, 안에서만 스크롤 (머리 고정) */
.set-add { flex-shrink: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.set-add .set-in { width: 140px; }
.set-add .small-btn { height: 26px; }
.set-scroll { overflow: auto; }
.set-scroll.ip { flex: 1 0 215px; height: 215px; }
.set-scroll.goal { height: 239px; }
.set-table th { padding: 4px 6px; z-index: 1; }
.set-table td { padding: 3px 6px; border-bottom: 0; border-top: 1px solid #E3E7ED; }
.set-table th.r { text-align: right; }
.set-table .empty-row { padding: 24px !important; }
.set-mini { height: 24px; padding: 0 8px; font-size: 12px; font-weight: 400; }
.set-warn { padding: 8px 12px; color: #B4470C; }
/* ⑤ 엑셀 권한 */
.set-excel { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.set-excel .check-row { padding: 9px 12px; border-color: #E3E7ED; border-radius: 2px; }
.set-note { color: var(--muted); font-size: 12px; }
.set-note.ok { color: #14532D; }

/* 공통코드(· 운영 설정) 종류 고르기: 단추 말고 탭 모양 (직원 상세 탭과 같은 폴더 탭, 2026-11-17) */
.toolbar:has(> .code-tabs) { padding-bottom: 0; align-items: flex-end; }
.code-tabs { gap: 2px; align-self: flex-end; border-bottom: 0; }
.code-tab { height: 36px; padding: 0 18px; margin-bottom: -1px; border: 1px solid #C9D0DA; border-bottom-color: transparent; border-radius: 2px 2px 0 0; background: #EEF1F5; color: #5B6472; font-weight: 600; }
.code-tab:hover { background: #E4E8EE; color: #333B47; }
.code-tab.on { background: #FFFFFF; border-color: #C9D0DA; border-bottom-color: #FFFFFF; color: #0E2A47; font-weight: 700; box-shadow: inset 0 3px 0 var(--link); }

/* 운영 설정 — 탭 하나에 설정 하나 (2026-11-17): 지사 고르기 · 저장은 탭 줄 안에서 탭 아래쪽에 맞춤, 카드는 시안 한 칸 폭 */
.toolbar:has(> .code-tabs) > .set-scope, .toolbar:has(> .code-tabs) > .btn.primary { align-self: center; margin-bottom: 6px; }
.set-card.set-one { max-width: 900px; width: 100%; display: flex; flex-direction: column; }
.set-one .set-scroll.ip, .set-one .set-scroll.goal { flex: none; height: auto; max-height: 420px; }
.set-one .set-cal .day { height: 34px; }
.set-import { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 12px; border-top: 1px solid var(--line); }
.set-import-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.set-import-form .small-btn { height: 26px; }
.set-note.warn { color: #B4470C; }

/* 탭이 꺼진 것처럼 보이지 않게: 안 고른 탭도 흰 바탕 · 진한 글씨, 고른 탭은 파란 글씨 · 굵은 윗줄 (2026-11-17) */
.code-tab { background: #FFFFFF; color: #1B2433; font-weight: 600; }
.code-tab:hover { background: #EEF3FC; color: #173D8F; }
.code-tab.on { background: #FFFFFF; color: #1F4FB8; box-shadow: inset 0 3px 0 #1F4FB8; }

/* 메뉴 칸이 좁아져서(112px) 항목 글자가 두 줄로 꺾이지 않게: 한 줄 · 옆 여백 줄임 (2026-11-17) */
.nav-dd:not(.nav-all) > .nav-dd-menu a, .nav-all-menu a { padding: 9px 10px; white-space: nowrap; }

/* 공통코드 탭 줄: 흰 상자 없이 탭 + 아래 줄만 (폴더 탭처럼, 2026-11-17) */
.toolbar:has(> .code-tabs) { background: transparent; border: 0; border-bottom: 1px solid #C9D0DA; border-radius: 0; padding: 0; }

/* ── 모든 화면 탭 같은 모양 (공통코드 · 운영 설정 · 직원 상세 · 실시간 랭킹 등, 2026-11-17) ──
   탭 줄 아래 가로줄 · 안 고른 탭: 흰 바탕 · 진한 글씨 · 아래 줄 있음 / 고른 탭: 파란 글씨 · 위 파란 줄 · 아래 줄 없음(내용과 이어짐) */
.tabs, .toolbar:has(> .code-tabs) { border-bottom: 1px solid #C9D0DA; }
.tabs [role="tab"], .code-tab, .rk-tabs [role="tab"]:not([aria-selected=true]) { background: #FFFFFF; color: #1B2433; font-weight: 600; border: 1px solid #C9D0DA; border-bottom-color: #C9D0DA; margin-bottom: -1px; border-radius: 2px 2px 0 0; box-shadow: none; }
.tabs [role="tab"]:hover, .code-tab:hover, .rk-tabs [role="tab"]:not([aria-selected=true]):hover { background: #EEF3FC; color: #173D8F; }
.tabs [role="tab"][aria-selected=true], .code-tab.on { background: #FFFFFF; color: #1F4FB8; font-weight: 700; border-color: #C9D0DA; border-bottom-color: #FFFFFF; box-shadow: inset 0 3px 0 #1F4FB8; }

/* 운영 설정: 탭 안 카드를 화면 폭 전체로 (2026-11-17 사용자 요청) */
.set-card.set-one { max-width: none; }
/* 운영 설정 탭 카드 전체 폭에서: 달력 칸을 조금 높게, 업무 시간 이름 칸 · 표 열 폭 고정 (2026-11-17) */
.set-one .set-cal .day { height: 44px; font-size: 14px; }
.set-one .set-cal > span { padding: 2px 0; }
.set-one .set-table th:nth-child(n+3), .set-one .set-table td:nth-child(n+3) { width: 140px; }
/* 운영 설정 입력 칸: 앱 입력 모양 (흰 바탕 · 1px 테두리 · 2px 모서리 · 32px). 시각은 앱 시각 고르기(datepick 시계 아이콘) — 「기본값」 체크 없앰 (2026-11-17) */
.set-rows { row-gap: 8px; }
.set-time { box-sizing: border-box; height: 32px; width: 120px; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 2px; background-color: #FFFFFF; color: var(--text); font: inherit; }
.set-time:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(31, 79, 184, .15); }
.set-in { box-sizing: border-box; height: 32px; padding: 0 10px; background: #FFFFFF; color: var(--text); }
.set-in:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(31, 79, 184, .15); }
.set-add .small-btn, .set-import-form .small-btn { height: 32px; }
.set-table td { padding: 4px 6px; }

/* 운영 설정: 탭 안 흰 카드를 화면 아래까지 (아래 여유 16px) — 모든 탭 (2026-11-17) */
body:has(.set-card.set-one) { height: 100vh; }
.page:has(.set-card.set-one) { overflow-y: auto; padding-bottom: 16px; }
.set-card.set-one { flex: 1 0 auto; }

/* 운영 설정 › 휴무일 달력 (달력 앱 모양, 2026-11-17): 머리 = 자동 상태 | ‹ 2026년 11월 › 오늘 | 영업일 · + 휴무일 등록. 칸 안에 휴무일 이름 */
.hol-card { display: flex; flex-direction: column; }
.hol-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 14px; background: #E4EDF8; }
.hol-sync { font-size: 12px; color: var(--muted); }
.hol-sync.off { color: #B4470C; }
.hol-nav { display: flex; align-items: center; gap: 10px; }
.hol-title { font-size: 17px; min-width: 120px; text-align: center; }
.hol-arrow { width: 30px; height: 30px; border-radius: 50%; background: #FFFFFF; color: #0E2A47; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.hol-arrow:hover { background: #DCE6FA; color: #0E2A47; }
.hol-today { height: 30px; }
.hol-today.is-on { color: var(--muted); pointer-events: none; }
.hol-right { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.hol-bd { color: var(--muted); white-space: nowrap; }
.hol-bd b { color: var(--text); }
.hol-right .small-btn { height: 30px; }
.hol-cal { flex: 1 1 auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(96px, 1fr); grid-template-rows: auto; border-top: 1px solid var(--line); }
.hol-wd { padding: 6px 10px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: #F7F8FA; }
.hol-wd.sun { color: #D92D20; }
.hol-wd.sat { color: var(--link); }
.hol-day { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 6px 8px; border: 0; border-right: 1px solid #E3E7ED; border-bottom: 1px solid #E3E7ED; background: #FFFFFF; color: var(--text); font: inherit; text-align: left; }
.hol-cal > :nth-child(7n) { border-right: 0; }
button.hol-day { cursor: pointer; }
button.hol-day:hover { background: #F5F8FD; }
.hol-day.wkend { background: #FAFBFC; }
.hol-day.sun .hol-num { color: #D92D20; }
.hol-day.sat .hol-num { color: var(--link); }
.hol-day.out .hol-num, .hol-day.out .hol-badge { opacity: .4; }
.hol-num { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; font-weight: 700; }
.hol-day.today .hol-num { background: var(--link); color: #FFFFFF !important; }
.hol-day.off { background: #FFF1F0; }
button.hol-day.off:hover { background: #FFE4E1; }
.hol-badge { max-width: 100%; padding: 2px 8px; border-radius: 2px; background: #FDE2DF; color: #B42318; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hol-dialog [hidden] { display: none !important; }
.hol-dialog .date-range { display: flex; align-items: center; gap: 6px; }
/* IP 표: 주소 · 설명도 칸에서 바로 고침 */
.set-table .set-ip { width: 160px; }
.set-table .set-note-in { width: 100%; max-width: 360px; }

/* 휴무일 달력: 흔들림 없게 칸 폭 · 줄 높이 고정, ‹ › 는 「오늘」과 같은 네모 단추 (2026-11-17) */
.hol-nav { gap: 6px; }
.hol-title { width: 150px; min-width: 150px; font-variant-numeric: tabular-nums; }
.hol-arrow { width: 30px; height: 30px; padding: 0; border-radius: 2px; background: #FFFFFF; border: 1px solid #C3C9D2; color: #0E2A47; }
.hol-arrow:hover { background: #EEF3FC; border-color: #9DB3D8; color: #173D8F; }
.hol-today { width: 52px; justify-content: center; }
.hol-sync, .hol-bd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hol-cal { grid-template-rows: auto repeat(6, minmax(88px, 1fr)); grid-auto-rows: unset; }

/* 휴무일: 「+ 휴무일 등록」 · 「오늘」 단추 크게 (2026-11-17) */
.hol-right .small-btn, .hol-right [data-hol-add] { height: 34px; padding: 0 16px; font-size: 14px; }
.hol-today { height: 34px; width: 64px; font-size: 14px; }
.hol-arrow { width: 34px; height: 34px; }

/* 휴무일 탭: 화면에 딱 맞게 (스크롤 없이) — 카드가 남은 높이만 쓰고, 날짜 칸은 그 안에서 나눠 가짐 (2026-11-17) */
.set-card.set-one.hol-card { flex: 1 1 0; min-height: 0; }
.hol-cal { grid-template-rows: auto repeat(6, minmax(52px, 1fr)); min-height: 0; }
.hol-day { padding: 4px 8px; }

/* 휴무일 등록 · 수정 창 (2026-11-17) */
.hol-dialog { width: 440px; border-radius: 4px; overflow: hidden; }
.hol-dlg-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #FFFFFF; border-bottom: 1px solid #E3E7ED; font-size: 16px; }
.hol-dlg-head .dlg-x { margin-left: auto; }
.hol-dlg-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #FDE2DF; color: #B42318; }
.hol-dialog .dlg-body { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.hol-f { display: flex; flex-direction: column; gap: 6px; }
.hol-lab { font-size: 12px; font-weight: 700; color: #4A5260; }
.hol-dates { display: flex; align-items: center; gap: 8px; }
.hol-dates input { flex: 1 1 0; min-width: 0; }
.hol-tilde { color: #8A93A1; }
.hol-dialog input.hol-name, .hol-dialog .hol-dates input { box-sizing: border-box; width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--input-line); border-radius: 2px; font: inherit; font-size: 14px; background-color: #FFFFFF; }
.hol-dialog input.hol-name:focus, .hol-dialog .hol-dates input:focus { outline: none; border-color: #1F4FB8; box-shadow: 0 0 0 3px rgba(31, 79, 184, .15); }
.hol-date-chip { align-self: flex-start; padding: 8px 14px; border-radius: 2px; background: #FFF1F0; border: 1px solid #F5C6C1; color: #B42318; font-size: 15px; }
.hol-dlg-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: #F7F8FA; border-top: 1px solid #E3E7ED; }
.hol-dlg-foot .btn { height: 34px; padding: 0 16px; }
.hol-del { border-color: #F0B8B2; color: #B42318; background: #FFFFFF; }
.hol-del:hover { background: #FFF1F0; color: #B42318; }

/* 운영 설정 › 이달 목표 탭 (2026-11-17) */
.goal-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px 14px 4px; }
.goal-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid #E3E7ED; border-radius: 2px; background: #FBFCFE; }
.goal-tile span { font-size: 12px; color: var(--muted); }
.goal-tile b { font-size: 20px; font-variant-numeric: tabular-nums; }
.goal-tile.main { background: #EEF3FC; border-color: #C9D6EC; }
.goal-tile.main b { color: #1F4FB8; }
.goal-tile b.ok, .goal-rate b.ok { color: #1F7A45; }
.goal-tile b.low { color: #B4470C; }
.goal-card .set-warn { margin: 8px 14px 0; }
.goal-card .set-scroll.goal { margin: 10px 14px 14px; border: 1px solid #E3E7ED; border-radius: 2px; }
.goal-grid td { height: 44px; font-variant-numeric: tabular-nums; }
.goal-grid .goal-name { font-weight: 700; }
.goal-rate-h { width: 220px; }
.goal-rate { display: flex; align-items: center; gap: 10px; height: 44px; }
.goal-bar { flex: 1 1 auto; height: 8px; border-radius: 4px; background: #E6E9EE; overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: #1F4FB8; border-radius: 4px; }
.goal-bar i.ok { background: #1F7A45; }
.goal-rate b { min-width: 44px; text-align: right; }
.goal-input { display: inline-flex; align-items: center; gap: 6px; }
.goal-input input.set-in.num { width: 140px; height: 34px; padding: 0 10px; font-size: 14px; font-weight: 700; text-align: right; border: 1px solid var(--input-line); border-radius: 2px; background: #FFFFFF; }
.goal-input input.set-in.num:focus { outline: none; border-color: #1F4FB8; box-shadow: 0 0 0 3px rgba(31, 79, 184, .15); }
.goal-input em { font-style: normal; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .goal-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 로그인 비밀번호 눈 단추 (2026-11-18): 칸 안 오른쪽, 누르면 글자 보임 · 가려진 상태에는 빗금 */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; box-sizing: border-box; padding-right: 44px; }
.login-card .pw-eye { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; background: transparent; color: #6B7280; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.login-card .pw-eye:hover { color: #111827; }
.pw-eye[aria-pressed="true"] .pw-slash { display: none; }
