/* 경영지원팀 사무소 현황
   차분한 회색 바탕 + 흰 카드 + 큰 글씨. 한 줄에 하나만 보이게 하고, 색은 파랑 하나만 아껴 쓴다.
   261116 정돈: 파랑은 고른 메뉴·주요 버튼·'진행'·'다음'에만, 빨강은 '확인 필요'·'기한 지남'·업무 왼쪽 줄에만.
   나머지(주황·초록·보라·청록)는 모두 회색 단계. 단계 구분은 색 대신 크기·굵기·들여쓰기로 한다.
   되돌리기: 같은 폴더 style_before_261116_원본.css */
/* 프리텐다드(Pretendard, SIL OFL) 1.3.9, 폴더 안에 넣어 두어 인터넷 없이도 보인다 */
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/Pretendard-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --ink: #191f28;
  --body: #333d4b;
  --sub: #4e5968;
  --mute: #6b7684;          /* 회색 작은 글씨: 흰 바탕에서도 읽히게 한 단계 진하게 */
  --faint: #b0b8c1;         /* 꺾쇠·자리표시 글자 같은 장식용 */
  --line: #e5e8eb;
  --line-2: #d1d6db;        /* 손을 올렸을 때·대기 칸 테두리 */
  --fill: #f2f4f6;
  --fill-2: #f9fafb;
  --mark: #4e5968;          /* 법인 글자 칸 바탕(진한 회색) */
  --blue: #3a66d4;          /* 하나뿐인 포인트 색: 고른 메뉴, 주요 버튼, '진행', '다음' */
  --blue-soft: #edf2fd;
  --red: #e0444c;           /* 경고에만: '확인 필요', '기한 지남', 업무 왼쪽 줄 */
  --red-soft: #fdeff0;
  /* 예전 색 이름은 남겨 두되 모두 회색 단계로 바꿨다(혹시 남은 곳이 있어도 회색으로 보이게) */
  --amber: #191f28;
  --amber-soft: #e5e8eb;
  --green: #4e5968;
  --green-soft: #f2f4f6;
  --violet: #4e5968;
  --violet-soft: #f2f4f6;
  --meta: #6b7684;          /* 회색 작은 글씨(너무 흐리지 않게) */
  --font: "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", sans-serif;
  /* 한글 글꼴은 역슬래시(\)를 ₩로 그려서, 파일 경로는 역슬래시가 제대로 나오는 글꼴을 먼저 쓴다 */
  --path-font: "Segoe UI", Arial, "Malgun Gothic", sans-serif;
  --top: 64px;
  --r-card: 20px;
  --r: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  font-variant-numeric: tabular-nums; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 80; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
code, .fpath { font-family: var(--path-font); word-break: break-all; }
.muted { color: var(--mute); }
.small { font-size: 13.5px; }
.red { color: var(--red); }

/* ---------- 위쪽 줄 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10; height: var(--top);
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; width: 236px; flex: none; }
.brand-team { font-size: 13.5px; color: var(--mute); font-weight: 700; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.board-toggle { display: none; }
.search { position: relative; flex: 1; max-width: 520px; }
.search-ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border: 0; border-radius: var(--r); background: var(--fill); font-size: 15px; }
.search input::placeholder { color: var(--faint); }
.who { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: 14px; color: var(--sub); white-space: nowrap; }
.who select { height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--fill); font-size: 14px; color: var(--ink); }
#whoName { color: var(--ink); font-weight: 700; }

/* ---------- 틀 ---------- */
.app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: calc(100vh - var(--top)); }

/* ---------- 왼쪽: 사무소 목록 ---------- */
.board {
  position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 12px; background: var(--card); border-right: 1px solid var(--line);
}
.board-find input { width: 100%; height: 40px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--fill); font-size: 14px; }
.board-find input::placeholder { color: var(--faint); }
.directory { list-style: none; margin: 8px 0 0; padding: 0; }
.board-find { display: block; }
.grp > details > summary { list-style: none; }
.grp > details > summary::-webkit-details-marker { display: none; }
.grp-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--sub); }
.grp-head:hover { background: var(--fill-2); }
.grp-head::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.grp > details[open] > .grp-head::after { transform: rotate(-135deg) translate(-2px, 0); }
.grp-name { font-weight: 800; color: var(--body); }
.grp-meta { margin-left: auto; display: flex; gap: 6px; font-size: 13.5px; color: var(--mute); }
.grp-list { list-style: none; margin: 0 0 6px; padding: 0; }
.slot { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 9px 12px 9px 18px; border-radius: 10px; text-decoration: none; }
.slot:hover { background: var(--fill-2); }
.slot.is-on { background: var(--blue-soft); }
.slot.is-on .slot-name { color: var(--blue); font-weight: 800; }
.slot-name { font-size: 15px; color: var(--ink); }
.slot-floor { font-size: 13.5px; color: var(--mute); text-align: right; }
.slot-meta { grid-column: 1 / -1; display: flex; gap: 8px; font-size: 12.5px; color: var(--mute); }
.slot-stale { color: var(--red); font-weight: 700; }
.board-empty { padding: 12px; color: var(--mute); font-size: 14px; }
/* 왼쪽 메뉴는 세 칸: 화면 이동 / 사무소 / 공통 매뉴얼·바로가기 */
.board { gap: 0; }
.board-nav { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; }
.board-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--sub); font-weight: 700; }
.board-nav a svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--mute); }
.board-nav a:hover { background: var(--fill-2); }
.board-nav a.is-on { background: var(--fill); color: var(--ink); }
.board-nav a.is-on svg { color: var(--blue); }
.board-sec { padding: 14px 0 10px; border-top: 1px solid var(--line); }
.board-h { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 0 10px; font-size: 13px; font-weight: 800; color: var(--mute); }
.board-count { font-weight: 700; color: var(--faint); }
.board-links > summary { list-style: none; cursor: pointer; margin-bottom: 4px; padding: 6px 10px; border-radius: 10px; }
.board-links > summary::-webkit-details-marker { display: none; }
.board-links > summary:hover { background: var(--fill-2); }
.board-links > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.board-links[open] > summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.links-group { margin: 8px 10px 2px; font-size: 12px; font-weight: 700; color: var(--faint); }
.board-links ul { list-style: none; margin: 0; padding: 0; }
.board-links a, .board-links button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: none; text-align: left; text-decoration: none; font-size: 14px; color: var(--body); cursor: pointer; }
.board-links a:hover, .board-links button:hover { background: var(--fill-2); }
.board-links .ext { margin-left: auto; font-size: 13px; color: var(--mute); white-space: nowrap; }
.board-note { margin: auto 0 0; padding: 16px 10px 4px; font-size: 13.5px; color: var(--mute); line-height: 1.55; }

.card-sub { margin: 0 0 16px; font-size: 14.5px; color: var(--sub); }
.card-head .linkbtn { margin-left: auto; }
.card-head .ico { width: 36px; height: 36px; border-radius: 11px; }
.section-h { margin: 36px 4px 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.tiles.regions { margin-top: 14px; }
.tiles.regions .tile { min-height: 132px; }

/* ---------- 본문 ---------- */
.view { padding: 36px 40px 96px; max-width: 1120px; width: 100%; outline: none; }
.loading { color: var(--mute); }

.page-head { margin: 4px 4px 28px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.page-head p { margin: 8px 0 0; color: var(--sub); font-size: 16px; }
.page-head b { font-weight: 800; color: var(--ink); }
.page-head b.red { color: var(--red); }

.office-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin: 4px 4px 28px; }
.office-title { flex: 1; min-width: 260px; }
.office-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.office-where { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; color: var(--sub); font-size: 15px; }

/* 요약 숫자: 숫자는 검정, 확인 필요가 있을 때만 빨강. 위쪽 색 줄은 없앴다 */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 22px 28px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.stat span { font-size: 14.5px; color: var(--sub); font-weight: 700; }
.stat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat.tone-red b { color: var(--red); }
.stat b small { font-size: 15px; font-weight: 700; margin-left: 3px; color: var(--sub); }

/* 색 묶음: 화면 스크립트가 tone-이름을 붙인다. 아이콘·타일은 모두 회색(연회색 칸 + 회색 선)으로 통일 */
.tone-blue, .tone-red, .tone-amber, .tone-green, .tone-violet, .tone-slate, .tone-teal { --tone: var(--sub); --tone-soft: var(--fill); }

/* ---------- 사무소 자료 타일(임대차·자료실·사무소 정보·끝난 업무) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 156px; padding: 22px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .12s, box-shadow .12s;
}
.tile:hover { border-color: var(--line-2); }
/* 고른 타일: 칸 전체를 칠하지 않고 파란 테두리만 */
.tile.is-on { background: var(--card); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.tile .ico { margin-bottom: 10px; background: var(--fill); color: var(--sub); }
.tile-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.tile-sum { font-size: 14px; color: var(--sub); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-mark { position: absolute; top: 22px; right: 20px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel-head h2 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; }
.ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone); }
.ico svg { width: 22px; height: 22px; }

/* ---------- 카드 ---------- */
/* 카드: 그림자 없이 연한 테두리만, 안쪽 여백 28 · 카드 사이 16 */
.card, .sheet { background: var(--card); border-radius: var(--r-card); padding: 28px; margin-bottom: 16px; border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-head .card-title { margin: 0; }
.card-head .btn { margin-left: auto; }
.card-title { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.count { color: var(--mute); font-weight: 700; font-size: 15px; margin-left: 2px; }
.note { margin: 14px 0 0; font-size: 13.5px; color: var(--mute); }
.empty { margin: 0; padding: 20px 0; color: var(--mute); font-size: 15.5px; }

.fold-ctl { display: flex; justify-content: flex-end; gap: 16px; margin: 0 6px 12px; }
.card.fold { padding: 0; }
.fold-head { display: flex; align-items: center; gap: 14px; padding: 22px 28px 22px 24px; cursor: pointer; list-style: none; border-radius: var(--r-card); }
.fold[open] > .fold-head { border-bottom: 1px solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0; margin-bottom: 18px; }
.fold-head::-webkit-details-marker { display: none; }
.fold-head::marker { content: ""; }
.fold-head:hover { background: var(--fill-2); }
.fold-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fold-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.fold-sum { color: var(--sub); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold[open] > .fold-head .fold-sum { display: none; }
.fold-mark { flex: none; }
.fold-chev { flex: none; color: var(--faint); display: grid; place-items: center; }
.fold-chev .chev { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .15s; }
.fold[open] > .fold-head .fold-chev .chev { transform: rotate(-90deg); }
.fold-body { padding: 0 28px 28px; }
.fold-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 8px; }
.fold-tools input[type=search], .fold-tools select, .inline-search input { height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--fill); font-size: 14px; }
.fold-tools input[type=search] { min-width: 220px; }
.inline-search { display: flex; gap: 8px; margin-bottom: 4px; }
.inline-search input { flex: 1; max-width: 360px; }

/* ---------- 한 줄 목록 ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.rows > .row:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.row:has(.row-link):hover { background: var(--fill-2); box-shadow: -12px 0 0 var(--fill-2), 12px 0 0 var(--fill-2); }
.row-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.row-next { font-size: 15.5px; color: var(--body); }
.row-latest { font-size: 14.5px; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lbl { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; margin-right: 8px; border-radius: 6px; font-size: 13px; font-weight: 800; color: var(--sub); background: var(--fill); vertical-align: 1px; }
.row-next .lbl { color: var(--blue); background: var(--blue-soft); }
.row-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13.5px; color: var(--meta); }

/* 업무 한 건 = 한 칸. 확인 필요·기한 지남은 빨간 세로줄, 7일 안 기한은 진한 회색 세로줄 */
.rows.tasks { display: flex; flex-direction: column; gap: 12px; }
.rows.tasks > .row { border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 14px; padding: 18px 20px 18px 18px; background: #fff; }
.rows.tasks > .row.is-stale, .rows.tasks > .row.is-over { border-left-color: var(--red); }
.rows.tasks > .row.is-soon { border-left-color: var(--sub); }
.rows.tasks > .row:hover { background: var(--fill-2); box-shadow: none; }
.rows.tasks .row-link::after { border-radius: 14px; }
.rows.tasks.compact { gap: 8px; }
.rows.tasks.compact > .row { padding: 14px 18px 14px 16px; align-items: center; }
.rows.tasks.compact .row-side { flex-direction: row; align-items: center; gap: 8px; }
.more-link { display: block; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--fill-2); text-align: center; font-size: 14.5px; font-weight: 700; color: var(--sub); text-decoration: none; }
.more-link:hover { background: var(--fill); color: var(--ink); }
.row-meta b { color: var(--sub); }
.row-meta a { position: relative; z-index: 1; color: var(--sub); }
.row-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.row-side > .chev, .row-side .chev { width: 16px; height: 16px; color: var(--faint); }
.row-side.actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 330px; }
.row-side .btn, .row-side .linkbtn, .row-main .btn, .row-main .linkbtn, .row-main .path { position: relative; z-index: 1; }
.side-top { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.side-num { font-size: 14px; color: var(--sub); }
.row-side:not(.actions) { flex-direction: column; }
.row-side:has(> .chev) { flex-direction: row; align-items: center; gap: 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }

/* 기한: 보통은 회색, 7일 안은 진한 회색 굵은 글씨(조금 진한 칸), 지나면 빨간 칸 */
.due { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sub); white-space: nowrap; }
.due b { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 14px; font-weight: 700; color: var(--sub); background: var(--fill); }
.due.is-soon b { color: var(--ink); font-weight: 800; background: var(--line); }
.due.is-over b { color: #fff; font-weight: 800; background: var(--red); }
.due.none { color: var(--mute); font-size: 13.5px; }

.ver-row { padding: 0 0 12px; }

/* 상태와 꼬리표 */
/* 상태와 꼬리표: 진행만 파랑, 대기는 회색 테두리 칸, 완료·확정은 회색에 체크 표시, 경고만 빨강 */
.st, .pill, .badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--fill); color: var(--sub); }
.st-doing { background: var(--blue-soft); color: var(--blue); }
.st-wait, .pill.amber { background: var(--card); color: var(--body); box-shadow: inset 0 0 0 1px var(--line-2); }
.st-new { background: var(--fill); color: var(--body); }
.st-done, .pill.ink, .badge.ok { background: var(--fill); color: var(--sub); }
.st-done::before, .pill.ink::before, .badge.ok::before { content: ""; flex: none; width: 8px; height: 4px; margin: -3px 7px 0 1px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); }
.pill.red, .badge.review { background: var(--red-soft); color: var(--red); }
.stamp { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 700; background: var(--red-soft); color: var(--red); }
.mock-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 13px; background: var(--fill); color: var(--sub); }
.badge.ext { background: none; color: var(--mute); padding: 0 2px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--fill); color: var(--body); cursor: pointer; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #e8ebee; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #2f58c0; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.tiny { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: none; }
.btn.warn { color: var(--red); }
.btn.push { margin-left: auto; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: 0; padding: 4px 2px; color: var(--sub); cursor: pointer; font-size: 14px; font-weight: 700; }
.linkbtn:hover { color: var(--ink); }
.linkbtn.warn { color: var(--red); }
.linkbtn.strong { color: var(--blue); }

/* ---------- 기한 ---------- */
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; align-items: start; }
.dl-item.is-draft { background: var(--fill-2); border-style: dashed; }
.dl-when { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.dl-date { font-weight: 800; font-size: 16px; }
.dl-dd { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; color: var(--sub); background: var(--fill); font-weight: 700; }
.dl-dd:empty { display: none; }
.dl-dd.is-soon { color: var(--ink); font-weight: 800; background: var(--line); }
.dl-dd.is-over { color: #fff; font-weight: 800; background: var(--red); }
.dl-what { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.dl-title { font-weight: 700; font-size: 16px; }
.dl-title a { text-decoration: none; }
.dl-basis { font-size: 14px; color: var(--sub); }
.dl-form { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px; background: var(--fill-2); border-radius: var(--r); }
.dl-form label { font-size: 13.5px; color: var(--sub); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dl-form input { height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: #fff; }
.dl-form input[type=text] { flex: 1; min-width: 220px; }
.t-title { font-weight: 700; }

/* ---------- 임대차·사무소 정보 ---------- */
.lease { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
/* 한 사무소에 계약이 여러 개(9층·17층 등)면 공간별 계약을 위아래로 쌓는다 */
.lease-stack { display: flex; flex-direction: column; gap: 26px; }
.lease-stack > .lease-now + .lease-now { padding-top: 22px; border-top: 1px solid var(--line); }
.keep-lines { white-space: pre-line; }   /* 특약 요약은 넣은 줄바꿈 그대로 */
.sub-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; font-size: 15px; font-weight: 800; }
.sub-title span:not(.pill) { color: var(--sub); }
.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0; margin: 0; }
.kv dt { padding: 11px 0; color: var(--mute); font-size: 14.5px; border-top: 1px solid var(--line); }
.kv dd { margin: 0; padding: 11px 0; font-size: 15.5px; border-top: 1px solid var(--line); }
.kv dt:first-of-type, .kv dd:first-of-type { border-top: 0; }
.kv code { margin-right: 4px; }
.row.is-current .row-title { color: var(--ink); font-weight: 800; }
.path { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--mute); }
.path code, .kv code { font-size: 13.5px; background: var(--fill); padding: 2px 8px; border-radius: 6px; color: var(--sub); }

/* ---------- 필터 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 4px 18px; }
.chip { height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--sub); font-size: 14px; font-weight: 700; text-decoration: none; }
.chip:hover { color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; }
.filters select { height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--card); font-size: 14px; color: var(--sub); font-weight: 700; }

/* ---------- 업무 상세(오른쪽) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(25, 31, 40, .28); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 21; overflow-y: auto;
  background: var(--card); box-shadow: -12px 0 40px rgba(25, 31, 40, .12); animation: drawer-in .18s ease-out;
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-inner { padding: 20px 0 48px; }
.drawer-inner > * { margin-left: 28px; margin-right: 28px; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.drawer-top a { color: var(--sub); text-decoration: none; font-weight: 700; }
.drawer h2 { margin: 10px 28px 10px; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.drawer h2:focus { outline: none; }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 20px; }
.drawer section { margin: 0; padding: 20px 28px; border-top: 10px solid var(--bg); }
.drawer h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--fill); border-radius: var(--r); }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--sub); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(25, 31, 40, .12); }
.field { display: block; margin-top: 14px; font-size: 14px; color: var(--sub); font-weight: 700; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 0; border-radius: var(--r); font-size: 15px; color: var(--ink); background: var(--fill); font-weight: 400; }
.field input { height: 46px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.drawer-actions .btn { flex: 1; }
.check-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--sub); margin-top: 10px; }
.source-box { font-size: 15px; font-weight: 700; }
.source-box .path { margin-top: 6px; font-weight: 400; }
.source-box p { font-weight: 400; margin: 6px 0 0; }
.updates { list-style: none; margin: 0; padding: 0; }
.updates li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.updates li:first-child { border-top: 0; }
.updates .u-head { display: flex; gap: 8px; font-size: 13.5px; color: var(--mute); margin-bottom: 2px; }
.updates .u-kind { color: var(--sub); font-weight: 700; }
.updates li.is-check { color: var(--sub); font-size: 14px; }
.files { list-style: none; margin: 0 0 10px; padding: 0; }
.files li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.files li:first-child { border-top: 0; }
.files .f-name { font-weight: 700; flex: 1; min-width: 160px; }

/* ---------- 입력 창 ---------- */
.dialog { border: 0; border-radius: 24px; padding: 0; width: min(600px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(25, 31, 40, .18); }
.dialog::backdrop { background: rgba(25, 31, 40, .36); }
.form { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.dialog .form { max-height: calc(100vh - 60px); overflow-y: auto; }
.form h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.form-hint { margin: 0; font-size: 14px; color: var(--sub); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--sub); font-weight: 700; }
.form label small { font-weight: 400; color: var(--mute); }
.form input, .form select, .form textarea { min-height: 46px; padding: 10px 12px; border: 0; border-radius: var(--r); font-size: 15px; color: var(--ink); font-weight: 400; background: var(--fill); }
.form textarea { min-height: 90px; }
.form-row, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; margin-top: 6px; }
.dialog .form-actions { position: sticky; bottom: -28px; margin: 6px -28px -28px; padding: 14px 28px 24px; background: #fff; border-top: 1px solid var(--line); }   /* 창이 길어도 버튼은 늘 보이게 */
.form-actions .btn { flex: 1; height: 50px; font-size: 16px; }
.form-error { margin: 0; color: var(--red); font-size: 14px; min-height: 1em; }

/* ---------- 로그인·처음 설정 ---------- */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.gate-card { width: min(420px, 100%); background: var(--card); border-radius: 24px; }
.gate-brand { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 30px 28px 0; }

/* ---------- 알림 ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 8px); background: rgba(25, 31, 40, .92); color: #fff; padding: 13px 20px; border-radius: 14px; font-size: 15px; z-index: 40; max-width: calc(100% - 40px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { background: var(--red); }

/* ---------- 상위·중위·하위 단계가 한눈에 갈리게 ----------
   색은 쓰지 않고 크기·굵기·들여쓰기로 가른다.
   상위(법인·화면 제목): 크고 아주 굵게 / 중위(권역·묶음 제목): 한 단계 작게, 굵게 + 펼침 표시 / 하위(사무소·업무): 보통 굵기 + 들여쓰기·왼쪽 연결선 */

/* 왼쪽 메뉴 */
.board-nav a { font-weight: 800; color: var(--body); }
.board-h { gap: 10px; margin: 0 0 8px; padding: 6px 12px; font-size: 15px; font-weight: 800; color: var(--ink); }
.board-h svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--mute); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.board-find { padding: 0 2px 0 6px; }
.grp-head { padding: 9px 10px 9px 16px; font-size: 15px; }                 /* 중위: 권역 */
.grp-name { font-weight: 700; color: var(--body); }
.grp > details[open] > .grp-head .grp-name { color: var(--ink); font-weight: 800; }
.grp-head::after, .board-links > summary::after { border-color: var(--mute); }   /* 펼침 표시를 조금 더 또렷하게 */
.grp-list, .board-links .tree { margin: 2px 0 10px 27px; padding-left: 4px; border-left: 1.5px solid var(--line-2); }   /* 하위: 연결선 */
.grp-list .slot { padding: 8px 10px 8px 12px; border-radius: 0 10px 10px 0; }
.slot-name { font-size: 15px; font-weight: 400; color: var(--body); }
.slot.is-on { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); }
.slot-meta { font-size: 13px; }
.links-group { margin: 8px 10px 2px 16px; font-size: 14.5px; font-weight: 700; color: var(--body); }   /* 중위: 바로가기 묶음 */
.board-links .tree a, .board-links .tree button { padding: 7px 10px 7px 12px; border-radius: 0 10px 10px 0; font-size: 14.5px; }
.board-links > summary.board-h { margin-bottom: 4px; }
/* 전국 사무소(상위)와 그 아래 권역·사무소를 한 칸으로 */
.board-sec.first { border-top: 0; padding-top: 0; }
.board-link { text-decoration: none; border-radius: 10px; padding: 9px 12px; }
.board-link:hover { background: var(--fill-2); }
.board-link.is-on { background: var(--fill); }
.board-link.is-on svg { stroke: var(--blue); }
.board-h .board-count { margin-left: auto; font-size: 13.5px; color: var(--mute); }
.board-sec.first .board-find { margin-top: 2px; }
.board-nav { padding: 12px 0; border-top: 1px solid var(--line); }
.board-nav + .board-sec { border-top: 1px solid var(--line); }
.board-nav.work-nav { border-top: 0; padding-top: 0; }   /* 맨 위: 업무 묶음 */
/* 왼쪽 메뉴 숫자 규칙: 회색 숫자 = 개수(단위를 붙인다), 빨간 칸 = 챙길 것(무엇인지 글자로 쓴다)
   사무소 나무는 이름만 한 줄, 확인 필요가 있을 때만 빨간 칸(권역을 펼치면 사무소 쪽에만) */
.grp-list .slot { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.grp-list .slot-name { flex: 1; min-width: 0; }
.alert-n, .nav-badge { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--red-soft); color: var(--red); }
.nav-badge { margin-left: auto; min-width: 0; background: var(--card); color: var(--body); box-shadow: inset 0 0 0 1px var(--line-2); }   /* 컨펌 '대기'는 경고가 아니라 회색 테두리 칸 */
.grp > details[open] > .grp-head .alert-n { display: none; }
.board-nav .board-count { margin-left: auto; font-size: 13.5px; font-weight: 700; color: var(--mute); }

/* 본문: 위치 경로 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 8px; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--sub); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { display: inline-block; width: 7px; height: 7px; margin: 0 3px 0 1px; font-size: 0; border-right: 1.8px solid var(--mute); border-bottom: 1.8px solid var(--mute); transform: rotate(-45deg); }
.crumbs [aria-current] { color: var(--body); font-weight: 700; }
.drawer-top .crumbs { margin: 0; font-size: 13.5px; }

/* 본문: 상위(화면 제목 28·아주 굵게) > 중위(묶음 제목 20·굵게) > 소제목(17) > 하위 항목(15.5~16·보통) */
.fold-head h2, .card-title, .panel-head h2, .section-h { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.sub-title { position: relative; margin: 4px 0 14px; padding-left: 14px; font-size: 17px; font-weight: 700; }
.sub-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--ink); }
.row-title { font-size: 16px; font-weight: 400; color: var(--ink); }
/* 업무 카드 제목은 '다음' 줄과 갈리도록 한 단계만 굵게 */
.rows.tasks .row-title { font-size: 16px; font-weight: 700; }
.lease-history .rows, .tile-panel > .rows, .tile-panel .docs { margin-left: 2px; }
/* 하위: 소제목 아래 목록은 들여 쓰고 왼쪽 연결선 */
.sub-title + .rows, .sub-title + .dl-list, .sub-title + .tiles { margin-left: 1px; padding-left: 16px; border-left: 1.5px solid var(--line-2); }
.sub-title + .tiles { margin-top: 0; margin-bottom: 28px; }

/* 사무소 자료 타일 3개(사무소 정보 및 임대 내용 / 자료실 / 끝난 업무) */
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile-panel .lease-history { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sub-title span.count { font-size: 14px; color: var(--mute); }

/* ---------- 해외 거점·보고·컨펌·정기 업무 ---------- */
a.tile { text-decoration: none; color: inherit; }
.page-head.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
/* .pill.amber(컨펌 대기)는 위 '상태와 꼬리표'에서 회색 테두리 칸으로 정했다 */

/* 전체 업무: 큰 분류 타일 > 분류 칩 > 분류별 묶음 */
.tiles.cat-tiles { margin-top: 4px; }
.tiles.cat-tiles .tile { min-height: 128px; }
.sub-filters { margin-top: -2px; }
.chip-n { margin-left: 6px; font-weight: 800; color: var(--mute); }
.chip.is-on .chip-n { color: rgba(255, 255, 255, .7); }
.filters .seg { background: var(--line); }
.seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--sub); text-decoration: none; }
.seg a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(25, 31, 40, .12); }
.seg.push { margin-left: auto; }
.cat-block + .cat-block { margin-top: 32px; }
.sub-title a { color: var(--ink); text-decoration: none; }
.sub-title a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sub-title span.count { font-size: 14px; color: var(--mute); }

/* 업무 등록: 웍스 메시지 붙여넣기 */
.paste-box { padding: 16px; border-radius: 14px; background: var(--fill-2); border: 1px solid var(--line); }
.paste-box textarea { min-height: 72px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.paste-result { margin: 8px 0 0; font-size: 14px; color: var(--body); font-weight: 700; }
.paste-result:empty { display: none; }
.form label.check-label { flex-direction: row; align-items: center; gap: 10px; align-self: end; min-height: 46px; padding: 0 12px; border-radius: var(--r); background: var(--fill); font-size: 15px; color: var(--ink); cursor: pointer; }
.form label.check-label input { min-height: 0; width: 18px; height: 18px; padding: 0; accent-color: var(--blue); }

/* 업무 상세: 사무소별 체크 */
.check-tools { display: flex; gap: 12px; margin: 4px 0 8px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.checks li { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.checks label { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.checks input { width: 17px; height: 17px; flex: none; accent-color: var(--sub); }
.checks li.is-done { background: var(--fill); border-color: transparent; }
.checks li.is-done label { color: var(--sub); }
.checks li .small { padding-left: 26px; font-size: 13px; }
.checks.only-left li.is-done { display: none; }

/* ---------- 법인 세 곳(상위): 법무법인 대륜 / 미국 SJKP / 스카이즈코리아 ---------- */
/* 왼쪽 메뉴: 법인(글자 칸 + 이름 + 사무소 수) > 권역 > 사무소. SJKP·스카이즈는 법인 바로 아래 사무소
   법인 글자 칸은 세 곳 모두 진한 회색 바탕에 흰 글자, 법인은 글자(대·S·스)로 구분한다 */
.org-sec { padding-top: 14px; }
.org-h { display: flex; align-items: center; gap: 11px; margin: 0 0 4px; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.org-h:hover { background: var(--fill-2); }
.org-h.is-on { background: var(--fill); }
.org-mark, .org-dot { flex: none; display: grid; place-items: center; background: var(--mark); color: #fff; font-weight: 800; letter-spacing: -.02em; }
.org-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.org-mark.big { width: 48px; height: 48px; border-radius: 14px; font-size: 21px; }
.org-dot { display: inline-grid; width: 18px; height: 18px; margin-right: 7px; border-radius: 5px; font-size: 10.5px; }
.org-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.org-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.org-sub { font-size: 13.5px; font-weight: 400; color: var(--mute); }
.org-sec > .board-find, .org-sec > .directory:not(.flat) { margin-left: 14px; }
.org-sec > .board-find { margin-top: 4px; margin-bottom: 2px; }
.directory.flat { margin: 0 0 4px 25px; padding-left: 4px; border-left: 1.5px solid var(--line); }
.directory.flat .slot { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 0 10px 10px 0; }
.directory.flat .slot-name { flex: 1; min-width: 0; }
.directory.flat .board-empty { padding: 6px 12px; font-size: 13px; }
/* 첫 화면 법인 타일, 법인 화면 제목 */
.tiles.orgs { margin-top: 6px; }
.tiles.orgs .tile { min-height: 132px; }
.tile .ico.org-ico { background: var(--mark); color: #fff; font-size: 18px; font-weight: 800; }
.tile-sum.clamp { -webkit-line-clamp: 2; }
.org-title { display: flex; align-items: center; gap: 14px; }
.org-filter { margin-bottom: 12px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1080px) {
  .lease { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 130px; }
  .brand { width: auto; }
}
@media (max-width: 860px) {
  :root { --top: auto; }
  .topbar { position: static; height: auto; flex-wrap: wrap; gap: 10px 12px; padding: 12px 16px; }
  .board-toggle { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--fill); font-size: 14px; font-weight: 700; cursor: pointer; margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .who { order: 4; margin-left: 0; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .board { position: static; height: auto; display: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .board.is-open { display: flex; }
  .view { padding: 18px 12px 60px; }
}
@media (max-width: 640px) {
  .card, .sheet { padding: 18px; border-radius: 16px; }
  .fold-head { padding: 18px; }
  .fold-body { padding: 0 18px 18px; }
  .row { flex-wrap: wrap; }
  .row-side, .row-side.actions, .row-side:not(.actions), .rows.tasks.compact .row-side { width: 100%; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; max-width: none; text-align: left; }
  .row-side .side-top { justify-content: flex-start; }
  .row-side:has(> .chev) { width: auto; }
  .stats { padding: 16px 0; }
  .stat { padding: 0 14px; }
  .stat b { font-size: 22px; }
  .dl-item { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 88px minmax(0, 1fr); }
  .field-row, .form-row, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head.head-row { flex-direction: column; align-items: flex-start; }
  .tiles.three { grid-template-columns: minmax(0, 1fr); }
  .tiles.three .tile { min-height: 0; }
  .drawer-inner > *, .drawer h2 { margin-left: 20px; margin-right: 20px; }
  .drawer section { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer { animation: none; }
  .toast, .fold-chev .chev, .grp-head::after, .tile { transition: none; }
}
