/* ============================================================
   곰노트 PC 공통 스타일 — docs/design-rules.md 를 그대로 옮김
   규칙에 없는 색·크기를 새로 쓰려면 디자인 기준 문서부터 고친다
   ============================================================ */
/* hidden 을 붙인 것은 어떤 display 를 정했어도 숨긴다 (칸마다 [hidden] 을 따로 적다 빠뜨리는 일을 막으려고) */
[hidden] { display: none !important; }

:root {
  --bg: #FFFFFF; --text: #111111; --sub: #666666; --muted: #999999;
  --line: #EBEBEB; --line-strong: #D6D6D6; --soft: #F7F7F7;
  --gunjeong: #1B3A8C;                               /* 강조 · 지금 할 일 */
  --jeokhwang: #FFD900; --jeokhwang-edge: #E0B800;   /* 챙김 · 형광펜처럼 글자 뒤에만 */
  --geumjeok: #E60012;                               /* 주의 · 멈춤·오류·삭제 */
  /* Pretendard (우리 서버 assets/fonts/pretendard, lib/layout.php 에서 불러옴)
     못 받으면 가장 닮은 기기 글꼴: 애플 = Apple SD Gothic Neo, 안드로이드 = 본고딕(Noto Sans CJK KR), 윈도우 = 맑은 고딕 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "맑은 고딕", sans-serif;
  /* PC 글자 크기 */
  --fs-title: 22px; --fs-section: 15px; --fs-body: 14px; --fs-small: 12px;
  --btn-h: 36px; --row-h: 40px;
  --radius: 4px; /* 상자 모서리: 버튼·입력칸·안내·사진 모두 이 값 하나로 */
}
/* 폰: 한 단계 크게 */
@media (max-width: 767px) {
  :root { --fs-title: 20px; --fs-section: 16px; --fs-body: 16px; --fs-small: 13px; --btn-h: 48px; --row-h: 48px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; font-weight: 400; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; }
/* 굵기는 두 가지만: 400 보통, 500 강조 (600·700은 너무 진해 보여서 쓰지 않는다) */
b, strong, h1, h2, h3, th.strong { font-weight: 500; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 화면 틀 ---------- */
.page { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }
.page.narrow { max-width: 400px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; margin-bottom: 20px; color: var(--sub); flex-wrap: wrap;
  border-bottom: 1px solid var(--line-strong); } /* 메뉴 줄 아래 가로선: 머리와 본문을 나눈다 */
.nav a { text-decoration: none; }
.nav a.on { color: var(--text); font-weight: 500; }
/* 큰 메뉴·탭: ㄷ 모양 (왼쪽 트임) 테두리, 오른쪽 모서리 둥글게. 고른 메뉴는 군청 (큰 메뉴 2px · 탭 1px) — docs/mockups/18 */
.nav > a:not(.brand), .tabs a { padding: 3px 9px 3px 10px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.nav > a.on:not(.brand) { border-color: var(--gunjeong); border-width: 2px 2px 2px 0; padding: 2px 8px 2px 10px; }
@media (max-width: 767px) { /* 폰: 큰 메뉴 다섯 개가 한 줄에 들어가게 */
  .nav { gap: 6px; } .nav .brand { margin-right: 2px; }
  .nav > a:not(.brand) { padding: 2px 6px 2px 7px; } .nav > a.on:not(.brand) { padding: 1px 5px 1px 7px; }
}
.nav .brand { color: var(--text); font-weight: 500; margin-right: 8px; }
.nav .right { margin-left: auto; display: flex; gap: 16px; font-size: var(--fs-small); }

h1 { font-size: var(--fs-title); margin: 0 0 16px; }
h2 { font-size: var(--fs-section); margin: 24px 0 4px; }

/* ---------- 글자 색 ---------- */
.sub { color: var(--sub); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.now { color: var(--gunjeong); }
.stop, .error { color: var(--geumjeok); }
.hl { background: var(--jeokhwang); color: var(--text); padding: 2px 6px; border-radius: 3px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--jeokhwang);
  border: 1px solid var(--jeokhwang-edge); vertical-align: 1px; }

/* ---------- 버튼 ---------- */
.btn { height: var(--btn-h); padding: 0 16px; border-radius: var(--radius); background: var(--bg); white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; }
.btn.main { background: var(--gunjeong); border-color: var(--gunjeong); color: #fff; } /* 주 버튼: 군청으로 꽉 채움 (화면마다 하나) */
.btn.danger { border-color: var(--geumjeok); color: var(--geumjeok); }
.btn.text { border: 0; color: var(--muted); padding: 0 8px; }
.btn.block { width: 100%; }
.btn.main:disabled { background: var(--line); border-color: var(--line); color: var(--muted); }
.btn:disabled { color: var(--muted); border-color: var(--line); cursor: default; }

/* ---------- 입력칸 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: var(--fs-small); color: var(--sub); margin-bottom: 4px; }
.input { width: 100%; height: var(--btn-h); border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); padding: 0 12px; outline: none; }
.input:focus { border-color: var(--gunjeong); }
.field .error { font-size: var(--fs-small); margin-top: 4px; min-height: 0; }
.field .hint { font-size: var(--fs-small); color: var(--muted); margin-top: 4px; }
.inline { display: flex; gap: 8px; }
.inline .input { flex: 1; }

.input[readonly] { color: var(--sub); background: var(--soft); border-color: var(--line); }
.input.gap { margin-top: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--sub);
  margin: 8px 0; min-height: 24px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--gunjeong); }
.field .ok { font-size: var(--fs-small); color: var(--gunjeong); margin-top: 4px; }
.form-error { font-size: var(--fs-small); margin: 8px 0; }
.form-error:empty { display: none; }

/* ---------- 메뉴 안의 탭 ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { text-decoration: none; color: var(--sub); }
.tabs a.on { color: var(--text); font-weight: 500; border-color: var(--gunjeong); }

/* ---------- 목록 위 한 줄 (설명 + 주 버튼) ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }

/* ---------- 고치기 칸 (목록 아래에 열림) ---------- */
.panel { max-width: 560px; margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line-strong); }
.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.spacer { flex: 1; }
.btn.text.danger-text { color: var(--geumjeok); }
.seg button:disabled { color: var(--line-strong); border-color: var(--line); cursor: default; }
/* 읽고 옮겨 적어야 하는 안내 (초대코드 등): 적황 칠, 사라지지 않음 */
.notice { background: var(--jeokhwang); color: var(--text); padding: 8px 12px; border-radius: var(--radius); margin: 8px 0; }

/* 하나 고르기 버튼 묶음 */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { height: var(--btn-h); padding: 0 12px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line-strong); color: var(--sub); cursor: pointer; }
.seg button.on { border-color: var(--gunjeong); color: var(--gunjeong); }

.hours { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hours > span:first-child { width: 32px; }
.input.time { width: 88px; text-align: center; } /* 24시간 07:00 */
#proxyTimes { flex-wrap: wrap; }
#proxyTimes > span:first-child { width: auto; white-space: nowrap; margin-right: 4px; } /* 대리 기록 날짜 2026-10-19(월) 한 줄로 */
.weekday { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.weekday .input { width: 120px; }
.preview { line-height: 1.8; margin: 12px 0 0; }

/* 항목 표 (작업목록 양식 · 작업일지 양식) */
table.fields td { overflow: visible; }
table.fields tr.off td { color: var(--muted); }
table.fields tr.off .input.cell { color: var(--muted); }
table.fields tr.dragging { background: var(--soft); }
table.fields input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--gunjeong); }
.input.cell { height: 32px; padding: 0 8px; }
.input.cell.num { width: 64px; text-align: right; }
.input.cell.bad { border-bottom-color: var(--geumjeok); }
.grip { border: 0; background: none; color: var(--muted); cursor: grab; padding: 4px; letter-spacing: -2px; }
.grip:focus-visible { outline: 2px solid var(--gunjeong); border-radius: 4px; }
.preview-title { margin: 24px 0 4px; }
.preview-wrap { overflow-x: auto; }
.field-preview { display: flex; border-bottom: 1px solid var(--line-strong); font-size: var(--fs-small); color: var(--muted); width: max-content; }
.field-preview span { flex: none; padding: 6px 8px 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 작업목록 양식 · 작업일지 양식 */
.toolbar-btns { align-items: center; }
.fixed-note { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font-size: var(--fs-small); color: var(--sub); margin: 0 0 12px; }
.pick-box[hidden], .check-line[hidden] { display: none; }
.pick-box { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: var(--fs-small); }
.check-line input { width: 18px; height: 18px; accent-color: var(--gunjeong); }
.src { display: inline-block; font-size: var(--fs-small); padding: 1px 8px; border-radius: var(--radius); white-space: nowrap; }
.src.list { background: #EDEFF5; color: var(--gunjeong); }
.src.field { background: #FFF6BF; color: #6b5600; }
.src.system { background: #F0F0F0; color: var(--sub); }
.input.cell.unit { width: 56px; }
select.input.cell { width: 76px; padding: 0 4px; }
.field-preview span.sum { color: var(--text); }

/* ---------- 날짜 칸: 2026-10-01(목) + 달력 ---------- */
.datefield { display: inline-flex; align-items: center; gap: 4px; }
.datefield .step { padding: 0 8px; font-size: 18px; }
.date-wrap { position: relative; }
.date-show { height: var(--btn-h); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); cursor: pointer; }
.date-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- 작업목록 만들기 ---------- */
.pick-row { display: flex; flex-wrap: wrap; gap: 24px; }
.exists { margin-bottom: 16px; }
.dropzone { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 12px; }
.dropzone.over { border-color: var(--gunjeong); background: var(--soft); }
.dropzone textarea { width: 100%; border: 0; border-radius: var(--radius); background: var(--soft); padding: 12px; resize: vertical; outline: none; }
.dropzone p { margin: 8px 0 0; }
.inline-select { display: inline-block; width: auto; height: 32px; margin-left: 8px; }
.table-scroll { overflow-x: auto; }
table.confirm { width: max-content; min-width: 100%; }
table.confirm th { vertical-align: bottom; padding-right: 12px; }
table.confirm td { max-width: 240px; padding-right: 12px; }
table.confirm .col-head { display: block; color: var(--sub); }
select.map { border: 0; background: none; color: var(--gunjeong); font-size: var(--fs-small); padding: 0; cursor: pointer; }
select.map.unused { color: var(--muted); }
table.confirm td.unused { color: var(--muted); }
table.confirm td.paper-std { color: var(--gunjeong); }
table.confirm td.paper-unknown { text-decoration: underline dotted var(--muted); }
table.confirm td.need { background: #FFF6BF; outline: 1px solid var(--jeokhwang-edge); outline-offset: -1px; min-width: 48px; cursor: text; } /* 대수가 비었거나 숫자가 아님: 눌러서 고친다 */
table.confirm tr.after td { color: var(--muted); }
table.confirm tr.removed td { color: var(--line-strong); text-decoration: line-through; }
table.confirm tr.removed td:last-child { text-decoration: none; }
.sides-btn { padding: 0; height: auto; color: var(--sub); }

/* ---------- 현장 화면 (폰) ---------- */
.field-screen { padding-top: 8px; }
.field-head { display: flex; justify-content: space-between; gap: 8px; color: var(--sub); font-size: var(--fs-small); }
.job-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.job-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.job-name { flex: 1; min-width: 0; }
.job-seq { display: inline-block; min-width: 24px; }
.job-seq.job-no { margin-right: 8px; font-weight: 700; color: var(--gunjeong); } /* 작업 번호 #27 (2026-11-06) */
.job-state { font-size: var(--fs-small); margin-left: 8px; white-space: nowrap; }
.job-info { margin: 2px 0 0 24px; }
.job-row.done .job-name { color: var(--sub); }
.job-row .btn.big { margin-top: 12px; }
.btn.big { height: 52px; font-size: 17px; }
.undo { margin: 4px 0 0 16px; padding: 0 8px; height: 32px; }
.undo-toast { position: fixed; left: 16px; right: 16px; bottom: 24px; max-width: 480px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--radius); }
.undo-toast button { border: 0; background: none; color: var(--bg); text-decoration: underline; font: inherit; padding: 4px 0 4px 16px; cursor: pointer; }
.complete-title { font-weight: 500; margin: 12px 0 2px; }
#completeForm .btn.text.block { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--sub); padding: 6px 12px; font: inherit; font-size: var(--fs-small); cursor: pointer; }
.field-foot { text-align: center; margin-top: 24px; }

/* ---------- 오늘 ---------- */
.today-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.input.search { margin-bottom: 8px; border-bottom: 2px solid var(--gunjeong); }
#searchResults { margin: 8px 0 24px; }
.summary { color: var(--sub); white-space: pre; margin: 8px 0 0; }
.board-head { display: flex; justify-content: space-between; max-width: 788px; margin-top: 24px; }
.board-head span { font-weight: 400; color: var(--muted); font-size: var(--fs-small); }

/* ---------- 일지 ---------- */
.inline-pick { align-items: center; gap: 16px; }
.log-head { display: flex; align-items: baseline; gap: 12px; margin-top: 32px; }
.log-head span { font-weight: 400; font-size: var(--fs-small); color: var(--sub); }
.log-table td.num { text-align: right; padding-right: 16px; }
.log-note { margin-top: 24px; }
.mylog-date { display: flex; justify-content: center; margin-top: 12px; }

.tag { display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 11px; color: var(--sub); white-space: nowrap; vertical-align: 1px; }

.gap-top { margin-top: 8px; }

.field-links { display: flex; gap: 16px; margin-top: 4px; }
.field-links a { color: var(--sub); }

/* 넘기기 · 인수인계 (현장 폰) */
.btn-pair { display: flex; gap: 8px; margin-top: 12px; }
.btn-pair .btn { flex: 1; }
.section-title { font-size: var(--fs-small); color: var(--sub); margin: 20px 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); }
/* 기계마다 이어지는 목록 (2026-11-06): 다른 장에서 온 작업 표시 · 이번 근무에 끝낸 작업 접기 */
.job-from { display: block; font-size: var(--fs-small); font-weight: 400; margin-top: 2px; }
.done-fold > summary { cursor: pointer; list-style-position: inside; }
.done-fold[open] > summary { margin-bottom: 4px; }
/* 출력 뒤 바뀐 것 (4-2): 폰 맨 위 한 줄 · 바뀐 줄의 작은 표시 */
.chg-line { line-height: 1.6; }
.chg-line .btn.text { padding: 0; min-height: 0; background: none; border: 0; color: inherit; text-decoration: underline; font-weight: 700; }
/* 사고분·부족분 (5단계): 현장 폰 · 기계 목록에 크게 */
.job-redo { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; color: #712B13; background: #FAECE7; border-radius: 6px; padding: 2px 8px; width: fit-content; }
.mq-redo { margin-top: 3px; font-weight: 700; color: #712B13; background: #FAECE7; border-radius: 6px; padding: 1px 8px; width: fit-content; }
/* 사고분·부족분 넣기 (5단계): 기계 목록 위 판 */
.mq-redo-panel { border: 2px solid #D85A30; border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; background: var(--bg); }
.mq-redo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.mq-redo-head .btn.text { margin-left: auto; }
.mq-redo-results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 320px; overflow: auto; }
.mq-redo-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; font: inherit; color: var(--text); }
.mq-redo-hit:hover { border-color: var(--gunjeong); }
.mq-redo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.mq-redo-label { min-width: 84px; font-weight: 700; }
.mq-redo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mq-redo-chips .btn.on { background: var(--gunjeong); border-color: var(--gunjeong); color: #fff; }
.mq-redo-unit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mq-redo-qty { width: 120px; }
/* 범위 정렬 (6단계): 고른 줄 · 범위 위 띠 · 미리보기 (자리가 바뀌는 줄 진하게) */
.mq-rows.waiting .mq-row:not(.mq-mark) { cursor: pointer; }
.mq-row.sel { box-shadow: inset 4px 0 0 var(--gunjeong); background: #EEF1F8 !important; }
.mq-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border: 2px solid var(--gunjeong); border-radius: var(--radius); background: var(--bg); }
.mq-range .mq-edit-bar { flex-basis: 100%; }
.mq-color-order { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 6px; border-top: 1px dashed var(--line); } /* 6-3 색도 묶음 순서 */
.mq-co-chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 0 4px; }
.mq-co-chip .btn.text { padding: 0 4px; min-height: 0; }
.mq-preview { flex-basis: 100%; margin: 6px 0 0; padding-left: 24px; }
.mq-preview li { padding: 3px 0; }
.mq-preview li.moved { background: #EEF1F8; border-radius: 4px; }
.job-chg { display: inline-block; margin-left: 6px; font-size: var(--fs-small); font-weight: 700; color: #854F0B; background: #FAEEDA; border-radius: 8px; padding: 0 7px; vertical-align: 2px; }
.moved-notice .moved-big { font-weight: 700; font-size: 16px; margin-bottom: 4px; } /* 관리자가 다른 기계로 옮긴 하던 작업 (3-3) */
.moved-notice .btn { margin-top: 8px; }
.job-mark { border-top: 3px solid var(--text); margin-top: 14px; padding: 6px 0 2px; font-weight: 700; min-height: 8px; } /* 관리자가 넣은 구분선 (2-4) */
.notice.takeover { margin-top: 12px; }
.notice.takeover .small { margin-top: 4px; }
.notice.takeover + .btn { margin-bottom: 8px; }
.hand-num { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0; }
.hand-num .btn { width: 52px; height: 52px; font-size: 22px; }
.hand-value { min-width: 88px; text-align: center; font-size: 32px; font-weight: 500; border-bottom: 2px solid var(--gunjeong); }
.hand-side { margin: 8px 0; }
.hand-side button { flex: 1; }
.hand-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hand-pad button { height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 18px; cursor: pointer; }
.hand-pad button.small { font-size: var(--fs-small); color: var(--sub); }
.hand-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin: 8px 0; }
.hand-grid button { height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg);
  font-size: 13px; color: var(--sub); cursor: pointer; padding: 0; }
.hand-grid button.prev { background: #EFEFEF; border-color: var(--line); color: var(--muted); cursor: default; }
.hand-grid button.mine { background: #E4E9F5; border-color: var(--gunjeong); color: var(--gunjeong); font-weight: 500; }
.hand-grid.side-rows { gap: 6px; align-items: center; } /* 단면기 쪽 칸: 줄 이름 + 큰 칸 */
.hand-grid.side-rows .rh { font-size: var(--fs-small); color: var(--sub); }
.hand-grid.side-rows button { height: 52px; font-size: 17px; font-weight: 500; color: var(--text); }
.hand-grid.side-rows button.mine { background: var(--gunjeong); color: #fff; }
.hand-grid.side-rows button.prev { color: var(--muted); }
.side-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 24px; } /* 작업 줄: 찍은 쪽 */
.side-chips i { font-style: normal; font-size: var(--fs-small); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 7px; color: var(--sub); }
.side-chips i.done { background: var(--gunjeong); border-color: var(--gunjeong); color: #fff; }
.job-state.part { color: #6A5600; background: #FFF6BF; border-radius: 10px; padding: 1px 7px; }
.part-stack button { display: block; width: 100%; text-align: left; padding: 10px 14px; margin-bottom: 8px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: var(--bg); font: inherit; cursor: pointer; }
.part-stack button b { display: block; font-size: 16px; font-weight: 500; }
.part-stack button span { font-size: var(--fs-small); color: var(--sub); }
.part-stack button.on { border: 2px solid var(--gunjeong); padding: 9px 13px; background: #E4E9F5; }
.part-stack button.on b { color: var(--gunjeong); }
.part-stack button:disabled { background: #F4F4F4; cursor: default; }
.part-stack button:disabled b, .part-stack button:disabled span { color: var(--muted); }
.hand-preview { font-size: var(--fs-small); text-align: center; margin: 12px 0; min-height: 20px; }
#handForm .btn.text.block { margin-top: 8px; }

/* 확인 요청 */
.check-btn { display: block; margin: 6px 0 0 auto; padding: 0 8px; height: 32px; }
.check-block { margin: 8px 0 0 24px; }
.check-answer { font-size: 22px; font-weight: 500; margin: 2px 0; }
.check-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.check-photo { display: flex; flex-direction: column; align-items: center; }
.check-photo img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.answer-photos { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.answer-photos img { width: 100%; max-width: 320px; border-radius: var(--radius); border: 1px solid var(--line); }
.today-check { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.today-check a { margin-left: auto; }

/* 오늘 일지 제출 */
.submit-box { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.submit-box p { margin: 8px 0 0; }
.submit-box .submitted { font-weight: 500; color: var(--text); }

/* 조와 조원 */
.crew-row { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crew-name { width: 40px; flex: none; padding-top: 8px; }
.crew-people { display: flex; flex-wrap: wrap; column-gap: 20px; }
.crew-people .check { color: var(--text); }

/* ---------- 로그인·가입 ---------- */
.auth { padding-top: 32px; }
.auth h1 { margin-bottom: 4px; }
.auth-logo { display: block; width: 160px; height: auto; }
.auth .auth-title { margin-bottom: 24px; }
.auth form { margin-top: 16px; }
.auth .btn.main.block { margin-top: 8px; }
/* 로그인 (A안): PC는 옅은 바탕 위 흰 상자, 폰은 상자 없이 */
.login-links { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0 0; font-size: var(--fs-small); color: var(--sub); }
.login-links a { text-decoration: none; }
.login-links .join { color: var(--gunjeong); font-weight: 500; }
.doc-links { margin-top: 32px; text-align: center; font-size: var(--fs-small); color: var(--muted); }
.doc-links a { color: inherit; }
@media (min-width: 768px) {
  body:has(.login-card) { background: var(--soft); }
  .login-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px 24px; margin-top: 32px; }
  .login-card.auth { padding-top: 32px; }
}
/* 비밀번호 [보기] (app.js 가 모든 비밀번호 칸에 붙인다) */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); height: 28px; padding: 0 8px; border: 0; background: none;
  color: var(--sub); font-size: var(--fs-small); cursor: pointer; }
.pw-hint { font-size: var(--fs-small); color: var(--geumjeok); margin-top: 4px; }
.center { text-align: center; }
.auth p.center { margin: 16px 0 0; }
/* 가입 1단계: 업종 */
.industry-q { font-size: var(--fs-section); margin: 20px 0 4px; }
.industry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.industry-card { position: relative; text-align: left; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); padding: 12px; min-height: 92px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.industry-card b { font-size: 15px; font-weight: 500; margin-top: 18px; }
.industry-card span:last-child { font-size: var(--fs-small); color: var(--sub); line-height: 1.4; }
.industry-card.on { border: 2px solid var(--gunjeong); padding: 11px; }
.industry-card.on b { color: var(--gunjeong); }
.industry-card.wait b, .industry-card.wait span:last-child { color: #9a9a9a; }
.industry-card .tag-ok, .industry-card .tag-wait { position: absolute; top: 10px; left: 12px; font-size: 11px; border-radius: var(--radius); padding: 1px 6px; }
.tag-ok { background: #EDEFF5; color: var(--gunjeong); }
.tag-wait { background: #F0F0F0; color: #888; }
.wait-form { border: 1px solid var(--line); border-radius: 8px; background: var(--soft); padding: 14px; margin-bottom: 12px; }
.wait-form p { margin: 0 0 8px; }
.industry-chosen { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.industry-chosen b { font-weight: 500; }
#industryStep[hidden], #signupForm[hidden], .wait-form[hidden] { display: none; }
.find-result { margin-top: 20px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.find-result p { margin: 0 0 4px; }
.find-id { font-size: 22px; font-weight: 500; color: var(--gunjeong); }
@media (max-width: 767px) { .auth { padding-top: 16px; } }

/* ---------- 표: 모든 줄에 가로선, 세로선·바깥 상자 없음 ---------- */
table.list { border-collapse: collapse; table-layout: fixed; }
table.list th { font-weight: 400; font-size: var(--fs-small); color: var(--muted); text-align: left;
  padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line-strong); }
table.list td { height: var(--row-h); padding-right: 8px; border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 구역 구분 ---------- */
.bar { border-bottom: 1px solid var(--line-strong); margin: 12px 0; }
.row { display: flex; align-items: center; justify-content: space-between; min-height: var(--row-h);
  border-bottom: 1px solid var(--line); }

/* ---------- 알림 한 줄 (누르면 결과가 바로 보이게) ---------- */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: var(--radius); font-size: var(--fs-body); display: none; }
.toast.show { display: block; }

/* 운영 > 기록 도움 */
.preset-text { height: auto; min-height: 160px; padding: 8px 12px; line-height: 1.6; resize: vertical; max-width: 360px; }
.chip.over { border-color: var(--geumjeok); color: var(--geumjeok); }
.toolbar.helpers-ext { align-items: flex-end; margin-top: 40px; }
.helpers-check { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); max-width: 560px; }
.helpers-check h2 { margin-top: 0; }
.toolbar.helpers-ext h2 { margin-top: 0; }
table.list tr.off td { color: var(--muted); }

/* 숫자 칸: 오른쪽 정렬 + 자릿수 폭 같게 (세로로 줄이 맞게) */
.num, table.list th.num, table.list td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 통계 */
#customRange { margin: 0 0 8px; align-items: center; }
#customRange[hidden] { display: none; }
.stats-table { width: 100%; }
.stats-table tr.sum td { font-weight: 500; border-top: 1px solid var(--line-strong); }
.stat-bar-wrap { height: 8px; }
/* 통계 > 사고분·부족분 (2026-11-07) */
/* 기계 목록 엑셀 다시 올리기 미리보기 (2026-11-10 7단계) */
.mq-sync { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; margin: 10px 0 14px; background: var(--bg); }
.mq-sync h3 { margin: 0 0 6px; font-size: 16px; }
.mq-sync-head { font-weight: 500; margin: 0 0 8px; }
.mq-sync-part { margin: 4px 0; }
.mq-sync-part summary { cursor: pointer; padding: 3px 0; }
.mq-sync-part ul { margin: 2px 0 6px; padding-left: 20px; font-size: var(--fs-small); }
.mq-sync-part.add summary { color: #2f7d32; }
.mq-sync-part.warn summary { color: #9a5b00; }
.mq-sync-part.bad summary { color: #b23b2a; font-weight: 500; }
.mq-sync-part.muted summary { color: var(--sub); }
.redo-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 18px; }
.redo-card { background: #F5F6FA; border-radius: 8px; padding: 12px 14px; }
.redo-card-num { font-size: 22px; font-weight: 700; margin-top: 2px; }
@media (max-width: 760px) { .redo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-bar { height: 8px; border-radius: 2px; background: var(--gunjeong); }
.stat-bar.night { background: var(--muted); }
.stat-split { display: flex; gap: 2px; width: 100%; max-width: 240px; }
.stats-hint { margin: 6px 0 0; }
/* 통계 그래프 (assets/js/charts.js) */
.chart-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; margin: 4px 0 12px; }
.chart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.chart-title { font-weight: 500; font-size: 13px; flex: 1; }
.chart-pick { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.chart-pick button { border: 0; border-left: 1px solid var(--line-strong); background: var(--bg); font: inherit; font-size: var(--fs-small); padding: 4px 12px; color: var(--sub); cursor: pointer; }
.chart-pick button:first-child { border-left: 0; }
.chart-pick button.on { background: #EDEFF5; color: var(--gunjeong); font-weight: 500; }
.chart-svg { display: block; max-width: 680px; overflow: visible; }
.chart-svg text { font-family: var(--font); }
.chart-ax { fill: #52514e; font-size: 11px; }
.chart-val { fill: var(--text); font-size: 11px; font-weight: 500; }
.chart-total { fill: var(--text); font-size: 15px; font-weight: 500; }
.chart-grid { stroke: #ECEBE8; stroke-width: 1; }
.chart-base { stroke: #C9C8C3; stroke-width: 1; }
.chart-hit { cursor: default; }
.chart-hit:hover { opacity: .82; }
.chart-ax-h { font-size: var(--fs-small); color: var(--sub); margin: 4px 0 2px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-small); color: var(--sub); margin: 4px 0; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.chart-donuts { display: flex; flex-wrap: wrap; gap: 24px; }
.chart-donut { width: 220px; }
.chart-donut .chart-svg { width: 180px; }
.chart-empty { font-size: var(--fs-small); color: var(--muted); padding: 12px 0; }
.chart-tip { position: fixed; z-index: 50; display: none; background: #111; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: var(--radius); pointer-events: none; white-space: nowrap; }
@media print { .chart-pick { display: none; } }
.inbound-people { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.inbound-people .check { color: var(--text); }
/* 용지 입고 (작업목록 > 입고 · 폰 /inbound) */
.inbound-form { border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; margin: 12px 0 20px; }
.inbound-row { display: grid; grid-template-columns: 1.1fr 1.3fr .8fr .55fr 1.2fr .9fr .9fr auto; gap: 6px; align-items: end; }
.inbound-row .field { margin: 0; }
.inbound-row label { font-size: var(--fs-small); color: var(--muted); }
.inbound-row .input { width: 100%; }
.inbound-norm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.inbound-norm .ib-to { background: #EDEFF5; color: var(--gunjeong); font-weight: 500; border-radius: var(--radius); padding: 2px 8px; }
.inbound-norm.need { border: 1px solid var(--jeokhwang-edge); background: #FFFBE6; border-radius: var(--radius); padding: 8px 10px; }
.inbound-norm.need .btn { height: 30px; padding: 0 12px; }
.inbound-norm[hidden] { display: none; }
.inbound-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inbound-tools h2 { margin: 0; }
.inbound-q { width: 280px; }
.inbound-list td { white-space: nowrap; }
.ib-pair { white-space: normal !important; }
.ib-state { display: inline-block; font-size: 11.5px; border-radius: var(--radius); padding: 1px 6px; margin: 1px 4px 1px 0; }
.ib-state.ok { background: #EDEFF5; color: var(--gunjeong); }
.ib-state.maybe { background: #FFF6BF; color: #6b5600; }
.ib-state.none { background: #F0F0F0; color: #888; }
.ib-mark { display: inline-block; font-size: 11px; border-radius: var(--radius); padding: 0 6px; margin-left: 6px; background: #EDEFF5; color: var(--gunjeong); white-space: nowrap; }
.ib-mark.maybe { background: #FFF6BF; color: #6b5600; }
@media (max-width: 900px) { .inbound-row { grid-template-columns: 1fr 1fr; } .inbound-go { grid-column: 1 / -1; } .inbound-go .btn { width: 100%; } }
.inbound-phone .inbound-row { grid-template-columns: 1fr; }
.inbound-phone .inbound-go .btn { width: 100%; height: 48px; }
.inbound-phone .inbound-recent { margin-top: 24px; }
.inbound-phone .inbound-q { width: 100%; }
/* 현장 [시작] 때 여분 확인 */
.spare-box { margin-top: 10px; border: 1px solid var(--gunjeong); border-radius: 8px; padding: 10px; background: #F7F8FC; }
.spare-label { font-size: var(--fs-small); color: var(--sub); margin-bottom: 6px; }
.spare-line { display: flex; align-items: center; gap: 6px; }
.spare-in { width: 88px; text-align: right; font-size: 20px; font-weight: 500; }
.spare-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.spare-chips .chip.on { border-color: var(--gunjeong); color: var(--gunjeong); font-weight: 500; }
/* 멈춤: 작업 중 줄 아래 [확인 요청] (왼쪽) · [멈춤] (오른쪽 빨강) → 이유 고르기 칸 (현장 폰·오늘 화면) */
.job-links { display: flex; align-items: center; margin-top: 6px; }
.job-links .check-btn { margin: 0; }
.btn.text.stop-btn { margin-left: auto; padding: 0 8px; height: 32px; color: var(--geumjeok); font-weight: 600; }
.stop-box { margin-top: 10px; border: 1px solid var(--geumjeok); border-radius: 8px; padding: 10px; background: #FDF3F3; }
.stop-label { font-size: var(--fs-small); color: var(--sub); margin-bottom: 6px; }
.stop-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.stop-reasons .chip { padding: 10px 6px; }
.stop-reasons .chip.on { border: 2px solid var(--geumjeok); color: var(--geumjeok); font-weight: 600; padding: 9px 5px; }
.stop-memo { width: 100%; margin-bottom: 8px; }
.btn.danger-fill { background: var(--geumjeok); border-color: var(--geumjeok); color: #fff; }
.job-info.stop-why { color: var(--geumjeok); font-weight: 600; }
/* 오늘 화면: 줄 바로 아래 한 줄로 */
.stop-tr td { padding-top: 0; }
.stop-tr .stop-box { margin-top: 4px; }
.stop-tr .stop-reasons { display: flex; flex-wrap: wrap; }
.stop-tr .stop-line { display: flex; gap: 8px; align-items: center; }
.stop-tr .stop-memo { flex: 1; max-width: 420px; margin: 0; }
.overtime-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 13px; }
/* 오늘 화면: 나갈 인쇄물 한 줄 */
.today-ship { display: flex; align-items: center; gap: 12px; border: 1px solid var(--jeokhwang-edge); background: #FFFBE6; border-radius: var(--radius); padding: 8px 12px; margin: 0 0 12px; font-size: 13px; }
.today-ship a { margin-left: auto; white-space: nowrap; text-decoration: none; font-weight: 500; }
/* 작업목록 > 출고 */
.ship-group { border: 1px solid var(--line-strong); border-radius: 8px; margin: 12px 0 16px; overflow: hidden; }
.ship-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ship-head b { font-size: 15px; }
.ship-warn { font-size: var(--fs-small); background: #FDECEC; color: #B00010; border-radius: var(--radius); padding: 1px 6px; }
.ship-body { display: grid; grid-template-columns: 1fr 260px; gap: 12px; padding: 0 12px 12px 0; align-items: start; }
.ship-left { min-width: 0; }
.ship-table td, .ship-table th { padding-left: 12px; }
.ship-table tbody tr { cursor: pointer; }
.ship-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--gunjeong); }
.ship-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ship-pallets { width: 56px; height: 34px; text-align: right; font-size: 16px; font-weight: 500; border-color: var(--gunjeong); }
.ship-kakao { background: #B2C7D9; border-radius: 12px; padding: 10px; margin-top: 12px; }
.kakao-to { font-size: 11px; color: #3f5466; margin-bottom: 6px; }
.kakao-bub { background: #fff; border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.kakao-h { background: #FFE812; padding: 7px 10px; font-size: 12px; font-weight: 500; }
.kakao-c { padding: 10px; line-height: 1.6; }
.kakao-it { padding-left: 46px; }
.ship-items { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .ship-body { grid-template-columns: 1fr; padding-left: 12px; } }
/* 운영 > 회사: 회사 번호 */
.company-no { margin: 0 0 12px; }
.company-no b { font-weight: 500; letter-spacing: .02em; margin: 0 6px; font-variant-numeric: tabular-nums; }
/* 엑셀 탭 */
.export-box { max-width: 720px; }
.export-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.export-lb { width: 72px; font-size: var(--fs-small); color: var(--muted); }
.export-checks { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.export-checks .check, .export-row .check { color: var(--text); }
/* 실적 탭 */
.plan-rate { display: flex; align-items: center; gap: 8px; max-width: 240px; }
.plan-rate .stat-bar-wrap { flex: 1; background: #EEF0F6; border-radius: 2px; }
.plan-pct { width: 40px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.plan-day { position: relative; display: inline-block; vertical-align: middle; width: 220px; height: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 2px; }
.plan-day i { position: absolute; top: 0; height: 12px; background: var(--gunjeong); }
.stats-note { margin-top: 32px; }

/* 약관·개인정보처리방침 (lib/doc.php) */
.doc { max-width: 680px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 24px; }
.doc-logo { display: block; width: 80px; height: auto; }
.doc h2 { margin-top: 28px; }
.doc p, .doc li { line-height: 1.7; }
.doc ol, .doc ul { padding-left: 20px; margin: 4px 0; }
.doc-table { width: 100%; margin: 4px 0 8px; }
.doc-date { margin-top: 32px; color: var(--sub); }
.biz-footer { max-width: 680px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.7; font-size: 11px; } /* 사업자 정보: small(12px)보다 한 단계 작게 */
.page.narrow .biz-footer { text-align: center; }

/* 운영 > 회사 */
.company-sec { max-width: 560px; margin-bottom: 40px; }
.company-sec h2 { margin-top: 8px; }
.input.zip { max-width: 140px; }
.close-list { padding-left: 20px; margin: 4px 0 16px; line-height: 1.7; }
#closingBox p { margin: 0 0 8px; }
.transfer-notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.transfer-notice span { flex: 1; }

/* 랜딩 (views/landing.php) · 안내 (intro.php) — 한 장으로 단순하게 */
.landing { max-width: 720px; margin: 0 auto; }
.landing-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; border-bottom: 1px solid var(--line-strong); }
.landing-head a { color: var(--sub); text-decoration: none; font-size: var(--fs-small); }
.landing-logo { display: block; width: 80px; height: auto; }
.landing-hero { text-align: center; padding: 56px 0 40px; }
.landing-eyebrow { font-size: var(--fs-small); color: var(--sub); margin: 0 0 12px; }
.landing-hero h1 { font-size: 30px; line-height: 1.35; font-weight: 500; margin: 0 0 12px; }
/* "오늘까지만!" 노란 칠: 살짝 기울여 손으로 붙인 메모처럼 */
.landing-hero .hl { display: inline-block; transform: rotate(-2deg); padding: 2px 12px; border-radius: 6px; margin-top: 4px; }
.landing-hero .bang { display: inline-block; font-style: normal; transform: skewX(-14deg); margin-left: 2px; } /* 느낌표만 기울임 (글꼴에 기울임꼴이 없어 기울여 그림) */
.landing-lead { font-size: 16px; line-height: 1.7; margin: 0 0 4px; }
.landing-who { font-size: var(--fs-small); color: var(--muted); margin: 0 0 28px; }
.counter { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 32px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.counter[hidden], .counter-more[hidden] { display: none; }
.counter-num { font-size: 40px; font-weight: 500; color: var(--gunjeong); font-variant-numeric: tabular-nums; line-height: 1.15; }
.counter-cap { font-size: var(--fs-small); color: var(--sub); }
.dot.live { margin-right: 6px; animation: live 1.6s infinite; }
@keyframes live { 50% { opacity: .35; } }
.counter-more { display: flex; justify-content: center; gap: 32px; font-size: var(--fs-small); color: var(--sub); margin: 8px 0 0; }
.counter-more b { display: block; font-size: 18px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.landing-btns { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.landing-free { font-size: var(--fs-small); color: var(--sub); margin: 12px 0 0; }
.landing-free b { color: var(--gunjeong); font-weight: 600; }
.landing-btns .btn { display: inline-flex; align-items: center; height: 44px; padding: 0 24px; text-decoration: none; }
.intro-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 32px; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 16px; }
.intro-links a { color: var(--sub); text-decoration: none; padding: 4px 0; }
.intro-links a:hover { color: var(--text); }
.intro-links a.on { color: var(--text); font-weight: 500; }
.intro-links a.intro-how { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.intro-play { width: 18px; height: 18px; border-radius: 50%; background: var(--geumjeok); display: inline-flex; align-items: center; justify-content: center; flex: none; } /* 빨간 동그라미 재생 그림 (유튜브 로고와 다른 모양) */
.intro-play::after { content: ''; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px; }
@media (max-width: 767px) { .intro-links a.intro-how { justify-content: center; } }
.landing + .biz-footer { margin: 40px auto 0; max-width: 720px; }
.intro h1 { margin: 8px 0 8px; }
.intro-back { margin: 20px 0 0; font-size: var(--fs-small); }
.intro-back a { color: var(--sub); text-decoration: none; }
/* 인쇄 계산기 (calc.php) — 인쇄용지량 계산기 · 책등 계산기 (docs/mockups/25). 책등만이면 용지량 칸(.po)을 숨김 */
.calc-tabs { margin: 16px 0 8px; }
.calc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.calc-btns { display: flex; gap: 8px; margin-top: 12px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 12px; }
.calc-grid .wide { grid-column: 1 / -1; }
.calc-grid .seg { gap: 6px; }
.calc-grid .seg button { flex: 1 0 auto; min-width: 56px; }
.calc-grid .seg button.on { font-weight: 600; background: var(--soft); }
.calc-grid #cColor { display: grid; grid-template-columns: repeat(6, 1fr); } /* 색도 6개: PC 한 줄, 폰 3개씩 두 줄 */
@media (max-width: 767px) { .calc-grid #cColor { grid-template-columns: repeat(3, 1fr); } }
.calc-need { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--geumjeok); margin: 0 0 2px 4px; vertical-align: middle; } /* 꼭 넣는 칸 */
.calc-wh { display: flex; align-items: center; gap: 8px; max-width: 320px; } /* 완성규격 가로 × 세로: 두 칸 다 숫자 자판 */
.calc-wh .input { flex: 1; min-width: 0; text-align: center; }
.calc-wh span { color: var(--sub); flex: none; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.calc-chips button { border: 1px solid var(--line); background: var(--soft); border-radius: 16px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--sub); cursor: pointer; }
.calc-chips button.on { border-color: var(--gunjeong); color: var(--gunjeong); font-weight: 500; }
.calc-more { border-top: 1px solid var(--line); margin: 0 0 16px; }
.calc-more summary { list-style: none; cursor: pointer; padding: 12px 0; color: var(--sub); font-size: var(--fs-small); }
.calc-more summary::-webkit-details-marker { display: none; }
/* 펼침 표시: 군청 세모 (글자 ▾는 글꼴 따라 작게 나와서 도형으로 그림). 펼치면 위로 */
.calc-more summary::after { content: ''; display: inline-block; margin-left: 8px; vertical-align: 2px;
  border-top: 8px solid var(--gunjeong); border-left: 6px solid transparent; border-right: 6px solid transparent; }
.calc-more[open] summary::after { border-top: 0; border-bottom: 8px solid var(--gunjeong); }
.calc-send { display: flex; gap: 8px; margin-top: 16px; max-width: 420px; }
.calc-send .btn { flex: 1; height: 46px; }
.calc-send-hint { margin: 6px 0 0; }
.calc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-box { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px; }
.calc-box h3 { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--gunjeong); }
.calc-big { font-size: 22px; font-weight: 600; margin: 4px 0; font-variant-numeric: tabular-nums; }
.calc-box .sub { line-height: 1.7; margin: 0; }
.calc-table { border-collapse: collapse; width: 100%; font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.calc-table th, .calc-table td { border-top: 1px solid var(--line); padding: 5px 6px; text-align: right; }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table th { color: var(--sub); font-weight: 400; }
.calc-warn { color: var(--geumjeok); font-size: 12px; margin: 8px 0 0; }
/* 폰 바탕화면에 곰노트 두기 (calc.php #home, 폰에서만) — 왼쪽 순서, 오른쪽 작은 폰 그림 + 빨간 점(누를 곳) */
.calc-home { display: flex; gap: 16px; align-items: center; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.calc-home[hidden] { display: none; }
.calc-home h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.calc-home .sub { margin: 0 0 8px; line-height: 1.6; }
.calc-home ol { margin: 0; padding-left: 20px; line-height: 1.9; }
.calc-home ol b { color: var(--gunjeong); }
.calc-home-phone { position: relative; flex: none; width: 62px; height: 112px; border: 4px solid #222; border-radius: 12px; background: #fff; }
.calc-home-phone .t, .calc-home-phone .b { position: absolute; left: 0; right: 0; height: 14px; background: #eee; }
.calc-home-phone .t { top: 0; } .calc-home-phone .b { bottom: 0; }
.calc-home-phone .tap { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 3px solid var(--geumjeok); border-radius: 50%; animation: live 1.2s infinite; }
.calc-home-phone.tr .tap { left: 44px; top: 7px; }
.calc-home-phone.br .tap { left: 44px; top: 97px; }
.calc-home-phone.bc .tap { left: 27px; top: 97px; }
@media print { .calc-home { display: none !important; } }
.calc-next { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--sub); }
.calc-next a { color: var(--gunjeong); font-weight: 500; }
.calc.mode-spine .po { display: none; }
.calc:not(.mode-spine) .sp { display: none; }
.calc-faq { margin-top: 24px; }
.calc-faq h2 { font-size: 17px; margin: 0 0 6px; }
.calc-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.calc-faq summary { font-weight: 500; cursor: pointer; }
.calc-faq details p { margin: 8px 0 0; line-height: 1.7; }
.calc-faq .calc-faq-ex { background: var(--soft); border-radius: var(--radius); padding: 8px 12px; font-size: var(--fs-small); }
@media print { .calc-faq { display: none !important; } }
.calc.mode-spine .calc-res { grid-template-columns: 1fr; max-width: 420px; }
@media (max-width: 767px) { .calc-grid, .calc-res { grid-template-columns: 1fr; } }
@media print { .calc-tabs, .calc-chips, .calc-next, .calc-send-hint, .intro-back, .landing-head { display: none !important; } }
/* 랜딩 소제목 링크 줄 바로 위: 인쇄 계산기 (글자 크기는 "이렇게 써요" 줄과 같게, 랜딩 주인공은 작업일지 그대로) */
/* 2026-11-15: 두 계산기 카드 좌우 나란히 (폰에서도 두 칸) */
.calc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 28px auto 0; }
.calc-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--gunjeong); text-decoration: none; text-align: center; }
.calc-card:hover { border-color: var(--gunjeong); }
.calc-card b { font-size: 16px; font-weight: 700; }
.calc-card small { font-size: 12px; color: var(--muted); }
@media (max-width: 767px) { .calc-card b { font-size: 15px; } }
.landing + .biz-footer.short { text-align: center; margin-top: 28px; }
/* 업종별 예시 (2026-11-21, views/landing.php #ex): 작업목록 → 작업일지 나란히. 폰에서는 위아래로 */
.ex { max-width: 860px; margin: 8px auto 0; padding: 28px 16px; border-top: 1px solid var(--line); text-align: center; }
.ex-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.ex-tabs { display: inline-flex; gap: 6px; margin-bottom: 16px; }
.ex-tabs button { height: 40px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 20px; background: #fff; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.ex-tabs button.on { background: var(--gunjeong); border-color: var(--gunjeong); color: #fff; font-weight: 600; }
.ex-pair { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 8px; }
.ex-shot { display: block; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; cursor: zoom-in; font: inherit; color: var(--sub); overflow: hidden; }
.ex-shot:hover { border-color: var(--gunjeong); }
.ex-shot img { display: block; width: 100%; height: auto; }
.ex-shot span { display: block; padding: 6px 4px; font-size: var(--fs-small); border-top: 1px solid var(--line); }
.ex-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--gunjeong); font-size: 12px; line-height: 1.3; }
.ex-mid b { font-weight: 600; }
.ex-mid i { font-style: normal; font-size: 22px; }
.ex-who { margin: 14px 0 12px; color: var(--sub); word-break: keep-all; }
.ex-who b { color: var(--text); font-weight: 600; } /* "○○ 작업일지" (구글 검색 말, 2026-11-21 맨 아래 세 줄을 여기로) */
.ex-btns { display: flex; justify-content: center; gap: 8px; }
.ex-btns .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; text-decoration: none; }
.ex-note { margin: 10px 0 0; font-size: var(--fs-small); color: var(--muted); }
.ex-big { width: min(1100px, 96vw); max-height: 92vh; padding: 12px; border: 0; border-radius: var(--radius); }
.ex-big::backdrop { background: rgba(0, 0, 0, .6); }
.ex-close { position: sticky; top: 0; float: right; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font: inherit; cursor: pointer; }
.ex-big-in img { display: block; width: 100%; height: auto; margin: 0 0 12px; border: 1px solid var(--line); }
@media (max-width: 767px) {
  .ex-pair { grid-template-columns: minmax(0, 1fr); }
  .ex-mid { flex-direction: row; justify-content: center; gap: 6px; }
  .ex-mid br { display: none; }
  .ex-mid i { transform: rotate(90deg); }
  .ex-tabs button { padding: 0 16px; }
}
/* 해 보는 곳: 작업목록 엑셀 받기 (2026-11-21) — 위의 "보는 곳"과 나눠 작은 상자로 */
.ex-try { max-width: 480px; margin: 20px auto 0; padding: 14px 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--soft); }
.ex-try-t { margin: 0 0 10px; font-weight: 600; color: var(--text); }
.ex-xl { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; font-size: 12px; text-align: left; }
.ex-xl th, .ex-xl td { border: 1px solid var(--line-strong); padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-xl th { background: #EEF2FA; color: var(--gunjeong); font-weight: 600; }
.ex-xl tr > :first-child { width: 26px; text-align: center; color: var(--muted); background: var(--soft); }
.ex-xl td.hint { color: var(--muted); }
.ex-try-s { margin: 10px 0 12px; font-size: var(--fs-small); color: var(--sub); word-break: keep-all; }
@media print { .ex { display: none !important; } }
/* 결과 예시 배지: 인쇄용지량 = 군청 R · 책등 = 노랑 mm */
.calc-badge { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 8px; border-radius: 5px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 배지 상자는 그대로, 안의 값만 겹쳐 바뀜: 예전 값이 흐려지는 동안 새 값이 같은 자리에서 진해짐 (1초) */
.calc-badge .v { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 1.2s ease-in-out; }
.calc-badge .sz { visibility: hidden; } /* 가장 긴 값만큼 자리를 잡아 둠 */
.calc-badge.r { min-width: 56px; } .calc-badge.mm { min-width: 64px; } /* 값이 바뀌어도 폭 그대로 (뒤 글자가 들썩이지 않게) */
.calc-badge.r { background: var(--gunjeong); color: #fff; }
.calc-badge.mm { background: var(--jeokhwang); color: var(--gunjeong); }
/* 그 아래 작은 한 줄: 폰에서만 (PC에서는 바탕화면에 둘 일이 없어서) — 계산기 아래 안내 상자로 */
.home-link { display: none; text-align: center; font-size: var(--fs-small); color: var(--muted); margin: 14px 0 -4px; }
.home-link a { color: var(--gunjeong); text-decoration: none; }
@media (max-width: 767px) { .home-link { display: block; } }
.intro-rows { list-style: none; padding: 0; margin: 16px 0 0; }
.intro-rows li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.intro-rows li b { display: block; font-weight: 500; margin-bottom: 4px; }
.intro-rows li span { color: var(--sub); line-height: 1.7; }
ol.intro-rows { counter-reset: step; }
ol.intro-rows li > b::before, ol.intro-rows li > div:first-child > b::before { counter-increment: step; content: counter(step) ". "; color: var(--gunjeong); } /* 줄 제목에만 (그림 속 b 에는 번호 없음) */
/* 소개 > 이렇게 써요: 글 + 오른쪽 움직이는 작은 그림 (assets/js/intro-how.js) */
.how-rows li { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: center; }
.how-rows li > div > b, .how-rows li > div > span { display: block; }
.how-scene { height: 170px; border: 1px solid var(--line); border-radius: 8px; background: #FAFBFD; position: relative; overflow: hidden; font-size: 11px; }
.how-cap { position: absolute; left: 8px; bottom: 5px; font-size: 10px; color: var(--muted); }
.how-file { position: absolute; left: 14px; top: 60px; width: 42px; height: 52px; background: #1E7B45; border-radius: 4px; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform .9s ease; }
.how-drop { position: absolute; left: 92px; top: 34px; width: 82px; height: 100px; border: 2px dashed var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 10px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; transition: border-color .3s; }
.how-paper { position: absolute; right: 12px; top: 20px; width: 64px; height: 124px; background: #fff; border: 1px solid var(--line-strong); border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.08); padding: 5px; opacity: 0; transform: translateY(16px); transition: all .6s ease; }
.how-qr { float: right; width: 16px; height: 16px; background: repeating-linear-gradient(90deg, #111 0 3px, #fff 3px 5px); }
.how-paper i { display: block; clear: both; height: 4px; background: #E6E6E6; margin: 5px 0; border-radius: 2px; }
.how-s1.go .how-file { transform: translate(104px, -4px) scale(.9); }
.how-s1.go .how-drop { border-color: var(--gunjeong); }
.how-s1.done .how-paper { opacity: 1; transform: none; }
.how-phone { position: absolute; left: 50%; top: 8px; margin-left: -60px; width: 120px; height: 152px; border: 3px solid #222; border-radius: 15px; background: #fff; padding: 12px 7px 7px; }
.how-row { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 5px 1px; border-bottom: 1px solid var(--line); font-size: 10px; white-space: nowrap; }
.how-btn { font-size: 9px; border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 5px; background: #fff; transition: all .25s; }
.how-btn.main { background: var(--gunjeong); border-color: var(--gunjeong); color: #fff; }
.how-btn.done { border-color: transparent; color: var(--gunjeong); font-weight: 700; }
.how-qrbig { position: absolute; inset: 12px 7px 7px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--sub); font-size: 10px; transition: opacity .4s; }
.how-qrbig b { width: 46px; height: 46px; border: 4px solid #111; background: conic-gradient(#111 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0 / 12px 12px; }
.how-finger { position: absolute; left: calc(50% + 34px); top: 24px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gunjeong); background: rgba(27,58,140,.25); opacity: 0; transition: opacity .3s; }
.how-finger.show { opacity: 1; }
.how-sheet { position: absolute; inset: 12px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 10px; }
.how-sheet h4 { margin: 0 0 5px; font-size: 11px; font-weight: 500; border-bottom: 1.5px solid #111; padding-bottom: 3px; display: flex; justify-content: space-between; }
.how-sheet h4 span { font-weight: 400; color: var(--sub); font-size: 9px; }
.how-ln { display: flex; gap: 5px; font-size: 9px; padding: 3px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-8px); transition: all .45s ease; white-space: nowrap; }
.how-ln.on { opacity: 1; transform: none; }
.how-ln b { width: 52px; font-weight: 400; color: var(--sub); margin: 0; }
.how-ln span { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.how-ln em { font-style: normal; width: 40px; text-align: right; }
@media (max-width: 600px) { .how-rows li { grid-template-columns: 1fr; } .how-scene { max-width: 300px; } }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.price-card { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px; }
.price-card.on { border: 2px solid var(--gunjeong); }
.price-card b { display: block; font-size: 20px; font-weight: 500; margin: 4px 0 8px; }
.price-card b.ask { font-size: 18px; margin-top: 10px; }
.price-card ul { margin: 0; padding-left: 18px; color: var(--sub); line-height: 1.8; }
.intro-cta { margin: 32px 0 24px; }
@media (max-width: 767px) {
  .landing-hero { padding: 40px 0 32px; }
  .landing-hero h1 { font-size: 24px; }
  .landing-btns { flex-direction: column; }
  .landing-btns .btn { justify-content: center; }
  .intro-links { display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 4px 12px; }
  .price-cards { grid-template-columns: 1fr; }
}

/* 인쇄 · PDF (일지·내 일지) — 화면용 메뉴·단추는 숨기고 머리·표만 */
.print-head { display: none; }
.toolbar-btns { display: flex; gap: 8px; }
.print-btn { margin-top: 16px; }
@media print {
  body { background: #fff; }
  .page, .page.narrow { max-width: none; padding: 0; }
  .nav, .tabs, .toolbar, .btn, .field-head, .field-foot, .mylog-date, .log-note, .notice, .form-error,
  .biz-footer, .doc-links, .transfer-notice, .toast { display: none !important; }
  .print-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    border-bottom: 1.5px solid #111; padding-bottom: 6px; margin-bottom: 8px; }
  .print-head b { font-size: 16pt; font-weight: 600; }
  .print-head span { font-size: 10pt; color: #444; }
  .log-head { margin-top: 14px; break-after: avoid; font-size: 11pt; }
  table.list { width: 100%; font-size: 9pt; }
  table.list td { height: auto; padding: 4px 6px 4px 0; white-space: normal; overflow: visible; }
  table.list tr, .job-row { break-inside: avoid; }
  .tag { border-color: #999; }
}

/* 습도 (lib/weather.php) */
.wx { font-size: var(--fs-small); color: var(--sub); font-variant-numeric: tabular-nums; }
.wx .hl { padding: 0 4px; }
.today-right { display: flex; align-items: center; gap: 16px; }
.log-wx { margin: 4px 0 0; }
.log-wx:empty { display: none; }
@media print { .log-wx { margin: 0 0 6px; color: #444; } }
.humid-row { align-items: center; gap: 8px; flex-wrap: wrap; }
.humid-row .input.num-in { flex: none; width: 64px; text-align: right; }

/* 오늘 — 기계별 대시보드 (작업 하나 = 네모 한 칸) */
.dash { margin: 4px 0 24px; }
.dash[hidden] { display: none; }
.dash-big { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 12px; }
.dash-k { display: flex; flex-direction: column; }
.dash-k b { font-size: 28px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-k b small { font-size: 16px; color: var(--muted); font-weight: 400; }
.dash-k span { font-size: var(--fs-small); color: var(--sub); }
.dash-k.navy b { color: var(--gunjeong); }
.dash-k.yellow b { color: #B38F00; }
.dash-k.red b { color: var(--geumjeok); }
.dash-live { margin-left: auto; font-size: var(--fs-small); color: var(--muted); }
.dash-live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gunjeong); margin-right: 6px; animation: live 2s infinite; }
.dash-row { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; column-gap: 12px; row-gap: 2px;
  padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.dash-row:hover { background: var(--soft); }
.dash-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash-name b { font-size: 15px; font-weight: 500; white-space: nowrap; }
.dash-name small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lamp { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--line-strong); }
.lamp.lamp-work { background: var(--gunjeong); }
.lamp.lamp-check { background: var(--jeokhwang); border: 1px solid var(--jeokhwang-edge); }
.lamp.lamp-stop { background: var(--geumjeok); }
.tiles { display: flex; flex-wrap: wrap; gap: 3px; }
.tiles .t { width: 18px; height: 18px; border-radius: 3px; background: var(--line); box-sizing: border-box; }
.tiles .t.d { background: var(--gunjeong); }
.tiles .t.w { background: var(--bg); border: 2.5px solid var(--gunjeong); animation: live 1.4s infinite; }
.tiles .t.c { background: var(--jeokhwang); border: 1px solid var(--jeokhwang-edge); }
.tiles .t.h { background: #FFF3A6; border: 1px dashed var(--jeokhwang-edge); }
.tiles .t.s { background: var(--geumjeok); }
.dash-row .pct { font-size: 18px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.dash-row .pct.zero { color: var(--muted); }
.dash-row .who { grid-column: 2 / 4; font-size: var(--fs-small); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row .who.stop { color: var(--geumjeok); }
.dash-row .who.muted { color: var(--muted); }

.date-show { white-space: nowrap; }
.stats-off { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; max-width: 560px; }
.stats-off p { margin: 0 0 6px; }

/* 소식 (news.php) · 도움말 (help.php) */
.news, .help { max-width: 720px; }
.news-list { margin-top: 16px; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-date { color: var(--muted); font-size: var(--fs-small); padding-top: 2px; }
.news-item b { font-weight: 500; }
.news-item p { margin: 4px 0 0; color: var(--sub); line-height: 1.7; }
.news-new { margin-left: 8px; font-size: 11px; background: var(--jeokhwang); padding: 0 4px; border-radius: 2px; vertical-align: 2px; }
.news-btns { display: flex; gap: 8px; margin: 20px 0 6px; }
.news-btns .btn { display: inline-flex; align-items: center; text-decoration: none; }
.news-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 4px;
  border-radius: 8px; background: var(--gunjeong); color: #fff; font-size: 10px; font-weight: 500; line-height: 1; vertical-align: 2px; font-variant-numeric: tabular-nums; }
.help-steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: step; }
.help-steps li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.help-steps li b { display: block; font-weight: 500; margin-bottom: 4px; }
.help-steps li b::before { counter-increment: step; content: counter(step) ". "; color: var(--gunjeong); }
.help-steps li span { color: var(--sub); line-height: 1.7; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 8px 0 0; color: var(--sub); line-height: 1.7; }
.help-share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.help-ask { margin-top: 28px; }
@media (max-width: 767px) { .news-item { grid-template-columns: 1fr; gap: 2px; } }

/* 짝수 줄 아주 옅은 바탕 (가독성) — 목록 표 전체 */
table.list tbody tr:nth-child(even) td { background: #FAFAFA; }

/* 일지 고치기 (assets/js/logs-day.js) */
.edit-cell { text-align: right; }
.edit-row td { background: #F7F9FF !important; height: auto; white-space: normal; overflow: visible; padding: 12px 8px; }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.edit-grid .field { margin-bottom: 8px; }
.range-in { align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--sub); white-space: nowrap; }
.range-in .input { width: 64px; flex: none; text-align: right; }
.edit-reason { flex: 1; max-width: 320px; }
.tag.ed { border-color: var(--jeokhwang-edge); background: #FFF8D6; color: #7a5f00; }
@media print { .edit-row, .edit-cell { display: none !important; } }
.edit-form .form-actions { flex-wrap: wrap; }

/* 마이크 (그룹웨어 작업일지 특이사항 마이크와 같은 모양) */
.mic-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 6px;
  border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #555; cursor: pointer; vertical-align: middle; padding: 0; }
.mic-btn:hover { background: #f0f0f0; }
.mic-btn.is-listening { background: var(--geumjeok); border-color: var(--geumjeok); color: #fff; animation: micPulse 1.2s infinite; }
@keyframes micPulse { 0% { box-shadow: 0 0 0 0 rgba(230, 0, 18, .5); } 70% { box-shadow: 0 0 0 8px rgba(230, 0, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(230, 0, 18, 0); } }
.notes-input { height: auto; min-height: 84px; padding: 8px 12px; line-height: 1.7; resize: vertical; }
.submit-notes label { display: flex; align-items: center; margin-bottom: 6px; }

/* 일지 장 (views/logs-sheet.php) */
.sheet-tools { margin-bottom: 8px; }
.sheet-page { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; background: var(--bg); }
.sheet-hd { display: grid; grid-template-columns: 1fr auto; gap: 8px; border-bottom: 1.5px solid var(--text); padding-bottom: 8px; margin-bottom: 4px; }
.sheet-hd h3 { margin: 0; font-size: 18px; font-weight: 500; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-small); color: var(--sub); margin-top: 4px; }
.sheet-meta b { font-weight: 500; color: var(--text); }
.sheet-rt { text-align: right; font-size: var(--fs-small); color: var(--sub); }
.sheet-rt .pg { color: var(--text); font-weight: 500; font-size: 13px; }
.sheet-rt .pending, td.pending { color: #B38F00; }
.sheet-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.sheet-table th { font-weight: 400; font-size: var(--fs-small); color: var(--sub); text-align: left; border-bottom: 1px solid var(--text); padding: 5px 4px; }
.sheet-table th.num { text-align: right; }
.sheet-table th.c, .sheet-table td.c { text-align: center; }
.sheet-table td { height: 26px; padding: 0 4px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-table tbody tr:nth-child(even) td { background: #FAFAFA; }
.sheet-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-table .tag { margin-left: 6px; }
.sheet-table tfoot td { height: 28px; padding: 0 4px; border-top: 1px solid var(--text); font-weight: 500; white-space: nowrap; }
.sheet-sum { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; margin-top: 8px; }
.sheet-notes { margin-top: 12px; }
.notes-label { display: flex; align-items: center; font-size: var(--fs-small); color: var(--sub); margin-bottom: 6px; }
.notes-text { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 12px; min-height: 76px; line-height: 1.7; white-space: pre-wrap; font-size: 13px; }
.sheet-list-box { margin-top: 32px; }
.sheet-list-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-list-head h2 { margin: 0 8px 0 0; }
.sheet-list-head .muted { margin-left: auto; }
.sheet-list { width: 100%; min-width: 840px; margin-top: 8px; } /* 작업자 칸이 남는 너비를 갖고, 제출(날짜·요일·시각)은 잘리지 않게 */
.sheet-list tbody tr { cursor: pointer; }
.sheet-list tbody tr.cur td { background: #EEF2FB; }
.sheet-acts { text-align: right; white-space: nowrap; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.pager-btn { min-width: 34px; height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--sub); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.pager-btn.on { background: var(--gunjeong); border-color: var(--gunjeong); color: #fff; }
.pager-btn:disabled { color: var(--line-strong); cursor: default; }
@media print {
  .sheet-list-box, .sheet-tools, .edit-row, .edit-cell, .mic-btn, .sheet-notes .form-actions { display: none !important; }
  /* 종이 여백 0 (logs-sheet.js 가 이 화면에만 @page 를 넣는다): 브라우저가 맨 위·아래에 날짜·제목·주소를 찍을 자리가 없다. 여백은 장 안쪽 10mm */
  .sheet-page { border: 0; padding: 10mm 10mm 12mm; margin: 0; break-after: page; width: 297mm; height: 208mm; position: relative; overflow: hidden; } /* 210mm 꽉 채우면 반올림으로 빈 장이 하나 더 생겨서 2mm 여유 */
  .sheet-foot { display: block !important; position: absolute; right: 10mm; bottom: 4mm; font-size: 8pt; color: #999; }
  .sheet-foot b { color: #666; font-size: 9pt; font-weight: 600; }
  .sheet-page:last-of-type { break-after: auto; }
  .sheet-table { font-size: 10pt; }
  /* A4 가로 한 장 (2026-10-21 재어 맞춤): 머리 ~17 + 칸 제목 7 + 20행 × 6.4 (128) + 합계 6.4 + 합계 글 ~5 + 특이사항 3줄 18 → 꼬리말 바로 위까지 */
  .sheet-table td { height: 6.4mm; }
  .sheet-table th { padding-top: 3px; padding-bottom: 3px; }
  .sheet-table tfoot td { height: 6.4mm; }
  .sheet-hd { padding-bottom: 2mm; margin-bottom: 1mm; }
  .notes-text { min-height: 17.5mm; padding: 1mm 3mm; line-height: 1.5; } /* 특이사항 3줄 */
  .notes-label { margin-bottom: 1mm; line-height: 1.3; }
  .sheet-notes { margin-top: 1.5mm; }
  .sheet-sum { margin-top: 1mm; line-height: 1.3; }
  .sheet-table tbody tr:nth-child(even) td { background: #F4F4F4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- 일지 > 찾기 · 대 지도 ---------- */
.search-form { max-width: 720px; margin-bottom: 16px; }
.search-cond { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.search-lb { width: 40px; font-size: var(--fs-small); color: var(--muted); }
.search-cond .inline-select { margin-left: 0; width: 120px; }
.search-q { width: 240px; height: 32px; }
.search-add { margin: 0 0 8px 40px; color: var(--gunjeong); }
.search-list tbody tr.search-row { cursor: pointer; }
.search-list tr.cur td { background: #EDEFF5 !important; }
.search-more { text-align: center; margin-top: 12px; }
.mark { background: #FFF6BF; border-radius: 2px; }
.state-tag { font-size: var(--fs-small); padding: 1px 6px; border-radius: var(--radius); background: var(--soft); color: var(--sub); white-space: nowrap; }
.state-tag.done { background: #EDEFF5; color: var(--gunjeong); }
.map-row > td { background: #fff !important; padding: 12px 8px 20px; }
.dae-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.dae-head b { font-size: var(--fs-section); }
.dae-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-small); color: var(--sub); margin-bottom: 8px; }
.dae-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.dae-grid { display: grid; grid-template-columns: repeat(10, 44px); gap: 4px; margin-bottom: 8px; }
.dae-grid.jjok { grid-template-columns: repeat(10, 48px); }
.dae-cell { height: 36px; border: 0; border-radius: var(--radius); font: inherit; font-size: var(--fs-small); font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; }
.dae-cell.empty { background: var(--soft); color: var(--muted); border: 1px dashed var(--line-strong); }
.dae-cell.sel { outline: 2px solid var(--geumjeok); outline-offset: 1px; }
.dae-tip { border: 1px solid var(--geumjeok); border-radius: var(--radius); padding: 6px 12px; font-size: 13px; margin-bottom: 10px; display: inline-block; }
.dae-tip[hidden] { display: none; }
.dae-table { max-width: 680px; margin-bottom: 6px; }

/* 운영 > 작업목록 양식: 회사 엑셀로 맞추기 */
.xl-drop { padding: 28px 16px; text-align: center; margin-bottom: 16px; }
.xl-drop p { margin: 4px 0; }
.map-summary { background: var(--soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; font-size: var(--fs-body); }
.map-summary b { color: var(--gunjeong); }
.map-table td { vertical-align: middle; }
.map-table td.name { font-weight: 500; white-space: nowrap; }
.map-table td.ex span { display: inline-block; background: var(--soft); border-radius: 4px; padding: 1px 6px; margin: 1px 4px 1px 0; font-size: var(--fs-small); color: var(--sub); }
.map-table tr.ask td { background: #FFFCEB; }
.map-table .why { font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.mean-sel { width: auto; min-width: 150px; color: var(--gunjeong); border-color: var(--gunjeong); }
.mean-sel.view { color: var(--sub); border-color: var(--line-strong); }
.mean-sel.skip { color: var(--muted); border-color: var(--line); }
.mean-tag { color: var(--gunjeong); }
.pick-title { font-size: var(--fs-section); margin: 24px 0 8px; font-weight: 600; }
/* 운영 > 작업일지 양식: 칸 고르기 + 미리보기 */
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--sub); cursor: pointer; font: inherit; }
.pick.on { border-color: var(--gunjeong); color: var(--gunjeong); background: #EEF2FB; font-weight: 500; }
.pick.add { border-style: dashed; }
.log-sheet { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px; }
.log-sheet-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; color: var(--gunjeong); margin-bottom: 8px; }
.log-pv { border-collapse: collapse; font-size: var(--fs-small); width: max-content; min-width: 100%; }
.log-pv th, .log-pv td { border: 1px solid var(--line); padding: 5px 8px; white-space: nowrap; }
.log-pv th { background: #EDEFF5; color: var(--gunjeong); font-weight: 500; }
.log-pv th.src-system { background: #F0F0F0; color: var(--sub); }
.log-pv th.src-field { background: #FFF6BF; color: #6b5600; }
.log-pv td.num { text-align: right; }
.log-pv tr.sum td { font-weight: 500; background: var(--soft); }

/* 작업목록 > 목록: 줄을 누르면 작업들이 펼쳐짐 */
table.list tr.list-row { cursor: pointer; }
table.list tr.list-row:hover td { background: var(--soft); }
table.list tr.list-row .fold { color: var(--muted); display: inline-block; width: 14px; }
table.list tr.list-more > td { height: auto; padding: 8px 0 16px; background: #fff; }
.list-jobs { overflow-x: auto; }
.jobs-mini { border-collapse: collapse; font-size: var(--fs-small); width: max-content; min-width: 100%; }
.jobs-mini th, .jobs-mini td { border-bottom: 1px solid var(--line); padding: 5px 10px 5px 0; white-space: nowrap; text-align: left; }
.jobs-mini th { color: var(--muted); font-weight: 400; }
.jobs-mini td.num, .jobs-mini th.num { text-align: right; }
.jobs-mini tr.after td { color: var(--muted); }
.jobs-mini .job-state { margin-left: 0; }
table.list .jobs-mini td { height: auto; background: #fff; }
table.list tbody tr.list-more:nth-child(even) > td { background: #fff; }
/* 펼친 작업 표: 세로선도 (칸 구분이 잘 보이게) */
.jobs-mini { border: 1px solid var(--line-strong); }
.jobs-mini th, .jobs-mini td { border: 1px solid var(--line-strong); padding: 5px 8px; }
.jobs-mini th { background: var(--soft); text-align: center; }

/* 현장: 통수·판수 한 줄 + 고치기 */
.counts-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.counts-line .btn.text { height: auto; padding: 0 4px; }
.counts-field { display: flex; flex-direction: column; gap: 2px; width: 120px; }
.counts-field .input { height: 40px; text-align: right; }

/* 작업일지 장: 세로선 (칸 구분이 잘 보이게) */
.sheet-table { border: 1px solid var(--line-strong); }
.sheet-table th, .sheet-table td, .sheet-table tfoot td { border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); padding-left: 6px; padding-right: 6px; }
.sheet-table th { background: var(--soft); text-align: center; }
/* 종이에서는 작업목록 출력(print.css)과 같은 진하기: 바깥 검정 · 칸 회색 (옅은 회색은 흑백 프린터에서 잘 안 보임) */
@media print {
  .sheet-table { border: 0.3mm solid #111; }
  .sheet-table th { border: 0.1mm solid #BDBDBD; border-top: 0.3mm solid #111; border-bottom: 0.3mm solid #111; background: none; } /* 세로선은 가로선보다 가늘게 */
  .sheet-table td { border-left: 0.1mm solid #BDBDBD; border-right: 0.1mm solid #BDBDBD; border-bottom: 0.2mm solid #BDBDBD; }
  .sheet-table tfoot td { border-top: 0.3mm solid #111; border-bottom: 0.3mm solid #111; }
  .sheet-table tr > :first-child { border-left: 0.3mm solid #111; } .sheet-table tr > :last-child { border-right: 0.3mm solid #111; } /* 바깥 테두리는 검정 그대로 */
}
/* 작업일지 양식: 늘 있는 칸 (끌 수 없음) */
.pick.locked { cursor: default; border-style: solid; background: #E8ECF7; }
.pick.locked::after { content: ' ·고정'; font-size: 11px; color: var(--muted); font-weight: 400; }
/* 작업일지 양식 미리보기: 항목명 끌어 옮기기 */
.log-pv th.drag { cursor: grab; }
.log-pv th.drag:hover { background: #DDE3F2; }
.log-pv th.dragging { opacity: .4; }
.log-pv th.drop-before { box-shadow: inset 3px 0 0 var(--gunjeong); }
.log-pv th.drop-after { box-shadow: inset -3px 0 0 var(--gunjeong); }

.sheet-foot { display: none; } /* 화면에서는 숨김, 인쇄할 때 오른쪽 아래 "곰노트 1 / 1" */
/* 현장 폰: 고치기(군청) · 되돌리기(금적) — 굵게, 누르는 자리 넉넉히 */
.counts-line .btn.text.fix { color: var(--gunjeong); font-weight: 600; height: 32px; padding: 0 10px; }
.btn.text.undo { color: var(--geumjeok); font-weight: 600; height: 36px; padding: 0 10px; }
/* 일지 [수정]: 고치기 단추(굵게·군청) · 고치는 중 안내(적황 바탕) */
.edit-cell .btn.text.fix { color: var(--gunjeong); font-weight: 600; height: 30px; padding: 0 8px; }
#sheetHint.editing-hint { background: var(--jeokhwang); color: var(--text); padding: 4px 10px; border-radius: var(--radius); }
/* 작업 상태 단어: 굵게 + 색 (오늘 화면 표 · 작업목록 펼친 표) */
.st { font-weight: 600; white-space: nowrap; }
.st-done, .st-working { color: var(--gunjeong); }
.st-handed { background: #FFF6BF; color: #6b5600; padding: 1px 6px; border-radius: 3px; }
.st-check { background: var(--jeokhwang); color: var(--text); padding: 1px 6px; border-radius: 3px; }
.st-stopped { color: var(--geumjeok); }
.st-waiting, .st-after { color: var(--muted); }
.st-more { color: var(--sub); font-weight: 400; }
.hand-side-label { margin: 10px 0 4px; } /* 넘기기: 두 쪽 다 / 한쪽만 */
.bu-over { font-size: 11px; color: #1E6B34; margin-left: 6px; }   /* 제본 일지: 여분 50부 */
.bu-hand { font-size: 11px; color: var(--sub); margin-left: 6px; }      /* 교대로 넘김 */
.bu-short { font-size: 11px; color: var(--geumjeok); font-weight: 600; margin-left: 6px; } /* 700부 부족 */
.st-more.short { color: var(--geumjeok); font-weight: 600; } /* 제본: 모자라게 끝남 "800−700" */
/* 통계 > 여분·모자람 (제본업) */
.surplus-pick { margin: 10px 0; }
/* 운영 > 구성원: 사무 계정 맡은 일 */
.task-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: #EEF2FB; color: var(--gunjeong); margin: 1px 4px 1px 0; }
.task-group { margin: 10px 0 2px; }
.task-chk { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.task-chk input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gunjeong); }
.task-chk b { font-weight: 500; }
.task-chk i { display: block; font-style: normal; font-size: var(--fs-small); color: var(--sub); margin-top: 2px; }
.surplus-short { color: var(--geumjeok); font-weight: 700; }
.surplus-over { color: #1E6B34; font-weight: 600; }
.surplus-todo { color: var(--geumjeok); font-weight: 600; margin-right: 6px; }
/* 칸 정렬 (alignOf): 숫자 칸 오른쪽은 .num, 도수·CTP 가운데 */
td.c, th.c { text-align: center; }
table.confirm td.num, .jobs-mini td.num, .log-pv td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* 가입: 소개 안내 문구 군청 */
.field .hint.now { color: var(--gunjeong); }
/* 운영 > 회사: 회사 번호 복사 단추·안내 */
.company-no .copy-no { color: var(--gunjeong); font-weight: 600; height: 28px; padding: 0 8px; }
.company-no-help { margin-top: -4px; }

/* ---------- 최고관리자 운영방 (/ops-gom) ---------- */
.adm-body { background: #fff; }
.adm-auth { max-width: 380px; margin: 64px auto; padding: 0 16px; }
.adm-auth.wide { max-width: 480px; }
.adm-auth h1 { font-size: 20px; margin: 0 0 4px; }
.adm-badge { display: inline-block; font-size: 11px; color: #fff; background: var(--gunjeong); border-radius: 4px; padding: 2px 6px; margin-bottom: 18px; }
.adm-steps { display: flex; gap: 8px; margin-bottom: 16px; font-size: var(--fs-small); color: var(--muted); }
.adm-steps b { color: var(--gunjeong); }
.adm-otp { letter-spacing: 10px; font-size: 22px; text-align: center; font-weight: 600; }
.adm-note { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: var(--fs-small); color: var(--sub); margin-top: 16px; line-height: 1.6; }
.adm-warn { background: #FFF6BF; border: 1px solid var(--jeokhwang-edge); border-radius: var(--radius); padding: 8px 10px; font-size: var(--fs-small); margin-top: 8px; line-height: 1.6; }
.adm-how { padding-left: 18px; margin: 0 0 12px; line-height: 1.8; color: var(--sub); }
.adm-qrbox { display: flex; gap: 18px; align-items: center; margin: 12px 0 16px; flex-wrap: wrap; }
.adm-qr { width: 160px; height: 160px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); }
.adm-qr svg { width: 100%; height: 100%; display: block; }
.adm-secret { font-family: ui-monospace, Consolas, monospace; background: var(--soft); padding: 4px 8px; border-radius: 4px; letter-spacing: 1px; word-break: break-all; }
.adm-shell { display: flex; min-height: 100vh; }
.adm-side { width: 200px; flex: none; border-right: 1px solid var(--line); padding: 16px 0; }
.adm-brand { padding: 0 18px 14px; font-weight: 700; font-size: 16px; }
.adm-brand small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }
.adm-side a, .adm-side .later { display: block; padding: 9px 18px; color: var(--text); text-decoration: none; }
/* 메뉴: ㄷ 모양 (오른쪽 트임) 테두리, 왼쪽 모서리 둥글게, 고른 것은 군청 가는 선 — docs/mockups/19 */
.adm-side a { margin: 0 0 6px 14px; padding: 7px 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.adm-side a.on { color: var(--gunjeong); font-weight: 600; border-color: var(--gunjeong); }
.adm-side .later { margin-left: 14px; padding: 7px 12px; }
.adm-side .later { color: var(--muted); cursor: default; }
.adm-side .later::after { content: ' · 나중에'; font-size: 11px; }
.adm-side .grp { padding: 14px 18px 4px; font-size: 11px; color: var(--muted); }
.adm-content { flex: 1; padding: 20px 28px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.adm-top h2 { margin: 0; font-size: 18px; }
.adm-me { font-size: var(--fs-small); color: var(--sub); }
.adm-me b { color: var(--text); }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.adm-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.adm-card span { display: block; font-size: var(--fs-small); color: var(--sub); }
.adm-card b { font-size: 22px; }
.adm-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.adm-table { width: 100%; }
.adm-role { font-weight: 600; }
.adm-role.top { color: var(--gunjeong); }
.adm-acts { white-space: nowrap; text-align: right; }
.adm-acts .inline-select { width: auto; margin-right: 4px; }
.adm-sub { font-size: 15px; margin: 28px 0 8px; }
.adm-log td { height: auto; padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
/* 운영방 > 회사 (2단계) */
.adm-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.adm-filters .input { width: 260px; }
.adm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-chips button { height: 32px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 16px; font: inherit; font-size: 13px; cursor: pointer; color: var(--sub); }
.adm-chips button.on { border-color: var(--gunjeong); color: var(--gunjeong); font-weight: 600; background: #EEF2FB; }
.adm-tablewrap { overflow-x: auto; margin-bottom: 8px; }
.adm-co td { white-space: nowrap; }
/* 운영방 왼쪽 메뉴 빨간 숫자 (정리할 것이 남음: 새로 들어온 용지 이름) */
.adm-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--geumjeok); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; vertical-align: 1px; }
.adm-count[hidden] { display: none; }
/* 운영방 > 용지 이름: 색 구분 고르기 (색을 안 적었을 때) */
.pp-kind { width: 190px; }
#ppAliasAdd .pp-acolor { width: 150px; }
.adm-co td .pp-kind { height: 32px; }
.pp-rename { width: 160px; height: 32px; margin-right: 6px; } /* 용지 이름 고치기 */
/* 용지 두께 넣기 (평량별 μm) */
.pp-thick-row td { background: var(--soft); white-space: normal; }
.pp-only-inner { margin: 0 0 8px; }
.pp-thick { padding: 6px 2px; }
.pp-thick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 10px 0; }
.pp-thick-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: var(--fs-small); color: var(--sub); }
.pp-thick-cell .input { height: 34px; text-align: center; }
.pp-thick-paste { width: 100%; max-width: 520px; height: auto; margin-bottom: 8px; }
.pp-thick-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-click { cursor: pointer; }
.adm-click:hover td { background: var(--soft); }
.adm-tag { display: inline-block; font-size: 11px; font-weight: 400; padding: 1px 6px; border-radius: 3px; margin-left: 4px; vertical-align: 2px; }
.adm-tag.inner { background: #EEF2FB; color: var(--gunjeong); font-weight: 600; }
.adm-tag.free { background: #F0F0F0; color: var(--sub); }
.adm-tag.paid { background: #E6F4EA; color: #1E6B34; }
.adm-tag.trial { background: #EEF2FB; color: var(--gunjeong); }
.adm-tag.closed { background: #FCE8E8; color: var(--geumjeok); }
.adm-cohead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1.5px solid var(--text); padding-bottom: 12px; margin-bottom: 16px; }
.adm-cohead h2 { margin: 0 0 6px; font-size: 20px; }
.adm-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.adm-meta b { font-weight: 500; }
.adm-meta b:not(.now):not(.stop) { color: var(--text); }
.adm-cohead .adm-acts { display: flex; gap: 6px; align-items: flex-start; }
.adm-cogrid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
@media (max-width: 980px) { .adm-cogrid { grid-template-columns: 1fr; } }
.adm-box { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; }
.adm-box h3 { margin: 0; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.adm-box > .adm-chips { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.adm-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.adm-row:last-child { border-bottom: 0; }
.adm-row > span:first-child { color: var(--sub); flex: none; }
.adm-row > span:last-child { text-align: right; }
.adm-masked { font-variant-numeric: tabular-nums; color: var(--sub); }
.adm-tl { list-style: none; margin: 0; padding: 0 14px; }
.adm-tl li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.adm-tl li:last-child { border-bottom: 0; }
.adm-tl li.muted { display: block; }
.adm-tl .when { color: var(--sub); font-variant-numeric: tabular-nums; }
.adm-tl .k { display: inline-block; min-width: 46px; font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-right: 6px; text-align: center; }
.adm-tl .k.join { background: #EEF2FB; color: var(--gunjeong); font-weight: 600; }
.adm-tl .k.set { background: #F0F0F0; color: var(--sub); }
.adm-tl .k.work { background: #E6F4EA; color: #1E6B34; }
.adm-tl .k.msg { background: #FFF6BF; color: #5A4A00; }
.adm-tl .k.warn { background: #FCE8E8; color: var(--geumjeok); }
.adm-tl .k.op { background: var(--gunjeong); color: #fff; }
.adm-tlmore { margin: 0; padding: 4px 14px 10px; }
.adm-reveal { position: fixed; left: 50%; top: 20%; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); z-index: 50; box-shadow: 0 8px 32px rgba(0, 0, 0, .18); background: #fff; }
/* 운영방 3단계: 한눈에 · 메시지 · 기록 */
.adm-card i { font-style: normal; font-size: 12px; margin-left: 6px; }
.adm-card i.up { color: #1E6B34; }
.adm-card i.down { color: var(--geumjeok); }
.adm-card i.sub { color: var(--sub); }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 8px; }
@media (max-width: 980px) { .adm-two { grid-template-columns: 1fr; } }
.adm-todo2 p { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.adm-todo2 p:last-child { border-bottom: 0; }
.adm-todo2 a { margin-left: auto; color: var(--gunjeong); font-size: 12px; white-space: nowrap; text-decoration: none; }
.adm-lv { flex: none; font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.adm-lv.hot { background: var(--geumjeok); color: #fff; }
.adm-lv.chk { background: var(--jeokhwang); color: var(--text); }
.adm-lv.info { background: #F0F0F0; color: var(--sub); }
.adm-barrow { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 24px 14px 0; }
.adm-barrow div { flex: 1; background: #C9D3EE; border-radius: 3px 3px 0 0; position: relative; transition: height .8s cubic-bezier(.2, .8, .2, 1); }
.adm-barrow div.today { background: var(--gunjeong); }
.adm-barrow div b { position: absolute; top: -17px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 500; color: var(--sub); }
.adm-barlabels { display: flex; gap: 8px; padding: 4px 14px 10px; font-size: 11px; color: var(--muted); }
.adm-barlabels span { flex: 1; text-align: center; white-space: nowrap; }
.adm-balance { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.adm-balance b { font-size: 20px; }
.adm-reply { margin-top: 6px; word-break: break-all; font-family: ui-monospace, Consolas, monospace; }
.adm-balance.low { border-color: var(--jeokhwang-edge); background: #FFFBE6; }
.adm-res.ok { color: #1E6B34; }
.adm-res.bad { color: var(--geumjeok); font-weight: 600; }
.adm-res.muted { color: var(--muted); }
.adm-tag.wait { background: var(--jeokhwang); color: var(--text); font-weight: 600; margin-left: 0; }
/* 탭: 회사 화면 탭과 같은 ㄷ 모양 (왼쪽 트임) */
.adm-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.adm-tabs button { background: none; font: inherit; padding: 3px 9px 3px 10px; cursor: pointer; color: var(--sub);
  border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.adm-tabs button.on { color: var(--gunjeong); border-color: var(--gunjeong); font-weight: 600; }
.adm-log2 td { height: auto; padding-top: 8px; padding-bottom: 8px; font-size: 13px; vertical-align: top; }
.adm-log2 td:nth-child(4) { white-space: normal; min-width: 240px; }
.adm-diff { font-size: 12px; color: var(--sub); font-weight: 400; margin-top: 2px; }
.adm-diff s { color: var(--muted); }
.adm-link { color: var(--text); text-decoration: none; }
.adm-link:hover { color: var(--gunjeong); text-decoration: underline; }
/* 운영방 4단계: 백업·자동 실행 */
.adm-lamp { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #CCC; flex: none; vertical-align: -1px; }
.adm-lamp.ok { background: #1E9E4A; }
.adm-lamp.warn { background: var(--jeokhwang); border: 1px solid var(--jeokhwang-edge); }
.adm-lamp.bad { background: var(--geumjeok); }
.adm-state { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-state.ok { border-color: #BFE3C9; background: #F3FBF5; }
.adm-state.bad { border-color: #F3B8BD; background: #FFF5F5; }
.adm-state-title { font-size: 17px; font-weight: 700; }
.adm-state-act { margin-left: auto; }
.adm-flow { padding: 12px 14px; }
.adm-flow p { margin: 10px 0 0; }
.adm-flowline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; margin-top: 6px; }
.adm-flowline span { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.adm-flowline i { font-style: normal; color: var(--muted); }
.adm-cron td { height: auto; padding-top: 9px; padding-bottom: 9px; vertical-align: top; }
.adm-cron td:nth-child(2), .adm-cron td:nth-child(5) { white-space: normal; }
.adm-cron td:first-child { width: 20px; }
#bkRows td:nth-child(5) { white-space: normal; min-width: 220px; } /* 되살리기 연습 결과는 끝까지 */
/* 공지 띠 (회사 화면 맨 위, assets/js/app.js · 운영방 미리 보기) */
.notice-band { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 14px; line-height: 1.5; }
.notice-band.check { background: var(--jeokhwang); color: var(--text); }
.notice-band.news { background: var(--gunjeong); color: #fff; }
.notice-band.urgent { background: var(--geumjeok); color: #fff; }
.notice-band b { font-weight: 700; flex: none; }
.notice-band a { color: inherit; font-weight: 600; white-space: nowrap; }
.notice-band .more { margin-left: auto; font-size: 12px; opacity: .85; flex: none; }
.notice-band .x { margin-left: auto; background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; opacity: .85; padding: 0 4px; }
.notice-band .more + .x { margin-left: 4px; }
@media (max-width: 760px) { .notice-band { padding: 8px 12px; font-size: 13px; } }
/* 운영방 5단계: 공지 */
.adm-kind { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.adm-kind.check { background: var(--jeokhwang); color: var(--text); }
.adm-kind.news { background: var(--gunjeong); color: #fff; }
.adm-kind.urgent { background: var(--geumjeok); color: #fff; }
.adm-nt td { height: auto; padding-top: 9px; padding-bottom: 9px; vertical-align: top; }
.adm-ntbody { white-space: normal; min-width: 240px; }
.adm-nt th.adm-ntwhen-h { width: 300px; } /* 보이는 때: 한 줄이 다 들어가는 너비 (표가 칸 너비를 첫 줄로 정함) */
.adm-nt td.adm-ntwhen { white-space: nowrap; }
.adm-dim td { color: var(--muted); }
.adm-ntform { max-width: 720px; margin-top: 16px; }
.adm-checks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.adm-checks label, .adm-checks span { display: inline-flex; gap: 6px; align-items: center; }
.adm-when { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-time { width: 90px; }
.adm-textarea { height: 140px; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.adm-band-preview { margin: 4px 0 12px; }
.adm-band-preview .notice-band { border-radius: 6px; margin-top: 4px; }
/* 협력사 · 업체 사전 (운영 > 협력사, assets/js/ops-partners.js) */
.req-mark { color: var(--geumjeok); font-size: 12px; margin-left: 2px; font-weight: 400; }
.vendor-box { position: relative; }
.vendor-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--bg); border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.vendor-suggest .cap { font-size: 12px; color: var(--muted); padding: 6px 10px; background: var(--soft); border-bottom: 1px solid var(--line); }
.vendor-suggest .opt { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; cursor: pointer; }
.vendor-suggest .opt:hover { background: #EEF2FB; }
.vendor-suggest .opt b { font-weight: 600; }
.vendor-suggest .opt .m { color: var(--sub); font-size: 13px; }
.vendor-suggest .opt .n { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.vendor-suggest .new { padding: 8px 10px; color: var(--muted); font-size: 12px; }
.vendor-picked { margin-top: 6px; font-size: 13px; color: #1E6B34; background: #F3FBF5; border: 1px solid #BFE3C9; border-radius: var(--radius); padding: 6px 10px; }
.vendor-tag { font-size: 11px; background: #EEF2FB; color: var(--gunjeong); padding: 0 5px; border-radius: 3px; vertical-align: 1px; }
.row-inline { display: flex; gap: 8px; }
.row-inline .input { flex: 1; }
.chip-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-pick button { height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--bg); border-radius: 16px; font: inherit; font-size: 13px; cursor: pointer; color: var(--sub); }
.chip-pick button.on { border-color: var(--gunjeong); color: var(--gunjeong); font-weight: 600; background: #EEF2FB; }
.private-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 12px 14px 2px; margin: 8px 0 14px; }
.private-cap { font-size: 12px; color: var(--sub); margin: 0 0 10px; }
tr.need-fill td { background: #FFFBE6; }
/* 운영방 업체 사전 */
.adm-pair { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.adm-vd b { display: block; }
.adm-vd span { display: block; font-size: 13px; color: var(--sub); }
.adm-pair-acts { display: flex; flex-direction: column; gap: 6px; }
.adm-pair-why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .adm-pair { grid-template-columns: 1fr; } }
/* 요금 2단계: 잠긴 기능 (lib/layout.php page_locked · lock-tag) · 요금 띠 */
.lock-tag { font-size: 10px; background: #F0F0F0; color: var(--sub); border-radius: 3px; padding: 0 4px; margin-left: 2px; vertical-align: 2px; font-weight: 400; }
.lock-page { max-width: 560px; margin: 30px auto; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px; }
.lock-page .lock-ic { font-size: 34px; }
.lock-page h2 { margin: 8px 0 6px; font-size: 18px; }
.lock-page ul { text-align: left; display: inline-block; margin: 12px 0 16px; color: var(--sub); line-height: 1.8; }
.lock-page .btn { display: inline-flex; align-items: center; text-decoration: none; }
.plan-band { display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-radius: var(--radius); margin: -8px 0 14px; font-size: 14px; }
.plan-band.news { background: var(--gunjeong); color: #fff; }
.plan-band.check { background: var(--jeokhwang); color: var(--text); }
.plan-band a { color: inherit; font-weight: 600; white-space: nowrap; margin-left: auto; }
.plan-band .x { background: none; border: 0; color: inherit; font-size: 20px; cursor: pointer; padding: 0 4px; }
/* 요금 (운영 > 요금, assets/js/ops-billing.js) */
.bill-now { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.bill-now b { font-size: 17px; }
.bill-now.trial { background: #EEF2FB; border-color: #C9D3EE; }
.bill-now.paid { background: #F3FBF5; border-color: #BFE3C9; }
.bill-badge { font-size: 12px; padding: 2px 9px; border-radius: 10px; font-weight: 600; flex: none; }
.bill-badge.trial { background: var(--gunjeong); color: #fff; }
.bill-badge.paid { background: #E6F4EA; color: #1E6B34; }
.bill-badge.free { background: #F0F0F0; color: var(--sub); }
.bill-calc { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.bill-calc[hidden], .bill-kind[hidden], .bill-pending[hidden] { display: none; } /* display 를 정한 칸은 hidden 이 안 먹어서 */
@media (max-width: 860px) { .bill-calc { grid-template-columns: 1fr; } }
.bill-kind { margin-bottom: 14px; }
.bill-step { display: flex; gap: 10px; align-items: center; }
.bill-step b { min-width: 48px; text-align: center; font-size: 17px; }
.bill-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.bill-opts button { border: 1px solid var(--line-strong); background: var(--bg); border-radius: 8px; padding: 9px 14px; font: inherit; cursor: pointer; text-align: left; min-width: 96px; }
.bill-opts button.on { border-color: var(--gunjeong); box-shadow: inset 0 0 0 1px var(--gunjeong); }
.bill-opts button b { display: block; font-size: 15px; }
.bill-opts button span { font-size: 12px; color: var(--sub); }
.bill-opts button em { font-style: normal; font-size: 11px; color: #fff; background: var(--geumjeok); border-radius: 3px; padding: 0 5px; margin-left: 4px; }
.bill-sum, .bill-pending { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.bill-sum { position: sticky; top: 12px; }
.bill-sum h3, .bill-pending h3 { margin: 0 0 10px; font-size: 15px; }
.bill-pending { max-width: 600px; margin-bottom: 18px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.bill-row > span:last-child { text-align: right; }
.bill-row.minus { color: #1E6B34; }
.bill-big { font-size: 18px; font-weight: 700; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--text); margin-top: 8px; padding-top: 10px; }
.bill-total b { font-size: 22px; }
.bill-sum .check { display: block; margin: 12px 0 8px; }
.bill-acts { display: flex; gap: 8px; margin-top: 10px; }
.bill-coupon { max-width: 600px; margin-bottom: 18px; }
.bill-coupon .row-inline .input { max-width: 220px; }

@media (max-width: 760px) { .adm-side { display: none; } .adm-content { padding: 16px; } }
/* 폰 운영방 메뉴: PC 왼쪽 메뉴는 숨기고 [메뉴] 버튼 → 위에서 펼쳐지는 목록 (PC 에서는 버튼 없음) */
.adm-menu-btn, .adm-dim { display: none; }
.adm-burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 16px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.adm-burger i { display: block; height: 2px; background: currentColor; border-radius: 1px; }
@media (max-width: 760px) {
  .adm-top h2 { flex: 1; }
  .adm-menu-btn { display: inline-flex; align-items: center; }
  .adm-menu-btn[aria-expanded="true"] { border-color: var(--gunjeong); color: var(--gunjeong); font-weight: 600; }
  .adm-dim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 40; }
  body.adm-menu-open .adm-side { display: block; position: fixed; left: 0; right: 0; width: auto; z-index: 50; max-height: 75vh; overflow-y: auto;
    background: var(--bg); border-right: 0; border-bottom: 1px solid var(--line-strong); padding: 6px 0 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
  body.adm-menu-open .adm-side .adm-brand { display: none; }
  body.adm-menu-open .adm-side a { margin: 0; border: 0; border-radius: 0; padding: 11px 18px; font-size: 15px; }
  body.adm-menu-open .adm-side a.on { background: var(--soft); }
  body.adm-menu-open .adm-side .later { margin: 0; padding: 9px 18px; }
}
@media (max-width: 760px) { .adm-tl li { grid-template-columns: 1fr; gap: 2px; } .adm-filters .input { width: 100%; } }

/* 현장 QR 가입 (운영 > 구성원): 화면 가운데 큰 QR. 폰에서는 화면 가득 */
.qr-join { box-sizing: border-box; position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(0, 0, 0, .4); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.qr-join[hidden] { display: none; }
.qr-join-box { box-sizing: border-box; background: var(--bg); border-radius: 8px; padding: 20px; width: 360px; max-width: 100%; max-height: 100%; overflow: auto; text-align: center; }
.qr-join-code { width: 240px; max-width: 100%; margin: 8px auto 0; }
.qr-join-code svg { width: 100%; height: auto; display: block; }
.qr-join-done { font-size: 56px; color: var(--gunjeong); line-height: 1; margin: 16px 0 4px; }
.qr-join-name { font-size: 18px; font-weight: 600; margin: 12px 0 2px; }
.qr-join-timer { color: var(--gunjeong); font-weight: 500; margin: 6px 0; }
.qr-join .btn.block { margin-top: 8px; }
@media (max-width: 480px) { .qr-join { padding: 0; } .qr-join-box { width: 100%; height: 100%; border-radius: 0; padding-top: 40px; } .qr-join-code { width: 260px; } }

/* 운영방 > 회사: 이 회사에 쿠폰 주기 칸 */
.adm-cocoupon { max-width: 520px; margin: 0 0 12px; }
.adm-cocoupon .seg { margin: 6px 0 10px; }
.adm-cocoupon .input { width: 100%; }

/* 운영방 > 방문 > 랜딩 단추 표: 맨 위 "랜딩을 본 손님" 줄 (아래 단추 숫자의 기준) */
.adm-base-row td { font-weight: 500; background: #F4F6FB; }

/* 운영방 > 방문: 카드를 3칸씩 — 한 줄이 오늘 · 최근 7일 · 최근 30일 (총 · 재 · 첫) */
#vsCards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
@media (max-width: 760px) { #vsCards { grid-template-columns: 1fr 1fr 1fr; } }

/* 작업목록 만들기 · 후가공업: 가공 → 기계 (묻는 상자 · 가는 기계 칸) */
.route-box { margin: 12px 0; display: grid; gap: 10px; }
.route-ask { padding: 12px 14px; border: 1px solid var(--jeokhwang-edge); background: #FFFBE6; border-radius: var(--radius); }
.route-ask p { margin: 0 0 8px; font-weight: 600; }
.list.confirm td.route { white-space: nowrap; font-size: 13px; }
.list.confirm td.route div + div { margin-top: 2px; }
.route-need { color: var(--geumjeok); }

/* 현장 폰 · 후가공: 이어지는 가공 줄 (앞 공정이 아직이면 적황) */
.job-info.chain-line { font-size: var(--fs-small); color: var(--sub); margin-top: 2px; }
.job-info.chain-line.wait { color: var(--text); background: var(--jeokhwang); display: inline-block; padding: 1px 6px; border-radius: var(--radius); }

/* 운영 > 기계·조 · 후가공업: 가공 이름 사전 */
.words-box { margin-top: 32px; }
.words-box h3 { margin: 0 0 4px; font-size: var(--fs-section); }
.words-box table.list { max-width: 480px; margin-top: 8px; }
.words-box table.list select.input { width: 100%; }
.words-add { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; max-width: 480px; }
.words-add .field { margin: 0; flex: 1 1 160px; }
.words-add .form-error { flex-basis: 100%; }

/* 작업목록 > 출고: 물량 (수량 · 박스 · 다이(파렛트)) */
.ship-qty { width: 92px; height: 34px; text-align: right; font-size: 16px; font-weight: 500; border-color: var(--gunjeong); }
.ship-unit button { height: 34px; padding: 0 10px; }
.kakao-btn { margin-top: 10px; border: 1px solid var(--line-strong); border-radius: 6px; text-align: center; padding: 6px; background: #f6f6f6; }

/* 배차 확인 화면 (/s) · 출고 화면의 받음 표시 */
.ship-confirm h1 { margin: 4px 0 12px; }
.ship-confirm-info { display: grid; grid-template-columns: 56px 1fr; gap: 8px 12px; margin: 0 0 20px; }
.ship-confirm-info dt { color: var(--sub); }
.ship-confirm-info dd { margin: 0; }
.ship-confirm-info .big-amount { font-size: 20px; font-weight: 600; }
.ship-recv { color: #1E7B34; font-weight: 600; }
.ship-recv.big { font-size: 20px; margin: 8px 0; }
.ship-intro { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.ship-intro-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.ship-intro-btns .btn { flex: 1 1 140px; height: 48px; display: inline-flex; align-items: center; justify-content: center; }

/* 출고 · 나눠 보내기 · 폰에서 배차 요청 (2026-11-04) */
.ship-split { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.ship-split input { width: 20px; height: 20px; accent-color: var(--gunjeong); }
@media (max-width: 600px) {
  .ship-table th:nth-child(4), .ship-table td:nth-child(4),
  .ship-table th:nth-child(6), .ship-table td:nth-child(6),
  .ship-table th:nth-child(7), .ship-table td:nth-child(7) { display: none; } /* 구분 · 기계 · 끝난 때 */
  .ship-table tbody td { padding-top: 12px; padding-bottom: 12px; white-space: normal; }
  .ship-table td.num { text-align: left; }
  .ship-table input[type="checkbox"], .ship-split input { width: 24px; height: 24px; }
  .ship-foot { gap: 10px; }
  .ship-pallets, .ship-qty, .ship-unit button { height: 48px; font-size: 18px; }
  .ship-pallets { width: 64px; }
  .ship-qty { width: 110px; }
  .ship-foot .btn.main { flex: 1 1 100%; height: 56px; font-size: 17px; }
  .ship-foot .spacer { display: none; }
  .ship-kakao { margin: 0 12px; }
  #sentTable th:nth-child(4), #sentTable td:nth-child(4), #sentTable th:nth-child(5), #sentTable td:nth-child(5) { display: none; } /* 품명 · 보낸 사람 */
}

/* 운영방 > 방문 > 방문자 발자취 (2026-11-05) */
.adm-trails { max-height: 560px; overflow-y: auto; margin-top: 8px; border-top: 1px solid var(--line); }
.adm-trail { padding: 10px 2px; border-bottom: 1px solid var(--line); }
.adm-trail-h { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.adm-trail-new, .adm-trail-old { font-size: var(--fs-small); border-radius: var(--radius); padding: 0 6px; }
.adm-trail-new { background: #e6f4ea; color: #1E7B34; }
.adm-trail-old { background: var(--soft); color: var(--sub); }
.adm-trail-p { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-trail-step { background: var(--soft); border-radius: var(--radius); padding: 2px 8px; }
.adm-trail-arrow { color: var(--muted); }

/* ---------- 운영방 움직이는 숫자 (2026-11-05) — 바뀐 숫자 반짝 · 실시간 점 · 깔때기 · 새로 온 발자취 ---------- */
.adm-bump { animation: adm-bump 1.6s ease-out; border-radius: 3px; }
@keyframes adm-bump { 0%, 30% { color: #1E6B34; background: #DDF1E1; } 100% { background: transparent; } }
.adm-live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--sub); margin-left: auto; margin-right: 10px; }
.adm-live i { width: 8px; height: 8px; border-radius: 50%; background: #2E9E4A; animation: adm-pulse 2s ease-out infinite; }
@keyframes adm-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 158, 74, .5); } 70% { box-shadow: 0 0 0 7px rgba(46, 158, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 74, 0); } }
.adm-funnel { padding: 4px 0 6px; }
.adm-fun { display: grid; grid-template-columns: 180px 1fr 70px 120px; align-items: center; gap: 10px; margin: 8px 0; }
.adm-fun-track { height: 22px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.adm-fun-fill { height: 100%; background: var(--gunjeong); border-radius: 3px; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.adm-fun:not(:first-child) .adm-fun-fill { background: #5470B8; }
.adm-fun-n { text-align: right; }
.adm-trail.adm-new { animation: adm-new 3s ease-out; }
@keyframes adm-new { 0% { background: #DDF1E1; transform: translateY(-4px); } 15% { transform: none; } 100% { background: transparent; } }
@media (max-width: 720px) { .adm-fun { grid-template-columns: 1fr 60px; } .adm-fun-track { grid-column: 1 / -1; grid-row: 2; } .adm-fun-rate { display: none; } }
@media (prefers-reduced-motion: reduce) { .adm-bump, .adm-trail.adm-new, .adm-live i { animation: none; } .adm-barrow div, .adm-fun-fill { transition: none; } }

/* ---------- 운영방 지금 사이트에 있는 사람 (2026-11-05) — 칸 · 점(미끄러짐) · 지나온 길(그려짐) · 줄 ---------- */
.adm-lv h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-lv h3 .adm-live { margin: 0; }
.adm-vf-head { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; padding: 10px 14px 0; box-sizing: border-box; font-size: var(--fs-small); color: var(--sub); }
.adm-vf-map { display: block; width: 100%; max-width: 760px; height: auto; padding: 0 14px; box-sizing: border-box; }
.adm-vf-band { opacity: .3; cursor: pointer; transition: opacity .6s ease-out; }
.adm-vf-band.ok { opacity: .55; }
.adm-vf-band:hover, .adm-vf-band.on { opacity: .7; }
.adm-vf-band.dim { opacity: .1; }
.adm-vf-node { cursor: pointer; }
.adm-vf-label { font-size: 14px; fill: var(--text); }
.adm-vf-n { font-weight: 700; }
.adm-vf-empty { font-size: 14px; fill: var(--muted); }
.adm-vf-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 4px 14px; font-size: var(--fs-small); color: var(--sub); }
.adm-vf-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.adm-vf-legend .b { background: #378ADD; opacity: .5; }
.adm-vf-legend .g { background: #888780; opacity: .5; }
.adm-vf-legend .ok { background: #639922; opacity: .7; }
.adm-vf-pick, .adm-vf-note { padding: 0 14px; }
.adm-box > #vfList { margin: 0 14px 10px; }
#vfDays .sub { margin-left: auto; align-self: center; }
.adm-goal { padding: 4px 14px 6px; }
.adm-fun-track { position: relative; }
.adm-goal .adm-fun-track { overflow: visible; }
.adm-fun-was { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--text); box-shadow: 0 0 0 1px #fff; border-radius: 1px; transition: left 1s cubic-bezier(.2, .8, .2, 1); }
.adm-fun-label .adm-fun-share { display: block; font-size: 11px; color: var(--muted); }
.adm-up { color: #1E7B34; font-weight: 600; }
.adm-down { color: #C0392B; font-weight: 600; }
.adm-goal-worst { margin: 4px 14px 10px; padding: 10px 14px; background: var(--soft); border-radius: 8px; font-size: 14px; }
.adm-vx-cards { padding: 10px 14px 0; margin-bottom: 6px; }
.adm-vf-legend .x { background: #888780; }
.adm-vf-legend .n { background: #B5D4F4; }
.adm-vx-sort { margin-left: auto; }
.adm-vx { padding: 0 14px 6px; }
.adm-vx-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 110px 190px; align-items: center; gap: 12px; padding: 8px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.adm-vx-row:hover, .adm-vx-row.on { background: var(--soft); }
.adm-vx-l { font-size: 14px; }
.adm-vx-track { height: 26px; }
.adm-vx-bar { display: flex; height: 100%; border-radius: 4px; overflow: hidden; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.adm-vx-x, .adm-vx-n { flex-basis: 0; }
.adm-vx-x { background: #888780; }
.adm-vx-n { background: #B5D4F4; }
.adm-vx-c { font-size: 13px; color: var(--sub); text-align: right; }
.adm-vx-c b { color: var(--text); }
.adm-vx-t { font-size: 13px; color: var(--sub); }
.adm-vx-t b { color: var(--text); }
.adm-vx-hot { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #FCEBEB; color: #A32D2D; font-size: 12px; font-weight: 600; }
@media (max-width: 720px) { .adm-vx-row { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .adm-vx-bar { transition: none; } }
.adm-vb { padding: 6px 14px 4px; }
.adm-vb-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 60px 56px 56px 56px; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 14px; }
.adm-vb-row.can { cursor: pointer; } .adm-vb-row.can:hover { background: var(--soft); } .adm-vb-row.open { background: #EEF4FC; }
.adm-vb-ppl { margin: 2px 4px 8px 14px; padding: 4px 10px; border-left: 2px solid #378ADD; font-size: 12px; }
.adm-vb-p { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr) 70px; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.adm-vb-p span:last-child { text-align: right; }
.adm-basis { margin: 6px 14px 8px; padding: 8px 12px; border-radius: var(--radius); background: var(--soft); font-size: var(--fs-small); color: var(--sub); line-height: 1.7; }
.adm-basis b { color: var(--text); font-weight: 600; }
.adm-vb-excl { margin: 6px 14px 0; line-height: 1.7; }
.adm-vb-head { border-top: 0; padding-bottom: 4px; font-size: var(--fs-small); color: var(--sub); }
.adm-vb-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-vb-unknown .adm-vb-t { color: var(--sub); }
.adm-vb-new { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: #E6F1FB; color: #185FA5; font-size: 11px; font-weight: 600; }
.adm-vb-bar { display: flex; align-items: center; gap: 6px; }
.adm-vb-bar i { display: block; height: 14px; max-width: 150px; border-radius: 3px; background: #378ADD; opacity: .8; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.adm-vb-unknown .adm-vb-bar i { background: #888780; }
.adm-vb-bar b { font-size: 13px; }
.adm-vb-empty { padding: 8px 4px; }
@media (max-width: 720px) { .adm-vb-row { grid-template-columns: minmax(0, 1fr) 54px 40px 40px 40px 40px; } .adm-vb-bar i { display: none; } .adm-vb-p { grid-template-columns: 90px minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .adm-vb-bar i { transition: none; } }
.adm-heat { display: grid; grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 3px; padding: 12px 14px 4px; font-size: 12px; }
.adm-heat-h { text-align: center; color: var(--muted); }
.adm-heat-d { color: var(--sub); align-self: center; }
.adm-heat-c { height: 22px; border-radius: 3px; cursor: pointer; transition: background-color .8s ease-out; }
.adm-heat-c.on { outline: 2px solid var(--text); outline-offset: 1px; }
.adm-heat-l0 { background: var(--soft); }
.adm-heat-l1 { background: #E6F1FB; }
.adm-heat-l2 { background: #B5D4F4; }
.adm-heat-l3 { background: #85B7EB; }
.adm-heat-l4 { background: #378ADD; }
.adm-heat-l5 { background: #185FA5; }
.adm-heat-foot { display: flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 12px; color: var(--sub); }
.adm-heat-legend { display: flex; gap: 3px; }
.adm-heat-legend i { width: 16px; height: 12px; border-radius: 2px; }
.adm-heat-pick { margin-left: auto; font-size: 13px; color: var(--text); }
@media (max-width: 720px) { .adm-heat { gap: 1px; grid-template-columns: 20px repeat(24, minmax(0, 1fr)); } .adm-heat-c { height: 16px; } .adm-heat-h { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .adm-heat-c { transition: none; } }
.adm-lv-map { display: block; width: 100%; max-width: 760px; height: auto; margin: 4px 0 6px; }
.adm-lv-zone { fill: var(--soft); stroke: var(--line-strong); stroke-width: 1; }
.adm-lv-zname { font-size: 14px; font-weight: 600; fill: var(--text); }
.adm-lv-zn { font-size: 12px; fill: var(--muted); }
.adm-lv-zn.busy { fill: #1E6B34; font-weight: 600; }
.adm-lv-dot { cursor: pointer; transition: opacity 1.2s; }
.adm-lv-dot.ready { transition: transform 1s cubic-bezier(.4, 0, .2, 1), opacity 1.2s; }
.adm-lv-dot text { font-size: 12px; font-weight: 600; }
.adm-lv-pulse { animation: adm-lv-pulse 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes adm-lv-pulse { 0% { opacity: .45; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
.adm-lv-seg { stroke-width: 3; stroke-linecap: round; }
.adm-lv-seg.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: adm-lv-draw 1.2s ease-out forwards; }
@keyframes adm-lv-draw { to { stroke-dashoffset: 0; } }
.adm-lv-trail { transition: opacity 1.2s; }
.adm-lv-dot.gone, .adm-lv-trail.gone { opacity: 0; }
.adm-lv-map.has-focus .adm-lv-dot:not(.on), .adm-lv-map.has-focus .adm-lv-trail:not(.on) { opacity: .12; }
.adm-lv-list { border-top: 1px solid var(--line); }
.adm-lv-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 80px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.adm-lv-row:hover { background: var(--soft); }
.adm-lv-row.on { background: #EEF1F8; }
.adm-lv-no { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.adm-lv-now b { font-weight: 600; }
.adm-lv-since { text-align: right; color: var(--sub); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .adm-lv-dot.ready { transition: none; } .adm-lv-pulse { animation: none; opacity: 0; } .adm-lv-seg.draw { animation: none; stroke-dashoffset: 0; } }

/* ---------- 운영방 바뀐 표시 (2026-11-05) — 바뀐 카드는 초록 테두리·숫자 + "+3" + 바뀐 때가 남음 ---------- */
.adm-track { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--sub); margin: 0 0 8px; flex-wrap: wrap; }
.adm-card { transition: border-color .4s, box-shadow .4s; }
.adm-card.adm-changed { border-color: #1D9E75; box-shadow: inset 0 0 0 1px #1D9E75; }
.adm-card.adm-changed > b { color: #0F6E56; }
.adm-diff { font-style: normal; font-size: 13px; font-weight: 600; color: #085041; background: #E1F5EE; border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: 3px; }
.adm-track-foot { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.adm-card.adm-changed .adm-track-foot { color: #0F6E56; }

/* ---------- 작업목록 > 기계 목록 (2026-11-06 2-2) — 기계 단추 · 이어지는 목록 (한 행씩 옅은 음영, 번호 진하게) ---------- */
.mq-machines { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.mq-machine { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 96px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.mq-machine .mq-left { font-size: var(--fs-small); font-weight: 400; color: var(--sub); }
.mq-machine.on { border-color: var(--gunjeong); background: var(--gunjeong); color: #fff; }
.mq-machine.on .mq-left { color: #DDE4F5; }
.mq-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mq-head h2 { margin: 0; }
.mq-sp { flex: 1; }
.mq-rows { border-bottom: 1px solid var(--line); }
.mq-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 8px; border-top: 1px solid var(--line); }
.mq-rows .mq-row.odd { background: var(--soft); } /* 한 행씩 음영, 구분선마다 처음부터 (lists-machine.js shade) */
.mq-no { font-weight: 700; color: var(--gunjeong); font-size: 15px; }
.mq-title { font-weight: 600; }
.mq-right { text-align: right; white-space: nowrap; }
.mq-row.done .mq-title { color: var(--sub); font-weight: 400; }
/* 2-3 끌어서 순서: 잡는 곳 · 끄는 행 · 놓을 자리 선 · [맨 앞으로] · 저장 알림 */
.mq-row.can-drag { cursor: grab; }
.mq-row.dragging { opacity: .4; }
.mq-row.drop-above { box-shadow: inset 0 3px 0 var(--gunjeong); }
.mq-row.drop-below { box-shadow: inset 0 -3px 0 var(--gunjeong); }
.mq-grip { color: var(--muted); margin-right: 6px; letter-spacing: -2px; font-weight: 400; }
.mq-top { display: block; margin-left: auto; margin-top: 4px; font-size: var(--fs-small); }
/* 3-2 미루기: [미루기] · 이유 단추(그 줄 아래 펼침) · 미룬 이유 */
.mq-hold { display: block; margin-left: auto; margin-top: 2px; font-size: var(--fs-small); color: var(--sub); }
.mq-reasons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 2px; }
.mq-held { margin-top: 4px; font-weight: 600; color: #8a5a00; }
/* 3-4 내용 고치기: 그 줄 아래에 칸들 (넓으면 여러 칸씩) · [그만] [저장] */
.mq-edit { grid-column: 1 / -1; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; margin-top: 8px; background: var(--bg); }
.mq-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; }
.mq-edit-field { display: flex; flex-direction: column; gap: 2px; }
.mq-edit-field .input:disabled { background: var(--soft); color: var(--muted); }
.mq-edit-bar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
/* 4단계 출력 뒤 바뀐 것: 기계 단추 "바뀜 3" · 제목 아래 띠 · 펼친 목록 (끼움 초록 · 자리 파랑 · 빠짐 주황 · 내용 보라) */
.mq-chg-dot { font-size: 11px; font-weight: 700; color: #854F0B; background: #FAEEDA; border-radius: 8px; padding: 0 6px; }
.mq-machine.on .mq-chg-dot { color: #633806; }
.mq-print-chg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.mq-print-chg.on { border-color: #EF9F27; background: #FFF8EC; }
.mq-chg-list { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.mq-chg { font-size: var(--fs-small); border-radius: 10px; padding: 2px 9px; background: var(--soft); }
.mq-chg.add { background: #EAF3DE; color: #27500A; }
.mq-chg.mv { background: #E6F1FB; color: #0C447C; }
.mq-chg.out { background: #FAECE7; color: #712B13; }
.mq-chg.edit { background: #EEEDFE; color: #3C3489; }
.mq-breakdown { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 6px; } /* 3-3 고장: 모두 옮기기 */
.mq-breakdown .mq-reasons { justify-content: flex-end; }
.job-row.held { opacity: .8; } .mq-rows .mq-row:first-child .mq-top { visibility: hidden; } /* 이미 맨 앞 */
/* 2-4 구분선: 굵은 검은 선 + 이름 · 빈 구분선은 흐리게 · [구분선 넣기]는 제목 옆 */
.mq-row.mq-mark { border-top: 3px solid var(--text); padding-top: 8px; padding-bottom: 6px; background: var(--bg); }
.mq-row.mq-mark.empty { opacity: .55; }
.mq-mark-name { font-weight: 700; font-size: 15px; background: none; border: 0; padding: 0; color: var(--text); text-align: left; cursor: pointer; font-family: inherit; }
span.mq-mark-name { cursor: default; }
.mq-sec { display: flex; align-items: flex-end; gap: 10px; justify-content: space-between; }
.mq-sec .section-title { flex: 1; }
.mq-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; } .mq-done[hidden] { display: none; }
@media (max-width: 640px) { .mq-row { grid-template-columns: 52px minmax(0, 1fr); } .mq-right { grid-column: 2; text-align: left; } }
@media (max-width: 720px) { .adm-goal .adm-fun-rate { display: block; grid-column: 1 / -1; grid-row: 3; } }
