@font-face{font-family:"Pretendard";font-weight:400;font-display:swap;src:url(/assets/fonts/Pretendard-Regular.woff2) format("woff2")}
@font-face{font-family:"Pretendard";font-weight:500;font-display:swap;src:url(/assets/fonts/Pretendard-Medium.woff2) format("woff2")}
@font-face{font-family:"Pretendard";font-weight:600;font-display:swap;src:url(/assets/fonts/Pretendard-SemiBold.woff2) format("woff2")}
@font-face{font-family:"Pretendard";font-weight:700;font-display:swap;src:url(/assets/fonts/Pretendard-Bold.woff2) format("woff2")}

:root{
  --navy:#201547;--navy-d:#120B2E;--gold:#D9C795;
  --bg:#F2F2F7;--card:#FFFFFF;--text:#1C1C1E;--sub:#6E6E73;--line:#E5E5EA;--line2:#C6C6C8;
  --soft:#F7F7FA;--fill:rgba(120,120,128,0.12);
  --late-bg:#FEF0E3;--late:#D9681A;
  /* 색 기준(2026-10-30 다시 정함): 파스텔 빨강 = 초과, 파스텔 주황 = 오늘(임박, 3일 내 포함), 파스텔 노랑 = 1주일 내, 달력의 마감 날짜 = 연한 파랑, 임의마감 날짜 = 연한 초록, 회색 = 진행 */
  --over:#E5737A;--over-bg:#FDEDEE;--soon:#E8955A;--soon-bg:#FEF1E6;--wk:#CFA232;--wk-bg:#FFF6D6;--due:#2F5F9E;--due-bg:#E3EEFB;--tmp:#2F7A4F;--tmp-bg:#E3F4EA;--due-f:#9CC0EE;--tmp-f:#A8DCBB;
  /* 막대, 칸 채움용 파스텔 */
  --over-f:#F3A3A6;--soon-f:#F7BE92;--wk-f:#F5D982;
  --legal-bg:#FDEDEE;--legal:#E5737A;
  --ok-bg:rgba(32,21,71,0.07);--good:#1E7B34;--good-bg:rgba(52,199,89,0.14);
  --temp-bar:#C9C3DE;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:"Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;-webkit-font-smoothing:antialiased;font-size:15px}
a{color:var(--navy)}a:hover{color:var(--navy-d)}
button{font:inherit}
input,select,textarea{font:inherit;font-size:15px;color:var(--text)}
.num{font-variant-numeric:tabular-nums}
.sub{font-size:13px;color:var(--sub)}
.small{font-size:12px}
.muted{color:var(--sub)}
.hidden{display:none!important}

/* 헤더 */
.hdr{position:sticky;top:0;z-index:20;background:rgba(249,249,251,0.82);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:0.5px solid var(--line2);padding:0 24px}
.hdr-in{max-width:1392px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-height:56px}
.brand{display:flex;align-items:flex-end;gap:7px;text-decoration:none}
.brand img{height:26px;width:auto;display:block}
.brand span{font-size:17px;font-weight:700;color:var(--navy);letter-spacing:-0.01em;line-height:1}
.nav{display:flex;flex-wrap:wrap;gap:2px;flex:1 1 auto}
.nav a{color:#3C3C43;text-decoration:none;font-size:14px;font-weight:500;padding:7px 8px;border-radius:999px;white-space:nowrap}
.nav a.on{background:rgba(32,21,71,0.08);color:var(--navy);font-weight:600}
.who{display:flex;align-items:center;gap:10px;position:relative}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--gold);color:var(--navy);display:grid;place-items:center;font-size:13px;font-weight:700;border:0;cursor:pointer}
.menu{position:absolute;right:0;top:42px;background:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,0.14);padding:6px;min-width:200px;z-index:30}
.menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px 12px;border-radius:9px;cursor:pointer;font-size:14px}
.menu button:hover{background:var(--soft)}
.syncdot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:#34C759;vertical-align:middle}
.syncdot.bad{background:#FF3B30}.syncdot.none{background:#C7C7CC}

/* 레이아웃 */
main{max-width:1392px;width:100%;margin:0 auto;padding:28px 24px 48px;display:flex;flex-direction:column;gap:20px}
.ptitle{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap}
h1{margin:0;font-size:22px;font-weight:700;letter-spacing:-0.01em}
.h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-0.01em}
.h3{margin:0;font-size:16px;font-weight:700}
.cols{display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start}
.colmain{flex:999 1 640px;min-width:0;display:flex;flex-direction:column;gap:20px}
.colside{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:20px}
.card{background:var(--card);border-radius:16px;padding:20px}
.cardhead{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.stat{background:#fff;border-radius:16px;padding:16px 18px;border:0;text-align:left;color:inherit;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}
button.stat{cursor:pointer}button.stat:hover{background:#FBFBFD}
.stat .v{font-size:30px;font-weight:700;letter-spacing:-0.02em;margin-top:4px;font-variant-numeric:tabular-nums}
.stat .v small{font-size:15px;font-weight:500;color:var(--sub);margin-left:4px}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}

/* 컨트롤 */
.seg{display:inline-flex;background:#E3E3E8;border-radius:9px;padding:2px;gap:2px;flex-wrap:wrap}
.seg button{font-size:13px;font-weight:500;border:0;background:transparent;color:var(--text);padding:4px 12px;min-height:28px;border-radius:7px;cursor:pointer}
.seg button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,0.12);font-weight:600}
.btn{font-size:14px;font-weight:600;border:0;border-radius:999px;padding:9px 16px;min-height:38px;cursor:pointer;white-space:nowrap}
.btn:disabled{opacity:0.5;cursor:default}
.btn-p{background:var(--navy);color:#fff}
.btn-g{background:var(--fill);color:var(--navy)}
.btn-r{background:var(--over-bg);color:var(--legal)}
.btn-s{font-size:13px;padding:6px 12px;min-height:32px}
.btn.ibtn{padding:6px 9px;min-width:34px;display:inline-flex;align-items:center;justify-content:center}
.link{white-space:nowrap;font-size:13px;border:0;background:transparent;color:var(--navy);padding:6px 4px;min-height:34px;cursor:pointer;font-weight:500}
.refbtn{border:0;background:transparent;color:var(--navy);padding:2px 0;cursor:pointer;font-variant-numeric:tabular-nums;font-weight:600;text-decoration:underline;text-decoration-color:rgba(32,21,71,0.25);text-underline-offset:3px;font-size:inherit}
.chip{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.c-late{background:var(--late-bg);color:var(--late)}
.c-today{background:var(--navy);color:#fff}
.c-legal{background:var(--legal-bg);color:var(--legal)}
.c-ok{background:var(--ok-bg);color:var(--navy)}
.c-good{background:var(--good-bg);color:var(--good)}
.c-gray{background:#EFEFF4;color:#3C3C43}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field label{font-size:13px;color:var(--sub);font-weight:500}
.inp{border:0;background:#F2F2F7;border-radius:10px;padding:10px 12px;min-height:42px;width:100%;outline:none}
.inp:focus{box-shadow:0 0 0 2px rgba(32,21,71,0.35)}
textarea.inp{min-height:160px;resize:vertical;line-height:1.6}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 16px}

/* 표 */
.tblwrap{overflow-x:auto;margin:0 -4px}
table.t{width:100%;border-collapse:collapse}
.t th{font-size:12px;font-weight:500;color:var(--sub);text-align:left;padding:8px 10px;border-bottom:0.5px solid var(--line2);white-space:nowrap}
.t td{font-size:14px;padding:11px 10px;border-bottom:0.5px solid var(--line);vertical-align:middle;white-space:nowrap}
.t tr:last-child td{border-bottom:0}
.t td.wrap{white-space:normal;min-width:160px}
/* 2026-11-06 의뢰인: 고정 폭, 길면 줄바꿈 */
.t td.cli{white-space:normal;min-width:180px;width:200px;max-width:220px;word-break:keep-all;overflow-wrap:break-word;line-height:1.4}
.t th.r,.t td.r{text-align:right}
.t tbody tr.click{cursor:pointer}.t tbody tr.click:hover td{background:#FAFAFC}
.empty{padding:28px 8px;text-align:center;color:var(--sub);font-size:14px}
.rowi{padding:12px 0;border-bottom:0.5px solid var(--line)}
.rowi:last-child{border-bottom:0}
.note{background:#FFF8E6;color:#6B4A00;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.6}
.note.info{background:#EEF0F8;color:#2A2550}
.err{background:var(--over-bg);color:var(--legal);border-radius:12px;padding:12px 14px;font-size:14px}

/* 메일 */
.mrow{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;color:inherit;background:transparent;border:0;border-bottom:0.5px solid var(--line);padding:12px 6px;cursor:pointer;border-radius:8px}
.mrow:hover{background:#F5F5F8}
.mrow .unread{width:8px;height:8px;border-radius:50%;background:#007AFF;margin-top:6px;flex:0 0 8px}
.mrow .read{width:8px;flex:0 0 8px}
.ellip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.mailbody{background:var(--soft);border-radius:12px;padding:16px 18px;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow:auto;max-height:420px;word-break:break-word}
.mailframe{width:100%;min-height:360px;border:0;background:#fff;border-radius:12px}
.mailsplit{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:20px;align-items:start}
@media (max-width:900px){.mailsplit{grid-template-columns:1fr}}

/* 달력 */
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.cal .dow{font-size:12px;color:var(--sub);text-align:center;padding:4px 0}
.cal .cell{min-height:92px;border-radius:10px;padding:6px;min-width:0;background:#fff;border:0.5px solid var(--line)}
.cal .cell.out{background:transparent}
.cal .cell.today{background:rgba(32,21,71,0.05);border-color:var(--navy)}
.cal .dn{font-size:12px;font-weight:500}
.cal .cell.out .dn{color:#C7C7CC}.cal .cell.we .dn{color:#8E8E93}.cal .cell.today .dn{font-weight:700}
.ev{font-size:11px;line-height:1.3;padding:3px 6px;border-radius:6px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;background:var(--tmp-bg);color:var(--tmp);display:block;width:100%;text-align:left;border:0;cursor:pointer}
.ev.legal{background:var(--due-bg);color:var(--due);font-weight:600}
.ev.late{background:var(--over-bg);color:#D45C63;font-weight:600;box-shadow:inset 3px 0 0 var(--over-f)}
.ev .evx{font-weight:800}
.ev.done{background:#EFEFF4;color:#8E8E93;text-decoration:line-through}
.more{font-size:11px;color:var(--sub);margin-top:3px;border:0;background:transparent;padding:0;cursor:pointer}
.legend{display:flex;gap:14px;font-size:12px;color:var(--sub);margin-top:12px;flex-wrap:wrap}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:3px;display:inline-block}

/* 막대 */
.bar{height:10px;background:#F2F2F7;border-radius:999px;display:flex;overflow:hidden;position:relative}
.bar>.a{background:var(--due-f)}.bar>.b{background:var(--tmp-f)}
.loadrow{display:grid;grid-template-columns:96px minmax(0,1fr) 40px;align-items:center;gap:10px}
.minibar{display:flex;gap:3px;align-items:flex-end;height:26px}
.minibar i{display:block;width:10px;background:var(--temp-bar);border-radius:3px}
.minibar i.cur{background:var(--navy)}
.vbars{display:flex;gap:10px;align-items:flex-end;height:176px;padding-top:30px;margin-top:6px}
.vbars .c{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.vbars .b{width:100%;max-width:36px;background:var(--temp-bar);border-radius:6px 6px 3px 3px;position:relative}
.vbars .b.cur{background:var(--navy)}
.vbars .b em{position:absolute;top:-18px;left:50%;transform:translateX(-50%);font-style:normal;font-size:11px;color:var(--sub);white-space:nowrap}
.vbars .l{font-size:11px;color:var(--sub)}
.tile{background:#F2F2F7;border-radius:12px;padding:10px 12px}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}

/* 모달, 시트 */
.backdrop{position:fixed;inset:0;z-index:50;background:rgba(20,14,50,0.28);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:16px}
.sheet{background:#F2F2F7;border-radius:20px;width:min(820px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.25)}
.sheet.wide{width:min(1100px,100%)}
.sheet-h{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 20px 12px;background:rgba(249,249,251,0.9)}
.sheet-b{padding:4px 20px 20px;overflow:auto}
.xbtn{width:32px;height:32px;border-radius:50%;border:0;background:var(--fill);color:#3C3C43;cursor:pointer;font-size:18px;line-height:1}
.kv{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px 12px;font-size:14px}
.kv dt{color:var(--sub)}.kv dd{margin:0}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:rgba(28,28,30,0.92);color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;z-index:80;max-width:90vw}
.spin{display:inline-block;width:16px;height:16px;border:2px solid rgba(32,21,71,0.2);border-top-color:var(--navy);border-radius:50%;animation:sp 0.8s linear infinite;vertical-align:-3px}
@keyframes sp{to{transform:rotate(360deg)}}
.loading{padding:40px;text-align:center;color:var(--sub)}

/* 로그인 */
.auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.authcard{background:#fff;border-radius:20px;padding:32px 28px;width:min(400px,100%)}
.authcard .brand{justify-content:center;margin-bottom:24px}
.authcard .brand img{height:34px}.authcard .brand span{font-size:22px}

@media (max-width:640px){
  .hdr{padding:0 16px}main{padding:20px 16px 40px}
  .stat .v{font-size:24px}
  .cal .cell{min-height:64px}.ev{font-size:10px}
}

.iconbtn{width:30px;height:30px;border-radius:50%;border:0;background:var(--fill);color:var(--navy);display:grid;place-items:center;cursor:pointer;padding:0}
.iconbtn:hover{background:rgba(32,21,71,0.14)}
button.tile:hover{background:#ECECF1}

/* 전체 메일함 검색 */
.searchgrid{display:grid;gap:16px;align-items:start}
.sgcol{padding:12px;min-width:0}
.sglist{max-height:62vh;overflow:auto}
.sglist .mrow{user-select:none}
@media (max-width:900px){.searchgrid{grid-template-columns:1fr!important}}

/* 메일 화면: 목록과 읽기 칸을 같은 높이로, 각자 스크롤 */
.mailsplit .mailpane{height:calc(100vh - 190px);min-height:480px;overflow:auto}
.mailsplit #mailRead .mailframe{min-height:300px}
@media (max-width:900px){.mailsplit .mailpane{height:auto;max-height:none}.mailsplit #mailList{max-height:60vh}}

/* 대시보드 격자: 위 요약 5칸과 아래 카드들의 세로선을 맞춘다. 내용이 넘치면 카드 안에서 스크롤 */
.dash{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto 200px 290px 300px 250px;gap:16px}
.dash > .stat{grid-row:1}
.dcard{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.dcard > .dhead{flex:0 0 auto}
.dcard > .dbody{flex:1 1 auto;min-height:0;overflow:auto;padding-right:6px}
.dash #workCard{grid-column:1/5;grid-row:2/4}
.dash #schedCard{grid-column:5/6;grid-row:2}
.dash #assignCard{grid-column:5/6;grid-row:3}
.dash #inboxCard{grid-column:1/5;grid-row:4/6}
.dash #perfCard{grid-column:5/6;grid-row:4}
.dash #loadCard{grid-column:5/6;grid-row:5}
.dash.noperf #loadCard{grid-row:4/6}
#workCard .tblwrap{margin:0}
#workCard .t thead th{position:sticky;top:0;background:#fff;z-index:1}
@media (max-width:1100px){
  .dash{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none}
  .dash > .stat{grid-row:auto}
  .dash > .stat:last-of-type{grid-column:1/3}
  .dash #workCard,.dash #schedCard,.dash #assignCard,.dash #inboxCard,.dash #perfCard,.dash #loadCard,.dash.noperf #loadCard{grid-column:1/3;grid-row:auto}
  .dash #workCard{height:520px}.dash #schedCard{height:220px}.dash #assignCard{height:300px}.dash #inboxCard{height:560px}
}
#workCard .cal .cell{min-height:70px}

/* 첨부, 편집기 */
.atts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.att{display:inline-flex;align-items:center;gap:6px;background:#F2F2F7;border-radius:8px;padding:5px 10px;font-size:13px;max-width:100%}
.att a{color:#201547;text-decoration:none;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.att a:hover{text-decoration:underline}
.attx{border:0;background:transparent;color:#8E8E93;font-size:16px;line-height:1;cursor:pointer;padding:0 2px}
.attx:hover{color:var(--over)}
.editor{min-height:260px;max-height:50vh;overflow:auto;border:0.5px solid #D1D1D6;border-radius:10px;padding:12px 14px;background:#fff;font-family:'맑은 고딕','Malgun Gothic',sans-serif;font-size:10pt;line-height:normal;color:#000;outline:none}

.editor:focus{border-color:#201547;box-shadow:0 0 0 3px rgba(32,21,71,.08)}
.editor img{max-width:100%}
.kai-signature{color:inherit}

/* 받는 사람 추천 */
.acbox{position:fixed;z-index:1000;background:#fff;border:0.5px solid #D1D1D6;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:4px;max-height:280px;overflow:auto}
.acitem{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;border:0;background:transparent;text-align:left;padding:7px 10px;border-radius:7px;cursor:pointer;font:inherit}
.acitem.on,.acitem:hover{background:#F2F2F7}
.acname{font-size:14px;font-weight:600;color:#1C1C1E}

/* 새 메일: 서식 도구, 본문, 서명 */
.edwrap{border:0.5px solid #D1D1D6;border-radius:10px;background:#fff;overflow:hidden}
.edwrap:focus-within{border-color:#201547;box-shadow:0 0 0 3px rgba(32,21,71,.08)}
.edwrap .editor{border:0;border-radius:0;box-shadow:none}
.edbar{display:flex;flex-wrap:wrap;gap:3px;align-items:center;padding:6px 8px;border-bottom:0.5px solid #E5E5EA;background:#FAFAFC}
.edb{border:0;background:transparent;min-width:30px;height:30px;padding:0 7px;border-radius:7px;cursor:pointer;font-size:13px;color:#1C1C1E;display:inline-flex;align-items:center;justify-content:center;position:relative}
.edb:hover{background:#ECECF1}
.edcolor input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.edsel{height:30px;border:0.5px solid #D1D1D6;border-radius:7px;background:#fff;font-size:12px;padding:0 6px;width:118px}
.edsep{width:1px;height:20px;background:#E0E0E6;margin:0 4px}
.sigwrap{border:0.5px dashed #C7C7CC;border-radius:10px;padding:10px 14px;background:#FAFAFC}
.sighead{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.sigview{font-family:'맑은 고딕','Malgun Gothic',sans-serif;font-size:10pt;line-height:normal;color:#000;max-height:180px;overflow:auto}
.sigview img{max-width:100%}

/* 메일 읽기: 본문이 남은 높이를 모두 쓰게 */
.mailview{display:flex;flex-direction:column}
.mailsplit #mailRead{display:flex;flex-direction:column}
.mailsplit #mailRead > .mailview{flex:1 1 auto;min-height:0}
.mailsplit #mailRead .mailview .mailframe,.mailsplit #mailRead .mailview .mailbody{flex:1 1 auto;min-height:300px;max-height:none}
/* 2026-11-12: 본문(iframe)은 내용 높이로 늘리고 읽기 칸 전체를 한 번에 스크롤 */
.mailsplit #mailRead > .mailview{overflow-y:auto}
.mailsplit #mailRead .mailview .mailframe.autoh{flex:0 0 auto;min-height:200px}
.mailframe.autoh{min-height:200px}
.mailsplit #mailRead .mailview .mailbody{flex:0 0 auto;min-height:0;overflow:visible}

/* 눌러서 목록을 여는 숫자 칸 */
.stat-btn{font:inherit;text-align:left;border:0;cursor:pointer;color:inherit;width:100%;transition:box-shadow .15s,transform .15s}
.stat-btn:hover{box-shadow:0 2px 10px rgba(32,21,71,.10);transform:translateY(-1px)}
.stat-btn:focus-visible{outline:2px solid #201547;outline-offset:2px}

/* 팝업으로 연 메일: 본문을 넉넉하게 */
#mailModalBody .mailframe,#mailModalBody .mailbody{min-height:58vh;max-height:none}

/* 그래프 */
.vz{width:100%;height:auto;display:block;font-family:inherit}
.vz .vzhit{cursor:default}
.vz .vzhit:hover{fill:rgba(32,21,71,0.04)}
.vzlegend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:6px 0 4px;font-size:12px;color:#3A3A3C}
.vzlegend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.vztip{position:fixed;z-index:2000;pointer-events:none;background:#1C1C1E;color:#fff;font-size:12px;line-height:1.5;padding:7px 10px;border-radius:8px;white-space:pre-line;box-shadow:0 6px 18px rgba(0,0,0,.2);display:none;max-width:280px}
.vzgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.vzgrid > .card{margin:0}
@media (max-width:1000px){.vzgrid{grid-template-columns:1fr}}
.hbars{display:flex;flex-direction:column;gap:8px}
.hb{display:grid;grid-template-columns:84px 1fr 52px;align-items:center;gap:10px;font-size:13px}
.hb .hl{color:#3A3A3C}
.hb .ht{height:10px;background:#F2F2F7;border-radius:5px;overflow:hidden}
.hb .ht i{display:block;height:100%;border-radius:5px}
.hb .hn{text-align:right}
table.heat td.c,table.heat th.c{text-align:center;min-width:64px}
table.heat td.c{border-left:2px solid #fff}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}

/* 팀 마감 현황 */
.tdsum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 12px}
.tdk{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:0;background:#F7F7FA;border-radius:12px;padding:10px 14px;font:inherit;color:inherit;text-align:left}
button.tdk{cursor:pointer}
button.tdk:hover{background:#EFEFF6}
.tdk b{font-size:22px;font-weight:700}
.tdk.late b{color:var(--over)}.tdk.soon b{color:var(--soon)}.tdk.wk b{color:var(--wk)}
@media (max-width:700px){.tdsum{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cntbtn{border:0;background:#F2F2F7;border-radius:999px;min-width:32px;padding:3px 10px;font:inherit;font-weight:600;cursor:pointer}
.cntbtn:hover{background:#E5E5EA}
.cntbtn.late{background:var(--over-bg);color:var(--over)}.cntbtn.soon{background:var(--soon-bg);color:var(--soon)}
.cntbtn.today{background:var(--soon-bg);color:var(--soon)}.cntbtn.wk{background:var(--wk-bg);color:#A88220}
.wtools{display:flex;gap:8px;align-items:center;margin:0 0 8px}
.wtools .inp{min-height:34px;padding:6px 12px;font-size:13px;max-width:320px}

/* 헤더 찾기 */
.gsearch{flex:0 1 220px;min-width:140px;margin-left:auto}
.gsearch input{width:100%;height:34px;border:0.5px solid #D1D1D6;border-radius:999px;background:#fff;padding:0 14px;font:inherit;font-size:13px;outline:none}
.gsearch input:focus{border-color:#201547;box-shadow:0 0 0 3px rgba(32,21,71,.08)}
.gqbox .acitem{gap:2px}
@media (max-width:900px){.gsearch{flex:1 1 100%;order:3;margin-left:0;margin-bottom:10px}}   /* 모바일: 검색 막대 아래 여백(2026-11-17) */

/* 새로 들어온 메일 */
.mrow.mnew{animation:mnew 2.4s ease-out}
@keyframes mnew{0%{background:#EEEAFB}100%{background:transparent}}

.segbadge{display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;border-radius:9px;background:#FF3B30;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.rpfiles{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow:auto;background:#F7F7FA;border-radius:10px;padding:6px 10px}
.rpfile{display:flex;gap:8px;align-items:center;font-size:13px;padding:3px 0;cursor:pointer}
.rpfile .ellip{flex:1 1 auto;min-width:0}
.rphint{margin-top:4px;padding:6px 8px;border-radius:8px;background:var(--legal-bg);color:var(--legal);max-width:280px}
.alertbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:-4px 0 16px;padding:10px 14px;border-radius:12px;background:var(--legal-bg);color:var(--legal);font-size:14px}
.alertbar span{flex:1 1 auto;min-width:200px}

/* 역할별 대시보드, 업무 관리 격자 */
.dg{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;align-items:start}
.dg .w1{grid-column:span 1}.dg .w2{grid-column:span 2}.dg .w3{grid-column:span 3}.dg .w4{grid-column:span 4}.dg .w5{grid-column:1/-1}
.dg .stats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){.dg{grid-template-columns:1fr}.dg .w1,.dg .w2,.dg .w3,.dg .w4,.dg .w5{grid-column:1/-1}.dg .stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
a.stat{display:block}
.rowi.mini{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:transparent;font:inherit;color:inherit;cursor:pointer;padding:10px 2px;text-align:left}
.rowi.mini b{font-size:18px}
.rowi.mini:hover{background:#FBFBFD}
.navbadge{display:inline-block;min-width:18px;padding:0 5px;margin-left:5px;border-radius:9px;background:#FF3B30;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;vertical-align:1px}
.rpsearch{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.rpsearch .inp{flex:1 1 260px;max-width:420px}
.rpcands{display:flex;flex-direction:column;gap:2px;margin-top:10px}
.rpcand{border:0;background:#F7F7FA;border-radius:10px;padding:8px 12px;text-align:left;cursor:pointer;font:inherit;color:inherit}
.rpcand:hover{background:#EFEFF4}

/* 대시보드 카드 배치 (사용자 편집) */
.dg2{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:100px;grid-auto-flow:row dense;gap:16px}
.dg2 > .dc{grid-column:span var(--w);grid-row:span var(--h);min-height:0;position:relative}
.dg2 > .dstats{display:flex;flex-direction:column}
.dg2 > .dstats .stats{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));flex:1 1 auto}
.dg2 > .dstats .stat{height:100%}
.dg2 > .dc > .dcin{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;overflow:hidden}
.dg2 > .dc > .dcin > .dhead{flex:0 0 auto}.dg2 > .dc > .dcin > .dbody{flex:1 1 auto;min-height:0;overflow:auto;padding-right:6px}
.dg2.editing > .dc{outline:2px dashed #C9C3DE;outline-offset:2px;padding-top:44px}
.dg2.editing > .dc > :not(.dctool){pointer-events:none;opacity:.55}
.dg2.editing > .dc.dropto{outline-color:#201547;outline-style:solid}
.dctool{position:absolute;top:6px;left:8px;right:8px;z-index:2;display:flex;gap:6px;align-items:center;flex-wrap:wrap;background:#201547;color:#fff;border-radius:10px;padding:4px 8px;cursor:grab;font-size:12px}
.dctool .dcname{font-weight:700;margin-right:auto}
.dctool button{border:0;background:rgba(255,255,255,.16);color:#fff;border-radius:7px;padding:3px 8px;cursor:pointer;font:inherit}
.dctool button:disabled{opacity:.35;cursor:default}
.dctool select{border:0;border-radius:6px;padding:2px 4px;margin-left:4px;font:inherit}
.dctool label{display:flex;align-items:center}
.dashedit{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:14px;padding:14px 16px;margin-bottom:16px;border:2px solid #201547}
.dashedit-add{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.chipbtn{border:1px dashed #6A5FA0;background:#F5F3FB;color:#201547;border-radius:999px;padding:4px 10px;cursor:pointer;font:inherit;font-size:13px}
.setrow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #EFEFF4}
.setrow:last-child{border-bottom:0}
@media (max-width:1100px){
  .dg2{grid-template-columns:1fr;grid-auto-rows:auto}
  .dg2 > .dc{grid-column:1/-1;grid-row:auto}
  .dg2 > .dc.dcard{height:440px}
}
.dg2.editing > .dc[style*="--w:1;"]{padding-top:76px}
.dg2.editing > .dstats{padding-top:40px}
.dg2.editing > .dstats .stat{padding:6px 14px}
.dg2.editing > .dstats .stat .v{font-size:20px;margin-top:0}

/* 전자포대 폴더 */
.docbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.doccrumbs{display:flex;gap:2px;align-items:center;flex-wrap:wrap;min-width:0}
.doccrumbs .link{padding:2px 4px;min-height:0}
.docdrop{border:2px dashed transparent;border-radius:12px;padding:4px;transition:border-color .15s,background .15s;min-height:160px}
.docdrop.over{border-color:#201547;background:#F5F3FB}
.doct td{padding-top:7px;padding-bottom:7px}
.docname{display:inline-flex;gap:8px;align-items:center;color:inherit;text-decoration:none;word-break:break-all}
.docname svg{flex:0 0 auto}
a.docname:hover{color:var(--navy);text-decoration:underline}
.dochint{font-size:12px;color:var(--sub);text-align:center;padding:10px 0 4px}
/* 폴더 목록: 약 15줄 높이로 고정, 안에서 스크롤 */
.docscroll{height:520px;overflow:auto;border-radius:8px}
.docscroll .doct thead th{position:sticky;top:0;background:#fff;z-index:1}
@media (max-width:700px){.docscroll{height:460px}}
/* 메일 새 창 */
.popwin .hdr{display:none}
.popwin #main{max-width:1000px;padding-top:16px}
.popwin #main{height:100vh;box-sizing:border-box;padding-bottom:16px}
.popwin #popMail{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.popwin #popMail > .mailview{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.popwin #popMail .mailframe{flex:1 1 auto;min-height:300px;height:auto}
.popwin #popMail{overflow:auto}

/* 새 메일 알림 카드 (오른쪽 아래) */
#mailNotif{position:fixed;right:20px;bottom:20px;z-index:90;display:flex;flex-direction:column;gap:10px;width:min(340px,calc(100vw - 32px));pointer-events:none}
.mnotif{position:relative;background:#fff;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,0.16),0 0 0 0.5px rgba(0,0,0,0.08);border-left:4px solid var(--navy);overflow:hidden;pointer-events:auto;animation:mnIn .22s ease-out}
@keyframes mnIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.mnotif{animation:none}}
.mnotif-b{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;border:0;background:transparent;padding:12px 40px 12px 14px;cursor:pointer;font:inherit;color:var(--text)}
.mnotif-b+.mnotif-b{border-top:0.5px solid var(--line)}
.mnotif-b:hover{background:#F7F7FA}
.mnotif-h{font-size:12px;font-weight:600;color:var(--navy)}
.mnotif-f{font-size:14px;font-weight:600}
.mnotif-s{font-size:13px;color:var(--sub)}
.mnotif-x{position:absolute;top:8px;right:8px;width:26px;height:26px;border-radius:50%;border:0;background:transparent;color:var(--sub);font-size:18px;line-height:1;cursor:pointer;z-index:1}
.mnotif-x:hover{background:var(--fill)}

/* 메일 검색창: 밝은 바탕, 얇은 테두리, 둥근 사각형, 돋보기 (Enter 로 검색) */
.msearch{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #DCDCE1;border-radius:10px;padding:0 6px 0 11px;min-height:38px;width:min(360px,100%);transition:border-color .15s,box-shadow .15s}
.msearch:hover{border-color:#C7C7CC}
.msearch:focus-within{border-color:#A1A1AA;box-shadow:0 0 0 3px rgba(32,21,71,0.08)}
.msearch-i{width:16px;height:16px;color:#8E8E93;flex:0 0 auto}
.msearch input{flex:1 1 auto;min-width:0;border:0;outline:none;background:transparent;font:inherit;font-size:14px;color:var(--text);padding:7px 0}
.msearch input::placeholder{color:#9A9AA0}
.msearch-x{border:0;background:transparent;color:#8E8E93;width:24px;height:24px;border-radius:6px;cursor:pointer;font-size:16px;line-height:1;flex:0 0 auto}
.msearch-x:hover{background:var(--fill)}
.msearch-mode{border:0;background:transparent;color:var(--sub);border-radius:6px;padding:0 8px;min-height:26px;font:inherit;font-size:12px;font-weight:500;cursor:pointer;flex:0 0 auto;white-space:nowrap}
.msearch-mode:hover{background:var(--fill);color:var(--navy)}
.msearch-mode[aria-pressed="true"]{background:var(--fill);color:var(--navy);font-weight:600}
.msearch-go{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* 고정 높이 + 안쪽 스크롤 (2026-10-19 사용자 요청: 목록이 길어도 화면 배치가 늘어나지 않게) */
.card .tblwrap{max-height:560px;overflow:auto;overscroll-behavior:contain}
.card .tblwrap .t thead th{position:sticky;top:0;background:var(--card);z-index:1}
.card .tblwrap.ts10{max-height:488px}
.dg2 .tblwrap,.sheet .tblwrap,.popwin .tblwrap{max-height:none}
/* 대시보드 카드는 카드 본문이 세로로 스크롤한다. 표가 가로로 조금만 넘쳐도 contain 때문에 세로 휠이 막히므로 풀어 둔다 (2026-10-26) */
.dg2 .tblwrap{overscroll-behavior:auto}
.lscroll{overflow-y:auto;overscroll-behavior:contain;padding-right:6px}
.lscroll.ls6{max-height:500px}
.lscroll.ls5{max-height:330px}

.h2link{color:inherit;text-decoration:none}.h2link:hover{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}

/* 알림 벨 */
.bellwrap{position:relative;display:inline-flex}
.bellbadge{position:absolute;top:-4px;right:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#FF3B30;color:#fff;font-size:11px;font-weight:700;line-height:17px;text-align:center;pointer-events:none;box-shadow:0 0 0 2px #F9F9FB}
.bellpanel{position:fixed;width:min(380px,calc(100vw - 24px));background:#fff;border-radius:14px;box-shadow:0 12px 36px rgba(0,0,0,0.18),0 0 0 0.5px rgba(0,0,0,0.08);z-index:60;overflow:hidden}
.bellhead{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 8px;border-bottom:0.5px solid var(--line)}
.belllist{max-height:440px;overflow-y:auto;overscroll-behavior:contain}
.bellitem{display:flex;gap:10px;width:100%;text-align:left;border:0;background:transparent;padding:10px 14px;cursor:pointer;font:inherit;color:var(--text);border-bottom:0.5px solid var(--line)}
.bellitem:hover{background:#F7F7FA}
.bellitem.unread{background:rgba(32,21,71,0.04)}
.bellitem.unread .belltitle{font-weight:700}
.bellchip{flex:0 0 auto;font-size:11px;font-weight:600;color:var(--navy);background:var(--fill);border-radius:6px;padding:2px 6px;height:fit-content;margin-top:2px}
.bellbody{display:flex;flex-direction:column;gap:2px;min-width:0}
.belltitle{font-size:14px}
.bellsub{font-size:12px;color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 직원별 기록 */
.audp{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;border:0;background:transparent;padding:9px 10px;border-radius:10px;cursor:pointer;font:inherit;color:var(--text)}
.audp:hover{background:#F7F7FA}
.audp.on{background:rgba(32,21,71,0.08)}
.audwarn td{background:#FFF4F2}
.ckinfo td{opacity:.85}

.bellcheck{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;border-bottom:0.5px solid var(--line);text-decoration:none;color:var(--text);font-size:14px}
.bellcheck:hover{background:#F7F7FA}
.bellcheck.on{background:#FFF4F2}
.bellcheck.on .num{color:var(--over);font-weight:700}
.bellall{display:block;text-align:center;padding:10px;font-size:13px;font-weight:600;color:var(--navy);text-decoration:none;border-top:0.5px solid var(--line)}
.bellall:hover{background:#F7F7FA}
tr.nunread td{background:rgba(32,21,71,0.04)}

.iconbtn.on{background:var(--navy);color:#fff}
a.iconbtn{text-decoration:none}

.docspop .sheet-h{gap:12px;flex-wrap:wrap}
#docsPopFound:not(:empty){margin-bottom:12px}

/* 메일 화면 오른쪽 도구줄: 한 줄 유지(편지함 토글, 검색, 메일 쓰기). 좁으면 검색칸이 먼저 줄어든다 */
.mailtools{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;margin-left:auto;min-width:0}
.mailtools .msearch{flex:0 1 340px;min-width:170px;width:auto}
.mailtools .msearch-mode{display:none}
.mailtools .msearch:focus-within .msearch-mode,.mailtools .msearch-mode[aria-pressed="true"]{display:inline-block}
@media (min-width:1500px){.mailtools .msearch-mode{display:inline-block}}
.mailtools > .btn{flex:0 0 auto;white-space:nowrap}
.mailtools .seg{flex:0 0 auto;flex-wrap:nowrap}
.mailtools .seg button{white-space:nowrap}
.ptitle{align-items:center}

/* 업무 관리 전체 탭: 찾기칸(돋보기), 오른쪽 끝 엑셀 아이콘 */
.wtools .wsearch{width:min(340px,100%);min-height:36px}
.xlsbtn{margin-left:auto;width:36px;height:36px;border:0;border-radius:10px;background:transparent;display:grid;place-items:center;cursor:pointer;padding:0}
.xlsbtn:hover{background:var(--fill)}

/* 메일함 토글 안 읽은 수, 메뉴 배지: 오른쪽 위에 살짝 겹치게 */
.seg button{position:relative}
.mbbadge{position:absolute;top:-7px;right:-6px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#FF3B30;color:#fff;font-size:11px;font-weight:700;line-height:17px;text-align:center;pointer-events:none;box-shadow:0 0 0 2px #F2F2F7;z-index:1}
.nav a{position:relative}
.nav a .navbadge{position:absolute;top:-6px;right:-8px;margin:0;min-width:17px;height:17px;padding:0 4px;line-height:17px;vertical-align:0;box-shadow:0 0 0 2px #F9F9FB;pointer-events:none}

.dochist{display:inline-flex;gap:4px;margin-right:10px;vertical-align:middle}
.iconbtn.sm{width:26px;height:26px;font-size:18px;line-height:1}
.iconbtn:disabled{opacity:.35;cursor:default}

/* 메일함 토글 배지가 카드 위쪽에서 잘리지 않게 토글을 조금 내리고 배지를 덜 올린다 */
.mbseg{margin-top:6px}
.mbbadge{top:-6px;right:-4px}
/* 메뉴 배지: 글자와 겹치지 않게 글자 오른쪽 어깨에 둔다 */
.nav a.hasb{padding-right:24px}
.nav a .navbadge{top:1px;right:2px;box-shadow:none}

/* 모든 찾기칸을 같은 모양으로(돋보기, 밝은 바탕, 얇은 테두리). 찾기 버튼은 숨기고 Enter 로 찾는다 */
.gsearch.msearch{min-height:34px;padding:0 10px}
.gsearch.msearch input{width:auto;height:auto;border:0;background:transparent;padding:6px 0;font-size:13px;box-shadow:none}
.gsearch.msearch input:focus{border:0;box-shadow:none}
.rpsearch .msearch{min-height:38px}

/* 오늘 일정 카드 To-do list (2026-10-20) */
.todos{display:flex;flex-direction:column;margin-top:4px}
.todo{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid #F0F0F3;font-size:14px}
.todo:first-child{border-top:0}
.todo input{width:17px;height:17px;margin:0;accent-color:#201547;flex:none;cursor:pointer}
.todo .todobox{width:15px;height:15px;border:1.5px solid #C7C7CC;border-radius:4px;flex:none}
.todo .tt{flex:1;min-width:0;text-align:left;background:none;border:0;padding:2px 4px;margin:-2px -4px;font:inherit;color:inherit;border-radius:6px;cursor:text}
.todo button.tt:hover{background:#F2F2F7}
.todo.editing{flex-wrap:wrap;gap:6px}
.todo .todoinp{flex:1 1 100%;min-width:0}
.todo .tododate{flex:1 1 0;min-width:0}
.todo.editing .btn{flex:none}
.todo.editing .inp{font-size:13px;padding:6px 8px;min-height:0}
.todo.editing .btn{padding:5px 10px}
.todo.done .tt{color:#8E8E93;text-decoration:line-through}
.todo .late{color:var(--over)}

/* 오늘 일정: 일정 고치기 (2026-10-20) */
.evrow .tt{flex:1;min-width:0;text-align:left;background:none;border:0;padding:2px 4px;margin:-2px -4px;font:inherit;color:inherit;border-radius:6px;cursor:text}
.evrow button.tt:hover{background:#F2F2F7}
.evrow.editing{flex-wrap:wrap;gap:6px !important}
.evrow.editing .inp{font-size:13px;padding:6px 8px;min-height:0}
.evrow .evtitle{flex:1 1 100%;min-width:0}
.evrow .evdate,.evrow .evtime{flex:1 1 0;min-width:0}
.evrow.editing .btn{flex:none;padding:5px 10px}

/* Assistant (2026-10-20) */
.clickrow{cursor:pointer}
.clickrow:hover td{background:#F7F7FA}
td.late,.num.late{color:var(--over)}
.rqgrid{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:8px 14px;align-items:center;font-size:14px}
@media (max-width:640px){.rqgrid{grid-template-columns:auto 1fr}}
.rqbody{white-space:pre-wrap;margin-top:12px;padding:12px;border-radius:10px;background:#F7F7FA;font-size:14px;line-height:1.6}
.rqlog{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow:auto}
.rqlogi{display:grid;grid-template-columns:96px 1fr;gap:10px;font-size:13px;padding:6px 0;border-top:1px solid #F0F0F3}
.rqlogi:first-child{border-top:0}
.rqlogi.cm span:last-child div{background:#EEF0F8;border-radius:8px;padding:6px 10px;margin-top:4px}
.trgrid{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:14px;align-items:start}
@media (max-width:900px){.trgrid{grid-template-columns:1fr}}
.trgrid textarea{width:100%;resize:vertical;font-family:inherit;line-height:1.6}
.trpair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:800px){.trpair{grid-template-columns:1fr}}
.trtext{white-space:pre-wrap;font-size:14px;line-height:1.7;max-height:60vh;overflow:auto}
.plangrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}

/* 업무 관리 카드: 찾기, 엑셀 버튼을 토글과 한 줄에 (2026-10-20) */
.whead{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;justify-content:flex-end;min-width:0}
.whead .wsearch{width:min(280px,100%);min-height:36px;flex:0 1 280px;min-width:140px}
.whead .xlsbtn{margin-left:0}

.schedseg{margin:2px 0 6px}
.schedseg .seg button{font-size:12px;padding:4px 10px}

/* ACK 처리 표시 (2026-10-20) */
.ackchip{display:inline-block;font-size:11px;font-weight:600;padding:1px 7px;border-radius:999px;margin-right:4px;vertical-align:1px}
.ackchip.need{background:var(--soon-bg);color:var(--soon)}
.ackchip.ok{background:#E8F5EC;color:#1E6B3A}
.ackchip.skip{background:#EFEFF4;color:#3C3C43}
.ackbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px;padding:8px 10px;border-radius:10px;background:#F7F7FA}
.ackbar .btn{min-height:28px;padding:4px 10px}
.ackfilter{display:flex;gap:10px;align-items:center;margin:4px 0 8px}

/* ACK 초안 목록 (2026-10-20) */
.ackitem{margin-bottom:12px}
.ackedit{margin-top:10px;min-height:120px;max-height:360px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;font-size:14px;line-height:1.6}
.ackedit p{margin:0}

.readall{font-size:12px;min-height:0;padding:0 4px;margin-left:8px;color:var(--navy);opacity:.8}
.readall:hover{opacity:1;text-decoration:underline}

/* 받은 편지함 "모두 읽음으로 표시" 아이콘 (설명은 data-tip 공통 툴팁) (2026-10-20) */
.mhright{display:flex;gap:6px;align-items:center;flex:none}
.tipbtn{position:relative;width:30px;height:30px}

/* 도면 작성 (Assistant > 도면) - 2026-10-21 메뉴 정리 */
.dw-top { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding-bottom:12px; border-bottom:0.5px solid var(--line); }
.dw-back { width:34px; height:34px; border-radius:10px; border:0; background:var(--fill); color:var(--text); display:grid; place-items:center; cursor:pointer; flex:none; }
.dw-back:hover { background:rgba(120,120,128,0.2); }
.dw-meta { display:flex; flex-direction:column; gap:2px; min-width:200px; flex:1 1 260px; max-width:440px; }
.dw-title { border:0; background:transparent; font:inherit; font-size:18px; font-weight:700; color:var(--text); padding:2px 6px; border-radius:6px; width:100%; }
.dw-title:hover, .dw-ref:hover { background:var(--soft); }
.dw-title:focus, .dw-ref:focus { outline:none; background:var(--soft); box-shadow:0 0 0 2px rgba(32,21,71,0.18); }
.dw-sub { display:flex; gap:8px; align-items:center; font-size:12px; color:var(--sub); padding-left:6px; }
.dw-ref { border:0; background:transparent; font:inherit; font-size:12px; color:var(--sub); width:110px; padding:1px 4px; margin-left:-4px; border-radius:5px; }
.dw-acts { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.dw-tx { display:inline-flex; gap:6px; align-items:center; }
.dw-tx svg { flex:none; }
.dw-menu { position:relative; }
.dw-pop { position:absolute; right:0; top:calc(100% + 6px); z-index:30; width:290px; background:#fff; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,0.14), 0 0 0 0.5px var(--line2); padding:6px; }
.dw-pop button { display:flex; flex-direction:column; gap:2px; width:100%; text-align:left; border:0; background:transparent; padding:8px 10px; border-radius:8px; cursor:pointer; font:inherit; color:var(--text); }
.dw-pop button:hover { background:var(--soft); }
.dw-pop b { font-size:14px; font-weight:600; }
.dw-pop span { font-size:12px; color:var(--sub); }
.dw-figs { display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; margin:10px 0 10px; }
.dw-tabs { display:flex; gap:2px; flex-wrap:wrap; background:var(--fill); padding:2px; border-radius:9px; }
.dw-fig { border:0; background:transparent; border-radius:7px; padding:5px 14px; font-size:13px; font-weight:500; cursor:pointer; color:var(--text); display:inline-flex; gap:5px; align-items:center; }
.dw-fig.on { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.12); font-weight:600; }
.dw-fig.dw-add { padding:5px 10px; color:var(--sub); font-size:15px; line-height:1; }
.dw-figact { display:flex; gap:14px; }
.dw-danger { color:var(--over) !important; }
.dw-modebar { font-size:12px; font-weight:600; color:#fff; background:var(--navy); border-radius:7px; padding:4px 10px; display:inline-flex; gap:8px; align-items:center; }
.dw-modebar .link { color:var(--gold); }
.dw-main { display:flex; gap:10px; align-items:stretch; }
.dw-rail { flex:0 0 46px; display:flex; flex-direction:column; gap:4px; background:var(--soft); border:0.5px solid var(--line); border-radius:12px; padding:6px 4px; height:68vh; overflow-y:auto; }
.dw-rg { display:flex; flex-direction:column; align-items:center; gap:0; padding-bottom:4px; border-bottom:0.5px solid var(--line2); }
.dw-rg:last-child { border-bottom:0; }
.dw-rb { margin-top:auto; border-bottom:0; padding-top:4px; }
.dw-ib { width:36px; height:31px; display:grid; place-items:center; border:0; background:transparent; color:#3a3a3c; border-radius:9px; cursor:pointer; flex:none; }
.dw-ib:hover { background:#fff; color:var(--navy); box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.dw-ib.on { background:var(--navy); color:#fff; }
.dw-ib.dw-sm { width:32px; height:32px; border-radius:8px; }
.dw-canvas { flex:1; min-width:0; height:68vh; overflow:auto; border:0.5px solid var(--line2); border-radius:12px; background:#fff;
  background-image: radial-gradient(#e3e7ee 1px, transparent 1px); background-size: 20px 20px; }
.dw-canvas svg { display:block; touch-action:none; user-select:none; }
.dw-node { cursor:move; }
.dw-edge { cursor:pointer; }
.dw-panel { width:264px; flex:0 0 264px; height:68vh; overflow-y:auto; background:var(--soft); border:0.5px solid var(--line); border-radius:12px; padding:12px; }
.dw-panel .field { margin-bottom:8px; }
.dw-panel .field label { font-size:12px; color:var(--sub); }
.dw-panel .inp { background:#fff; }
.dw-panel #dpText { min-height:64px; height:72px; resize:vertical; }
.dw-ph { font-size:15px; font-weight:700; margin-bottom:10px; }
.dw-sec { padding:10px 0; border-top:0.5px solid var(--line); }
.dw-sec:first-of-type { border-top:0; padding-top:0; }
.dw-2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.dw-lab { font-size:12px; color:var(--sub); margin-bottom:6px; }
.dw-row { display:flex; align-items:center; gap:2px; }
.dw-row .dw-lab { margin:0 6px 0 0; }
.dw-shapes { display:grid; grid-template-columns:repeat(6, 1fr); gap:2px; }
.dw-shapes .dw-ib { width:100%; }
.dw-stat { display:flex; gap:8px; margin-bottom:12px; }
.dw-stat div { flex:1; background:#fff; border-radius:10px; padding:10px; display:flex; flex-direction:column; }
.dw-stat b { font-size:20px; }
.dw-stat span { font-size:12px; color:var(--sub); }
.dw-help { display:flex; flex-direction:column; gap:8px; font-size:12px; color:var(--sub); line-height:1.5; }
.dw-pick { border:1px solid #d6dbe3; background:#fff; border-radius:6px; padding:6px; cursor:pointer; display:flex; flex-direction:column; gap:4px; align-items:center; }
.dw-pick img { width:160px; height:auto; max-height:200px; object-fit:contain; }
@media (max-width: 900px) { .dw-main { flex-direction:column; } .dw-rail { flex-direction:row; height:auto; flex:none; overflow-x:auto; } .dw-rg { flex-direction:row; border-bottom:0; border-right:0.5px solid var(--line2); padding:0 6px 0 0; } .dw-rb { margin:0; border:0; padding:0; } .dw-panel { width:100%; flex:auto; height:auto; } }

/* 메일 폴더 고르기 (2026-10-23) */
.mfold { position:relative; }
.mfold-btn { display:inline-flex; align-items:center; gap:6px; border:0; background:transparent; font:inherit; font-size:20px; font-weight:700; color:var(--text); padding:4px 8px; margin-left:-8px; border-radius:9px; cursor:pointer; letter-spacing:-0.01em; }
.mfold-btn:hover, .mfold-btn[aria-expanded="true"] { background:var(--fill); }
.mfold-btn svg { color:var(--sub); flex:none; }
.mfold-pop { position:absolute; left:-8px; top:calc(100% + 6px); z-index:40; min-width:240px; max-width:340px; max-height:60vh; overflow:auto; background:#fff; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,0.14), 0 0 0 0.5px var(--line2); padding:6px; }
.mfold-it { display:flex; justify-content:space-between; align-items:center; gap:10px; width:100%; border:0; background:transparent; font:inherit; font-size:14px; color:var(--text); text-align:left; padding:7px 12px; border-radius:8px; cursor:pointer; }
.mfold-it:hover { background:var(--soft); }
.mfold-it.on { background:var(--ok-bg); font-weight:600; color:var(--navy); }
.mfold-it.top { margin-top:5px; position:relative; }
.mfold-it.top::before { content:''; position:absolute; left:8px; right:8px; top:-3px; border-top:0.5px solid var(--line); }
.mfold-nm { display:inline-flex; align-items:center; gap:8px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mfold-nm svg { color:var(--sub); flex:none; }
.mfold-n { font-size:12px; font-weight:600; color:var(--navy); background:var(--fill); border-radius:10px; padding:1px 7px; flex:none; }
.mfold-wait { font-size:12px; color:var(--sub); padding:6px 12px; }

/* 영문 메일 자동 번역 (2026-10-24) */
.mailtr { margin:0 0 12px; border-radius:12px; background:var(--soft); border:0.5px solid var(--line); padding:12px 14px; }
.mailtr-h { font-size:13px; font-weight:700; color:var(--navy); margin-bottom:6px; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.mailtr-b { font-size:14px; line-height:1.65; white-space:pre-wrap; word-break:break-word; color:var(--text); }
.mailtr.fold .mailtr-b { display:none; }
.mailtr.fold .mailtr-h { margin-bottom:0; }
.mailtr-fold { margin-left:auto; border:0; background:none; font:inherit; font-size:12px; font-weight:600; color:var(--navy); cursor:pointer; padding:0 2px; }

.c-latetx { color:var(--soon); font-weight:600; }
/* 메일 목록: 폴더 고르기, 모두 읽음 행은 목록을 내려도 위에 남긴다 (2026-10-26) */
#mailList > .mhead { position:sticky; top:-4px; z-index:5; background:var(--card); margin:-12px -12px 4px; padding:12px 12px 8px; border-radius:16px 16px 0 0; }
#mailList > .mhead > .cardhead { margin-bottom:0 !important; }
#mailList > .mhead > .sub { margin:-2px 0 0 !important; line-height:1.3; }
/* 카드 안 표는 카드 본문이 스크롤한다. 표 자체의 높이 제한(560px)을 풀어 스크롤이 두 개 생기지 않게 (2026-10-27) */
.dcard .tblwrap{max-height:none;overscroll-behavior:auto}
/* 업무 관리 목록: 표만 스크롤하고 머리줄은 위에 남긴다 */
#workCard > .dbody{overflow:hidden;display:flex;flex-direction:column}
#workCard #workRows{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
#workCard #workRows > .tblwrap{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
/* 마감 현황: 담당자별 마감 일정 (2026-10-27) */
.sbar{display:flex;height:12px;border-radius:6px;overflow:hidden;background:#F2F2F7}
.sbar i{display:block;min-width:3px}
.dstrip{display:grid;grid-template-columns:repeat(14,24px);gap:2px}
.dstrip i{display:flex;align-items:center;justify-content:center;height:22px;border-radius:5px;background:#F7F7FA;font-style:normal;font-size:11px;font-variant-numeric:tabular-nums;color:#201547}
.dstrip i.we{background:#EFEFF4}
.dstrip.hd i{background:none;height:auto;color:#8E8E93;font-weight:500}
.dstrip.hd i.we{color:#C7C7CC}
.tsched td,.tsched th{vertical-align:middle}
.cntbtn.today{font-weight:700}
/* 담당자 업무 창 */
.pwhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.pwnav{display:flex;align-items:center;gap:8px}
.pwnav strong{font-size:17px;min-width:120px;text-align:center}
.pwnav .iconbtn{font-size:22px;line-height:1;width:34px;height:34px}
.pwcats{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.pwcat{border:1px solid #E5E5EA;background:#fff;border-radius:999px;padding:4px 12px;font:inherit;font-size:13px;cursor:pointer;color:#3A3A3C}
.pwcat.on{background:#201547;border-color:#201547;color:#fff}
.pwcat .num{opacity:.7;margin-left:2px}
.pwlh{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.pwlist{max-height:58vh;overflow:auto;overscroll-behavior:contain}
.pwlist .tblwrap{max-height:none;overflow:visible}
.pwgh{font-size:15px;margin:14px 0 4px}
.pwgh:first-child{margin-top:0}
.pwsplit{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.pwsplit .pwlist{max-height:62vh}
@media (max-width:1100px){.pwsplit{grid-template-columns:minmax(0,1fr)}.pwsplit .pwlist{max-height:50vh}}
.sheet.xwide{width:min(1440px,100%)}
/* 실적 막대 (2026-10-27) */
.pbar{position:relative;height:8px;border-radius:4px;background:#ECEBF3;min-width:140px}
.pbar i{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:#201547}
.pbar em{position:absolute;top:-3px;bottom:-3px;width:2px;background:#FF9500;border-radius:1px;transform:translateX(-1px)}
.pnum{margin-top:4px;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.tperf td{vertical-align:middle}
/* 운영 현황 > 담당자 카드 (2026-10-27) */
.pcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(400px,1fr));gap:16px;margin-top:16px}
.pcard{margin:0}
.psec{border-top:1px solid #EFEFF4;padding-top:10px;margin-top:10px}
.pt{font-weight:700;font-size:14px;margin-bottom:6px}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.pk{background:#F7F7FA;border-radius:10px;padding:8px 10px}
button.pkb{border:0;font:inherit;color:inherit;text-align:left;cursor:pointer;width:100%}button.pkb:hover{background:#EFEFF6}
.pv{font-weight:700;font-size:16px;font-variant-numeric:tabular-nums;margin-top:2px}
.pv.warn{color:var(--over)}
.pn{font-size:11px;color:var(--sub);margin-top:2px}
.spk{display:flex;gap:6px;align-items:flex-end;height:64px;margin:4px 0 6px}
.spk .c{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;font-size:11px;color:var(--sub)}
.spk .c i{display:block;width:100%;max-width:28px;background:#C9C3DE;border-radius:4px 4px 0 0}
.spk .c i.cur{background:#201547}
.spk .c em{font-style:normal;color:#1C1C1E;font-variant-numeric:tabular-nums;order:-1}
.scat{width:100%;max-width:760px;height:auto;display:block}
.scat .ax{font-size:11px;fill:#8E8E93}
.scat .lb{font-size:12px;fill:#1C1C1E}
/* 목록 엑셀 받기 (2026-10-27) */
.xlwrap{position:relative}
.xlbar{display:flex;justify-content:flex-end;margin:-8px 0 2px}
.xlbtn{display:inline-flex;align-items:center;gap:4px;border:1px solid #D9EBDD;background:#F3FAF5;color:#1E7F4F;border-radius:8px;padding:3px 9px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.xlbtn:hover{background:#E4F4E9}
/* 마감 현황: 사무소 전체 (2026-10-27) */
.odtiles{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.odt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border:0;background:var(--card);border-radius:14px;padding:12px 16px;font:inherit;color:inherit;cursor:pointer;text-align:left;box-shadow:inset 0 0 0 1px transparent}
.odt b{font-size:24px;font-weight:700}
.odt.late b{color:var(--over)}
.odt.on{box-shadow:inset 0 0 0 2px #201547}
.odstrip{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:6px}
.odd{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:92px;border:0;background:#F7F7FA;border-radius:10px;padding:6px 2px;font:inherit;cursor:pointer}
.odd.we{background:#EFEFF4}
.odd i{display:block;width:60%;background:#6A5FA0;border-radius:3px}
.odd b{font-size:13px;min-height:16px}
.odd.on{box-shadow:inset 0 0 0 2px #201547;background:#fff}
.odlist .tblwrap{max-height:70vh}
.odlist .cardhead{flex-wrap:wrap;gap:10px}
.odlist .t tr.grp td{background:#F2F1F8;font-weight:700;font-size:13px;padding-top:7px;padding-bottom:7px}
.odwho{display:flex;flex-direction:column;gap:4px;max-height:70vh;overflow:auto}
.odw{display:flex;justify-content:space-between;align-items:center;gap:8px;border:0;background:none;border-radius:8px;padding:7px 10px;font:inherit;text-align:left;cursor:pointer}
.odw:hover{background:#F7F7FA}
.odw.on{background:#201547;color:#fff}
.odw.on .sub{color:#ddd}
@media (max-width:900px){.odtiles{grid-template-columns:repeat(4,minmax(0,1fr))}.odstrip{grid-template-columns:repeat(7,minmax(0,1fr))}}
.odd > span{margin-bottom:auto}
.tperf .pbar{min-width:90px}
.tperf .pnum{white-space:normal;line-height:1.35}
.tperf .pnum .sub{display:block;font-size:12px}
.tperf td{min-width:110px}
.tperf td:first-child{min-width:0}
/* 마감 현황 목록: 가로 스크롤 없이 칸 너비 고정, 긴 글은 줄바꿈 (2026-10-27) */
.odlist .tblwrap{overflow-x:hidden}
.t.todd{table-layout:fixed;width:100%}
.t.todd td,.t.todd th{white-space:normal;overflow-wrap:anywhere;word-break:keep-all}
.t.todd td:nth-child(1),.t.todd td.num,.t.todd th{word-break:normal;overflow-wrap:normal}
.t.todd td.num{white-space:nowrap}
.t.todd td.wrap{min-width:0}
.t.todd tr.grp td{white-space:nowrap}
.t.todd .chip{white-space:nowrap;display:inline-block}
.t.todd td .refbtn{white-space:normal;text-align:left}
.odcols .colmain{flex-basis:780px}
.odcols .colside{flex-basis:240px}
/* 전자포대 검색 결과 (2026-10-27) */
.docsrescroll{max-height:65vh;overflow:auto}
.docsres .doct td.wrap{white-space:normal;word-break:break-all;min-width:0;max-width:340px}
.docscroll.docsrescroll{height:auto}
/* 업무 관리 목록 머리: 제목 옆에 탭, 오른쪽에 찾기와 엑셀 (2026-10-28) */
.wtitle{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
#workCard .cardhead{align-items:center}
/* 메일 플래그, 범주 (2026-10-28) */
.flagmark{display:inline-flex;align-items:center;font-size:12px;line-height:1}
.flagmark.on{color:#D9480F}
.flagmark.on svg{width:13px;height:13px;fill:#D9480F}
.flagmark.done{color:#1E7F4F;font-weight:700}
.iconbtn.flagon{color:#D9480F}
.iconbtn.flagon svg{fill:#D9480F}
.mrow-cats{display:flex;gap:4px;flex-wrap:wrap;margin-top:3px}
.mrow-cats:empty{display:none}
.catchip{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--sub);background:#F2F2F7;border-radius:6px;padding:1px 6px}
.catchip i{width:8px;height:8px;border-radius:2px;display:inline-block}
.catwrap{position:relative;display:inline-flex}
.catpop{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:200px;max-height:50vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.14),0 0 0 0.5px var(--line2);padding:6px}
.catopt{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;cursor:pointer;font-size:14px}
.catopt:hover{background:#F7F7FA}
.catopt i{width:10px;height:10px;border-radius:3px;display:inline-block}

/* 창이 떠 있을 때 뒤 화면 고정 */
html:has(#modal .backdrop){overflow:hidden}
.sheet-b,.docscroll{overscroll-behavior:contain}

/* 업무 목록: 전체, 이번 주는 달력과 목록이 한 스크롤 (2026-10-28) */
/* 2026-10-28: 업무 관리 업무 목록은 위 달력(높이 고정), 아래 목록(목록만 스크롤) 두 칸 */
#workCard.wpage{height:900px}
#workCard .wcalbox{min-width:0}
#workCard .wcalbox #calBox{min-height:790px}
#workCard .cal:not(.wkcal) .cell{height:112px;min-height:0;overflow:hidden}
#workCard .cal.wkcal .cell{height:160px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#workCard .wcalbox + .sub{margin-top:0 !important}

a.btn{text-decoration:none;display:inline-flex;align-items:center}

/* 업무 관리: 숫자 카드는 오른쪽 열 위에 작게 (2026-10-29) */
.stats.wstats{grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:6px;width:100%;flex:0 0 auto;margin-bottom:12px}
#workCard .wstats .stat{background:#F7F7FA}
.wstats .stat{padding:8px 10px;border-radius:12px}
.wstats .stat .sub{font-size:11px;white-space:nowrap}
.wstats .stat .v{font-size:20px;margin-top:2px}
.wstats .stat .v small{font-size:12px}


/* 마감 현황 주간 달력 (2026-10-29) */
.odwkhd{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}
.odcal .cell{min-height:170px}
.odch{display:flex;justify-content:space-between;align-items:baseline;width:100%;border:0;background:transparent;padding:0 0 2px;font:inherit;cursor:pointer;color:inherit}
.odch b{font-size:13px}
.odch.on{color:#201547;text-decoration:underline}
.odcc{display:flex;flex-wrap:wrap;gap:2px 6px;font-size:10px;color:var(--sub);margin:2px 0 2px}

/* 운영 현황 > 담당자: 월간 업무 로드, 유입과 처리, 추이 (2026-10-29) */
.lmwrap{max-height:none}
table.lm{border-collapse:separate;border-spacing:2px;width:100%;font-size:11px}
table.lm th{font-weight:500;color:var(--sub);text-align:center;padding:2px 0;min-width:22px}
table.lm th span{display:block;font-size:11px;color:var(--text,#1C1C1E)}
table.lm th em{display:block;font-style:normal;font-size:10px}
table.lm th.we span,table.lm th.we em{color:#AEAEB2}
table.lm th.td span{color:#fff;background:#201547;border-radius:6px}
table.lm .nm{text-align:left;white-space:nowrap;padding-right:8px;font-size:13px;min-width:64px}
table.lm td{height:24px;text-align:center;padding:0;background:#F7F7FA;border-radius:5px}
table.lm td.we{background:#EFEFF4}
table.lm td.nm,table.lm td.r{background:transparent}
table.lm td.td{box-shadow:inset 0 0 0 1.5px #201547}
table.lm td button,table.lm td span{display:block;width:100%;height:24px;line-height:24px;border:0;border-radius:5px;font:inherit;font-size:11px;font-weight:600;cursor:pointer;background:transparent;padding:0}
table.lm tr.tot td{border-top:0}
table.lm tr.tot .nm{color:var(--sub);font-size:12px}
table.lm td.r{padding-left:6px;text-align:right;font-size:12px}
.flw{display:flex;gap:6px;align-items:flex-end;margin-top:4px}
.flw .c{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px}
.flw .b{display:flex;align-items:flex-end;gap:2px;height:42px}
.flw i{display:block;width:7px;border-radius:2px 2px 0 0}
.flw i.in{background:#C9C3DE}.flw i.out{background:#201547}.flw i.out.cur{background:#6A5FA0}
.flw span{font-size:9px;color:var(--sub)}
.trl{width:100%;height:60px;display:block;margin-top:4px}

/* 운영 현황 > 리포트 (2026-10-29) */
.rphd{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.rpwrap .card{margin-bottom:16px}
table.rpt th{white-space:nowrap}
table.t tr.tot td{background:#F7F7FA;font-weight:600}
td.warnc{color:var(--over);font-weight:600;text-align:right}
@media print{
  header,nav,.topbar,.ptitle .seg,.rphd button,.xlsbtn,.xlbar,#modal{display:none !important}
  body{background:#fff}
  .card{box-shadow:none;break-inside:avoid}
  .tblwrap{max-height:none !important;overflow:visible !important}
}

/* 업무 관리: 달력과 목록 나란히 (2026-10-29) */
#workCard .wsplit{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:16px;flex:1 1 auto;min-height:0}
#workCard .wlist{display:flex;flex-direction:column;min-height:0;min-width:0}
#workCard .wlist > .sub{margin:0 0 6px !important}
#workCard .wlist #workRows{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
#workCard .wlist #workRows > .tblwrap{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
@media (max-width:1100px){#workCard .wsplit{grid-template-columns:1fr;overflow:auto}#workCard.wpage{height:auto}}
table.wtc{table-layout:fixed;width:100%}
table.wtc td{vertical-align:top}
table.wtc .chip{white-space:nowrap}

/* 업무 관리 아래: 할당이 필요한 업무, 업무 로드 (2026-10-29) */
.wbelow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-top:16px}
.wbelow > .card{height:360px}
@media (max-width:900px){.wbelow{grid-template-columns:1fr}}
#workCard > .dbody > .wlist{height:100%}

/* 창 위의 창 (2026-10-29) */
#modal2 .backdrop{z-index:60;background:rgba(20,14,50,0.22)}
html:has(#modal2 .backdrop){overflow:hidden}
#m2Mail{box-shadow:none}

/* 초안 첨부 끌어다 놓기 (2026-10-30) */
.dfdrop{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dfover{outline:2px dashed #6A5FA0;outline-offset:4px;border-radius:12px;background:rgba(106,95,160,0.04)}
#workCard > .dhead .cardhead{margin-bottom:8px;align-items:center}
#workCard .cal:not(.wkcal) .cell{height:104px}
#workCard .wcalbox #calBox{min-height:740px}

/* 대시보드 마감 현황: 담당자별 진행 업무 막대(2026-10-30) */
.tdbarh{width:38%}
.tdbarc{padding-right:14px}
.tdbar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:#F2F2F7;min-width:6px}
.tdbar i{display:block;height:100%}
.tdbar i.o{background:var(--over-f)}.tdbar i.t{background:var(--soon-f)}.tdbar i.s{background:var(--wk-f)}.tdbar i.r{background:#D1D1DB}

.stats.rp7{grid-template-columns:repeat(7,minmax(0,1fr))}.stats.rp7 .stat{padding:14px 14px}.stats.rp7 .stat .v{font-size:26px}
@media (max-width:1100px){.stats.rp7{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* 리포트 담당자 선택(2026-10-30): seg 와 같은 톤의 알약 모양 */
.pselw{display:inline-flex;align-items:center;gap:8px;background:#EFEFF4;border-radius:10px;padding:3px 4px 3px 12px}
.psel{appearance:none;-webkit-appearance:none;border:0;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23201547' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;border-radius:8px;padding:6px 30px 6px 12px;font:inherit;font-size:14px;font-weight:600;color:var(--navy);cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08);min-width:110px}
.psel:focus-visible{outline:2px solid #201547;outline-offset:1px}

/* 플래그한 메일 카드(2026-11-02) */
.flagrow{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:0.5px solid var(--line)}
.flagrow:last-child{border-bottom:0}
.flagchk{width:17px;height:17px;margin-top:2px;flex:0 0 auto;accent-color:#201547;cursor:pointer}
.flagbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;border:0;background:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.flagbody:hover .flagsub{text-decoration:underline}
.flagtop{display:flex;justify-content:space-between;gap:8px;min-width:0}
.flagsub{font-size:13px;color:#3C3C43}
.flagrow.done .flagtop,.flagrow.done .flagsub{color:#8E8E93;text-decoration:line-through}
.triagetodo{font-size:12.5px;color:#201547;display:flex;align-items:center;margin-top:2px}

/* 회신 받는 사람 칸(2026-11-03) */
.cmprcpt{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
@media (max-width:900px){.cmprcpt{grid-template-columns:1fr}}

/* 메일 목록에서 바로 플래그(2026-11-03) */
.rowflag{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;color:#AEAEB2;opacity:0;cursor:pointer;font-size:12px;font-weight:700}
.rowflag svg{width:14px;height:14px}
.mrow:hover .rowflag,.rowflag:focus-visible{opacity:1}
.rowflag:hover{background:#EFEFF4;color:#D9480F}
.rowflag.on{opacity:1;color:#D9480F}.rowflag.on svg{fill:#D9480F}
.rowflag.done{opacity:1;color:#1E7F4F}
@media (hover:none){.rowflag{opacity:.55}}
/* 업무 목록의 긴 관리번호는 하이픈에서 줄바꿈(2026-11-04) */
table.wtc td:first-child{white-space:normal}
table.wtc td:first-child .refbtn{white-space:normal;text-align:left;overflow-wrap:normal;line-height:1.3}
.t td .refbtn{max-width:100%}

/* 대시보드 오늘 임의마감 확인(2026-11-04) */
.duerow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-bottom:0.5px solid var(--line)}
.duerow:last-child{border-bottom:0}
.duemain{min-width:0;flex:1}
.dueact{display:flex;gap:6px;align-items:center;flex:0 0 auto}

/* 업무 관리 이번 주: 날짜를 위아래로, 업무 | 캘린더 (2026-11-04 다시 그림) */
.wkagbox{display:flex;flex-direction:column;overflow:hidden;min-height:0}
.wkagbox > .legend{flex:0 0 auto}
.wkaghead{margin-bottom:8px;font-size:16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.wkaghead .legend{margin:0;font-size:12px;flex-wrap:wrap;row-gap:4px}
.wkag{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:auto;border:0.5px solid #D1D1D6;border-radius:14px;background:#fff}
.wkr{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1fr);flex:1 0 auto;min-height:76px;border-bottom:0.5px solid #E5E5EA}
.wkr:last-child{border-bottom:0}
.wkr > div{padding:8px 10px;min-width:0}
.wkr > div + div{border-left:0.5px solid #EFEFF4}
.wkr.wkth{flex:0 0 auto;min-height:0;position:sticky;top:0;z-index:2;background:#F7F7FA;font-size:12px;color:#8E8E93;font-weight:600}
.wkr.wkth > div{padding:7px 10px;text-align:center}
.wkd{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;padding-top:10px!important}
.wkdn{font-size:20px;font-weight:700;line-height:1.1;color:#1C1C1E}
.wkdw{font-size:12px;color:#8E8E93;font-weight:600}
.wkr.sat .wkdn,.wkr.sat .wkdw{color:#2F6FDB}
.wkr.sun .wkdn,.wkr.sun .wkdw{color:#E5484D}
.wkr.today{background:#F8F7FC}
.wkr.today .wkdn{background:#201547;color:#fff;border-radius:999px;min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;font-size:17px}
.wkr.today .wkdw{color:#201547}
.wkw,.wkc{display:flex;flex-direction:column;gap:4px}
.wkw .ev{margin-top:0;font-size:12px;padding:4px 8px}
.wkc .ce{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.35;padding:3px 6px 3px 0;min-width:0}
.wkc .ce i{flex:0 0 4px;align-self:stretch;border-radius:2px;min-height:16px}
.wkc .cetm{flex:0 0 auto;font-weight:600;color:#3A3A3C;min-width:34px}
.wkc .cet{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1C1C1E}
.wkc .ce.todo .cebox{flex:0 0 14px;height:14px;border:1.5px solid #C7C7CC;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;color:#1E7F4F}
.wkc .ce.todo.done .cet{color:#8E8E93;text-decoration:line-through}

/* 토요일 파랑, 일요일과 공휴일 빨강(2026-11-04, 모든 달력) */
.cal > .dow:nth-child(6){color:#2F6FDB}.cal > .dow:nth-child(7){color:#E5484D}
.cal .cell.sat .dn,.cal .cell.sat .odch .dn{color:#2F6FDB}
.cal .cell.sun .dn,.cal .cell.hol .dn,.cal .cell.sun .odch .dn,.cal .cell.hol .odch .dn{color:#E5484D}
.cal .cell.out .dn{color:#C7C7CC}
.hname{display:block;font-size:10px;font-weight:500;color:#E5484D;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wkd .hname{text-align:center;max-width:58px}
.wkr.hol .wkdn,.wkr.hol .wkdw{color:#E5484D}
table.lm th.sat span,table.lm th.sat em{color:#2F6FDB}
table.lm th.sun span,table.lm th.sun em,table.lm th.hol span,table.lm th.hol em{color:#E5484D}
.dstrip i.sat{color:#2F6FDB}.dstrip i.sun,.dstrip i.hol{color:#E5484D}

/* 이번 주 보기 캘린더 칸: 팀캘 색, 추가, 고치기 (2026-11-04) */
.wkc{position:relative;padding-bottom:26px!important}
.wkc .ce.solid{color:#fff;border-radius:4px;padding:3px 7px;font-weight:500}
.wkc .ce.solid .cetm,.wkc .ce.solid .cet{color:#fff}
.wkc .ce.todo{border-radius:4px;padding:3px 7px 3px 5px}
.wkc .ce.todo .cet{font-weight:500}
.wkc .ce.todo button.cebox{background:#fff;cursor:pointer;padding:0}
.wkc .ce.gg{background:#E8F0FE;border-left:2px solid #1A73E8;border-radius:4px;padding:3px 7px}
.wkc .ce.gg .cetm,.wkc .ce.gg .cet{color:#1A57B5}
.wkc .ce.ed{cursor:pointer}.wkc .ce.todo.ed .cet{cursor:pointer}
.wkc .ce.solid.ed:hover{filter:brightness(.93)}
.wkadd{position:absolute;right:8px;bottom:5px;width:22px;height:22px;border-radius:999px;border:0.5px solid #D1D1D6;background:#fff;color:#8E8E93;font-size:15px;line-height:1;cursor:pointer;opacity:.45;display:inline-flex;align-items:center;justify-content:center;padding:0}
.wkr:hover .wkadd,.wkadd:focus-visible{opacity:1;color:#201547;border-color:#201547}
.wkform .wkkinds{margin-bottom:12px}
.wkform .field{margin-top:10px}
.wkgrid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.wkgrid.one{grid-template-columns:1fr}
@media (max-width:560px){.wkgrid{grid-template-columns:1fr}}
.wkps{display:flex;gap:8px;flex-wrap:wrap}
.wkp{display:inline-flex;align-items:center;gap:6px;border:1.5px solid #E5E5EA;border-radius:8px;padding:6px 10px;font-size:13px;cursor:pointer}
.wkp i{width:8px;height:8px;border-radius:50%;background:var(--pc)}
.wkp:has(input:checked){border-color:var(--pc);background:color-mix(in srgb,var(--pc) 8%,#fff)}
.wkp input{margin:0}

/* 2026-11-04 업무 목록: 숫자 카드는 토글 옆 한 줄, 이번 주는 주간 표 가로 전체 + 아래 마감 목록, 칸 안 항목은 여러 열 */
.wtitle .stats.wstats{display:flex;width:auto;margin:0;gap:6px;flex-wrap:wrap}
.wtitle .wstats .stat{flex-direction:row;align-items:baseline;gap:8px;padding:6px 12px;width:auto}
.wtitle .wstats .stat .v{font-size:17px;margin-top:0}
.wtitle .wstats .stat .v small{font-size:12px;margin-left:2px}
#workCard.wpage.wkmode{height:auto}
#workCard.wkmode .wvert{display:flex;flex-direction:column;gap:6px}
#workCard.wkmode .wkagbox{overflow:visible}
#workCard.wkmode .wkag{flex:none;min-height:0;overflow:visible}
#workCard.wkmode .wkr{flex:none;min-height:58px}
#workCard.wkmode .wkr.wkth{position:static;min-height:0}
#workCard.wkmode .wvert > .wlist > .sub{margin:14px 0 6px!important}
#workCard.wkmode .wkd{padding-top:6px!important}
#workCard.wkmode .wkw,#workCard.wkmode .wkc{flex-direction:row;flex-wrap:wrap;align-content:flex-start;gap:4px}
#workCard.wkmode .wkw > *,#workCard.wkmode .wkc > .ce{flex:0 1 210px;max-width:210px;min-width:0;box-sizing:border-box}
#workCard.wkmode .wkw > * {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workCard.wkmode .wkc{padding-bottom:8px!important;padding-right:38px!important}
#workCard.wkmode .wkadd{top:8px;bottom:auto}
#workCard.wkmode .wlist #workRows > .tblwrap{max-height:520px;overflow:auto}

/* 메일 첨부 미리보기 (2026-11-04) */
#modal3 .backdrop{z-index:70;background:rgba(20,14,50,0.30)}
html:has(#modal3 .backdrop){overflow:hidden}
.sheet.attview{width:min(1100px,100%);height:calc(100vh - 32px)}
.attview .sheet-h{gap:12px}
.attvb{flex:1 1 auto;min-height:0;background:#fff;display:flex}
.attvb iframe{flex:1 1 auto;width:100%;height:100%;border:0;background:#fff}
.attimg{flex:1 1 auto;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:16px;background:#F7F7FA}
.attimg img{max-width:100%;height:auto;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.att a.attdl{display:inline-flex;align-items:center;color:#8E8E93;font-weight:400;margin-left:-2px}
.att a.attdl:hover{color:#201547;text-decoration:none}

/* Assistant > Word 정리 (2026-11-04) */
.dxdrop{border:1.5px dashed #C7C7CC;border-radius:12px;padding:22px 16px;text-align:center;cursor:pointer;background:#FAFAFC}
.dxdrop.on,.dxdrop:hover,.dxdrop:focus-visible{border-color:#201547;background:#F3F1FA;outline:none}
.dxopts{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.dxck{display:flex;gap:8px;align-items:flex-start;font-size:14px;cursor:pointer}
.dxck input{margin-top:3px;flex:none}
.dxrow{display:flex;align-items:center;gap:10px;font-size:13px}.dxrow > span{flex:none;min-width:130px;color:#636366}.dxrow .inp{max-width:240px}
.dxsub{margin-left:24px;padding-left:10px;border-left:2px solid #E5E5EA;display:flex;flex-direction:column;gap:6px}
.dxul{margin:0;padding-left:18px;font-size:13px;line-height:1.7}
.dxedits{max-height:360px;overflow:auto;border-top:0.5px solid #E5E5EA}
.dxed{padding:6px 2px;border-bottom:0.5px solid #F0F0F3;font-size:13px;line-height:1.6}
.dxed .dxfrom{color:#B3261E;text-decoration:line-through}
.dxed .dxto{color:#1B6E3A}
.dxed.no{opacity:.6}

/* 이번 주 표 모서리(2026-11-05): 머리줄 배경, 마지막 줄 배경이 둥근 테두리 밖으로 나오지 않게 */
.wkag > .wkr.wkth{border-radius:14px 14px 0 0}
.wkag > .wkr.wkth > div:first-child{border-top-left-radius:14px}
.wkag > .wkr.wkth > div:last-child{border-top-right-radius:14px}
.wkag > .wkr:last-child{border-radius:0 0 14px 14px}
.wkth a.wkcal{color:inherit;text-decoration:none;border-bottom:1px dashed #C7C7CC}
.wkth a.wkcal:hover{color:#201547;border-bottom-color:#201547}
/* 드래그로 날짜 옮기기 */
.wkc [draggable="true"]{cursor:grab}
.wkc [draggable="true"].dragging{opacity:.45}
.wkr.dropok{background:#EEF3FC!important}
.wkr.dropok .wkc{outline:1.5px dashed #2F5F9E;outline-offset:-4px;border-radius:8px}
/* ACK 한 통씩 보기 (2026-11-06): 왼쪽 원 메일, 오른쪽 ACK */
.acknav{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.acknav .ackjump{flex:1 1 0;min-width:0;height:32px;padding:4px 8px;font-size:13px}
.ackgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.ackgrid .ackleft{min-width:0;border-right:1px solid #E5E5EA;padding-right:16px}
.ackgrid .ackmail{min-width:0;max-height:68vh;overflow:auto}
.ackgrid .ackside{min-width:0}
.ackside-h{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;min-height:32px}
.ackside .editor{min-height:220px;max-height:56vh}
.ackside .ackro{background:#FAFAFA}
.ackbtns{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;flex-wrap:wrap}
@media (max-width:1000px){.ackgrid{grid-template-columns:1fr}.ackgrid .ackleft{border-right:0;padding-right:0}.ackgrid .ackmail{max-height:none}}
.ackside-h .ackbtns{margin-top:0;flex-wrap:nowrap}
/* ACK 초안: 보내는 글꼴과 같게. 한글 맑은 고딕 10pt, 영문 Times New Roman 12pt. 문단 간격 없음(보낼 때와 같음) */
.ackside .editor p{margin:0}
.ackside .editor.en{font-family:'Times New Roman',Times,serif;font-size:12pt}
.ackrule{margin-top:20px;padding-top:16px;border-top:1px solid #E5E5EA}
.ackruleform{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.ackruleform label{display:flex;flex-direction:column;gap:4px;min-width:0}
.ackruleform select,.ackruleform input{width:100%;min-width:0;height:34px;padding:4px 10px;font-size:13px}
/* ACK 생략 규칙 창 (2026-11-06) */
.ackrule{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ackrcard{border:1px solid #E5E5EA;border-radius:12px;padding:12px;margin-bottom:10px;background:#fff}
.ackrcard.new{border-color:#201547}
.ackrhead{display:grid;grid-template-columns:minmax(0,1fr) 210px auto auto;gap:8px;align-items:center;margin-bottom:8px}
.ackrc{display:grid;grid-template-columns:160px minmax(0,1fr) 72px 28px;gap:8px;align-items:center;margin-bottom:6px}
.ackrcard .inp{height:34px;padding:4px 10px;font-size:13px;min-width:0}
.ackron{display:flex;align-items:center;gap:4px;font-size:13px;white-space:nowrap}
@media (max-width:700px){.ackrhead{grid-template-columns:1fr 1fr}.ackrc{grid-template-columns:120px minmax(0,1fr) 28px}.ackrop{display:none}}
.trbtns{flex:0 0 auto;display:flex;flex-direction:column;gap:4px;align-self:center}
.trdone{flex:0 0 auto;width:30px;height:30px;align-self:center;border-radius:8px;border:0;background:#F2F2F7;color:#8E8E93;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.trdone:hover{background:#E5E7F2;color:#201547}
.trdone:disabled{cursor:default}
.epwrap{position:relative;display:inline-flex}
.epmenu{position:absolute;top:calc(100% + 4px);left:0;z-index:30;background:#fff;border:0.5px solid var(--line);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.12);padding:4px;display:flex;flex-direction:column;min-width:150px}
.epmenu[hidden]{display:none}
.epmenu button{border:0;background:none;text-align:left;padding:7px 10px;border-radius:6px;font:inherit;font-size:13px;cursor:pointer;font-variant-numeric:tabular-nums}
.epmenu button:hover{background:#F2F2F7}
.brl{margin:0;padding-left:18px}.brl li{margin:0 0 8px;line-height:1.55}
.duereq{margin:6px 0 2px;padding:10px 12px;background:#F7F7FA;border-radius:10px}
.t tr.noline td{border-top:0}

/* 이번 달 달력: 캘린더 일정 함께 보기(2026-11-13) */
.calsw{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--sub);cursor:pointer;user-select:none}
.calsw input{position:absolute;opacity:0;width:0;height:0}
.calsw i{position:relative;width:38px;height:22px;border-radius:11px;background:#E5E5EA;transition:background .2s;flex:0 0 auto}
.calsw i::after{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.calsw input:checked + i{background:#34C759}
.calsw input:checked + i::after{transform:translateX(16px)}
.calsw input:focus-visible + i{outline:2px solid var(--navy);outline-offset:2px}
.cecal{margin-top:3px;display:flex;flex-direction:column;gap:2px;min-width:0}
.cecal .cs{display:flex;align-items:center;gap:4px;font-size:10.5px;line-height:1.3;padding:2px 5px;border-radius:4px;min-width:0;overflow:hidden;white-space:nowrap}
.cecal .cs .cet{overflow:hidden;text-overflow:ellipsis;min-width:0}
.cecal .cs .cetm{flex:0 0 auto;opacity:.9}
.cecal .cs.solid{color:#fff;font-weight:500}
.cecal .cs.gg{background:#E8F0FE;border-left:2px solid #1A73E8;color:#1A57B5}
.cecal .cs.todo{font-weight:500}.cecal .cs.todo.done .cet{text-decoration:line-through;opacity:.6}
.cecal .more{margin-top:0;text-align:left}

/* 휴대폰, 태블릿(터치가 주 입력)에는 이지팻이 없으니 이지팻 열기 단추를 숨긴다(2026-11-17) */
@media (hover:none) and (pointer:coarse){[data-act="easypatLaunch"],[data-act="epMenu"],.epwrap{display:none!important}}
html.mob [data-act="easypatLaunch"],html.mob [data-act="epMenu"],html.mob .epwrap{display:none!important}   /* 휴대폰, 태블릿은 브라우저 종류로도 숨김(2026-11-17, 터치 판정이 안 되는 기기) */

/* 휴대폰 메일 화면(2026-11-17): 도구줄은 줄바꿈(검색은 아래 줄 전체), 빈 미리보기 칸은 숨김(메일은 새 창으로 연다), 폴더 머리줄은 고정하지 않음 */
@media (max-width:900px){
  .mailtools{flex-wrap:wrap;margin-left:0;width:100%}
  .mailtools .msearch{order:3;flex:1 1 100%;min-width:0}
  .mailtools > .btn{margin-left:auto}
  .mailsplit #mailRead:has(> .empty:only-child){display:none}
  #mailList > .mhead{position:static;margin:0 0 4px;padding:0 0 8px}
  .mailsplit{grid-template-columns:minmax(0,1fr)}.mailsplit > .mailpane{min-width:0}
  .mailsplit #mailList{max-height:none;overflow:visible}   /* 목록 안 스크롤 없이 화면 전체가 스크롤 */
}

/* 달력 xtra(넷째 건부터), 요일 표시는 휴대폰 목록형에서만 (2026-11-17) */
.cal .ev.xtra,.cal .dwm,.cal .evref{display:none}
/* 휴대폰(2026-11-17): 엑셀 단추 숨김, 안쪽 세로 스크롤 없애기, 달력은 일정 있는 날만 목록으로, 업무 표 줄바꿈 줄이기 */
@media (hover:none) and (pointer:coarse){.xlsbtn,.xlbar{display:none!important}}
html.mob .xlsbtn,html.mob .xlbar{display:none!important}
@media (max-width:900px){
  main{padding-left:12px;padding-right:12px}
  .tblwrap{max-height:none!important;overflow-y:visible}
  #workCard.wpage,#workCard > .dbody,#workCard .wsplit,#workCard #workRows > .tblwrap{height:auto!important;max-height:none!important;overflow:visible!important}
  #workCard .wcalbox #calBox{min-height:0!important}
  .dash #workCard,.dash #schedCard,.dash #assignCard,.dash #inboxCard,.dash #perfCard,.dash #loadCard{height:auto!important}
  .wtc{font-size:13px}
  .wtc col.wc-ref{width:92px!important}.wtc col.wc-d{width:48px!important}
  .wtc td,.wtc th{padding-left:4px;padding-right:4px}
  .wtc td.num,.wtc th{white-space:nowrap}
  .wtc td:first-child a,.wtc td:first-child button{word-break:break-all}
  .wkag{overflow:visible!important;flex:none!important}
  .dg2 > .dc.dcard{height:auto!important}
  .wtitle{flex-wrap:wrap;min-width:0}.wtitle .stats.wstats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .wtitle .wstats .stat{min-width:0}
  .dg2 > .dc > .dcin > .dbody,.dcard > .dbody{overflow:visible!important;max-height:none!important}
}
.wkag.nocal .wkr{grid-template-columns:64px minmax(0,1fr)}
.wkag.nocal .wkr > div:nth-child(3){display:none}

/* 휴대폰 머리줄 여백(2026-11-17) */
@media (max-width:900px){.hdr-in{padding:12px 0 2px;row-gap:12px}.brand{margin-right:4px}}

/* 마감 현황 목록(2026-11-17): PC 는 의뢰인 칸, 휴대폰은 의뢰인을 업무 아래로 옮기고 의뢰인, 상태 칸을 숨김 */
.todd .mcli{display:none}
@media (max-width:900px){
  .todd{table-layout:auto!important;font-size:13px;width:100%}
  .todd col{width:auto!important}
  .todd tr > :nth-child(3),.todd tr > :nth-child(7){display:none}
  .todd .mcli{display:block}
  .todd td,.todd th{padding-left:4px;padding-right:4px}
  .todd tr > :nth-child(1){width:92px}.todd tr > :nth-child(1) .ref,.todd tr > :nth-child(1) a{word-break:break-all}
  .todd tr > :nth-child(4),.todd tr > :nth-child(5),.todd tr > :nth-child(6),.todd th{white-space:nowrap}
  .todd tr.grp > td{white-space:normal}
}

/* 휴대폰 메일 펼쳐 보기(2026-11-17) */
.minline{border:0.5px solid var(--line2);border-radius:12px;margin:4px 0 10px;padding:8px;background:#fff;min-width:0}
.minline-h{display:flex;justify-content:flex-end;margin-bottom:4px}
.minline-b{min-width:0;overflow-x:clip}
.minline-b .mailframe{max-height:none}
/* 설정 묶음(2026-11-17) */
.setgrp{font-size:12px;font-weight:700;color:#64748B;margin:16px 2px 6px}
.setgrp:first-child{margin-top:8px}
.setsheet .card{padding-top:2px;padding-bottom:2px}
.setsheet .setrow>strong{white-space:nowrap}
.setsheet .setrow .seg{flex-wrap:nowrap;white-space:nowrap}
html.mob .pconly{display:none!important}
@media (max-width:480px){.setsheet .seg button{padding:4px 9px}}
/* 배정 제안(2026-11-17) */
.asgrow{cursor:pointer}
.asgsug{background:#F7F7FA;border-radius:10px;padding:10px 12px;margin:4px 0 8px}
.asgp{padding:6px 0;border-bottom:0.5px solid var(--line)}
.asgp:last-child{border-bottom:0}
.duebtn{border:0;background:#EFEFF4;color:var(--navy,#201547);width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:pointer;padding:0;margin-left:4px}
.duebtn:hover{background:#E3E3EA}
/* 휴대폰 메일 펼쳐 보기(2026-11-18): 회신 단추 줄을 스크롤 따라 붙이고, 닫기는 같은 줄의 X 아이콘 */
.minline .mvhead{position:sticky;top:var(--hdrh,0px);z-index:6;background:#fff;margin:-8px -8px 0;padding:8px 8px 8px;border-radius:12px 12px 0 0;flex-wrap:nowrap!important;gap:4px!important}
.minline .mvhead{justify-content:flex-start!important}
.minline .mvhead > div{gap:3px!important;flex-wrap:nowrap!important;flex:1 1 auto}
.minline .mvhead #mailTools{gap:0!important}
.minline .mvhead .btn{padding:6px 9px;font-size:13px;white-space:nowrap}
.minline .mvhead > span{gap:2px!important;flex:0 0 auto}
.mvclose{flex:0 0 auto}
/* 휴대폰 메일 목록 왼쪽 칸: 읽음 점과 플래그 */
.mrow-l{display:flex;flex-direction:column;align-items:center;gap:6px;flex:0 0 22px;width:22px}
.mrow-l .rowflag{opacity:.7}
.mrow-l .rowflag.on,.mrow-l .rowflag.done{opacity:1}

/* 휴대폰 달력(2026-11-18): 7칸 달력 그대로, 칸 안에는 종류별 색 점과 건수, 누르면 그날 목록 팝업 */
.cdots{display:none}
@media (max-width:900px){
  .cal:not(.wkcal){grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
  #workCard .cal:not(.wkcal) .cell,.cal:not(.wkcal) .cell{height:auto!important;min-height:58px!important;overflow:hidden!important;padding:4px 3px!important;position:relative}
  .cal:not(.wkcal) .cell .ev,.cal:not(.wkcal) .cell .cecal,.cal:not(.wkcal) .cell > .more{display:none!important}
  .cal:not(.wkcal) .cell > .dn{font-size:12px}
  .cal .cdots{display:flex;flex-wrap:wrap;gap:2px 4px;align-items:center;justify-content:flex-start;position:absolute;inset:0;border:0;background:none;padding:20px 2px 2px 2px;cursor:pointer;align-content:flex-start}
  .cal .cdots:empty{display:none}
  #calBox .cal .cdots:empty{display:flex}   /* 업무 관리 달력은 일정 없는 날도 눌러 팝업에서 추가(2026-11-18) */
  .cdots .cd{display:inline-flex;align-items:center;gap:1px;font-size:10px;line-height:1;color:var(--sub)}
  .cdots .cd i{width:8px;height:8px;border-radius:50%;display:inline-block}
  .cdots .cd b{font-weight:600}
}
.daypop .ev{display:block;width:100%;text-align:left;white-space:normal;font-size:13px;padding:8px 10px;margin-top:6px}
.daypop .cecal{margin-top:8px}.daypop .cecal .cs{font-size:13px;padding:6px 8px;margin-top:4px;white-space:normal}

.cdots .cd i.sq{width:8px;height:8px;border-radius:2px;border:1.5px solid #6A5FA0;background:#fff;box-sizing:border-box}
.daypop .evrow{padding:8px 0}.daypop .evrow .tt{border:0;background:none;padding:0;text-align:left;font:inherit;font-size:14px;cursor:pointer;color:inherit;flex:1}
.daypop .evrow.editing{flex-wrap:wrap}.daypop .evrow.editing .inp{flex:1 1 140px}
.daypop .todos{margin-top:4px}
/* 휴대폰 메일 펼쳐 보기 머리줄(2026-11-18): 아이콘 4개는 같은 크기, 같은 간격으로 왼쪽, 회신, 전체 회신, 전달, X 는 오른쪽 */
.minline .mvhead{justify-content:flex-start!important;gap:4px!important}
.minline .mvhead > div{display:contents!important}
.minline .mvhead > span,.minline .mvhead #mailTools{display:contents!important}
.minline .mvhead .iconbtn{width:32px!important;height:32px!important;min-width:32px;padding:0!important;flex:0 0 32px}
.minline .mvhead .iconbtn svg{width:16px;height:16px}
.minline .mvhead [data-mode="reply"]{margin-left:auto}
.minline .mvhead .mvclose{margin-left:0}
/* 휴대폰 주간 달력(마감 현황, 업무 관리 이번 주, 2026-11-18): 7칸 대신 하루 한 줄씩 위에서 아래로 */
@media (max-width:900px){
  .cal.wkcal{grid-template-columns:minmax(0,1fr)!important;gap:6px}
  .cal.wkcal > .dow{display:none}
  #workCard .cal.wkcal .cell,.cal.wkcal .cell,.odcal .cell{height:auto!important;min-height:0!important;overflow:visible!important;padding:8px 10px!important}
  .odcal .odch{display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px}
  .odcal .odch .dn{white-space:nowrap}
  .odcal .odcc{display:flex;flex-wrap:wrap;gap:4px 10px;margin:2px 0 4px}
  .cal.wkcal .cell .ev{max-width:100%}
}
/* 휴대폰 터치 스크롤(2026-11-18): 안쪽 스크롤 칸이 끝에 닿으면 화면 전체가 이어서 스크롤되게 하고, 남은 안쪽 높이 제한을 푼다 */
@media (max-width:900px){
  *{overscroll-behavior:auto!important}
  .lscroll,.pwlist,.mailbody,.docscroll,.card .tblwrap,.dcard .tblwrap,#workCard .cal.wkcal .cell{max-height:none!important;overflow-y:visible!important}
}
.dayinl{margin-top:10px;padding:10px;border-radius:12px;background:#F7F7FA}
.dayinl .setgrp{margin-top:0}
.dayinl .ev{display:block;width:100%;text-align:left;white-space:normal;font-size:13px;padding:8px 10px;margin-top:6px}
.cal .cell.sel{box-shadow:inset 0 0 0 2px #201547}
/* 메일 머리(2026-11-18): PC 는 글자 단추, 휴대폰은 줄을 맞춰 아이콘 단추 */
.mbbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mbother,.mnew{display:inline-flex;align-items:center;gap:6px}
.mbother svg{display:none}.mnew svg{display:none}
@media (max-width:900px){
  .mailptl{gap:10px}
  .mailttl{width:100%;flex-wrap:nowrap!important;gap:12px!important}
  .mailttl h1{flex:0 0 auto}
  .mbbar{flex:1 1 auto;min-width:0;flex-wrap:nowrap;gap:6px}
  .mbbar .mbseg{flex:1 1 auto;min-width:0;margin-top:0;flex-wrap:nowrap;display:flex}
  .mbbar .mbseg button{flex:1 1 0;min-width:0;padding:6px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mailtools{flex-wrap:wrap;gap:8px}
  .mailtools .seg{flex:1 1 auto;min-width:0;display:flex}
  .mailtools .seg button{flex:1 1 0;min-width:0;padding:6px 4px}
  .mailtools > .btn.mnew{margin-left:0}
  .mbother,.mnew{width:38px;height:38px;min-height:38px;padding:0!important;justify-content:center;border-radius:50%;flex:0 0 38px}
  .mbother svg,.mnew svg{display:block}
  .mbother .lb,.mnew .lb{display:none}
}
/* 회신, 전달 창: 첨부, 서명, 취소, 보내기를 위쪽 한 줄로. 가운데는 파일 끌어다 놓는 칸(2026-11-18) */
.cmpbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.cmpdrop{flex:1 1 220px;min-width:0;display:flex;align-items:center;gap:8px;justify-content:center;min-height:38px;padding:0 12px;border:1.5px dashed #C9C5DC;border-radius:10px;color:var(--sub);font-size:13px;background:#fff}
.cmpdrop span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmpdrop.dfover{border-color:#6A5FA0;color:#201547;background:rgba(106,95,160,0.08);outline:none}
.cmpact{display:flex;gap:8px;align-items:center;margin-left:auto}
@media (max-width:760px){ .cmpdrop{display:none} .cmpact{width:100%;justify-content:flex-end} }
