:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --ink: #1b2430;
  --sub: #5b6675;
  --line: #d6dce4;
  --brand: #1f3a5f;
  --brand-2: #2f6fb3;
  --ok: #1e8a4c;
  --ok-bg: #e5f5ec;
  --warn: #b26a00;
  --warn-bg: #fff4dc;
  --bad: #c0392b;
  --bad-bg: #fdecea;
  --lock: #eef1f5;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: 17px; }
button, input, textarea, select { font: inherit; }
header#top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--brand); color: #fff; min-height: 56px; }
#crumb { flex: 1; font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#menu[hidden], #back[hidden] { display: none; }

/* 로그인 */
.auth { max-width: 440px; margin: 24px auto 0; }
.auth h1 { font-size: 28px; margin: 0 0 4px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
.tab { min-height: 48px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; font-weight: 700; cursor: pointer; color: var(--sub); }
.tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.panel select, .site select { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.site select.v { font-size: 18px; font-weight: 700; margin: 4px 0 10px; }

.badge { font-size: 13px; border-radius: 999px; padding: 4px 10px; background: var(--lock); color: var(--sub); white-space: nowrap; }
.badge.draft { background: var(--warn-bg); color: var(--warn); }
.badge.sent { background: var(--ok-bg); color: var(--ok); }
.badge.changed { background: var(--bad-bg); color: var(--bad); }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
label.day { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
label.day input { border: 0; font: inherit; background: transparent; min-height: 44px; }
.badge.period { background: #e9f1fb; color: var(--brand-2); font-weight: 700; }
select.small { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: var(--card); font: inherit; font-size: 14px; margin-left: auto; }
.docbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recent { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dept span.ok { color: var(--ok); font-weight: 700; }
.dept span { display: block; }
.item .btn.small { flex: none; }
.item small { display: block; }
.item small .wait { color: var(--warn); font-weight: 700; }
.btn.dev { background: #2b2f36; border-color: #2b2f36; color: #ffd666; }
.btn.danger { color: var(--bad); border-color: #f0c4be; }
.devbar { background: #2b2f36; color: #ffd666; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 15px; }
.devbar a { color: #fff; margin-left: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two label, #modal label { display: block; font-weight: 600; margin: 10px 0 4px; }
#modal input[type=text], #modal select { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
#modal hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.col { display: flex; flex-direction: column; gap: 8px; }
.col .btn { justify-content: flex-start; }
.col .btn small { margin-left: auto; }
.issued { background: var(--bg); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.issued div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.issued span { color: var(--sub); }
.issued b { font-size: 20px; }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1px; }
#modal .sheet { max-height: 92vh; overflow-y: auto; }
button.icon { background: transparent; border: 0; color: #fff; font-size: 24px; padding: 4px 8px; cursor: pointer; }
main { max-width: 960px; margin: 0 auto; padding: 16px 16px 120px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.big { min-height: 60px; font-size: 19px; }
.btn.mic { background: #d9363e; border-color: #d9363e; color: #fff; }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }

/* 조직도 */
.site { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.site .k { color: var(--sub); font-size: 14px; }
.site .v { font-size: 20px; font-weight: 700; margin: 2px 0 10px; }
.site input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; margin: 4px 0 10px; }
.org { display: flex; flex-direction: column; align-items: center; }
.chief { background: var(--brand); color: #fff; border-radius: 14px; padding: 16px 28px; font-weight: 700; font-size: 19px; }
.vline { width: 2px; height: 22px; background: var(--line); }
.depts { width: 100%; border-top: 2px solid var(--line); padding-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .depts { grid-template-columns: repeat(4, 1fr); } }
.dept { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 20px 10px; text-align: center; cursor: pointer; }
.dept::before { content: ""; position: absolute; top: -24px; left: 50%; width: 2px; height: 22px; background: var(--line); }
.dept b { display: block; font-size: 20px; }
.dept span { color: var(--sub); font-size: 14px; }
.dept.add { border-style: dashed; color: var(--sub); }
.dept:active { transform: scale(.98); }

/* 목록 */
h2 { font-size: 20px; margin: 4px 0 14px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; }
.item .ic { font-size: 28px; }
.item b { display: block; font-size: 18px; }
.item small { color: var(--sub); }
.empty { color: var(--sub); padding: 20px; text-align: center; background: var(--card); border: 1px dashed var(--line); border-radius: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 16px; }
.panel label { display: block; font-weight: 600; margin: 10px 0 4px; }
.panel input[type=text], .panel input[type=email], .panel input[type=password] { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.note { color: var(--sub); font-size: 14px; line-height: 1.5; }
.warn { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 15px; margin-top: 10px; }

/* 양식 */
.toolbar { position: sticky; top: 56px; z-index: 4; background: var(--bg); padding: 10px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.toolbar .btn:not(.big) { padding: 0 8px; font-size: 15px; }
.toolbar .mic { grid-column: 1 / -1; }
@media (min-width: 640px) { .toolbar { grid-template-columns: 2fr 1fr 1fr 1fr; } .toolbar .mic { grid-column: auto; } }
/* 폰: 버튼 줄은 화면 아래에 고정 (엄지로 누르기 좋게, 위쪽 탭·안내를 가리지 않게) */
@media (max-width: 640px) {
  .toolbar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 15; grid-template-columns: 2fr 1fr 1fr 1fr; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .toolbar .mic { grid-column: auto; min-height: 52px; font-size: 16px; }
  .toolbar .btn:not(.big) { min-height: 52px; padding: 0 4px; font-size: 13px; flex-direction: column; gap: 0; }
  main { padding-bottom: 110px; }
  .listen { bottom: 0; z-index: 30; }
}
.cumbar { display: grid !important; grid-template-columns: 1fr 1fr; }
.cumbar #dlCum { grid-column: 1 / -1; }
.morerows { width: 100%; margin-top: 6px; }
/* ⚠ 계산 오류 */
.calcerr { background: var(--bad-bg); color: var(--bad); border: 1px solid #f3c4bf; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 15px; line-height: 1.6; }
.calcerr .note { color: #8a3a32; }
input.lock.err { background: var(--bad-bg) !important; color: var(--bad); border-color: #e9a59d; }
.chk-item { border-left: 4px solid var(--line); padding: 6px 10px; margin: 6px 0; background: var(--bg); border-radius: 0 8px 8px 0; font-size: 14px; }
.chk-item.e { border-color: var(--bad); }
.chk-item.w { border-color: #f0b44c; }
.chk-item .code { font-weight: 700; color: var(--bad); margin-left: 4px; }
.chk-item code { display: block; color: var(--sub); font-size: 12px; word-break: break-all; margin-top: 2px; }
b.bad { color: var(--bad); } b.warnt { color: var(--warn); }
.scorebar { height: 10px; background: var(--lock); border-radius: 999px; overflow: hidden; }
.scorebar div { height: 100%; background: var(--ok); }
label.btn input[type=file] { display: none; }
/* 💬 메시지 버튼 */
#msgBtn { position: relative; }
#unread { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
#unread[hidden] { display: none; }
#msgBtn[hidden] { display: none; }
/* 부서 */
.dept.mine { border-color: var(--brand-2); }
.minetag { display: inline-block !important; margin: 2px 0; padding: 1px 8px; border-radius: 999px; background: #e9f1fb; color: var(--brand-2); font-size: 12px; font-weight: 700; }
.sharebar { background: #eef6ff; border: 1px solid #cfe2fb; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
/* 누계 */
.cumbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.seg { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; color: var(--sub); cursor: pointer; }
.seg small { font-weight: 400; }
.seg.on { background: #fff4dc; border-color: #f0c674; color: var(--warn); }
.syncnote { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 15px; }
input:disabled, select:disabled { background: #f6f7f9; color: var(--ink); opacity: 1; }
/* 설정 */
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-weight: 600; }
.setrow.col { flex-direction: column; align-items: stretch; }
.setrow select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; background: #fff; font: inherit; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 500; cursor: pointer; }
.chk input { width: 20px; height: 20px; }
.linkrow { display: flex; align-items: center; gap: 6px; padding: 4px 0; flex-wrap: wrap; }
.linkrow .chk { flex: 1 1 200px; justify-content: flex-start; }
.btn.small.peekbtn { min-width: 48px; min-height: 44px; font-size: 24px; font-weight: 800; line-height: 1; color: var(--brand-2); }
.peek { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; }
.pvhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pvfields { display: grid; grid-template-columns: 1fr; gap: 2px; margin-bottom: 6px; }
.pvf { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pvf span { color: var(--sub); }
.pvt { margin-top: 6px; }
.pvtable { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.pvtable th, .pvtable td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; white-space: nowrap; background: #fff; }
.pvtable th { background: var(--lock); color: var(--sub); font-weight: 600; }
.pvtot td { font-weight: 700; background: #f4f6f9; }
.linkdept { margin: 10px 0 2px; font-size: 13px; font-weight: 700; color: var(--sub); }
.mapgrid { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.maprow { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; }
.maprow select, #modal select { width: 100%; min-height: 44px; }
/* 보고 현황 */
.boardsum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.boardsum div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; }
.boardsum b { display: block; font-size: 22px; }
.boardsum span { font-size: 12px; color: var(--sub); }
.boardsum .ok b { color: var(--ok); } .boardsum .draft b { color: var(--warn); } .boardsum .bad b { color: var(--bad); } .boardsum .none b { color: #8a5a00; }
.boarddept { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; }
.boarddept h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.boarddept h3 .btn { margin-left: auto; }
.boarddept .item { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 4px; }
.badge.none { background: #fff1e0; color: #8a5a00; }
/* 메시지 */
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pickhead { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; }
.people { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; }
.person { justify-content: flex-start; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.msg.unread { border-color: var(--brand-2); background: #f4f9ff; cursor: pointer; }
.msg.unread .mbody { font-weight: 700; }
.mhead { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.mhead .note:last-child { margin-left: auto; }
.mbody { margin: 6px 0; white-space: pre-wrap; line-height: 1.5; }
.sheettabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.stab { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; color: var(--sub); cursor: pointer; white-space: nowrap; }
.stab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.hint { background: #e9f1fb; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.55; margin-bottom: 12px; }
.hint code { background: #fff; border-radius: 6px; padding: 1px 6px; }
.heard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.heard q { display: block; color: var(--sub); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.chip.err { background: var(--bad-bg); color: var(--bad); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px 16px; }
.form h3 { margin: 18px 0 8px; font-size: 17px; }
.field { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; padding: 6px 0; }
.field .lb { font-weight: 600; color: var(--sub); }
.field input, .tbl input { width: 100%; min-height: 46px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field select, .tbl select { width: 100%; min-height: 46px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.tbl td:has(input[data-num]), .tbl td:has(input.lock) { min-width: 130px; }
.tbl input[data-num], .tbl input.lock, .field input[data-num] { text-align: right; }
.tbl.rowlabel th:first-child, .tbl.rowlabel td:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.tbl .fixed { display: block; min-height: 46px; padding: 12px 8px; font-size: 14px; color: var(--sub); white-space: nowrap; }
.tbl.rowlabel td:first-child .fixed { color: var(--ink); font-weight: 700; }
.tsum { display: flex; flex-wrap: wrap; gap: 6px 14px; background: var(--lock); border-radius: 10px; padding: 10px 12px; margin-top: 6px; font-size: 15px; color: var(--sub); }
.tsum b { color: var(--ink); }
.tbl tr.total td.n { font-weight: 700; color: var(--ink); }
.field input.lock, .tbl input.lock { background: var(--lock); color: var(--ink); font-weight: 700; border-style: dashed; }
input.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: #bfe8cf; } 100% { background: #fff; } }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
table.tbl { border-collapse: separate; border-spacing: 4px; min-width: 100%; }
.tbl th { font-size: 14px; color: var(--sub); text-align: left; padding: 0 4px; white-space: nowrap; }
.tbl td { min-width: 96px; }
.tbl td.n { min-width: 36px; width: 36px; color: var(--sub); text-align: center; font-size: 14px; }
.emails { margin-top: 16px; }

/* 듣는 중 */
.listen { position: fixed; inset: auto 0 0 0; z-index: 20; background: #1b2430; color: #fff; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.listen .dot { width: 16px; height: 16px; border-radius: 50%; background: #ff4d4f; animation: pulse 1s infinite; flex: none; }
.listen .t { flex: 1; min-height: 24px; }
@keyframes pulse { 50% { opacity: .3; } }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; background: #1b2430; color: #fff; padding: 14px 20px; border-radius: 12px; max-width: calc(100% - 32px); font-size: 16px; }
#modal { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
#modal[hidden] { display: none; }
#modal .sheet { background: var(--card); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { #modal { align-items: center; } #modal .sheet { border-radius: 18px; } }
#modal h3 { margin: 0 0 12px; font-size: 20px; }
#modal ul { padding-left: 20px; line-height: 1.7; margin: 0 0 16px; }

/* ═════════ 목업 디자인 (2026-11-19): 남색 + 안전 주황 · 카드 · 아래 탭 ═════════ */
:root {
  --bg: #F2F4F7; --card: #FFFFFF; --ink: #101828; --sub: #475467; --line: #E4E7EC;
  --brand: #13294B; --brand-2: #13294B; --navy-2: #1B3560; --navy-3: #0B1A33; --accent: #E8590C;
  --ok: #1E7A4C; --ok-bg: #E3F4EA; --warn: #8A5A00; --warn-bg: #FFF1D6; --bad: #B42318; --bad-bg: #FDECEA; --lock: #F2F4F7;
}
html, body { font-family: 'Noto Sans KR', system-ui, -apple-system, 'Malgun Gothic', sans-serif; }
header#top { background: var(--brand); min-height: 60px; padding: 8px 10px; }
#crumb { font-size: 19px; font-weight: 900; letter-spacing: -0.2px; }
button.icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
main { padding-bottom: 130px; }
input, select, textarea { font-family: inherit; }
.field input, .tbl input, .panel input[type=text], .panel input[type=email], .panel input[type=password], .field select, .tbl select { border-color: #D0D5DD; border-radius: 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { border-radius: 12px; border-color: #D0D5DD; }
.btn.primary, .btn.navy { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.mic { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: #2E4670; }
.btn.ghost2 { background: transparent; border: 0; color: var(--sub); text-decoration: underline; }
.btn svg { flex: none; }
.badge { border-radius: 999px; font-size: 13px; font-weight: 700; padding: 4px 10px; }
.badge.none { background: #FDECEA; color: var(--bad); }
.panel, .form { border-radius: 18px; border-color: transparent; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.card { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 18px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(16,24,40,.06); margin-bottom: 14px; color: var(--ink); text-decoration: none; }
.note { color: var(--sub); }

/* 홈: 머리에서 이어지는 남색 칸 */
.hero.site { background: var(--brand); color: #fff; margin: -16px -16px 14px; padding: 2px 20px 20px; border: 0; border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.hero .hco { font-size: 13px; color: #A9B8D0; }
.hero .hsite, .hero select.v { font-size: 22px; font-weight: 900; letter-spacing: -0.3px; color: #fff; margin: 0 0 6px; }
.hero select.v { background: var(--navy-2); border: 1px solid #2E4670; border-radius: 12px; min-height: 48px; padding: 0 10px; }
.hero label.day { background: #fff; border: 0; color: var(--brand); font-weight: 700; }
.hero .row { align-items: center; }
.progress .ring { --p: 0; flex: none; width: 66px; height: 66px; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p) * 1%), #E4E7EC 0); display: flex; align-items: center; justify-content: center; position: relative; }
.progress .ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.progress .ring b { position: relative; font-size: 16px; font-weight: 900; }
.progress .grow { display: flex; flex-direction: column; gap: 4px; }
.progress .ptitle { font-size: 16px; }
.row.quick { margin-bottom: 14px; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 2px 10px; }
.sechead h2 { margin: 0; font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.sechead .chief { background: none; color: var(--sub); padding: 0; font-size: 13px; font-weight: 500; border-radius: 0; }
.depts { border-top: 0; padding-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .depts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dept { text-align: left; padding: 14px; border: 2px solid transparent; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.dept::before { display: none; }
.dept.mine { border-color: var(--accent); }
.dept .dtop { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.dept b { font-size: 18px; font-weight: 900; }
.dept span { font-size: 13px; color: var(--sub); }
.dept .minetag, .minetag { background: #FFF1E6; color: #B54708; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 0; }
.dept .bar { height: 6px; border-radius: 3px; background: #E4E7EC; overflow: hidden; }
.dept .bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.dept span.ok { color: var(--ok); font-weight: 700; }
.dept span.bad { color: var(--bad); font-weight: 700; }
.dept span.wait { color: var(--warn); font-weight: 700; }
.dept.add { border: 2px dashed #D0D5DD; box-shadow: none; align-items: center; justify-content: center; color: var(--sub); }
.card.cont { margin-top: 14px; }
.card.cont .cic { width: 44px; height: 44px; border-radius: 12px; background: #FFF1E6; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.card.cont small { display: block; }

/* 서류 카드 */
.item { border: 0; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.06); padding: 14px; }
.item.doc .ic.box { width: 48px; height: 48px; border-radius: 12px; background: #EEF2F8; color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.item.doc b { font-size: 17px; font-weight: 900; }
.chip2 { display: inline-block; margin-top: 4px; font-size: 12px; color: #344054; background: #F2F4F7; padding: 2px 8px; border-radius: 6px; }

/* 아래 탭 */
#tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; height: calc(72px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
#tabbar[hidden] { display: none; }
#tabbar a { position: relative; text-decoration: none; color: #667085; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; min-height: 56px; justify-content: center; }
#tabbar a.on { color: var(--brand); font-weight: 700; }
#tabbar a.on svg { stroke-width: 2.4; }
.tabmic { justify-self: center; margin-top: -30px; width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(232,89,12,.4); cursor: pointer; }
#tabUnread { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D92D20; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
#tabUnread[hidden] { display: none; }

/* 서류 쓰기: 아래 버튼 줄 [엑셀][보내기][🎤 말로 쓰기] — 폭과 상관없이 아래 고정 */
.toolbar, .toolbar.view { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.toolbar.view { grid-template-columns: 1fr; }
.toolbar .btn, .toolbar .btn:not(.big) { min-height: 56px; border-radius: 14px; font-size: 13px; font-weight: 700; flex-direction: column; gap: 2px; padding: 0 4px; }
.toolbar .btn.mic { grid-column: auto; flex-direction: row; gap: 8px; font-size: 17px; font-weight: 900; box-shadow: 0 4px 12px rgba(232,89,12,.35); }
@media (min-width: 720px) { .toolbar { left: 50%; transform: translateX(-50%); max-width: 720px; border-radius: 18px 18px 0 0; } }
.typeline { margin: 0 0 8px; text-align: right; }
.listen { z-index: 30; }
.cumbar { background: var(--navy-3); border-radius: 12px; padding: 4px; gap: 4px; }
.seg { border: 0; border-radius: 9px; background: transparent; color: #C7D2E4; min-height: 42px; }
.seg.on { background: #fff; color: var(--brand); border: 0; }
.cumbar #dlCum { background: transparent; color: #fff; border: 1px solid #2E4670; }
.hint { background: #EEF2F8; border-radius: 14px; }
#modal .sheet { border-radius: 22px 22px 0 0; }
@media (min-width: 640px) { #modal .sheet { border-radius: 22px; } }
.boarddept { border: 0; box-shadow: 0 1px 2px rgba(16,24,40,.06); border-radius: 16px; }
.boarddept .item.doc { box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; }
/* 서류 안 보고서 버튼 줄 */
.reportstrip { background: var(--card); border-radius: 16px; padding: 10px 12px; margin: 10px 0; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.rs-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.reportstrip .recent { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; margin: 0; -webkit-overflow-scrolling: touch; }
.rbtn { flex: none; min-width: 72px; min-height: 56px; border: 1px solid #D0D5DD; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-family: inherit; color: var(--ink); padding: 4px 10px; }
.rbtn b { font-size: 15px; }
.rbtn span { font-size: 12px; color: var(--sub); }
.rbtn.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.rbtn.on span { color: #C7D2E4; }
.rbtn.new { border: 2px dashed var(--accent); color: var(--accent); }
.rbtn.new.on { background: var(--accent); border-style: solid; color: #fff; }

/* 📷 PPT 사진·도면 칸 */
.imgslot { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 2px dashed #CBD5E1; border-radius: 12px; background: #F8FAFC; min-width: 0; }
.imgslot img { max-width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; background: #fff; align-self: flex-start; }
.imgslot.flash, .imgslot:has(.flash) { border-color: #E8590C; }

/* 📥 받기 고르기 · 📄 PDF 같이 보내기 */
.dlpick { display: grid; gap: 10px; }
.dlpick .btn { flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 64px; padding: 10px 16px; }
.dlpick .btn small { font-weight: 400; color: var(--muted, #64748B); font-size: 13px; }
.pdfline { display: flex; align-items: center; gap: 8px; padding: 12px; margin: 4px 0 12px; border: 1px solid var(--line, #E2E8F0); border-radius: 12px; background: #F8FAFC; font-size: 16px; cursor: pointer; }
.pdfline input { width: 22px; height: 22px; accent-color: #E8590C; }

/* 📐 도면 창고 · 보기 · 첨부 */
.dwlist { display: grid; gap: 8px; margin-top: 10px; }
.dwitem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line, #E2E8F0); border-radius: 12px; cursor: pointer; }
.dwitem .ic { font-size: 24px; }
.dwitem small { display: block; margin-top: 2px; }
.dwtools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dwtools .btn.on { background: #E8590C; color: #fff; border-color: #E8590C; }
.dwbox, .dwg-view { width: 100%; height: min(62vh, 560px); border: 1px solid var(--line, #E2E8F0); border-radius: 12px; overflow: hidden; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.dwg-view svg { cursor: grab; }
.dwhits { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; font-size: 14px; }
.attlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.attitem { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 8px; border: 1px solid var(--line, #E2E8F0); border-radius: 10px; background: #F8FAFC; font-size: 13px; }
.attitem img { width: 100%; height: 90px; object-fit: contain; background: #fff; border-radius: 6px; }
#modalBody .dwbox { height: min(55vh, 520px); }
#modal input[type=search], #dwQ { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line, #E2E8F0); border-radius: 10px; background: #fff; font-size: 16px; }

/* ✏ 표시하기 */
.mk-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.mk-tools .btn.on { background: #13294B; color: #fff; border-color: #13294B; }
.mk-color { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #CBD5E1; cursor: pointer; }
.mk-color.on { box-shadow: 0 0 0 3px #13294B; }
.mk-wrap { border: 1px solid var(--line, #E2E8F0); border-radius: 12px; overflow: hidden; background: #F1F5F9; display: flex; justify-content: center; max-height: 58vh; }
.mk-wrap canvas { max-width: 100%; max-height: 58vh; width: auto; height: auto; display: block; touch-action: none; }
.attitem .row { gap: 4px; flex-wrap: wrap; }

/* 📄 서류 버튼: 글자 크기만큼 · 가나다 · 접기 · ⭐ 내 버튼 */
.chipsec { background: #fff; border: 1px solid var(--line, #E2E8F0); border-radius: 14px; padding: 10px 12px; margin-top: 10px; }
.chipsec.fav { background: #FFF8F1; border-color: #FAD7BD; }
.chiphead { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 16px; }
button.chiphead { background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.chiphead .arrow { width: 18px; color: #64748B; }
.chiphead .grow { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dchip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid #CBD5E1; background: #fff; font-size: 15px; font-weight: 600; color: #13294B; cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dchip:hover { border-color: #13294B; }
.dchip .dot, .chiplegend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: #CBD5E1; }
.dchip.st-sent .dot, .chiplegend .dot.st-sent { background: #2F9E44; }
.dchip.st-draft .dot, .chiplegend .dot.st-draft { background: #F08C00; }
.dchip.st-changed .dot, .chiplegend .dot.st-changed { background: #E03131; }
.dchip.st-none .dot, .chiplegend .dot.st-none { background: #CBD5E1; }
.dchip .star { font-size: 18px; color: #94A3B8; }
.dchip .star.on { color: #E8590C; }
.dchip.editing { border-style: dashed; }
.chiplegend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: #64748B; margin: 10px 2px; }
.chiplegend .dot { margin-right: 4px; }
.favonly { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #475569; }
.favonly input { width: 18px; height: 18px; accent-color: #E8590C; }
.deptchips { margin-bottom: 6px; }
/* 🖼 이미지 · 📐 캐드 넣기 */
.putbar { display: flex; gap: 8px; margin: 8px 0; }
.putbar .btn { flex: 1; min-height: 48px; font-weight: 700; }
.targets { display: grid; gap: 8px; }
.target { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 10px 14px; }
.target small { font-weight: 400; color: #64748B; font-size: 13px; }

/* 📦 서류를 감싸는 큰 네모 칸 */
.docbox { background: #fff; border: 2px solid #CBD5E1; border-radius: 16px; padding: 14px 16px 16px; margin-top: 14px; min-height: 96px; }
.docbox.fav { background: #FFF8F1; border-color: #F4B183; }
.boxhead { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 17px; padding-bottom: 10px; border-bottom: 1px dashed #E2E8F0; margin-bottom: 4px; }
button.boxhead { background: none; border: 0; border-bottom: 1px dashed #E2E8F0; cursor: pointer; text-align: left; color: inherit; font: inherit; font-size: 17px; }
.boxhead .arrow { width: 20px; color: #64748B; }
.boxhead .grow { flex: 1; }
.docbox .chips { gap: 10px; margin-top: 12px; }
.btn.plus { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 24px; font-weight: 700; border-radius: 50%; border: 2px solid #E8590C; color: #E8590C; background: #fff; }
.dchip .pick { font-weight: 800; color: #94A3B8; }
.dchip.picked { border-color: #E8590C; background: #FFF4E6; }
.dchip.picked .pick { color: #E8590C; }
/* 부서 화면 머리: 제목 왼쪽 · 💬 메시지 오른쪽 (자주 찾는 서류 위) */
.depthead { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.depthead h2 { margin: 0; }
.depthead #msgDept { margin-left: auto; }
/* 여러 줄 글 칸 */
.field textarea[data-cell] { width: 100%; min-height: 84px; padding: 10px; border: 1px solid #D0D5DD; border-radius: 10px; background: #fff; font: inherit; resize: vertical; }
/* 📦 기본 양식 넣기 */
.starter .dchip.pickable { cursor: pointer; gap: 6px; }
.starter .dchip.pickable input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.starter .dchip.done { opacity: .55; }
/* 📖 참고 자료 보며 쓰기 — 넓은 화면은 좌우, 폰은 위(참고)·아래(서류) */
.putbar { flex-wrap: wrap; }
.putbar .btn.ref { flex-basis: 100%; background: #FFF4EC; border-color: #F5C4A5; color: #9A3A06; }
body.split .putbar .btn.ref { background: var(--accent); color: #fff; border-color: var(--accent); }
#refPane { position: fixed; z-index: 4; background: var(--card); display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(16,24,40,.12); }
#refPane .rp-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#refPane .rp-head > b { font-size: 16px; }
#refPane .rp-tabs { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
#refPane .seg { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; }
#refPane .seg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
#refPane .rp-target { padding: 8px 12px; background: #FFF4EC; border-bottom: 1px solid #F5C4A5; font-size: 15px; }
#refPane .rp-body { flex: 1; overflow: auto; padding: 10px 12px 24px; -webkit-overflow-scrolling: touch; }
#refPane .rp-empty { padding: 20px 4px; line-height: 1.8; }
#refPane .rp-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
#refPane .rp-days { display: flex; flex-wrap: wrap; gap: 6px; }
#refPane .rp-group { margin: 10px 0; }
#refPane .rp-gname { font-weight: 800; color: var(--brand); margin-bottom: 4px; }
#refPane .rp-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
#refPane .rp-lb { flex: none; width: 34%; color: var(--sub); font-size: 14px; }
#refPane .rp-v { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #F8FAFC; cursor: pointer; white-space: pre-wrap; word-break: break-all; user-select: text; -webkit-user-select: text; }
#refPane .rp-v:hover { border-color: var(--accent); background: #FFF4EC; }
#refPane .rp-v.used { border-color: var(--ok); background: var(--ok-bg); }
#refPane .rp-line { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
#refPane .rp-line .rp-v { flex: 0 1 auto; }
#refPane .rp-sec { margin: 12px 0 4px; font-weight: 800; color: var(--brand); }
#refPane .rp-img { width: 100%; border-radius: 8px; cursor: zoom-in; }
#refPane .rp-img.big { width: 250%; max-width: none; cursor: zoom-out; }
#refPane .rp-pdf { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
#form .active-cell { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
#form td.active-cell { outline-offset: -2px; }
/* 폰(세로): 위 42% 참고, 아래 서류 */
@media (max-width: 759px) {
  #refPane { top: 60px; left: 0; right: 0; height: 42vh; border-bottom: 3px solid var(--accent); }
  body.split main { padding-top: calc(42vh + 12px); }
  #refPane .rp-head > b { display: none; }
}
/* 넓은 화면(가로 폰·태블릿·PC): 왼쪽 참고, 오른쪽 서류 */
@media (min-width: 760px) {
  #refPane { top: 60px; bottom: 0; left: 0; width: 46vw; border-right: 3px solid var(--accent); }
  body.split main { margin-left: 46vw; max-width: none; width: 54vw; }
  body.split #tabbar { left: 46vw; }
}
/* 🎤 칸 따라 말하기 막대 */
.listen.loop { align-items: flex-start; }
.listen .vs { flex: 1; min-width: 0; }
.listen .vs-cell { font-size: 17px; }
.listen .vs-cell b { color: #FFB27A; }
.listen .vs-now { font-size: 14px; opacity: .9; margin: 2px 0 4px; white-space: pre-wrap; max-height: 4.5em; overflow: auto; }
.listen .vs-now .cur { color: #fff; font-weight: 700; }
.listen .dim { opacity: .7; }
.listen.loop .t { font-size: 14px; opacity: .85; }
#refPane .seg { color: var(--ink); }
#refPane .seg.on { color: #fff; border: 1px solid var(--brand); }
@media (max-width: 759px) {
  #refPane .rp-head { flex-wrap: nowrap; padding: 6px 8px; }
  #refPane .rp-tabs { flex-wrap: nowrap; gap: 4px; }
  #refPane .seg { min-height: 38px; padding: 0 9px; font-size: 14px; white-space: nowrap; }
  body.split #form [data-cell], body.split #form [data-imgcell] { scroll-margin-top: calc(42vh + 84px); }
}
@media (min-width: 760px) {
  body.split .toolbar { left: 46vw; right: 0; transform: none; max-width: none; border-radius: 0; }
  body.split #form [data-cell] { scroll-margin-top: 90px; }
}
#refPane .rp-crumb b { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#refPane .rp-crumb { flex-wrap: nowrap; }
/* 📄 PDF 첨부 */
.attitem .pdficon { width: 100%; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #FEF3F2; border: 1px solid #FECDCA; border-radius: 6px; color: #B42318; text-decoration: none; font-size: 30px; }
.attitem .pdficon b { font-size: 13px; letter-spacing: 1px; }
.attitem.pdf > span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attitem .row .btn { text-decoration: none; }
#attPanel .row { flex-wrap: wrap; }
#attPanel .row > .btn { flex: 1 1 30%; min-height: 52px; margin: 0; display: inline-flex; align-items: center; justify-content: center; }
/* 📢 작업 지시·공지 */
.nsec { flex-wrap: wrap; margin-top: 14px; }
.nsec h2 { margin: 0; flex: 1; font-size: 19px; }
.nbadge { display: inline-block; background: var(--accent); color: #fff; font-size: 13px; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.notice.k-notice { border-left-color: #2E90FA; }
.notice.k-urgent { border-left-color: #D92D20; background: #FFFBFA; }
.notice.need { box-shadow: 0 0 0 2px var(--accent); }
.notice.past { opacity: .75; }
.notice .nhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.notice .nkind { font-weight: 800; font-size: 14px; padding: 2px 8px; border-radius: 6px; background: #EEF2F6; }
.notice.k-urgent .nkind { background: #FEE4E2; color: #B42318; }
.notice .nday { font-size: 17px; }
.notice .ndept { color: var(--sub); font-size: 14px; }
.notice .nbody { white-space: pre-wrap; font-size: 18px; line-height: 1.5; margin: 8px 0; word-break: break-word; }
.notice .nfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.notice .nok { min-height: 52px; padding: 0 20px; font-size: 17px; }
.notice .nread { color: var(--ok); font-weight: 700; }
.notice .nstat { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.notice .nstat .bar { flex: 1; min-width: 80px; height: 8px; background: #EEF2F6; border-radius: 99px; overflow: hidden; }
.notice .nstat .bar i { display: block; height: 100%; background: var(--ok); }
.notice .nwho { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 6px; }
.notice .nwd { margin: 6px 0; }
.notice .nwd > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.notice .nperson { padding: 4px 9px; border-radius: 8px; font-size: 14px; }
.notice .nperson.ok { background: var(--ok-bg); color: var(--ok); }
.notice .nperson.no { background: #FEF0C7; color: #93370D; font-weight: 700; }
.empty.small { padding: 14px; font-size: 15px; }
.segs { display: flex; gap: 6px; flex-wrap: wrap; }
#modalBody .segs .seg { border: 1px solid var(--line); background: #fff; color: var(--ink); min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; }
#modalBody .segs .seg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
#modalBody #nDepts .dchip { cursor: pointer; gap: 6px; }
#modalBody #nDepts input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.notice.gone { opacity: .6; border-left-color: #98A2B3; }
.notice .ngone { font-size: 13px; font-weight: 700; color: #475467; background: #F2F4F7; border-radius: 6px; padding: 3px 8px; margin-bottom: 6px; display: inline-block; }
.notice .nchanged { font-weight: 800; color: #B54708; background: #FFFAEB; border-radius: 6px; padding: 4px 8px; margin-top: 6px; }
.notice .nhist { margin: 4px 0 6px; font-size: 14px; }
.notice .nhist summary { cursor: pointer; color: var(--sub); }
.notice .nold { margin: 6px 0 0 4px; padding: 6px 8px; border-left: 3px solid var(--line); background: #F9FAFB; white-space: pre-wrap; }
/* 🔔 알림 켜기 안내 */
.pushask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #FFF4EC; border: 1px solid #F5C4A5; border-radius: 14px; padding: 10px 12px; margin-top: 12px; font-size: 16px; }
.pushask .btn { min-height: 44px; }
#pushBtns { gap: 6px; }
/* ⚡ 바로 하기 버튼판 */
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 8px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.2; word-break: keep-all; }
.fbtn i { font-style: normal; font-size: 28px; line-height: 1; }
.fbtn:active { transform: scale(.97); }
.fbtn.hot { background: #FFF4EC; border-color: #F5C4A5; color: #9A3A06; }
.fbtn[hidden] { display: none; }
#modalBody .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 🏢 원청 지시 · 🦺 공종 강조 · 📝 회의 */
.notice.k-gc { border-left-color: #7A5AF8; background: #FAFAFF; }
.notice.k-gc .nkind { background: #EBE9FE; color: #5925DC; }
.notice.k-trade { border-left-color: #F79009; }
.notice.k-trade .nkind { background: #FEF0C7; color: #93370D; }
.notice.k-meeting { border-left-color: #12B76A; }
.notice.k-meeting .nkind { background: #D1FADF; color: #05603A; }
.notice .ntitle { font-weight: 800; font-size: 17px; margin-top: 6px; }
.tgroup { margin-bottom: 6px; }
.tgroup .tname { font-weight: 800; color: #93370D; margin: 8px 2px 6px; }
/* ⏱ 공기 현황 */
.sched.card { display: block; padding: 14px; }
.sched .sdday { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sched .sdday b { font-size: 24px; color: var(--brand); }
.sched .sdday b.warn { color: #B54708; } .sched .sdday b.bad { color: #B42318; }
.sched .sbar { display: grid; grid-template-columns: 40px 1fr 54px; align-items: center; gap: 8px; margin: 5px 0; font-size: 14px; }
.sched .sbar b { text-align: right; }
.sched .bar { height: 12px; background: #EEF2F6; border-radius: 99px; overflow: hidden; }
.sched .bar i { display: block; height: 100%; background: #98A2B3; }
.sched .bar.plan i { background: #2E90FA; } .sched .bar.act i { background: var(--ok); } .sched .bar.act.late i { background: #F04438; }
.sched .sgap { font-weight: 800; margin: 6px 0; } .sched .sgap.bad { color: #B42318; } .sched .sgap.ok { color: var(--ok); }
.sched .snote { background: #F9FAFB; border-radius: 8px; padding: 6px 8px; margin: 6px 0; }
.sched .mslist { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.sched .mshead { font-weight: 800; margin-bottom: 4px; }
.sched .msrow { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex-wrap: wrap; border-bottom: 1px solid #F2F4F7; }
.sched .msrow.done { opacity: .6; }
.sched .ms { font-weight: 800; padding: 2px 8px; border-radius: 6px; background: #EEF2F6; }
.sched .ms.ok { background: var(--ok-bg); color: var(--ok); } .sched .ms.bad { background: #FEE4E2; color: #B42318; } .sched .ms.warn { background: #FEF0C7; color: #93370D; }
#nTradeRow[hidden], #nTitleRow[hidden] { display: none; }
/* 📄 공사계획서 */
.sched .plandoc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.sched .btn.plan { background: #EEF4FF; border-color: #B2CCFF; color: #1849A9; font-weight: 800; text-decoration: none; }
.sched .btn.plan small { font-weight: 400; margin-left: 4px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.sched .planold { width: 100%; font-size: 14px; } .sched .planold a { display: block; padding: 4px 0; }
/* 💰 자금 사용현황 */
.mtop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.msum { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; flex: 1; }
.msum b { color: var(--brand); }
.mtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.mtabs .seg { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; }
.mtabs .seg small { font-weight: 400; color: var(--sub); }
.mtabs .seg.on { background: var(--brand); color: #fff; border-color: var(--brand); } .mtabs .seg.on small { color: #C7D2E4; }
.mcards { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.mcards .dchip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.mshoot { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mshoot .btn { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; }
.mday { margin-top: 12px; }
.mdh { display: flex; justify-content: space-between; padding: 4px 2px; border-bottom: 2px solid var(--brand); margin-bottom: 4px; }
.mrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-bottom: 1px solid var(--line); background: var(--card); }
.mrow.void { opacity: .5; } .mrow.void b { text-decoration: line-through; }
.mthumb { flex: none; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #F2F4F7; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mamt { text-align: right; font-weight: 800; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mlink { font-size: 13px; color: #1849A9; margin-top: 2px; }
.fphoto { width: 100%; max-height: 240px; object-fit: contain; background: #F2F4F7; border-radius: 10px; }
#modalBody .okline { color: var(--ok); font-weight: 700; }
#fOcr pre { white-space: pre-wrap; font-size: 12px; max-height: 160px; overflow: auto; background: #F9FAFB; padding: 8px; border-radius: 8px; }
#modalBody .row > .grow { min-width: 0; }
.mtabs .seg { font-size: 14px; white-space: nowrap; padding: 0 4px; }
.mshoot .btn { flex: 1 1 0; font-size: 15px; padding: 0 6px; white-space: nowrap; }
.mshoot .btn.primary { flex: 1.4 1 0; }
#modalBody .fsay { width: 100%; margin-top: 12px; background: #FFF4EC; border-color: #F5C4A5; color: #9A3A06; font-weight: 800; }
/* 🏠 홈 지시·공지 네 상자 (두 개씩) */
.bgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.bbox { display: flex; flex-direction: column; gap: 4px; min-height: 128px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: 14px; color: var(--ink); text-decoration: none; }
.bbox.k-gc { border-top-color: #7A5AF8; } .bbox.k-notice { border-top-color: var(--brand); } .bbox.k-trade { border-top-color: #F79009; } .bbox.k-meeting { border-top-color: #12B76A; }
.bbox.need { box-shadow: 0 0 0 2px var(--accent); }
.bbox .bh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; }
.bbox .bd { font-size: 13px; color: var(--sub); }
.bbox .bt { font-weight: 700; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; flex: 1; }
.bbox .bt.empty { color: var(--sub); font-weight: 400; }
.bbox .bf { font-size: 13px; color: #1849A9; }
/* 📄 종류 페이지 */
.ntools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ntools input[type=search] { flex: 1 1 160px; min-height: 46px; }
.ntools input[type=month] { min-height: 46px; }
.npage .nday { margin-top: 10px; }
.npage .ndh { font-weight: 800; color: var(--brand); padding: 4px 2px; border-bottom: 2px solid var(--brand); }
.npage .nrow { display: flex; align-items: center; gap: 8px; padding: 12px 8px; background: var(--card); border-bottom: 1px solid var(--line); cursor: pointer; }
.npage .nrow.cur .nt { font-weight: 700; }
.npage .nrow.open { background: #F5F8FF; }
.npage .nt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.npage .ns { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #EEF2F6; white-space: nowrap; }
.npage .ns.ok { background: var(--ok-bg); color: var(--ok); } .npage .ns.no { background: #FEF0C7; color: #93370D; } .npage .ns.gone { color: #667085; }
.npage .nfull { padding: 6px 0; }
/* 🖨 인쇄 */
@media print {
  header#top, #tabbar, .toolbar, .putbar, .fgrid, .mshoot, .ntools, .listen, #toast, #modal, .print-hide, .typeline, .pushask, .nar, button, .btn, .nstat .bar, #refPane, .reportstrip, .cumbar { display: none !important; }
  body, main { background: #fff !important; }
  main { padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; }
  .notice, .mrow, .panel, .card, .bbox { box-shadow: none !important; break-inside: avoid; }
  .npage .nrow { padding: 6px 4px; }
  input, select, textarea { border: 0 !important; border-bottom: 1px solid #999 !important; border-radius: 0 !important; background: transparent !important; -webkit-appearance: none; appearance: none; }
  a { color: inherit; text-decoration: none; }
}
/* 상자: 왼쪽 그날 내용 · 오른쪽 날짜 */
.bbox .bmain { display: flex; gap: 8px; flex: 1; min-height: 64px; }
.bbox .bleft { flex: 1; min-width: 0; }
.bbox .blist { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.35; }
.bbox .blist li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 0; border-bottom: 1px dotted #E4E7EC; }
.bbox .blist li.no { font-weight: 800; color: #B54708; }
.bbox .blist li.gone { color: #98A2B3; text-decoration: line-through; }
.bbox .bmore { font-size: 12px; color: var(--sub); margin-top: 2px; }
.bbox .bdate { flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #F2F4F7; border-radius: 10px; padding: 4px 0; line-height: 1.1; }
.bbox .bdate b { font-size: 22px; } .bbox .bdate small { font-size: 11px; color: var(--sub); }
.bbox .bdate em { font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 5px; margin-top: 2px; }
.bbox .bdate.today { background: #FFF4EC; }
.npage .nday.hl .ndh { background: #FFF4EC; }
.bbox { padding: 10px; }
.bbox .bmain { gap: 6px; }
.bbox .blist li { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; font-size: 13.5px; }
.bbox .bdate { width: 40px; align-self: flex-start; padding: 4px 0 5px; }
.bbox .bdate b { font-size: 19px; }
.bbox .bdate small { font-size: 10px; }
/* 🏢 본사 · 📝 전자결재 */
.aptodo { display: flex; align-items: center; gap: 8px; margin: 12px 0; padding: 14px; border-radius: 14px; background: #7A5AF8; color: #fff; text-decoration: none; font-size: 17px; }
.aptodo span { margin-left: auto; }
.hqtop { display: flex; margin-bottom: 10px; }
.hqtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hqtabs .seg { display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.hqtabs .seg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.aplist { display: flex; flex-direction: column; gap: 6px; }
.aprow { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.aprow small { display: block; }
.apst { flex: none; font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: #EEF2F6; }
.st-pending .apst { background: #FEF0C7; color: #93370D; } .st-approved .apst { background: var(--ok-bg); color: var(--ok); } .st-rejected .apst { background: #FEE4E2; color: #B42318; }
.aphead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.aphead > b { font-size: 19px; }
.apline { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; }
.apstep { flex: 0 0 auto; min-width: 92px; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-align: center; font-size: 14px; }
.apstep small { color: var(--sub); font-size: 11.5px; }
.apstep.now { box-shadow: 0 0 0 2px var(--accent); }
.apstep.st-approved { background: var(--ok-bg); } .apstep.st-rejected { background: #FEE4E2; } .apstep.st-transferred, .apstep.st-skipped { opacity: .65; }
.apstep q { font-size: 12px; color: #344054; quotes: '“' '”'; white-space: pre-wrap; }
.apact { border: 2px solid var(--accent); }
.apbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.apbtns .btn { min-height: 52px; }
.btn.danger { background: #FEE4E2; color: #B42318; border-color: #FECDCA; }
.aplog { display: flex; flex-direction: column; gap: 6px; }
.aplg { padding: 6px 8px; border-left: 3px solid var(--line); background: #F9FAFB; border-radius: 0 8px 8px 0; font-size: 14px; }
.aplg.a-reject { border-left-color: #F04438; } .aplg.a-approve, .aplg.a-final, .aplg.a-done, .aplg.a-agree { border-left-color: var(--ok); } .aplg.a-comment { border-left-color: #2E90FA; } .aplg.a-transfer { border-left-color: #F79009; }
.aplc { white-space: pre-wrap; margin-top: 2px; }
.toolbar.inline { position: static; transform: none; max-width: none; box-shadow: none; border: 0; background: transparent; padding: 0; display: block; }
.pplist { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.lnlist { padding-left: 22px; } .lnlist li { display: flex; align-items: center; gap: 6px; margin: 4px 0; } .lnlist select { min-height: 36px; width: auto; }
.hqsites { display: flex; flex-direction: column; gap: 8px; }
.hqsite { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font: inherit; text-align: left; cursor: pointer; }
.hqsite span { font-size: 14px; color: var(--sub); } .hqsite em { font-style: normal; font-weight: 800; } .hqsite em.bad { color: #B42318; } .hqsite em.ok { color: var(--ok); }
#hqBtn { position: relative; font-size: 22px; }
#hqBtn[hidden] { display: none; }
#hqBadge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #7A5AF8; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
#hqBadge[hidden] { display: none; }
.fgrid.tools { margin-top: 4px; }
.mback { display: block; margin-bottom: 10px; padding: 12px; border-radius: 12px; background: #EEF4FF; border: 1px solid #B2CCFF; color: #1849A9; text-decoration: none; }
.mback small { display: block; color: var(--sub); }
/* ⏱ 전체 공기 · 세부 공기 · 공기 서류 */
.sched .shd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sched .shd:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sched .shd b { font-size: 16px; color: var(--brand); }
.sched .gp { padding: 6px 0; border-bottom: 1px solid #F2F4F7; }
.sched .gp.done { opacity: .6; }
.sched .gph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sched .gbar { position: relative; height: 12px; margin-top: 5px; background: #F2F4F7; border-radius: 99px; }
.sched .gbar i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: #98A2B3; }
.sched .gbar i.ok { background: var(--ok); } .sched .gbar i.warn { background: #F79009; } .sched .gbar i.bad { background: #F04438; }
.sched .gbar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--accent); }
.sched .pdocs { display: flex; flex-direction: column; gap: 4px; }
.sched .pdoc { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #EEF4FF; color: #1849A9; text-decoration: none; }
.sched .pdoc small { margin-left: auto; }
/* 상자 ＋ 작성 */
.bbox .bwrite { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; }
/* 마지막에 쓰던 서류 (부가) */
.card.cont.small { padding: 10px 12px; margin-top: 10px; }
.card.cont.small .cic { font-size: 18px; }
/* 기본 양식 넣기: 칩 글자 안으로 · 가운데 */
.starter .chips { justify-content: center; }
.starter .dchip { max-width: 100%; white-space: normal; text-align: center; justify-content: center; line-height: 1.3; height: auto; min-height: 40px; padding: 6px 12px; }
.starter h3, .starter .row { text-align: center; justify-content: center; }
.aptodo[hidden] { display: none; }
/* 받을 부서 칩: 글자 가운데 */
#modalBody #nDepts .dchip, .pplist .dchip.pickable { display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; min-height: 40px; padding: 4px 12px; }
#modalBody #nDepts .dchip input, .pplist .dchip.pickable input { margin: 0; vertical-align: middle; }
.sched .sphase { font-size: 15px; margin-bottom: 4px; } .sched .sphase b { color: var(--accent); font-size: 17px; }
/* ───── 홈 다시 짬: 큰 묶음 · 소제목 상자 (제목 가운데 · 작성 버튼 늘 오른쪽 끝) ───── */
.grp { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.grp > .gtitle { margin: 0; text-align: center; font-size: 18px; color: var(--brand); }
.shead { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; min-height: 44px; padding: 2px 8px; background: #F8FAFC; border-bottom: 1px solid var(--line); }
.shead > h2, .shead > h3 { margin: 0; text-align: center; font-size: 15px; }
.shead.big { background: transparent; border: 0; padding: 0; }
.shead.big > h2, .shead.big > h3 { font-size: 18px; color: var(--brand); }
.shead > :last-child { justify-self: end; } .shead > :first-child { justify-self: start; }
.hbtn { height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.xbtn { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.sub { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.sub .sbody { padding: 10px 12px; }
.sched { display: flex; flex-direction: column; gap: 10px; }
.sched .slog { font-size: 13px; }
.sched .sub .shd { display: none; }
/* 지시·전달 상자 머리 */
.bbox { padding: 0; overflow: hidden; }
.bbox .shead { grid-template-columns: 28px minmax(0, 1fr) 28px; padding: 2px 4px; }
.bbox .shead h3 { font-size: 14px; }
.bbox .shead em.nbadge { font-style: normal; min-width: 20px; padding: 1px 6px; }
.bbox .hplus { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; cursor: pointer; }
.bbox .bmain, .bbox .bf { padding: 0 8px; } .bbox .bmain { padding-top: 8px; } .bbox .bf { padding-bottom: 8px; }
.bgrid { margin: 0; }
/* 조직도 */
.chiefbox { align-self: center; min-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 16px; border: 2px solid var(--brand); border-radius: 14px; text-decoration: none; color: var(--ink); }
.chiefbox small { color: var(--sub); } .chiefbox b { font-size: 17px; } .chiefbox span { font-size: 12px; color: #1849A9; }
.orgline { align-self: center; width: 2px; height: 14px; background: #98A2B3; }
.grp .depts { margin: 0; }
.grp .dept .dtop, .grp .dept > span { text-align: center; justify-content: center; }
/* 종류 페이지 */
.npage .sub { margin-bottom: 8px; }
.srcf { display: flex; gap: 6px; padding: 8px 10px; flex-wrap: wrap; }
.srcf .seg { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 700; color: var(--ink); }
.srcf .seg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
em.srct { font-style: normal; font-size: 12px; font-weight: 800; background: #EBE9FE; color: #5925DC; border-radius: 6px; padding: 1px 6px; }
.nfiles { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; } .nfiles a, .nfiles span { font-size: 14px; }
/* 쓰기 창 */
.segs.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.row.two .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
/* 📚 양식 보관함 */
.mtabs.two { grid-template-columns: repeat(2, 1fr); }
.liblist { display: flex; flex-direction: column; }
.libitem { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.libitem small { display: block; }
.libnew { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #EEF4FF; border: 1px solid #B2CCFF; color: #1849A9; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.libnew .btn { margin-left: auto; }
/* ───── 맨 위: 회사 → 프로젝트 → 날짜 ───── */
.hero.site { gap: 8px; padding: 6px 20px 18px; }
.hero .hco { font-size: 14px; font-weight: 700; color: #C7D2E4; }
.hero .hproj { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero .hlabel { flex: none; font-size: 12px; font-weight: 800; color: var(--brand); background: #FFB27A; border-radius: 6px; padding: 2px 7px; }
.hero .hproj .hsite, .hero .hproj select.v { flex: 1; min-width: 0; margin: 0; font-size: 22px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero .hproj select.v { min-height: 44px; }
.hero .hicon { flex: none; width: 40px; height: 40px; border: 1px solid #2E4670; border-radius: 10px; background: transparent; font-size: 16px; cursor: pointer; }
.hero .hday { display: flex; align-items: center; gap: 6px; }
.hero .hday label.day { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; color: var(--brand); font-weight: 800; }
.hero .hday label.day span { font-size: 13px; color: var(--accent); }
.hero .hday label.day input { border: 0; background: transparent; font: inherit; font-weight: 800; color: var(--brand); min-height: 0; padding: 0; width: auto; }
.hero .hnav { height: 44px; min-width: 44px; padding: 0 10px; border: 1px solid #2E4670; border-radius: 12px; background: var(--navy-2); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.hero .hnav.today { font-size: 14px; }
@media (min-width: 760px) { .hero.site { margin: -16px 0 14px; border-radius: 0 0 22px 22px; } }
/* 중간 소제목 크게 */
.grp > .gtitle, .grp > .shead.big h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.3px; padding-bottom: 4px; }
/* 공기 현황 가로: PC 3칸, 폰은 옆으로 넘김 */
.sched { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.sched > .sub { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 760px) { .sched { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; overflow: visible; } .sched > .sub { min-width: 0; } }

/* 맨 위: 프로젝트 옆에 날짜 (넓으면 한 줄, 좁은 폰은 아래로) */
.hero .hline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hero .hline .hproj { flex: 1 1 260px; }
.hero .hline .hday { flex: none; }
@media (min-width: 760px) { .hero .hline { flex-wrap: nowrap; } }

/* 세부 공기: 하나씩 ‹ › · 전체 공기와 같은 모양 */
.gp .msnav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; font-size: 15px; }
.hnav2 { width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 20px; font-weight: 800; color: var(--brand); cursor: pointer; }
.hnav2:disabled { opacity: .35; cursor: default; }
.gp .msbtns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.snote.none { color: var(--sub); background: transparent; border: 1px dashed var(--line); }
.scalc { font-size: 12px; color: var(--sub); text-align: right; }
.gp .gbar { margin: 6px 0; }
.sched .gp .sdday b, .sched .gp .sdday b.warn, .sched .gp .sdday b.ok, .sched .gp .sdday b.bad { background: none; padding: 0; margin: 0; font-size: 20px; border-radius: 0; }
.sched .gp .sdday b.ok { color: var(--ok); }
.sched .gp .gbar i.warn { padding: 0; margin: 0; border-radius: 99px; }

/* 공기 현황: 위 = 전체 공기 (넓게) · 아래 = 세부 공기 | 공기 서류 (PC 나란히 · 폰 옆으로 밀기) */
.sched { display: flex; flex-direction: column; overflow: visible; gap: 10px; }
.sched > .sub { flex: none; width: auto; }
.sched .srow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.sched .srow > .sub { flex: 0 0 86%; scroll-snap-align: start; min-width: 0; }
@media (min-width: 760px) {
  .sched { display: flex; }
  .sched .srow { display: grid; grid-template-columns: 1.4fr 1fr; overflow: visible; }
}

/* 🎤 말로 넣기 (입력 창) */
.vform { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 10px; padding: 8px 10px; border-radius: 12px; background: #FFF4ED; border: 1px solid #FFD6AE; }
.vform .vmic { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 800; }
.vform small { flex: 1 1 180px; line-height: 1.35; }
.vfilled { outline: 3px solid #FDB022 !important; outline-offset: 1px; transition: outline .2s; }

/* 👷 부서별 작업 지시 */
.orderform textarea { width: 100%; font-size: 17px; }
.orderform > label { display: block; margin-top: 12px; font-weight: 800; color: var(--brand); }
.orderform .ordsend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.orderform .ordsend .btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; line-height: 1.2; }
.orderform .ordsend small { font-size: 12px; font-weight: 400; opacity: .85; }
.shead a.hbtn { text-decoration: none; display: inline-flex; align-items: center; }

/* 📊 자금 종합 */
.mtabs.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.sumnav { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; font-size: 17px; }
.sumtop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.sumtot { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--brand); color: #fff; }
.sumtot b { font-size: 24px; }
.sumk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; cursor: pointer; text-align: left; }
.sumk b { font-size: 18px; color: var(--brand); } .sumk.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.sumgrid { display: grid; gap: 10px; margin-bottom: 10px; }
.sumrow { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; align-items: center; gap: 8px; padding: 5px 0; font-size: 15px; }
.sumrow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sumrow .bar { height: 10px; background: #EEF2F6; border-radius: 99px; overflow: hidden; } .sumrow .bar i { display: block; height: 100%; background: #2E90FA; }
.sumdays { display: flex; flex-direction: column; gap: 4px; }
.sumday { display: grid; grid-template-columns: 82px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; cursor: pointer; text-align: left; }
.sumday span { font-size: 13px; color: var(--sub); }
@media (min-width: 760px) { .sumtop { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .sumtot { grid-column: auto; flex-direction: column; } .sumgrid { grid-template-columns: 1fr 1fr; } }

/* 📅 공정 달력 */
.calhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: 19px; }
.caldepts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.caldepts .dchip { opacity: .45; } .caldepts .dchip.on { opacity: 1; }
.caldepts .dchip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.calw, .calrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calw span { text-align: center; font-size: 13px; font-weight: 800; padding: 6px 0; background: #F2F4F7; }
.calw .sun { color: #D92D20; } .calw .sat { color: #1570EF; }
.calday { min-height: 74px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 3px 3px 4px; border: 0; border-top: 1px solid var(--line); border-left: 1px solid #F2F4F7; background: var(--card); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.calday.out { background: #F9FAFB; color: #98A2B3; }
.calday.today .cn { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 6px; align-self: flex-start; }
.calday .cn { font-size: 13px; font-weight: 800; }
.calday .cbar { display: block; font-style: normal; font-size: 11px; line-height: 15px; color: #fff; border-radius: 4px; padding: 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calday small { font-size: 11px; color: var(--sub); }
@media (min-width: 760px) { .calday { min-height: 104px; } .calday .cbar { font-size: 12px; line-height: 17px; } }
.wplan { border-left: 5px solid #ccc; padding: 8px 10px; margin: 6px 0; background: #F9FAFB; border-radius: 8px; }
.wplan .wph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wplan .wph .btn { margin-left: auto; }
.wdept { color: #fff; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; }
.wplan .wbody { white-space: pre-wrap; margin: 6px 0 2px; }
.wplan.big .wbody { font-size: 18px; line-height: 1.5; }

/* 💸 자금 청구 · 📑 증명서 */
.claimsum { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 6px 0; }
.claimsum b { margin-left: auto; font-size: 18px; color: var(--brand); }
.claimprev { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #F2F4F7; }
.claimrow { display: flex; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid #F2F4F7; font-size: 15px; }
.claimrow a { text-decoration: none; }
.proofcat { padding: 8px 0; border-top: 1px dashed var(--line); }
.proofcat:first-of-type { border-top: 0; }
.proofcat .pch { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.proofcat .pch .btn { margin-left: auto; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px; }
.proof { position: relative; display: inline-flex; }
.proof a { display: flex; flex-direction: column; align-items: center; width: 92px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 28px; }
.proof img { width: 82px; height: 64px; object-fit: cover; border-radius: 6px; }
.proof small { font-size: 11px; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.proof .xbtn { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; font-size: 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); }

/* 🧭 소장 업무 */
.chgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.chbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; }
.chbtn i { font-style: normal; font-size: 26px; } .chbtn b { font-size: 15px; word-break: keep-all; } .chbtn small { font-size: 12px; color: var(--sub); }
@media (min-width: 760px) { .chgrid { grid-template-columns: repeat(5, 1fr); } }
.chduty { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--sub); margin: 4px 0 8px; font-size: 14px; }
.chlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chlinks .btn { text-decoration: none; }
.chitem { padding: 10px; margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.chitem.done { opacity: .7; }
.chih { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .chih .btn { margin-left: auto; }
.chst { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: #FEF0C7; color: #93370D; } .chst.done { background: var(--ok-bg); color: var(--ok); }
.chbody { white-space: pre-wrap; margin: 6px 0; }
.chdone summary { cursor: pointer; font-weight: 800; margin: 8px 0; }

/* 👷 소장 페이지: 통합 넓게 맨 위 · 부서 2개씩 · 칸 촘촘하게 */
.chiefhead { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 4px 0 10px; }
.chiefhead small { color: var(--sub); } .chiefhead b { font-size: 19px; }
.orderform .odate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; }
.orderform .odate b { font-size: 17px; color: var(--brand); } .orderform .odate span { font-size: 13px; color: var(--sub); }
.orderform .ogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.obox { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--card); min-width: 0; }
.obox.wide { border-color: var(--brand); border-width: 2px; }
.obox .obh { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.obox .obh label { font-weight: 800; color: var(--brand); } .obox .obh label small { font-weight: 400; color: var(--sub); font-size: 12px; }
.obox .ostamp { font-size: 12px; color: var(--brand-2); white-space: nowrap; }
.orderform .obox textarea { display: block; width: 100%; font-size: 16px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; min-height: 0; margin: 0; }
.osent .otext { white-space: pre-wrap; font-size: 15px; line-height: 1.4; background: var(--ok-bg); border-radius: 8px; padding: 6px 8px; word-break: keep-all; overflow-wrap: anywhere; }
.osent + .osent { margin-top: 6px; }
.osent .ometa { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12px; color: var(--sub); }
.osent .ometa .ok { color: var(--ok); font-weight: 700; } .osent .ometa .btn { margin-left: auto; }
.orderform .ordsend { margin-top: 12px; }

/* ⏱ 전체 공기: 지금 공정 · 준공 D-day · 기간 가운데 (사용자 2026-11-21) */
.sched .sphase { text-align: center; }
.sched .sdday { justify-content: center; text-align: center; }

/* ⏱ 공기 현황 글자 세 단계 크게 (사용자 2026-11-21) */
.grp:has(#schedBox) > .gtitle { font-size: 28px; }
#schedBox .shead h3 { font-size: 21px; }
#schedBox .sdday b { font-size: 34px; }
#schedBox .sdday .note { font-size: 19px; }
#schedBox .sbar { grid-template-columns: 52px 1fr 70px; font-size: 19px; }
#schedBox .bar { height: 16px; }
#schedBox .sgap { font-size: 20px; }
#schedBox .snote, #schedBox .scalc { font-size: 18px; }
#schedBox .sphase { font-size: 19px; } #schedBox .sphase b { font-size: 21px; }
#schedBox .gp .sdday b { font-size: 26px; }
#schedBox .gph, #schedBox .msrow, #schedBox .pdoc, #schedBox .msnav { font-size: 18px; }
#schedBox .empty { font-size: 18px; }
/* 기간·계획·실적 두 단계 더 · 늦음 줄 세 단계 더 + 가운데 · 늦으면 빨강 / 정상·앞서면 파랑 (사용자 2026-11-21) */
#schedBox .sbar { grid-template-columns: 64px 1fr 82px; font-size: 23px; }
#schedBox .sbar span { font-weight: 700; }
#schedBox .sgap { font-size: 26px; text-align: center; margin: 10px 0 4px; }
#schedBox .sgap.bad { color: #D92D20; } #schedBox .sgap.ok { color: #1570EF; }
/* 📅 기록 날짜별 */
.lgday { margin-top: 10px; } .lgday:first-of-type { margin-top: 4px; }
.lgdh { font-weight: 800; color: var(--brand); border-bottom: 2px solid var(--line); padding: 4px 0; margin-bottom: 4px; }
.lgrow { padding: 6px 2px; border-bottom: 1px solid #F2F4F7; line-height: 1.45; }
.lgrow small { display: block; margin-top: 2px; }
/* 세부 공기 칸은 좁아서 한 줄에 들어가게 */
#schedBox .gp .sgap { font-size: 21px; }
#schedBox .gp .sbar { grid-template-columns: 52px 1fr 66px; font-size: 20px; }
#schedBox .gp .sdday .note { font-size: 16px; }
/* 🖼 지시 첨부 사진: 바로 보이게 (누르면 크게) */
.nfiles .nimg { display: block; } .nfiles .nimg img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #F9FAFB; }
.fmark { font-size: .9em; white-space: nowrap; }
.nfthumb img { display: block; max-height: 90px; border-radius: 8px; border: 1px solid var(--line); }
/* 줄·홈 상자에 사진 작은 그림 */
.fthumbs { display: inline-flex; gap: 3px; vertical-align: middle; margin-left: 4px; }
.fthumbs img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #F2F4F7; }
.fthumbs small { align-self: center; font-size: 12px; color: var(--sub); }
.blist .fthumbs img { width: 30px; height: 30px; }

/* 🗂 홈 지시·전달 상자 (사용자 2026-11-21): 세로로 길게 · 줄마다 사진/📄 왼쪽 · 글 오른쪽 한 줄(넘치면 …) · 제목 옆 💬 새 글 수 */
.bbox { min-height: 300px; }
.bbox .bmain { min-height: 230px; align-items: flex-start; }
.bbox .blist li { display: flex; align-items: center; gap: 6px; white-space: nowrap; -webkit-line-clamp: unset; min-height: 40px; padding: 3px 0; font-size: 14.5px; word-break: normal; }
.bbox .blist li .ltxt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbox .lthumb { flex: none; width: 34px; height: 34px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #F2F4F7; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.bbox .lthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbox .shead h3 { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.bubble { position: relative; font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: #F04438; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; margin-left: 2px; }
.bubble::after { content: ''; position: absolute; left: 4px; bottom: -4px; border-width: 5px 5px 0 0; border-style: solid; border-color: #F04438 transparent transparent transparent; }
/* 폰: 한 줄에 하나씩 넓게 (글이 읽히게) · PC: 두 개씩 */
.bgrid { grid-template-columns: 1fr; }
.bbox { min-height: 230px; } .bbox .bmain { min-height: 170px; }
@media (min-width: 720px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bbox { min-height: 300px; } .bbox .bmain { min-height: 230px; } }
.bbox .shead h3 { white-space: nowrap; }
/* 홈 큰 제목 모두 공기 현황과 같은 크기 (사용자 2026-11-22) */
.grp > .gtitle, .grp > .shead.big h2 { font-size: 28px; }
/* 오늘 보고 카드: 폭 반 이하로 가운데 · 안의 글·원은 크게 (사용자 2026-11-22) */
section.card.progress { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; padding: 14px 22px; gap: 16px; }
.progress .ring { width: 88px; height: 88px; } .progress .ring::before { inset: 10px; } .progress .ring b { font-size: 22px; }
.progress .ptitle { font-size: 22px; } .progress .note { font-size: 17px; }
/* 전체 공기: 준공까지 D-day 가운데 · 날짜 오른쪽 (사용자 2026-11-22) */
#schedBox .sched > .sub:first-child .sdday { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
#schedBox .sched > .sub:first-child .sdday b { grid-column: 2; }
#schedBox .sched > .sub:first-child .sdday .note { grid-column: 3; justify-self: end; text-align: right; font-size: 16px; line-height: 1.3; }
#schedBox .sched > .sub:first-child .sdday b { white-space: nowrap; }
@media (max-width: 520px) {
  #schedBox .sched > .sub:first-child .sdday { grid-template-columns: 0 auto 1fr; gap: 6px; }
  #schedBox .sched > .sub:first-child .sdday b { font-size: 26px; justify-self: center; }
  #schedBox .sched > .sub:first-child .sdday .note { font-size: 13px; }
}
@media (max-width: 520px) {
  #schedBox .sched > .sub:first-child .sdday { grid-template-columns: 1fr auto 1fr; gap: 4px; }
  #schedBox .sched > .sub:first-child .sdday b { font-size: 24px; padding: 6px 10px; }
  #schedBox .sched > .sub:first-child .sdday .note { font-size: 12px; }
}
/* 👷 소장 페이지 (사용자 2026-11-22): 제목 = 홈과 같은 28px · 위 소장 업무 / 아래 작업 지시 · 폭을 줄여 통합 칸이 가로로 길어 보이지 않게 */
.chiefhead, .chiefsec, #ordForm { max-width: 760px; margin-left: auto; margin-right: auto; }
.chiefsec { margin-bottom: 14px; }
#ordForm .shead.big h2, .chiefsec .shead.big h2 { font-size: 28px; }
#ordForm .odate b { font-size: 20px; }
.chiefhead b { font-size: 22px; }
#ordForm { padding: 0 12px 12px; } #ordForm > .shead { margin: 0 -12px 8px; } #ordForm .odate { justify-content: center; }
/* 📤 작업 지시 보내기 줄: 부서별 | 🎤 | 통합 · 아래 부서 골라 보내기 (사용자 2026-11-22) */
.orderform .ordsend.three { grid-template-columns: 1fr 76px 1fr; }
.orderform .omic { font-size: 28px; background: var(--accent, #E8590C); border-color: var(--accent, #E8590C); color: #fff; padding: 4px; }
.orderform .omic small { font-size: 11px; color: #fff; opacity: 1; }
.orderform .opick { width: 100%; margin-top: 10px; min-height: 52px; font-weight: 800; }
.pkrow { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; background: var(--card); font-size: 18px; }
.pkrow input { width: 22px; height: 22px; } .pkrow small { margin-left: auto; color: var(--sub); font-size: 13px; }
.pkrow.all { border: 2px solid var(--brand); }
.pkchief { text-align: center; margin: 14px 0 4px; color: var(--sub); } .pkchief b { color: var(--ink); }
.pkdepts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; border-top: 2px solid var(--line); padding-top: 4px; }
.sendcd { text-align: center; padding: 10px 0; } .sendcd b { display: block; font-size: 22px; margin-bottom: 8px; } .sendcd span { display: block; font-size: 18px; color: var(--accent, #E8590C); margin-bottom: 14px; }
@media (max-width: 520px) { .orderform .ordsend.three { grid-template-columns: 1fr 64px 1fr; gap: 6px; } .orderform .ordsend.three .btn:not(.omic) { font-size: 16px; padding: 6px 4px; } .orderform .ordsend.three small { font-size: 11px; } }
/* 📤 단추 두 개: 🎤 음성 작성 · 📤 보내기 (사용자 2026-11-22) */
.orderform .ordsend.two { grid-template-columns: 1fr 1fr; }
.orderform .ordsend.two .omic { font-size: 19px; }

/* 🧭 소장 업무 중제목 (현장 · 본사) */
.chgrp + .chgrp { margin-top: 14px; }
.chgh { margin: 4px 0 8px; font-size: 20px; color: var(--brand); border-left: 5px solid var(--accent, #E8590C); padding-left: 8px; }
.segs.big2 .seg { min-height: 52px; font-size: 19px; font-weight: 800; }

/* 📞 홈 전화번호 */
.phtools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.phtools input[type=search] { width: 100%; min-height: 48px; font-size: 17px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; }
.phtools .segs .seg small { color: inherit; opacity: .7; font-size: 12px; }
.phlist { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.phrow { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.phk { flex: none; font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: #EEF2F6; }
.phk.k-gc { background: #EBE9FE; color: #5925DC; } .phk.k-site { background: #FFF4EC; color: #B93815; } .phk.k-hq { background: #E0F2FE; color: #026AA2; }
.phw { flex: 1; min-width: 0; display: flex; flex-direction: column; } .phw b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .phw small { color: var(--sub); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phcall { flex: none; font-weight: 800; font-size: 16px; color: #fff; background: var(--ok); border-radius: 10px; padding: 9px 12px; text-decoration: none; white-space: nowrap; }
/* 👷 조직도 현장소장 상자: 현장명 · 직책 · 성명 · 전화번호 + ✏ 입력 (사용자 2026-11-22) */
.chiefwrap { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chiefbox .cbsite { font-weight: 800; color: var(--brand); font-size: 14px; text-align: center; }
.chiefbox b { font-size: 20px; } .chiefbox .cbtel { font-style: normal; font-size: 15px; color: var(--ink); font-weight: 700; }
.cbbtns { display: flex; gap: 6px; } .cbbtns:empty { display: none; }
/* 🏢 부서 상자: 직책·성명·전화번호 */
.dept .dhead { font-size: 14px; color: var(--ink); font-weight: 700; } .dept .dtel { font-size: 13px; color: #1849A9; font-weight: 700; text-decoration: none; }
/* 🗑 부서 삭제 요청 */
.oerm { display: flex; justify-content: flex-end; gap: 6px; margin: -4px 0 8px; }
.dept.rmreq { border-color: #F04438 !important; box-shadow: 0 0 0 2px #FEE4E2; }
.dept .rmtag { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: #F04438; border-radius: 8px; padding: 2px 8px; align-self: center; }
#modal input[type=password], #modal input[type=tel], #modal input[type=date] { width: 100%; min-height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
/* 📷 전화번호 사진 · 사진으로 넣기 */
.phscan { white-space: nowrap; font-weight: 800; }
.phimg { flex: none; } .phimg img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.phpic { max-height: 70px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.scimg img { display: block; max-width: 100%; max-height: 260px; margin: 0 auto; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; }
.warnline { background: #FFF4DC; color: #8a5a00; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.scrow { display: grid; grid-template-columns: 28px 76px 1fr 1fr; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.scrow input[type=text], .scrow input[type=tel], .scrow select { width: 100%; min-height: 40px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.scrow .sck { display: flex; align-items: center; justify-content: center; } .scrow .sck input { width: 20px; height: 20px; }
.scrow [data-f=phone] { grid-column: 3 / 4; } .scrow [data-f=memo] { grid-column: 4 / 5; }
.sctext pre { white-space: pre-wrap; font-size: 13px; background: #F9FAFB; padding: 8px; border-radius: 8px; max-height: 200px; overflow: auto; }
.scrow [data-f=title] { grid-column: 1 / 3; }
.scrow input.chk { border: 2px solid #F79009; background: #FFFAEB; } .chkmark { color: #B54708; }

/* 🏢 부서 상자 = 현장소장 상자와 같은 모양 (사용자 2026-11-22) */
.dept.orgbox { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 10px 12px; text-align: center; border: 2px solid var(--brand); border-radius: 14px; background: var(--card); box-shadow: none; }
.dept.orgbox.mine { border-color: var(--brand-2); box-shadow: 0 0 0 2px #D1E9FF; }
.dept.orgbox .cbsite { display: block; font-weight: 800; color: var(--brand); font-size: 14px; }
.dept.orgbox .dtitle { display: block; color: var(--sub); font-size: 13px; min-height: 1em; }
.dept.orgbox .dname { display: block; font-size: 20px; color: var(--ink); }
.dept.orgbox .dtel { display: block; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.dept.orgbox .dlink { display: block; font-size: 12px; color: #1849A9; margin-top: 2px; }
.dept.orgbox .dlink i { font-style: normal; } .dept.orgbox .dlink i.ok { color: var(--ok); font-weight: 700; } .dept.orgbox .dlink i.bad { color: var(--bad); } .dept.orgbox .dlink i.wait { color: var(--warn); }
.dept.orgbox .minetag { font-size: 11px; }
/* 조직도: 부서 상자도 소장 상자와 같은 폭으로 가운데부터 */
.grp .depts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.grp .depts > .dept.orgbox { flex: 0 1 220px; min-width: 150px; }
.grp .depts > .empty { flex: 1 1 100%; }
.chiefbox .cbtel { cursor: pointer; }

/* 🌳 조직도 나무 (사용자 2026-11-22): 소장 옆 · 소장 아래 · 하위 부서 · 선으로 이음 */
.orgscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.otree { width: max-content; min-width: 100%; display: flex; flex-direction: column; align-items: center; }
.otop { display: flex; align-items: center; justify-content: center; }
.oside { display: flex; align-items: center; }
.otree .hl { display: block; width: 22px; height: 2px; background: #98A2B3; flex: none; }
.otree .chiefwrap { align-self: auto; }
.otree .dept.orgbox, .otree .chiefbox { width: 200px; min-width: 0; flex: none; }
@media (max-width: 520px) { .otree .dept.orgbox, .otree .chiefbox { width: 160px; } .otree .chiefbox { padding: 10px 8px; } .otree .dept.orgbox .dname { font-size: 18px; } }
.otree .dept.orgbox::before { display: none; }
.otree .okids, .otree .depts.okids { position: relative; display: flex; flex-wrap: nowrap; justify-content: center; gap: 0; padding: 16px 0 0; margin: 0; border-top: 0; width: auto; }
.otree .okids::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 16px; background: #98A2B3; }
.otree .okids:empty::before, .otree .okids.top:has(> .empty)::before { display: none; }
.otree .onode { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 6px 0; }
.otree .onode::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 16px; background: #98A2B3; }
.otree .onode::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #98A2B3; }
.otree .onode:first-child::after { left: 50%; } .otree .onode:last-child::after { right: 50%; } .otree .onode:only-child::after { display: none; }
.otree .okids > .empty { min-width: 260px; }

/* 🤝 협력업체 */
.vdrow { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.vdw { flex: 1; min-width: 0; display: flex; flex-direction: column; } .vdw b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vdw small { color: var(--sub); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vddoc { flex: none; font-size: 13px; color: #1849A9; font-weight: 700; }
.vdhead .vdn { font-size: 24px; display: block; }
.vdgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vdcard { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: var(--card); }
.vdcard img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; display: block; background: #F2F4F7; }
.vdcard small { font-size: 12px; }
.okline { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 700; }
.vdcard img { object-fit: contain; background: #fff; border: 1px solid #F2F4F7; } .vdhead a.btn { text-decoration: none; }
/* 조직도 아래: 📞 전화번호 | 🤝 협력업체 반반 (폰은 위아래) (사용자 2026-11-22) */
.halfrow { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .halfrow { grid-template-columns: 1fr 1fr; align-items: start; } .halfrow .grp { margin: 0; min-width: 0; } }
/* 📞·🤝 칸 크게: 줄 3개는 늘 보이게 · 글자 크게 (사용자 2026-11-22) */
.halfrow .phlist { min-height: 228px; max-height: 460px; }
.halfrow .phlist > .empty { min-height: 216px; display: flex; align-items: center; justify-content: center; }
.halfrow .phrow, .halfrow .vdrow { min-height: 70px; padding: 12px; }
.halfrow .phw b, .halfrow .vdw b { font-size: 19px; } .halfrow .phw small, .halfrow .vdw small { font-size: 14px; }
.halfrow .phcall { font-size: 17px; padding: 11px 14px; }
.halfrow .phtools input[type=search] { min-height: 52px; font-size: 18px; }
.halfrow .phlist { min-height: 304px; max-height: 520px; }
.halfrow .phlist > .empty { min-height: 292px; }

/* 🧰 공무 도구 */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tbtn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; cursor: pointer; font: inherit; }
.tbtn i { font-style: normal; font-size: 30px; } .tbtn b { font-size: 15px; word-break: keep-all; }
.tbtn small { position: absolute; top: 6px; right: 8px; font-size: 12px; font-weight: 800; color: #1849A9; }
.tbtn.up { border-style: dashed; border-color: var(--brand); } .tbtn.all { background: #F2F4F7; }
.fbtn.hot2 { border-color: var(--brand); background: #EEF4FF; }
.dtools { margin-top: 10px; }
.tpick { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.icons { display: flex; flex-wrap: wrap; gap: 6px; } .icons .seg { font-size: 22px; min-width: 48px; }
.thead .tname { font-size: 24px; flex: 1; }
.tdocs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tdoc { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--card); display: flex; flex-direction: column; gap: 4px; }
.tdl { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); } .tdl i { font-style: normal; font-size: 30px; } .tdl span { display: flex; flex-direction: column; min-width: 0; } .tdl b { font-size: 17px; } .tdl small { color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tver { color: #fff; background: var(--brand); border-radius: 6px; padding: 0 6px; font-size: 12px; }
.tsub { font-style: normal; background: #EEF2F6; border-radius: 6px; padding: 0 6px; font-size: 12px; color: var(--ink); }
.told { padding: 4px 0; border-top: 1px dashed var(--line); }
.vdcard .tit { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 기능 = 부서별 서류 제목 (사용자 2026-11-22) */
.fdept + .fdept { margin-top: 12px; }
.fdh { margin: 0 0 6px; font-size: 18px; color: var(--brand); border-left: 5px solid var(--accent, #E8590C); padding-left: 8px; }
.fdocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fdoc { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; }
.fdoc b { font-size: 16px; word-break: keep-all; } .fdoc small { font-size: 12px; color: var(--sub); }
.fdoc.st-sent { border-color: #ABEFC6; background: #F6FEF9; } .fdoc.st-sent small { color: var(--ok); font-weight: 700; }
.fdoc.st-draft small, .fdoc.st-changed small { color: var(--warn); font-weight: 700; }
/* 헤더 로그인 · 마이 */
#menu.loginbtn { width: auto; padding: 0 14px; font-weight: 800; font-size: 15px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; background: transparent; }
.myinfo .kv { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid #F2F4F7; } .myinfo .kv span { width: 64px; color: var(--sub); flex: none; } .myinfo .kv b { word-break: break-all; }
/* 📅 근태 */
.att .shead h3 { font-size: 18px; }
.attsum { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.attrows { display: flex; flex-direction: column; gap: 6px; }
.attrow { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid #F2F4F7; } .attrow b { width: 70px; flex: none; } .attrow span { display: flex; flex-wrap: wrap; gap: 4px; }
.attk { font: inherit; font-size: 13px; font-weight: 700; border: 0; border-radius: 8px; padding: 3px 8px; background: #EEF2F6; color: var(--ink); cursor: pointer; }
.attk.leave { background: #E0F2FE; color: #026AA2; } .attk.half { background: #FEF0C7; color: #93370D; } .attk.absent { background: #FEE4E2; color: #B42318; }
.segs.wrap { flex-wrap: wrap; }

/* 🧩 기능: 📁 공통 폴더 + 부서별 (서류 + 끌어온 폴더) */
.fdept .fdh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fdept.common { background: #F8FAFC; border: 1px dashed var(--line); border-radius: 12px; padding: 10px; }
.ffolds { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.ffold { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; text-align: center; }
.ffold i { font-style: normal; font-size: 26px; } .ffold b { font-size: 14px; word-break: keep-all; }
.ffold small { position: absolute; top: 4px; right: 6px; font-size: 11px; font-weight: 800; color: #1849A9; }
/* 📦 여러 파일 한 묶음 */
.tdoc.pack { border-color: var(--brand); }
.packfiles { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 4px 40px; } .packfiles a { font-size: 14px; color: #1849A9; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.packimg { position: relative; padding: 0; border: 0; background: none; cursor: pointer; display: block; width: 100%; }
.packimg em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: rgba(16,24,40,.75); border-radius: 8px; padding: 2px 8px; }
.vdcard.pack { border-color: var(--brand); box-shadow: 4px 4px 0 -1px #fff, 4px 4px 0 0 var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--sub); } .gallery img { width: 100%; height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; } .gallery small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickinfo { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #F2F4F7; font-size: 15px; } .row > label.btn { display: flex; flex-direction: column; align-items: center; gap: 2px; } .row > label.btn small { font-weight: 400; }
/* 📁 끌어온 폴더 빼기 ✕ */
.ffold, .tbtn { position: relative; }
.fx { position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #F04438; color: #fff; font-weight: 900; font-size: 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.editing .ffold, .editing .tbtn:not(.up):not(.all) { outline: 2px dashed #F04438; outline-offset: 2px; }
.hbtn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
/* 올리기 창 두 단추: 글자 박스 안 가운데 (사용자 2026-11-22) */
.row > label.btn { justify-content: center; align-items: center; text-align: center; }
.row > label.btn small { display: block; width: 100%; text-align: center; }
/* 🖼 이미지 폴더에서 고르기 */
.pflist { max-height: 60vh; overflow-y: auto; margin-top: 8px; }
.pfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.pfimg { padding: 0; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; } .pfimg:hover, .pfimg:focus { border-color: var(--accent, #E8590C); }
.pfimg img { display: block; width: 100%; height: 96px; object-fit: cover; border-radius: 6px; }
/* 💰 기능 자금 줄 · 서류 안 자금 증빙 */
.fdept.fund { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 10px; margin-bottom: 12px; }
.spev { margin-bottom: 10px; padding: 8px; border-radius: 10px; background: #FFFBEB; border: 1px solid #FDE68A; }
.spevh { font-weight: 800; margin-bottom: 6px; }
.spevi { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.spevi img { width: 100%; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.spevi small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
