:root{
  /* 레이아웃: 상단 내비 > 제목·검색 > (왼쪽) 필터 카드 + 거래처 카드 목록 / (오른쪽) 입력·확인 패널 */
  --bg:#F5F7FC; --surface:#FFFFFF; --ink:#111827; --sub:#6B7280; --line:#E5E8EE;
  --blue:#3B5BF5; --blue-soft:#EBF1FF; --red:#E5484D; --red-soft:#FDECEC; --green:#3E7B5A; --green-soft:#E5F1EA; --amber:#B7791F; --amber-soft:#FFF4DE;
  --font:"Noto Sans KR",-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--font);font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.num{font-variant-numeric:tabular-nums}
.sr{position:absolute;left:-9999px}
.hint{font-size:11.5px;color:var(--sub)}

.nav{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:8}
.nav-in{max-width:1440px;margin:0 auto;padding:0 20px;height:52px;display:flex;align-items:center;gap:16px}
.brand{display:flex;align-items:center;gap:8px;font-weight:800;color:var(--blue);font-size:15px;letter-spacing:-.3px;white-space:nowrap}
.brand small{font-weight:500;color:var(--sub);font-size:11px;margin-left:2px}
.menu{display:flex;gap:22px;margin:0 auto}
.menu span{font-weight:700;font-size:13.5px;color:var(--blue);border-bottom:2px solid var(--blue);padding:15px 0}
.me{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--sub);white-space:nowrap}
.me b{color:var(--ink)}
.role{font-size:11px;font-weight:700;border-radius:999px;padding:2px 9px;background:var(--blue-soft);color:var(--blue)}
.out{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:3px 10px;font-size:11.5px}

.wrap{max-width:1440px;margin:0 auto;padding:0 20px}
.head{display:flex;flex-direction:column;align-items:center;padding:18px 0 4px}
h1{font-size:22px;font-weight:800;letter-spacing:-.6px;margin:0 0 10px;text-wrap:balance}
.search{width:100%;max-width:400px;position:relative}
.search input{width:100%;height:36px;border:1.5px solid var(--blue);border-radius:999px;padding:0 38px 0 16px;background:var(--surface);font-size:12.5px}
.search svg{position:absolute;right:13px;top:9px}

.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;margin-top:16px;align-items:start}

.kpis{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin-bottom:12px}
.kpi{background:var(--surface);border-radius:12px;padding:8px 11px;border:1px solid var(--line)}
.kpi .l{font-size:11px;color:var(--sub)}
.kpi .v{font-size:17px;font-weight:800}
.kpi .v small{font-size:11px;font-weight:500;color:var(--sub);margin-left:1px}
.kpi.warn .v{color:var(--red)} .kpi.info .v{color:var(--blue)}
.kpi.click{cursor:pointer} .kpi.click:hover,.kpi.on{border-color:var(--blue)}

.fcard{background:var(--surface);border-radius:20px;padding:12px 28px 16px}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line)}
.tabs button{border:0;background:none;padding:8px 0;font-size:13.5px;color:#9AA1AD;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button.on{color:var(--ink);font-weight:700;border-color:var(--ink)}
.tabs.two{grid-template-columns:repeat(2,1fr)}
.tabs button[hidden]{display:none}
.chips{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;margin:12px 0 10px}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:4px 12px;display:flex;align-items:center;gap:6px;font-size:12.5px}
.chip .dot{width:14px;height:10px;border-radius:2px;display:inline-block}
.chip.on{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.subchips[hidden]{display:none}
.subchips{background:#F4F5F8;border-radius:10px;padding:8px;display:flex;justify-content:center;flex-wrap:wrap;gap:5px;min-height:38px}
.sc{border:1px solid #D7DBE3;background:var(--surface);border-radius:5px;padding:1px 8px;font-size:11.5px;color:#4B5563}
.sc.on{border-color:var(--blue);color:var(--blue);font-weight:700}

.rhead{margin:18px 10px 6px;font-size:14.5px;font-weight:500}
.rhead em{font-style:normal;color:var(--blue)}
.checks{display:flex;gap:14px;margin:0 10px 10px;font-size:12px;color:#374151;flex-wrap:wrap}
.checks label{display:flex;align-items:center;gap:5px;cursor:pointer}
.checks input{position:absolute;opacity:0}
.checks .ck{width:14px;height:14px;border-radius:50%;border:1.5px solid #9CA3AF;display:inline-grid;place-items:center}
.checks input:checked + .ck{background:var(--blue);border-color:var(--blue)}
.checks input:checked + .ck::after{content:"";width:5px;height:3px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.checks input:focus-visible + .ck{outline:2px solid var(--blue);outline-offset:2px}

.grid{display:grid;grid-template-columns:minmax(190px,1.8fr) 1.9fr 76px 1.4fr 116px 96px 116px;align-items:center}
.thead{background:var(--surface);border-radius:14px 14px 0 0;padding:8px 14px;font-size:11.5px;color:#4B5563;text-align:center;border-bottom:1px solid var(--line)}
.thead > div{padding:0 6px}
.thead > div:first-child{text-align:left}

.list{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.row{background:var(--surface);border-radius:14px;border:1px solid var(--line);overflow:hidden}
.row.hl,.row.open{border-color:var(--blue);box-shadow:0 0 0 1.5px var(--blue)}
.row.open .grid{background:#F5F8FF}
.row .grid{padding:10px 14px 6px}
.row .grid > div{padding:0 6px}
.cc{text-align:center}
.sepl{border-left:1px solid var(--line)}
.who-cell{display:flex;align-items:center;gap:10px}
.pico{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:11px;color:#fff;flex:none}
.hn{font-weight:700;font-size:13.5px;line-height:1.3}
.pn{font-size:12px;color:#374151}
.meta{font-size:11px;color:var(--sub)}
.stage{font-size:12px;font-weight:700}
.dots{display:flex;gap:2px;justify-content:center;margin-top:4px}
.dots i{width:11px;height:4px;border-radius:2px;background:#E3E7EE}
.dots i.f{background:var(--blue)} .dots i.done{background:var(--green)}
.tag{display:inline-block;font-size:10.5px;font-weight:700;padding:0 7px;border-radius:999px;margin-top:3px}
.t-도입완료{background:var(--green-soft);color:var(--green)} .t-도입약속{background:var(--blue-soft);color:var(--blue)}
.t-진행중{background:var(--amber-soft);color:var(--amber)} .t-미착수,.t-중단{background:#F1F2F5;color:var(--sub)}
.tg{display:flex;flex-direction:column;align-items:center;gap:2px}
.tg .a{font-size:13px;font-weight:700}
.tg .u{font-size:10.5px;color:var(--sub)}
.last .d{font-size:11px;color:var(--sub)}
.last .t{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.next .d{font-size:12.5px;font-weight:700}
.next .t{font-size:11px;color:var(--sub)}
.dd{display:inline-block;font-size:10.5px;font-weight:700;border-radius:5px;padding:0 6px}
.dd.alarm{background:var(--blue-soft);color:var(--blue)} .dd.late{background:var(--red-soft);color:var(--red)} .dd.norm{background:#F1F2F5;color:#4B5563}
.st{display:flex;flex-direction:column;gap:3px;align-items:center}
.pill{font-size:10.5px;font-weight:700;border-radius:999px;padding:1px 8px;white-space:nowrap}
.p-alarm{background:var(--blue-soft);color:var(--blue)} .p-late,.p-nofb{background:var(--red-soft);color:var(--red)} .p-ok{background:var(--green-soft);color:var(--green)}
.acts{display:flex;gap:4px;justify-content:flex-end}
.ib{border:0;background:none;padding:3px;border-radius:7px;display:grid;place-items:center;position:relative}
.ib:hover{background:#F1F3F7}
.ib .n{position:absolute;top:-3px;right:-4px;background:var(--blue);color:#fff;font-size:9px;font-weight:700;border-radius:999px;padding:0 4px;line-height:14px}
.strip{margin:0 8px 8px;background:#F4F5F8;border-radius:8px;text-align:center;font-size:11px;color:#4B5563;padding:3px;border:0;width:calc(100% - 16px);display:block}
.strip:hover{color:var(--blue)}
.more{display:block;margin:12px auto 0;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 22px;font-size:12.5px}

.detail{border-top:1px solid var(--line);padding:12px 18px 14px;display:none;background:#FBFCFE}
.row.open .detail{display:block}
.orders{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.ord{font-size:11px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:3px 8px;color:#374151}
.tl{list-style:none;margin:0;padding:0}
.tl > li{position:relative;padding:0 0 12px 20px}
.tl > li::before{content:"";position:absolute;left:4px;top:6px;bottom:-4px;width:2px;background:#E3E7EE}
.tl > li:last-child::before{display:none}
.tl > li::after{content:"";position:absolute;left:0;top:4px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid #B8C2D3}
.tl > li.latest::after{border-color:var(--blue);background:var(--blue)}
.tl .h{font-size:11px;color:var(--sub)}
.tl .h b{color:var(--ink)}
.tl .c{font-size:12.5px;margin-top:1px}
.tl .x{font-size:11.5px;color:#374151}
.sys{font-size:10px;font-weight:700;background:#F1F2F5;color:var(--sub);border-radius:4px;padding:0 5px;margin-left:4px}
.cm{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.cm li{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:5px 9px;font-size:12px}
.cm .who{font-size:10.5px;color:var(--sub);margin-bottom:1px}
.cm .who b{font-weight:700;color:var(--ink)}
.rb{display:inline-block;min-width:46px;text-align:center;font-size:10px;font-weight:700;border-radius:4px;padding:0 5px;margin-right:4px;flex:none}
.rb.hq{background:#1F2F6B;color:#fff} .rb.bu{background:var(--blue-soft);color:var(--blue)} .rb.head{background:#F1F2F5;color:#4B5563}
.cbox{display:flex;gap:6px;margin-top:6px}
.cbox input{flex:1;height:32px;border:1px solid #D7DBE3;border-radius:999px;padding:0 12px;background:var(--surface);font-size:12px}
.btn{border:0;border-radius:999px;padding:6px 14px;font-weight:700;font-size:12px;white-space:nowrap}
.btn.p{background:var(--blue);color:#fff} .btn.g{background:#EEF0F4;color:#374151}

/* 오른쪽 패널 */
.aside{position:sticky;top:64px;display:flex;flex-direction:column;gap:12px;max-height:calc(100vh - 76px);overflow:auto}
.panel{background:var(--surface);border-radius:18px;padding:14px 16px;border:1px solid var(--line)}
.panel h2{font-size:14px;font-weight:800;margin:0 0 2px}
.panel .ps{font-size:11.5px;color:var(--sub);margin:0 0 10px}
.f{margin-bottom:9px}
.f label{display:block;font-size:11.5px;font-weight:700;margin-bottom:3px}
.f label span{color:var(--red)}
.f input,.f select,.f textarea{width:100%;height:34px;border:1px solid #D7DBE3;border-radius:9px;padding:0 10px;background:var(--surface);font-size:12.5px}
.f textarea{height:auto;min-height:64px;padding:7px 10px;resize:vertical}
.f2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ctx{background:#F5F7FC;border-radius:10px;padding:7px 10px;font-size:11.5px;color:#374151;margin-bottom:9px;line-height:1.6}
.ctx b{color:var(--ink)}
.stagepick{display:flex;flex-wrap:wrap;gap:4px}
.stagepick button{border:1px solid #D7DBE3;background:var(--surface);border-radius:999px;padding:3px 10px;font-size:11.5px}
.stagepick button.on{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.pfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:4px}
.q{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.q button{width:100%;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:6px 9px;display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px}
.q button:hover{border-color:var(--blue)}
.q .s{font-size:10.5px;color:var(--sub)}
.qt{font-size:11.5px;font-weight:700;margin:10px 0 5px;display:flex;justify-content:space-between}
.qt:first-of-type{margin-top:0}


/* 로그인 */
.gate{position:fixed;inset:0;background:rgba(17,24,39,.55);display:grid;place-items:center;z-index:30;padding:16px}
.gate[hidden]{display:none}
.gbox{background:var(--surface);border-radius:20px;padding:24px 24px 20px;width:100%;max-width:360px}
.gbox h2{font-size:17px;font-weight:800;margin:0 0 4px;color:var(--blue)}
.gbox p{margin:0 0 14px;font-size:12px;color:var(--sub)}
.gbox input,.gbox select{width:100%;height:40px;border:1.5px solid #D7DBE3;border-radius:10px;padding:0 12px;font-size:14px;margin-bottom:8px}
.gbox input:focus{border-color:var(--blue)}
.rule{background:#F5F7FC;border-radius:10px;padding:8px 10px;font-size:11.5px;line-height:1.7;margin:4px 0 12px}
.rule b{color:var(--blue)}
.gerr{color:var(--red);font-size:11.5px;min-height:16px}
.gbox .btn{width:100%;padding:10px;font-size:13.5px}

.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%) translateY(16px);background:#111827;color:#fff;padding:9px 16px;border-radius:10px;font-size:12.5px;opacity:0;transition:.25s;pointer-events:none;z-index:40}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.empty{background:var(--surface);border-radius:14px;padding:28px;text-align:center;color:var(--sub)}
footer{margin-top:40px;border-top:1px solid var(--line);background:var(--surface)}
.foot{max-width:1440px;margin:0 auto;padding:14px 20px;display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--sub);flex-wrap:wrap}
.foot b{color:var(--ink)}
.draft{display:inline-block;background:var(--amber-soft);color:var(--amber);font-weight:700;border-radius:5px;padding:0 6px;font-size:10.5px;margin-right:5px}


.bell{border:1px solid var(--line);background:var(--surface);border-radius:999px;width:32px;height:28px;display:grid;place-items:center;position:relative;color:var(--ink)}
.bell:hover{border-color:var(--blue);color:var(--blue)}
.bn{position:absolute;top:-5px;right:-5px;background:var(--red);color:#fff;font-size:9.5px;font-weight:700;border-radius:999px;padding:0 5px;line-height:15px}
.ib .n.un{background:var(--red)}
.mp{position:fixed;top:56px;right:20px;width:360px;max-height:calc(100vh - 72px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px rgba(17,24,39,.16);z-index:28;padding:14px}
.mp[hidden]{display:none}
.mp-h{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.mp-h .av{width:36px;height:36px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:800}
.mp-t{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;margin:12px 2px 6px}
.mp-t em{font-style:normal;background:var(--red);color:#fff;border-radius:999px;padding:0 6px;font-size:10.5px;margin-left:4px}
.mp-t button{border:0;background:none;color:var(--blue);font-size:11.5px}
.mp-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.mp-l button{width:100%;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:7px 9px;display:flex;gap:8px;align-items:flex-start;font-size:12px}
.mp-l button:hover{border-color:var(--blue)}
.mp-l button.un{background:#F3F6FF;border-color:#C9D7FF}
.mp-l .mt{flex:1;min-width:0}
.mp-l .rb{margin-top:2px}
.mp-l .ms{display:block;color:#4B5563;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-l .hint{white-space:nowrap}
@media (max-width:760px){
html:not(.force-pc) .mp{left:8px;right:8px;width:auto;top:52px;max-height:calc(100vh - 130px)}
html:not(.force-pc) .bell{width:34px;height:32px}
}
html.force-m .mp{left:8px;right:8px;width:auto;top:52px;max-height:calc(100vh - 130px)}
html.force-m .bell{width:34px;height:32px}

html.force-m #logout{display:none}
html.force-m .pmw{right:max(12px,calc(50% - 203px));bottom:72px}
@media (max-width:760px){html:not(.force-pc) .pmw{right:12px;bottom:72px}html:not(.force-pc) .pmb span,html:not(.force-pc) .pmp{max-width:calc(100vw - 24px)}}
@media (max-width:760px){html:not(.force-pc) #logout{display:none}}
html.force-m body{max-width:430px;margin:0 auto;box-shadow:0 0 0 1px var(--line),0 10px 40px rgba(17,24,39,.12);min-height:100vh}
html.force-m .mnav,html.force-m .aside,html.force-m .mp,html.force-m .sheet-bg.show{left:max(0px,calc(50% - 215px))!important;right:max(0px,calc(50% - 215px))!important}
html.force-m .toast{max-width:400px}
html.force-m .gbox{max-width:340px}
.viewsw{display:flex;background:#EEF0F4;border-radius:999px;padding:2px;margin-left:auto}
.viewsw button{border:0;background:none;width:30px;height:24px;border-radius:999px;display:grid;place-items:center;color:var(--sub)}
.viewsw button.on{background:var(--surface);color:var(--blue);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.pmw{position:fixed;right:20px;bottom:20px;z-index:22}
.pmb{display:flex;align-items:center;gap:6px;border:0;background:#1F2F6B;color:#fff;border-radius:999px;padding:9px 16px;font-size:12.5px;font-weight:700;box-shadow:0 6px 18px rgba(17,24,39,.22)}
.pmb:hover{background:#16304F}
.pmp{position:absolute;right:0;bottom:46px;width:340px;max-height:min(70vh,560px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 32px rgba(17,24,39,.18);padding:12px}
.pmp[hidden]{display:none}
.pmp h3{font-size:13.5px;margin:2px 2px 2px}
.pmp .ps{font-size:11px;color:var(--sub);margin:0 2px 8px}
.pml{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.pml li{display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:start;border:1px solid var(--line);border-radius:10px;padding:7px 9px}
.pml .pico{width:22px;height:22px;font-size:9.5px}
.pml .it{font-size:12px;font-weight:700}
.pml .pm{font-size:12px;display:flex;justify-content:space-between;gap:8px}
.pml .ct{font-size:11px;color:var(--sub);word-break:break-all}
.pml .ct a{color:var(--blue);text-decoration:none}
.row .grid{cursor:pointer}
.row .grid:hover{background:#FAFBFF}
.dbtn{display:inline-flex;align-items:center;gap:3px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:4px 9px 4px 11px;font-size:11.5px;font-weight:700;color:#374151;white-space:nowrap;position:relative}
.dbtn:hover{border-color:var(--blue);color:var(--blue)}
.row.open .dbtn{background:var(--blue-soft);border-color:var(--blue-soft);color:var(--blue)}
.dbtn .n{position:absolute;top:-6px;right:-5px;background:var(--red);color:#fff;font-size:9.5px;font-weight:700;border-radius:999px;padding:0 5px;line-height:15px}
.th{position:relative;padding:0 4px!important}
.thb{border:0;background:none;font:inherit;font-size:11.5px;color:#4B5563;display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:6px}
.thb:hover{background:#F1F3F7}
.th.act .thb{color:var(--blue);font-weight:700;background:var(--blue-soft)}
.thead > div.th:first-child{text-align:left}
.fm{position:absolute;top:28px;left:50%;transform:translateX(-50%);z-index:12;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 28px rgba(17,24,39,.16);padding:8px;min-width:200px;text-align:left;font-size:12px}
.th:first-child .fm{left:0;transform:none}
.th:nth-last-child(2) .fm{left:auto;right:0;transform:none}
.fm-s{display:flex;flex-direction:column;gap:2px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.fm-s button{border:0;background:none;text-align:left;padding:5px 8px;border-radius:6px;font-size:12px}
.fm-s button:hover{background:#F1F3F7}
.fm-s button.on{background:var(--blue-soft);color:var(--blue);font-weight:700}
.fm-o{display:flex;flex-direction:column;gap:1px;padding:6px 0;border-bottom:1px solid var(--line);max-height:220px;overflow:auto}
.fm-o label{display:flex;align-items:center;gap:6px;padding:4px 8px;border-radius:6px;cursor:pointer}
.fm-o label:hover{background:#F7F8FA}
.fm-o label .num{margin-left:auto;color:var(--sub);font-size:11px}
.fm-o input{accent-color:var(--blue)}
.fm-all{font-weight:700}
.fm-b{padding-top:6px;text-align:right}
.fm-b button{border:0;background:none;color:var(--sub);font-size:11.5px;text-decoration:underline}
.fbtn{display:none;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:3px 10px;font-size:12px;margin-left:auto}
.fbtn span{color:var(--blue);font-weight:700}
.fclr{border:0;background:none;color:var(--blue);font-size:12px;text-decoration:underline;margin-left:auto}
.fbtn + .fclr{margin-left:0}
.fpanel{position:fixed;left:0;right:0;bottom:0;max-height:86vh;overflow:auto;background:var(--bg);border-radius:18px 18px 0 0;padding:0 12px 16px;z-index:26;box-shadow:0 -8px 30px rgba(0,0,0,.15)}
.fpanel[hidden]{display:none}
.fps{background:var(--surface);border-radius:12px;padding:10px;margin-bottom:8px}
.fps h4{margin:0 0 6px;font-size:13px}
.fps .fm-s{flex-direction:row;flex-wrap:wrap;gap:4px}
.fps .fm-s button{border:1px solid var(--line);border-radius:999px;padding:5px 12px}
.fps .fm-o{max-height:none;flex-direction:row;flex-wrap:wrap;gap:4px}
.fps .fm-o label{border:1px solid var(--line);border-radius:999px;padding:5px 10px}
html.force-m .fbtn{display:inline-block}
html.force-m .fpanel{left:max(0px,calc(50% - 215px));right:max(0px,calc(50% - 215px))}
@media (max-width:760px){html:not(.force-pc) .fbtn{display:inline-block}}
.new{display:inline-block;margin-left:6px;background:var(--red);color:#fff;font-size:9.5px;font-weight:800;letter-spacing:.3px;border-radius:4px;padding:0 5px;line-height:15px;vertical-align:1px}
.cm li:has(.new){border-color:#F5B5B7;background:#FFF7F7}
html.force-m .me > b{display:none}
@media (max-width:760px){html:not(.force-pc) .me > b{display:none}}
.comp{background:var(--surface);border:1.5px solid var(--blue);border-radius:12px;padding:10px 12px;margin:0 0 14px;display:flex;flex-direction:column;gap:8px}
.comp-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12.5px}
.comp-h > b{color:var(--blue)}
.cp-plan{font-size:11.5px;color:#374151}
.lnk{border:0;background:none;color:var(--blue);font-size:11.5px;text-decoration:underline;padding:0 2px}
.comp-rep{display:flex;gap:6px}
.comp-rep input{flex:1;height:32px;border:1px solid #D7DBE3;border-radius:8px;padding:0 10px}
.comp textarea{width:100%;min-height:60px;border:1px solid #D7DBE3;border-radius:9px;padding:8px 10px;resize:vertical;font-size:12.5px}
.comp textarea:focus,.comp input:focus{border-color:var(--blue);outline:none}
.comp-r{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.comp-r > div{display:flex;flex-direction:column;gap:2px}
.comp-r .grow{flex:1;min-width:160px}
.comp-r label{font-size:10.5px;font-weight:700;color:var(--sub)}
.comp-r input{height:32px;border:1px solid #D7DBE3;border-radius:8px;padding:0 9px;font-size:12px;background:var(--surface)}
.qd{flex-direction:row!important;gap:3px!important}
.qd button{border:1px solid var(--line);background:#F7F8FA;border-radius:999px;padding:4px 8px;font-size:11px}
.qd button:hover{border-color:var(--blue);color:var(--blue)}
.comp-r .btn{height:32px;padding:0 18px}
.qbtn{border:0;background:var(--blue);color:#fff;border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:700;white-space:nowrap}
.qbtn:hover{background:#1749D6}
html.force-m .comp-r > div:not(.qd){flex:1 1 45%}
html.force-m .comp-r .btn{flex:1 1 100%;height:40px}
@media (max-width:760px){html:not(.force-pc) .comp-r > div:not(.qd){flex:1 1 45%}html:not(.force-pc) .comp-r .btn{flex:1 1 100%;height:40px}}
.mention{color:var(--blue);background:var(--blue-soft);border-radius:4px;padding:0 3px;font-weight:700}
.mbox{position:absolute;z-index:60;width:290px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(17,24,39,.18);padding:6px;max-height:300px;overflow:auto}
.mbox[hidden]{display:none}
.mbox .mh{font-size:10.5px;color:var(--sub);padding:2px 6px 5px}
.mbox button{width:100%;display:flex;align-items:center;gap:6px;border:0;background:none;padding:6px;border-radius:8px;text-align:left;font-size:12.5px}
.mbox button .hint{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px}
.mbox button.on,.mbox button:hover{background:var(--blue-soft)}
.oldfb{border:0;background:none;color:var(--sub);font-size:11.5px;padding:3px 0;margin-top:2px;text-decoration:underline;text-underline-offset:2px}
.oldfb:hover{color:var(--blue)}
.pager{display:flex;justify-content:center;align-items:center;gap:4px;margin:14px 0 0;flex-wrap:wrap}
.pager button{min-width:30px;height:30px;border:1px solid var(--line);background:var(--surface);border-radius:8px;font-size:12.5px;padding:0 8px}
.pager button.on{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.pager button:disabled{opacity:.35;cursor:default}
.pager button:not(:disabled):not(.on):hover{border-color:var(--blue);color:var(--blue)}
.pager .pi{margin-left:10px;font-size:11.5px;color:var(--sub)}
.sentinel{height:1px}
.own{margin-left:6px;display:inline-flex;gap:2px}
.own button{border:0;background:none;color:var(--sub);font-size:10.5px;padding:0 4px;border-radius:4px;text-decoration:underline;text-underline-offset:2px}
.own button:hover{color:var(--blue)}
.own button.arm{color:#fff;background:var(--red);text-decoration:none;font-weight:700}
.ed{background:var(--surface);border:1px solid var(--blue);border-radius:10px;padding:8px;margin-top:4px;display:flex;flex-direction:column;gap:6px}
.ed textarea,.ed input{width:100%;border:1px solid #D7DBE3;border-radius:8px;padding:6px 9px;font-size:12px;background:var(--surface)}
.ed textarea{min-height:56px;resize:vertical}
.ed input{height:32px}
.edb{display:flex;justify-content:flex-end;gap:6px}
.shead{display:none}
.mnav{display:none}
.sheet-bg{display:none}
@media (max-width:760px){
html:not(.force-pc) body{font-size:13.5px;padding-bottom:70px}
html:not(.force-pc) .nav-in{height:48px;padding:0 12px}
html:not(.force-pc) .brand{font-size:13.5px}
html:not(.force-pc) .brand small{display:none}
html:not(.force-pc) .menu{display:none}
html:not(.force-pc) .aside .panel > h2{display:none}
html:not(.force-pc) .me .role,html:not(.force-pc) .me .who-off{display:none}
html:not(.force-pc) .wrap{padding:0 12px}
html:not(.force-pc) .head{padding:12px 0 0}
html:not(.force-pc) h1{font-size:18px;margin-bottom:8px}
html:not(.force-pc) .search{max-width:none}
html:not(.force-pc) .search input{height:40px;font-size:14px}
html:not(.force-pc) .layout{display:block;margin-top:12px}
html:not(.force-pc) .kpis{display:flex;overflow-x:auto;gap:6px;margin:0 -12px 10px;padding:0 12px;scrollbar-width:none}
html:not(.force-pc) .kpis::-webkit-scrollbar{display:none}
html:not(.force-pc) .kpi{flex:0 0 auto;min-width:92px;padding:7px 10px}
html:not(.force-pc) .fcard{padding:6px 0 10px;border-radius:16px}
html:not(.force-pc) .tabs button{font-size:13px;padding:8px 0}
html:not(.force-pc) .chips,html:not(.force-pc) .subchips{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:0 12px}
html:not(.force-pc) .chips{margin:10px 0 8px}
html:not(.force-pc) .subchips{margin:0 10px;border-radius:10px;padding:7px}
html:not(.force-pc) .chips::-webkit-scrollbar,html:not(.force-pc) .subchips::-webkit-scrollbar{display:none}
html:not(.force-pc) .chip,html:not(.force-pc) .sc{flex:0 0 auto}
html:not(.force-pc) .chip{padding:6px 12px;font-size:13px}
html:not(.force-pc) .sc{padding:3px 9px;font-size:12px}
html:not(.force-pc) .rhead{font-size:13.5px;margin:14px 4px 6px}
html:not(.force-pc) .checks{margin:0 4px 8px;gap:12px;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap}
html:not(.force-pc) .thead{display:none}
html:not(.force-pc) .row{border-radius:14px}
html:not(.force-pc) .row .grid{grid-template-columns:1fr auto;grid-template-areas:"who act" "stage next" "last last" "st st";row-gap:8px;column-gap:8px;padding:12px 12px 8px}
html:not(.force-pc) .row .grid > div{padding:0;border-left:0;text-align:left}
html:not(.force-pc) .c-who{grid-area:who}
html:not(.force-pc) .c-act{grid-area:act;align-self:start}
html:not(.force-pc) .c-stage{grid-area:stage;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html:not(.force-pc) .c-stage .dots{margin:0}
html:not(.force-pc) .c-stage .tag{margin:0}
html:not(.force-pc) .c-qty{display:none}
html:not(.force-pc) .c-next{grid-area:next;text-align:right!important}
html:not(.force-pc) .c-next .t{display:none}
html:not(.force-pc) .c-next .d{display:inline;margin-right:4px}
html:not(.force-pc) .c-last{grid-area:last;background:#F7F8FA;border-radius:8px;padding:6px 8px!important}
html:not(.force-pc) .c-st{grid-area:st;flex-direction:row;justify-content:flex-start;flex-wrap:wrap}
html:not(.force-pc) .c-st .hint{display:none}
html:not(.force-pc) .ib{padding:6px}
html:not(.force-pc) .strip{font-size:11.5px;padding:6px}
html:not(.force-pc) .detail{padding:12px}
html:not(.force-pc) .cbox input{height:40px;font-size:14px}
html:not(.force-pc) .cbox .btn{padding:8px 14px}
html:not(.force-pc) .own button{font-size:12px;padding:2px 6px}
html:not(.force-pc) .aside{position:fixed!important;left:0;right:0;bottom:0;top:auto;max-height:86vh!important;z-index:25;background:var(--bg);border-radius:18px 18px 0 0;padding:0 12px 16px;transform:translateY(105%);transition:transform .25s;overflow:auto;gap:10px;box-shadow:0 -8px 30px rgba(0,0,0,.15)}
html:not(.force-pc) .aside.show{transform:none}
html:not(.force-pc) .aside[data-view=add] #queuebox,html:not(.force-pc) .aside[data-view=queue] #addbox{display:none}
html:not(.force-pc) .shead{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--bg);padding:12px 4px 8px;z-index:1;font-size:15px}
html:not(.force-pc) .sheet-bg.show{display:block;position:fixed;inset:0;background:rgba(17,24,39,.4);z-index:24}
html:not(.force-pc) .panel{border-radius:14px;padding:12px}
html:not(.force-pc) .f input,html:not(.force-pc) .f select,html:not(.force-pc) .f textarea{height:42px;font-size:14px}
html:not(.force-pc) .f textarea{min-height:80px}
html:not(.force-pc) .stagepick button{padding:6px 12px;font-size:12.5px}
html:not(.force-pc) .pfoot .btn{padding:10px 20px;font-size:14px}
html:not(.force-pc) .mnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);height:60px;padding:0 8px env(safe-area-inset-bottom)}
html:not(.force-pc) .mnav button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--sub);position:relative}
html:not(.force-pc) .mnav button.on{color:var(--blue);font-weight:700}
html:not(.force-pc) .mnav .fab span.i{width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:24px;line-height:1;margin-top:-22px;box-shadow:0 4px 12px rgba(59,91,245,.35)}
html:not(.force-pc) .mnav .b{position:absolute;top:6px;left:calc(50% + 6px);background:var(--red);color:#fff;font-size:10px;font-weight:700;border-radius:999px;padding:0 5px;line-height:15px}
html:not(.force-pc) footer{margin-top:24px}
html:not(.force-pc) .toast{bottom:76px}
}
html.force-m body{font-size:13.5px;padding-bottom:70px}
html.force-m .nav-in{height:48px;padding:0 12px}
html.force-m .brand{font-size:13.5px}
html.force-m .brand small{display:none}
html.force-m .menu{display:none}
html.force-m .aside .panel > h2{display:none}
html.force-m .me .role,html.force-m .me .who-off{display:none}
html.force-m .wrap{padding:0 12px}
html.force-m .head{padding:12px 0 0}
html.force-m h1{font-size:18px;margin-bottom:8px}
html.force-m .search{max-width:none}
html.force-m .search input{height:40px;font-size:14px}
html.force-m .layout{display:block;margin-top:12px}
html.force-m .kpis{display:flex;overflow-x:auto;gap:6px;margin:0 -12px 10px;padding:0 12px;scrollbar-width:none}
html.force-m .kpis::-webkit-scrollbar{display:none}
html.force-m .kpi{flex:0 0 auto;min-width:92px;padding:7px 10px}
html.force-m .fcard{padding:6px 0 10px;border-radius:16px}
html.force-m .tabs button{font-size:13px;padding:8px 0}
html.force-m .chips,html.force-m .subchips{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:0 12px}
html.force-m .chips{margin:10px 0 8px}
html.force-m .subchips{margin:0 10px;border-radius:10px;padding:7px}
html.force-m .chips::-webkit-scrollbar,html.force-m .subchips::-webkit-scrollbar{display:none}
html.force-m .chip,html.force-m .sc{flex:0 0 auto}
html.force-m .chip{padding:6px 12px;font-size:13px}
html.force-m .sc{padding:3px 9px;font-size:12px}
html.force-m .rhead{font-size:13.5px;margin:14px 4px 6px}
html.force-m .checks{margin:0 4px 8px;gap:12px;overflow-x:auto;flex-wrap:nowrap;white-space:nowrap}
html.force-m .thead{display:none}
html.force-m .row{border-radius:14px}
html.force-m .row .grid{grid-template-columns:1fr auto;grid-template-areas:"who act" "stage next" "last last" "st st";row-gap:8px;column-gap:8px;padding:12px 12px 8px}
html.force-m .row .grid > div{padding:0;border-left:0;text-align:left}
html.force-m .c-who{grid-area:who}
html.force-m .c-act{grid-area:act;align-self:start}
html.force-m .c-stage{grid-area:stage;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
html.force-m .c-stage .dots{margin:0}
html.force-m .c-stage .tag{margin:0}
html.force-m .c-qty{display:none}
html.force-m .c-next{grid-area:next;text-align:right!important}
html.force-m .c-next .t{display:none}
html.force-m .c-next .d{display:inline;margin-right:4px}
html.force-m .c-last{grid-area:last;background:#F7F8FA;border-radius:8px;padding:6px 8px!important}
html.force-m .c-st{grid-area:st;flex-direction:row;justify-content:flex-start;flex-wrap:wrap}
html.force-m .c-st .hint{display:none}
html.force-m .ib{padding:6px}
html.force-m .strip{font-size:11.5px;padding:6px}
html.force-m .detail{padding:12px}
html.force-m .cbox input{height:40px;font-size:14px}
html.force-m .cbox .btn{padding:8px 14px}
html.force-m .own button{font-size:12px;padding:2px 6px}
html.force-m .aside{position:fixed!important;left:0;right:0;bottom:0;top:auto;max-height:86vh!important;z-index:25;background:var(--bg);border-radius:18px 18px 0 0;padding:0 12px 16px;transform:translateY(105%);transition:transform .25s;overflow:auto;gap:10px;box-shadow:0 -8px 30px rgba(0,0,0,.15)}
html.force-m .aside.show{transform:none}
html.force-m .aside[data-view=add] #queuebox,html.force-m .aside[data-view=queue] #addbox{display:none}
html.force-m .shead{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--bg);padding:12px 4px 8px;z-index:1;font-size:15px}
html.force-m .sheet-bg.show{display:block;position:fixed;inset:0;background:rgba(17,24,39,.4);z-index:24}
html.force-m .panel{border-radius:14px;padding:12px}
html.force-m .f input,html.force-m .f select,html.force-m .f textarea{height:42px;font-size:14px}
html.force-m .f textarea{min-height:80px}
html.force-m .stagepick button{padding:6px 12px;font-size:12.5px}
html.force-m .pfoot .btn{padding:10px 20px;font-size:14px}
html.force-m .mnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);height:60px;padding:0 8px env(safe-area-inset-bottom)}
html.force-m .mnav button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--sub);position:relative}
html.force-m .mnav button.on{color:var(--blue);font-weight:700}
html.force-m .mnav .fab span.i{width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:24px;line-height:1;margin-top:-22px;box-shadow:0 4px 12px rgba(59,91,245,.35)}
html.force-m .mnav .b{position:absolute;top:6px;left:calc(50% + 6px);background:var(--red);color:#fff;font-size:10px;font-weight:700;border-radius:999px;padding:0 5px;line-height:15px}
html.force-m footer{margin-top:24px}
html.force-m .toast{bottom:76px}


@media (max-width:1180px){
  .layout{grid-template-columns:1fr}
  .aside{position:static;max-height:none}
  .kpis{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:860px) and (min-width:761px){
  .thead{display:none}
  .row .grid{grid-template-columns:1fr 1fr;row-gap:8px}
  .sepl{border-left:0}
  .acts{justify-content:flex-start}
  .menu{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ===== 추가: 상태 태그, 단계 보드, 로그인 ===== */
.t-지연{background:var(--red-soft);color:var(--red)}
.t-임박{background:var(--blue-soft);color:var(--blue)}
.t-대기중{background:var(--amber-soft);color:var(--amber)}
.t-정상{background:#E8F3F5;color:#3C7F8E}
.t-완료{background:var(--green-soft);color:var(--green)}
.p-wait{background:var(--amber-soft);color:var(--amber)}
.p-req{background:#E8F3F5;color:#3C7F8E}
.dots i.w{background:var(--amber)}
.prog{display:flex;flex-direction:column;align-items:center;gap:3px}
.prog .a{font-size:13px;font-weight:700}
.prog .u{font-size:10.5px;color:var(--sub)}
.prog .bar-old{width:46px;height:4px;border-radius:2px;background:#E3E7EE;overflow:hidden}
.prog .bar i{display:block;height:100%;background:var(--blue)}
.next .w{font-size:11.5px;font-weight:700;color:var(--amber)}

.sb{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 10px;margin:0 0 10px}
.steps{display:flex;align-items:center;overflow-x:auto;padding:2px 0 6px;scrollbar-width:thin}
.stp{flex:none;display:inline-flex;align-items:center;gap:4px;border:1px solid transparent;background:none;border-radius:999px;padding:2px 8px 2px 5px;font-size:11px;color:var(--sub);white-space:nowrap}
.stp i{width:9px;height:9px;border-radius:50%;background:#D5DAE3;flex:none}
.stp.s-완료{color:#374151} .stp.s-완료 i{background:var(--green)}
.stp.s-대기중{color:var(--amber);font-weight:700} .stp.s-대기중 i{background:var(--amber)}
.stp.s-진행중{color:var(--blue);font-weight:700} .stp.s-진행중 i{background:var(--blue)}
.stp:hover{background:#F3F5F9}
.stp.on{border-color:var(--ink);background:#fff;color:var(--ink);font-weight:700}
.stp-ln{flex:none;width:10px;height:1px;background:#D5DAE3}
.sedit{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px dashed var(--line);padding-top:7px}
.sedit.busy{opacity:.5;pointer-events:none}
.se-n{display:flex;align-items:center;gap:6px;min-width:150px;font-size:12.5px}
.scd{font-size:10.5px;font-weight:700;color:var(--sub)}
.sedit .fl{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--sub)}
.sedit input[type=date]{height:28px;border:1px solid #D7DBE3;border-radius:7px;padding:0 6px;font-size:11.5px;background:var(--surface)}
.sedit input[type=date]:disabled{background:#F6F7F9;color:var(--sub)}
.sedit .ro{font-size:12px;color:#374151}
.sbadge{font-size:10px;font-weight:700;border-radius:999px;padding:0 7px}
.sbadge.s-완료{background:var(--green-soft);color:var(--green)}
.sbadge.s-대기중{background:var(--amber);color:#fff}
.sbadge.s-진행중{background:var(--blue);color:#fff}
.sbadge.s-예정{background:#F1F2F5;color:var(--sub)}
.dbtn2{border:1px solid var(--line);background:#fff;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:700;color:var(--green);margin-left:auto}
.dbtn2.undo{color:var(--sub)}
.comp{padding:8px 10px;gap:6px;margin:0 0 12px}
.comp-in{display:flex;gap:6px;align-items:flex-start}
.comp-in textarea{flex:1;min-height:34px!important;height:34px;resize:vertical;padding:7px 10px!important}
.comp-in .btn{height:34px;padding:0 16px}
.comp-o{display:flex;align-items:center;gap:8px}
.typepick{display:flex;gap:4px}
.typepick button,.stagepick button{border:1px solid var(--line);background:#F7F8FA;border-radius:999px;padding:4px 10px;font-size:11.5px}
.typepick button.on,.stagepick button.on{background:var(--blue);color:#fff;border-color:var(--blue)}
.stagepick{display:flex;flex-wrap:wrap;gap:4px}
.ckl{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:#374151;cursor:pointer}
.ckl input{width:15px;height:15px;accent-color:var(--blue)}
.tl .sysl{font-size:11px;color:var(--sub);padding-bottom:6px}
.tl .sysl::after{width:6px;height:6px;left:2px;top:6px;border-width:0;background:#C9D0DC}
.tl .tp{display:inline-block;font-size:10px;font-weight:700;border-radius:5px;padding:0 5px;margin-left:4px;background:#F1F2F5;color:#4B5563}
.tl .tp.이슈{background:var(--red-soft);color:var(--red)}
.req{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:3px;font-size:11px;background:#EEF2FF;color:#2B3EA8;border-radius:7px;padding:2px 7px}
.req button{border:0;background:#fff;border-radius:999px;padding:0 7px;font-size:10.5px;color:#2B3EA8}
.req button.on{background:#2B3EA8;color:#fff}
.cbox-x{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:11px;color:var(--sub)}
.cbox-x input[type=date]{height:26px;border:1px solid #D7DBE3;border-radius:7px;padding:0 6px;font-size:11px}
.rb.mk{background:#ECFDF5;color:#047857}
.glinks{display:flex;justify-content:space-between;margin-top:10px}
.gok{color:var(--green);font-size:11.5px;line-height:1.6}
.gok b{color:var(--ink)}
.gok:empty{display:none}
.pvh{margin:12px 0 0;font-size:11.5px;color:var(--sub);line-height:1.7;background:#FFF8E1;border-radius:10px;padding:8px 10px}
html.force-m #reload{display:none}
@media (max-width:760px){html:not(.force-pc) #reload{display:none}}
.gbox input:disabled{background:#F4F6F9;color:var(--sub)}
/* 거래처 추가 */
#p-add{margin-bottom:12px}
.search.sm{max-width:none;margin:0}
.search.sm input{height:36px;font-size:12.5px;padding:0 12px;border-width:1.5px}
#a-res{margin-top:6px;max-height:420px;overflow:auto}
.cl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.cl button{width:100%;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:6px 9px;display:flex;flex-direction:column;gap:1px}
.cl button:hover,.cl button:focus-visible{border-color:var(--blue);background:#F7F9FF}
.cl-t{display:flex;align-items:center;gap:6px;font-size:12.5px}
.cl-c{font-size:10.5px;color:var(--sub);font-variant-numeric:tabular-nums}
.cl-r{font-size:10px;font-weight:700;color:var(--green);background:var(--green-soft);border-radius:999px;padding:0 6px}
.cl-m{font-size:11px;color:#4B5563}
.cl-a{font-size:10.5px;color:var(--sub);line-height:1.4}
.cl-pick{border:1.5px solid var(--blue);border-radius:10px;padding:8px 10px;background:#F7F9FF;display:flex;flex-direction:column;gap:1px}
.a-warn{font-size:11.5px;color:var(--amber);background:var(--amber-soft);border-radius:8px;padding:6px 8px;margin:8px 0 0}
#p-add .f input{width:100%;height:34px;border:1px solid #D7DBE3;border-radius:8px;padding:0 10px}
#p-add .btn:disabled{opacity:.45}
.f label span.hint{color:var(--sub);font-weight:400;margin-left:4px}
/* 목록에서 바로 일정 입력 */
.qplan{width:112px;height:26px;margin-top:3px;border:1.5px dashed var(--amber);border-radius:7px;padding:0 4px;font-size:11px;background:var(--amber-soft);color:var(--ink)}
.qplan:focus{border-style:solid;border-color:var(--blue);background:#fff;outline:none}
.qplan.busy,.qdone.busy{opacity:.4;pointer-events:none}
.qdone{margin-top:3px;border:1px solid var(--green);background:#fff;color:var(--green);border-radius:999px;padding:1px 9px;font-size:10.5px;font-weight:700}
.qdone:hover{background:var(--green-soft)}
.next .t b{color:var(--amber);font-weight:700}
.ckl.sm{font-size:11px;color:var(--sub)}
.ckl.sm input{width:13px;height:13px}
.sedit .qd{display:flex;gap:3px}
.sedit .qd button{border:1px solid var(--line);background:#F7F8FA;border-radius:999px;padding:2px 7px;font-size:10.5px}
/* 단계별 활동 패널 */
.stp{position:relative}
.stp em{font-style:normal;font-size:9.5px;font-weight:700;background:var(--blue);color:#fff;border-radius:999px;padding:0 5px;line-height:14px}
.stp small{font-size:9.5px;color:var(--amber);font-weight:700}
.sl{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.sl > li{border-left:2px solid #DDE3EC;padding:1px 0 1px 9px}
.sl > li:first-child{border-left-color:var(--blue)}
.sl-h{font-size:11px;color:var(--sub);display:flex;align-items:center;gap:4px}
.sl-h b{color:var(--ink)}
.sl-c{font-size:12.5px;white-space:pre-wrap}
.sl .cm{margin-top:4px}
.sl .cm li{font-size:11.5px;padding:3px 8px}
.sl-e{margin:8px 0 0}
.lnk.sm{font-size:11px;margin-left:auto}
.sin{display:flex;gap:6px;align-items:center;margin-top:10px;padding-top:8px;border-top:1px dashed var(--line)}
.sin input[type=date]{height:32px;border:1px solid #D7DBE3;border-radius:8px;padding:0 6px;font-size:11.5px;width:122px}
.sin-t{flex:1;min-width:0;height:32px;border:1.5px solid var(--blue);border-radius:8px;padding:0 10px;font-size:12.5px}
.sin .btn{height:32px;padding:0 16px}
.sin-e{margin:4px 0 0;color:var(--red)}
.sin-e:empty{display:none}
.hist{margin-top:8px}
.hist ul{list-style:none;margin:4px 0 0;padding:0;font-size:11px;color:var(--sub);display:flex;flex-direction:column;gap:2px}
.hist .lnk.sm{margin-left:0}
.lnk-ord{cursor:pointer;color:var(--blue);background:#fff}
html.force-m .sin{flex-wrap:wrap} html.force-m .sin-t{flex:1 1 100%;order:-1}
@media (max-width:760px){html:not(.force-pc) .sin{flex-wrap:wrap} html:not(.force-pc) .sin-t{flex:1 1 100%;order:-1}}
/* 단계 완료 창 */
.dlg{position:fixed;inset:0;background:rgba(17,24,39,.45);display:grid;place-items:center;z-index:40;padding:16px}
.dlg[hidden]{display:none}
.dlg-b{background:var(--surface);border-radius:16px;padding:16px 18px;width:100%;max-width:420px;display:flex;flex-direction:column;gap:8px;box-shadow:0 20px 50px rgba(17,24,39,.25)}
.dlg-h{display:flex;align-items:center;gap:8px}
.pico.sm{width:28px;height:28px;font-size:12px}
.dlg-s{font-size:13px;display:flex;align-items:center;gap:6px;padding:6px 0;border-top:1px solid var(--line)}
.dlg-r{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700}
.dlg-r input,.dlg-n input[type=date]{height:32px;border:1px solid #D7DBE3;border-radius:8px;padding:0 8px;font-size:12.5px}
.dlg-l{font-size:12px;font-weight:700}
.dlg-l span{color:var(--red)}
.dlg-l b{color:var(--blue)}
.dlg-b textarea{width:100%;border:1.5px solid #D7DBE3;border-radius:10px;padding:8px 10px;font-size:13px;resize:vertical}
.dlg-b textarea:focus{border-color:var(--blue);outline:none}
.dlg-n{background:#F7F9FF;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.dlg-n .hint{margin:0}
.seg{display:flex;gap:6px}
.seg label{flex:1}
.seg input{position:absolute;opacity:0}
.seg span{display:block;text-align:center;border:1.5px solid #D7DBE3;border-radius:999px;padding:6px 0;font-size:12.5px;font-weight:700;color:var(--sub);cursor:pointer;background:#fff}
.seg input:checked + span{border-color:var(--blue);background:var(--blue);color:#fff}
.seg input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}
.dlg-e{color:var(--red);font-size:12px;margin:0;min-height:0}
.dlg-e:empty{display:none}
.dlg-f{display:flex;justify-content:flex-end;gap:6px}
.dlg-f .btn{padding:8px 18px;font-size:13px}
.mod{font-size:10.5px;color:var(--sub);margin-top:1px}
.mod b{color:#374151;font-weight:700}
.pico svg{display:block}
.chipset{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.chipset button{border:1px solid #D7DBE3;background:#fff;border-radius:999px;padding:4px 10px;font-size:11.5px;color:#374151}
.chipset button:hover{border-color:var(--blue);color:var(--blue)}
.chipset button.on{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.chipset input[type=date]{height:30px;border:1px solid #D7DBE3;border-radius:8px;padding:0 6px;font-size:12px;margin-left:auto}
/* 평균 소요기간 */
.p-slow{background:#FFF1E6;color:#C2410C}
.pace{font-size:10.5px;color:var(--sub);background:#F1F3F7;border-radius:999px;padding:0 7px;font-weight:500}
.pace.bad{background:#FFF1E6;color:#C2410C;font-weight:700}
.stp small.dn{color:var(--green)}
.sl-t{font-size:12px;font-weight:700;margin:12px 0 0;display:flex;gap:6px;align-items:center}
.sl > li.cur{border-left-color:var(--blue)}
.sl > li:first-child{border-left-color:#DDE3EC}
.sl > li.cur:first-child{border-left-color:var(--blue)}
.stg{font-size:10px;font-weight:700;color:#3C7F8E;background:#E8F3F5;border-radius:5px;padding:0 5px}
.sedit input[type=time],.chipset input[type=time]{height:28px;border:1px solid #D7DBE3;border-radius:7px;padding:0 4px;font-size:11.5px;width:92px;margin-left:4px}
.chipset input[type=time]{height:30px}
.chipset input[type=date]{margin-left:0}
.next .d small{font-size:10.5px;color:var(--sub);font-weight:500}

/* 목록/캘린더 전환 */
.rbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rbar .rhead{flex:1}
.vsw{display:inline-flex;background:#EEF0F4;border-radius:999px;padding:3px}
.vsw button{border:0;background:none;border-radius:999px;padding:5px 14px;font-size:12px;font-weight:700;color:var(--sub)}
.vsw button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(17,24,39,.12)}
.cal[hidden]{display:none}
.cal{display:grid;grid-template-columns:minmax(260px,330px) 1fr;gap:14px;margin:8px 0 14px}
.cal-l,.cal-r{background:var(--surface);border-radius:16px;padding:14px 16px;border:1px solid var(--line)}
.cal-h{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.cal-h b{font-size:16px;font-weight:800;color:#2B3EA8;flex:1;text-align:center}
.cal-nav{border:1px solid var(--line);background:#fff;border-radius:8px;width:28px;height:28px;font-size:16px;line-height:1}
.seg.sm span{padding:4px 0;font-size:11.5px}
.seg.sm{margin-bottom:10px}
.cal-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.cal-g .wd{font-size:10.5px;color:var(--sub);padding:4px 0}
.cd{border:0;background:none;height:40px;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12.5px}
.cd span:first-child{width:26px;height:26px;display:grid;place-items:center;border-radius:50%}
.cd:hover{background:#F3F5F9}
.cd.out{color:#C4CAD4}
.cd.today span:first-child{background:#F5A524;color:#fff;font-weight:700}
.cd.sel span:first-child{background:#3149D6;color:#fff;font-weight:700}
.dts{display:flex;gap:2px;height:5px}
.dts i{width:5px;height:5px;border-radius:50%}
.ag-h{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.ag-h b{font-size:15px;color:#2B3EA8}
.ag-d{font-size:11.5px;color:var(--sub);font-weight:700;margin:12px 0 6px}
.ag-d.late{color:var(--red)}
.ag{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.ag li{display:flex;align-items:center;gap:6px}
.ag li > button[data-go]{flex:1;display:flex;align-items:center;gap:10px;border:0;background:none;text-align:left;padding:6px 6px;border-radius:10px}
.ag li > button[data-go]:hover{background:#F3F6FD}
.ag-t{width:46px;flex:none}
.ag-t b{font-size:15px;color:#3149D6;font-weight:800}
.ag-t b.allday{font-size:11.5px;color:var(--sub);font-weight:700}
.ag-bar{width:3px;align-self:stretch;border-radius:2px;flex:none}
.ag-m{display:flex;flex-direction:column;min-width:0}
.ag-s{font-size:10.5px;color:var(--sub)}
.ag-s em{font-style:normal;color:var(--red);font-weight:700}
.ag-m b{font-size:13px}
.ag-o{font-size:10.5px;color:var(--sub)}
.ag li.late .ag-t b{color:var(--red)}
html.force-m .cal{grid-template-columns:1fr}
@media (max-width:900px){html:not(.force-pc) .cal{grid-template-columns:1fr}}
#thead[hidden],#list[hidden],#pager[hidden]{display:none!important}
.cal-g{grid-template-columns:repeat(7,minmax(0,1fr))}
.cd{min-width:0;padding:0}
.dlg-n .chipset input[type=time]{width:96px}
/* 계약·수금 */
.bp{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-top:10px}
.bp-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12.5px}
.bp-h .lnk.sm{margin-left:0}
.btn.up{margin-left:auto;cursor:pointer;padding:5px 12px;font-size:11.5px}
.bp-sum{display:flex;gap:14px;font-size:12px;color:var(--sub);margin:8px 0 6px}
.bp-sum b{color:var(--ink);font-variant-numeric:tabular-nums}
.bp-sum .bad,.bp-sum .bad b{color:var(--red)}
.bt{width:100%;border-collapse:collapse;font-size:11.5px}
.bt th{font-weight:700;color:var(--sub);text-align:left;padding:4px 6px;border-bottom:1px solid var(--line);white-space:nowrap}
.bt td{padding:5px 6px;border-bottom:1px solid #F0F2F5;white-space:nowrap}
.bt td.n{text-align:right;font-variant-numeric:tabular-nums}
.bt .bst{font-size:10.5px;font-weight:700;border-radius:999px;padding:0 7px;background:#F1F2F5;color:var(--sub)}
.bt .b-입금완료 .bst{background:var(--green-soft);color:var(--green)}
.bt .b-연체 .bst{background:var(--red-soft);color:var(--red)}
.bt .b-발행 .bst{background:var(--blue-soft);color:var(--blue)}
.bt .qdone{margin:0 0 0 6px}
.bform input{height:28px;border:1px solid #D7DBE3;border-radius:7px;padding:0 6px;font-size:11.5px;width:100%;min-width:90px}
.btn.sm{padding:4px 12px;font-size:11.5px}
.addb{display:inline-block;margin-top:6px}
.scan{background:#F7F9FF;border:1px solid #DCE5FF;border-radius:10px;padding:10px;margin-top:8px}
.scan-h{display:flex;gap:8px;align-items:baseline;font-size:12.5px;margin-bottom:6px}
.scan-h a{margin-left:auto;font-size:11.5px}
.scan-g{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.scan-g label{display:flex;flex-direction:column;gap:2px;font-size:10.5px;color:var(--sub)}
.scan-g input{height:30px;border:1px solid #D7DBE3;border-radius:7px;padding:0 8px;font-size:12px;color:var(--ink)}
.scan-f{display:flex;justify-content:flex-end;gap:6px;margin-top:8px}
html.force-m .scan-g{grid-template-columns:1fr 1fr}
@media (max-width:760px){html:not(.force-pc) .scan-g{grid-template-columns:1fr 1fr}}
.bp{overflow-x:auto}
/* 품목별 진행단계 처수 */
.subchips.fun{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;background:none;padding:0;justify-content:stretch}
.fn{background:#F7F8FB;border-radius:12px;padding:10px 12px}
.fn-h{display:flex;align-items:center;gap:6px;margin-bottom:6px;font-size:13px}
.fn-h .lnk.sm{margin-left:auto}
.fn-b{display:flex;flex-direction:column;gap:2px}
.fn-r{display:grid;grid-template-columns:118px 1fr 52px 58px;align-items:center;gap:8px;border:0;background:none;border-radius:7px;padding:3px 6px;text-align:left;font-size:11.5px}
.fn-r:hover{background:#EEF1F7}
.fn-r.on{background:#fff;box-shadow:0 0 0 1.5px var(--ink) inset}
.fn-r.zero{color:#B0B7C3}
.fn-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fn-l em{font-style:normal;font-size:9.5px;color:var(--sub);margin-right:4px}
.fn-bar{height:10px;background:#E6E9EF;border-radius:5px;overflow:hidden}
.fn-bar i{display:block;height:100%;border-radius:5px;min-width:0}
.fn-n{text-align:right;color:var(--sub)}
.fn-n b{color:var(--ink);font-size:12.5px}
.fn-r.zero .fn-n b{color:#B0B7C3}
html.force-m .subchips.fun{margin:0 10px;overflow:visible}
@media (max-width:760px){html:not(.force-pc) .subchips.fun{overflow:visible;padding:0}}

/* 단계 트랙: 지금 위치 + 완료 → 다음 단계로 이동 */
.trk{display:flex;flex-direction:column;gap:5px;padding:0 10px;min-width:0}
.trk-l{position:relative;height:14px;margin:0 6px}
.trk-l::before{content:"";position:absolute;left:0;right:0;top:6px;height:2px;background:#E3E7EE;border-radius:1px}
.trk-fill{position:absolute;left:0;top:6px;height:2px;background:var(--c);border-radius:1px}
.trk-l i{position:absolute;top:3px;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#fff;border:1.5px solid #CBD2DC;box-sizing:border-box}
.trk-l i.d{background:var(--c);border-color:var(--c)}
.trk-m{position:absolute;top:-1px;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:#fff;border:3px solid var(--c);box-sizing:border-box;box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 18%,transparent)}
.trk.go .trk-fill{transition:width .7s cubic-bezier(.2,.8,.2,1)}
.trk.go .trk-m{transition:left .7s cubic-bezier(.2,.8,.2,1);animation:trkpop .7s ease-out .55s}
@keyframes trkpop{0%{transform:scale(1)}40%{transform:scale(1.45)}100%{transform:scale(1)}}
.trk-t{display:flex;align-items:center;gap:6px;font-size:12.5px;min-width:0}
.trk-t b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trk-t .scd{font-size:10.5px;color:var(--sub);font-weight:700}
.trk-s{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--sub)}
.trk-s .w{color:var(--amber);font-weight:700}
.trk-s .qdone{margin:0 0 0 auto}
.trk.fin .trk-t b{color:var(--green)}
.whoosh{font-size:10.5px;font-weight:700;color:var(--c);opacity:0}
.trk.go .whoosh{animation:whoosh 1.6s ease-out .3s}
@keyframes whoosh{0%{opacity:0;transform:translateX(-14px)}25%{opacity:1;transform:none}75%{opacity:1}100%{opacity:0;transform:translateX(8px)}}
.fn-a{font-size:10.5px;color:var(--sub);min-width:52px;text-align:right}
@media (prefers-reduced-motion:reduce){.trk.go .trk-fill,.trk.go .trk-m{transition:none;animation:none}.trk.go .whoosh{animation:none;opacity:1}}
html:not(.force-pc) .c-stage .trk,html.force-m .c-stage .trk{width:100%;padding:0}

/* 원형 게이지 */
.ring{position:relative;display:inline-grid;place-items:center;flex:none}
.ring svg{position:absolute;inset:0;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:3.6}
.ring .rg-b{stroke:#E8ECF2}
.ring .rg-f{stroke:var(--c);stroke-linecap:round;transition:stroke-dasharray .7s ease}
.ring b{position:relative;font-size:10px;font-weight:700}
.fn-g{display:inline-flex;align-items:center;gap:4px;margin-left:auto}
.fn-g small{font-size:10.5px;color:var(--sub);margin-right:6px}
/* 단계표 */
.mx{display:flex;flex-direction:column;gap:14px}
.mx-p{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px}
.mx-w{overflow-x:auto}
.mx-t{border-collapse:collapse;width:100%;font-size:12px}
.mx-t th,.mx-t td{padding:6px 4px;text-align:center;border-bottom:1px solid #EEF1F5}
.mx-t thead th{font-weight:600;color:var(--sub);font-size:11px;vertical-align:bottom;min-width:44px}
.mx-t thead th span{display:inline-block;max-width:60px;line-height:1.25;word-break:keep-all}
.mx-t .mx-n{text-align:left;min-width:170px;position:sticky;left:0;background:#fff;z-index:1}
.mx-t th.mx-n .lnk{display:block;font-weight:700;text-align:left;font-size:12.5px}
.mx-t th.mx-n small{color:var(--sub);font-weight:400;font-size:10.5px}
.mx-sum td{font-size:11px;color:var(--sub);background:#F8FAFC}
.mx-sum .mx-n{background:#F8FAFC}
.mx-t tbody tr:hover td,.mx-t tbody tr:hover th{background:#F8FAFC}
.mx-t i{display:inline-block;width:12px;height:12px;border-radius:50%;border:1.5px solid #CBD2DC;box-sizing:border-box}
.mx-t i.d{background:var(--c);border-color:var(--c)}
.mx-t i.im{background:color-mix(in srgb,var(--c) 35%,#fff);border-color:var(--c);border-style:dashed}
.mx-t i.cur{border:3px solid var(--c);width:14px;height:14px;box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 18%,transparent)}
.mx-t i.pl{border-color:var(--c)}
.mx-more{margin-top:8px}
.fn-h{flex-wrap:wrap}
.fn-h b{white-space:nowrap}
.fn-g{flex-basis:100%;margin:6px 0 2px}
.thead > div{white-space:nowrap}
.thead .th{white-space:nowrap}

/* 단계표 칸: 완료일 + 활동기록 */
.mx-t thead th em{display:block;font-style:normal;font-size:10px;color:var(--c);font-weight:700}
.mx-t td{padding:3px;vertical-align:top;min-width:112px;max-width:132px}
.mx-t th.mx-n{vertical-align:top}
.mx-t th.mx-n .ring{margin-top:4px}
.mx-b{display:flex;flex-direction:column;gap:2px;width:100%;min-height:46px;text-align:left;border:1px solid #EEF1F5;background:#fff;border-radius:8px;padding:5px 7px;font-size:11px;line-height:1.35;cursor:pointer}
.mx-b:disabled{cursor:default}
.mx-b b{font-size:11px;font-weight:700}
.mx-b b.p{color:var(--c)}
.mx-c{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#374151;word-break:keep-all}
.mx-c.add{color:var(--sub);opacity:0;transition:opacity .15s}
.c-d .mx-b{background:color-mix(in srgb,var(--c) 9%,#fff);border-color:color-mix(in srgb,var(--c) 30%,#fff)}
.c-d .mx-b b{color:var(--c)}
.c-im .mx-b{background:#F8FAFC;border-style:dashed;border-color:color-mix(in srgb,var(--c) 40%,#fff)}
.c-im .mx-b b{color:var(--sub)}
.c-cur .mx-b{border:2px solid var(--c)}
.c-cur .mx-c.add,.mx-b:hover .mx-c.add{opacity:1}
.c-pl .mx-b{border-color:color-mix(in srgb,var(--c) 45%,#fff)}
.mx-b:not(:disabled):hover{box-shadow:0 2px 8px rgba(15,23,42,.08)}
.mx-bill{text-align:right!important;white-space:nowrap;font-size:11.5px}
.mx-bill b{display:block}
.mx-bill b.bad{color:var(--red)}
.mx-bill small{color:var(--sub);font-size:10.5px}

.mx-sub{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:2px}
.mx-t th.mx-n .mx-sub .ring{margin:0}
.mx-b{min-height:34px}
.c-im .mx-b{min-height:34px;justify-content:center}
.cal-t{font-size:15px;font-weight:700;margin:28px 4px 10px}

/* ===== 로그인: 톤다운 그리너리 · 3D 톤 ===== */
.gate{--g1:#7FA65A;--g2:#3B5BF5;--g3:#2B3EA8;--gl:#EBF1FF;--gb:#D6E5C6;background:radial-gradient(1100px 700px at 85% 0%,#E4EEDA 0%,rgba(228,238,218,0) 60%),radial-gradient(900px 600px at 0% 100%,#EAF1E4 0%,rgba(234,241,228,0) 55%),#F5F8F1;padding:32px 24px;overflow:auto}
.gate::before{content:"";position:fixed;inset:0;background-image:radial-gradient(#BCD1A8 1px,transparent 1px);background-size:22px 22px;opacity:.35;pointer-events:none}
.g-wrap{position:relative;display:grid;grid-template-columns:1.2fr 380px;gap:56px;align-items:center;width:100%;max-width:1040px;min-height:min(560px,calc(100vh - 64px));background:rgba(255,255,255,.6);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.9);border-radius:30px;padding:64px 56px;box-shadow:0 30px 60px -24px rgba(63,98,53,.25),inset 0 1px 0 #fff;margin:auto}
.g-intro{position:relative;min-width:0;padding-top:40px}
.g-badge{display:inline-block;font-size:11.5px;font-weight:700;color:var(--g3);background:var(--gl);border:1px solid var(--gb);border-radius:999px;padding:5px 11px}
.g-intro h1{font-size:30px;line-height:1.35;margin:20px 0 16px;font-weight:800;color:#2A3A26;letter-spacing:-.5px}
.g-intro h1 b{background:linear-gradient(135deg,var(--g1),var(--g3));-webkit-background-clip:text;background-clip:text;color:transparent}
.g-lead{font-size:14px;line-height:1.85;color:#55654F;margin:0 0 26px;max-width:520px}
.g-tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;position:relative;z-index:1}
.g-tags li{font-size:13px;font-weight:700;color:var(--g3);background:linear-gradient(180deg,#fff,var(--gl));border:1px solid var(--gb);border-radius:999px;padding:9px 15px;box-shadow:0 8px 16px -10px rgba(63,98,53,.45),inset 0 1px 0 #fff}
.g-note{margin:26px 0 0;font-size:12px;color:#7A8A73}
.g-art{position:absolute;right:-24px;top:-46px;width:200px;height:auto;animation:gfloat 6s ease-in-out infinite;pointer-events:none;filter:saturate(.75) hue-rotate(-62deg)}
@keyframes gfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.gate .gbox{max-width:none;background:rgba(255,255,255,.94);border:1px solid #fff;border-radius:24px;padding:40px 32px 30px;box-shadow:0 20px 40px -20px rgba(63,98,53,.35),inset 0 1px 0 #fff}
.gate .gbox h2{font-size:21px;color:#2A3A26;margin:0 0 22px}
.gate .gbox input{height:48px;border:1.5px solid #DCE5D3;background:#F8FAF5;border-radius:12px;margin-bottom:10px}
.gate .gbox input:focus{border-color:var(--g1);background:#fff;box-shadow:0 0 0 4px rgba(127,166,90,.18);outline:0}
.gate .gbox .rule{background:var(--gl);color:#4B5E44;border-radius:10px;margin-top:4px}
.gate .gbox .btn.p{height:48px;border:0;border-radius:12px;margin-top:8px;background:linear-gradient(180deg,var(--g1),var(--g2));box-shadow:0 10px 20px -8px rgba(59,91,245,.6),inset 0 1px 0 rgba(255,255,255,.35);font-weight:700}
.gate .gbox .btn.p:hover{filter:brightness(1.05)}
.gate #g-reset{color:var(--g2)}
.gate .gerr{color:#C2493F}
.gate .glinks{display:flex;justify-content:center;margin-top:16px}
.gate #g-reset{margin:0 auto}
@media (max-width:860px){.g-wrap{grid-template-columns:1fr;padding:30px 22px;gap:30px;min-height:0}.g-art{width:120px;right:-4px;top:-10px}.g-intro{padding-top:6px}.g-intro h1{font-size:23px;margin-top:16px}.gate .gbox{order:-1;padding:30px 24px 24px}.g-intro h1 br{display:none}}
html.force-m .g-wrap{grid-template-columns:1fr;padding:30px 22px;gap:30px;min-height:0}
html.force-m .g-art{width:120px;right:-4px;top:-10px}
html.force-m .g-intro{padding-top:6px}
html.force-m .g-intro h1{font-size:23px}
html.force-m .gate .gbox{order:-1}
html.force-m .g-intro h1 br{display:none}
.g-intro{padding-top:70px}
.g-art{top:-60px;right:-10px}
@media (max-width:860px){.g-intro{padding-top:0}.g-art{position:static;display:block;width:120px;margin:18px auto 0}}
html.force-m .g-intro{padding-top:0}
html.force-m .g-art{position:static;display:block;width:120px;margin:18px auto 0}
.gate .rule b{color:var(--g2)}
.g-intro h1{font-size:28px}
.g-intro h1 b{display:inline-block;margin-top:4px}
.g-intro h1,.g-lead{word-break:keep-all}

/* 로그인 크기 줄임 */
.g-wrap{max-width:820px;min-height:0;grid-template-columns:1fr 330px;gap:40px;padding:44px 44px;border-radius:24px}
.g-intro{padding-top:56px}
.g-intro h1{font-size:24px;margin:12px 0 10px}
.g-intro h1 b{display:inline;margin:0}
.g-lead{font-size:13px;line-height:1.75;margin:0}
.g-art{width:150px;top:-40px;right:0}
.gate .gbox{padding:28px 26px 22px;border-radius:20px}
.gate .gbox h2{font-size:18px;margin:0 0 16px}
.gate .gbox input{height:42px;font-size:13.5px;margin-bottom:8px}
.gate .gbox .btn.p{height:42px}
.gate .gbox .rule{font-size:11.5px}
@media (max-width:860px){.g-wrap{padding:24px 18px;gap:22px}.g-intro{padding-top:0}.g-intro h1{font-size:21px}.g-art{width:100px;margin:12px auto 0}}
html.force-m .g-wrap{padding:24px 18px;gap:22px}
html.force-m .g-intro h1{font-size:21px}
.g-wrap{grid-template-columns:1fr 344px}
.gate .gbox .rule{font-size:11px;letter-spacing:-.2px}
@media (max-width:860px){.g-wrap{grid-template-columns:1fr}.gate .gbox .rule{font-size:11.5px}}
html.force-m .g-wrap{grid-template-columns:1fr}
/* 왼쪽 소개 위로: 아이콘을 글 위에 두고 세로 가운데보다 살짝 위 */
.g-intro{padding-top:0;align-self:center;margin-top:-28px;display:flex;flex-direction:column}
.g-intro .g-art{position:static;order:-1;width:140px;margin:0 0 10px -10px;animation:gfloat 6s ease-in-out infinite}
.g-intro .g-badge{align-self:flex-start}
@media (max-width:860px){.g-intro{margin-top:0}.g-intro .g-art{order:0;width:100px;margin:12px auto 0}}
html.force-m .g-intro{margin-top:0}
html.force-m .g-intro .g-art{order:0;width:100px;margin:12px auto 0}

/* ===== 로그인: 레퍼런스 톤 (흰 바탕 + 하늘색 빛, 점 격자, 블루) ===== */
.gate{--g1:#5B78FF;--g2:#3B5BF5;--g3:#2B3EA8;--gl:#EEF3FF;--gb:#D6E0FF;background:radial-gradient(900px 700px at 92% 12%,#CDEBFF 0%,rgba(205,235,255,0) 62%),radial-gradient(800px 600px at 8% 100%,#DCE6FF 0%,rgba(220,230,255,0) 60%),radial-gradient(600px 500px at 60% 55%,#EAF5FF 0%,rgba(234,245,255,0) 70%),#FFFFFF}
.gate::before{background-image:radial-gradient(#C7D3E6 1px,transparent 1px);opacity:.55}
.g-wrap{background:transparent;backdrop-filter:none;border:0;box-shadow:none}
.g-intro h1{color:#111827}
.g-intro h1 b{background:none;-webkit-background-clip:border-box;background-clip:border-box;color:var(--g2)}
.g-lead{color:#5B6475}
.g-badge{color:var(--g3);background:#fff;border-color:var(--gb)}
.g-intro .g-art{filter:hue-rotate(52deg) saturate(.95)}
.gate .gbox{background:#fff;border:1px solid #EDF0F7;box-shadow:0 24px 50px -24px rgba(43,62,168,.28)}
.gate .gbox h2{color:#111827}
.gate .gbox input{border-color:#DDE3EE;background:#fff;border-radius:999px;padding:0 18px}
.gate .gbox input:focus{border-color:var(--g2);box-shadow:0 0 0 4px rgba(59,91,245,.14)}
.gate .gbox .rule{background:#F4F7FF;color:#4B5675}
.gate .gbox .btn.p{border-radius:999px;background:linear-gradient(180deg,#5571FF,#3B5BF5);box-shadow:0 10px 22px -10px rgba(59,91,245,.7),inset 0 1px 0 rgba(255,255,255,.3)}
.gate #g-reset{color:var(--g2)}
/* 본 화면 배경도 같은 톤: 흰 바탕 + 은은한 하늘색 빛 */
body{background:radial-gradient(1000px 700px at 100% 0%,#DDF0FF 0%,rgba(221,240,255,0) 60%),radial-gradient(900px 700px at 0% 100%,#E6EDFF 0%,rgba(230,237,255,0) 60%),#F8FAFE;background-attachment:fixed}

/* 단계 칸: 동시 진행 단계를 한 줄씩 */
.grid{grid-template-columns:minmax(190px,1.6fr) minmax(230px,2.3fr) 76px 1.2fr 112px 96px 112px}
.trk{gap:4px}
.trk-a{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap;min-width:0}
.trk-a b{overflow:hidden;text-overflow:ellipsis;min-width:0}
.trk-a .scd{font-size:10.5px;color:var(--c);font-weight:700;min-width:14px}
.trk-a .when{font-size:11px;color:var(--sub)}
.trk-a .when.w{color:var(--amber);font-weight:700}
.trk-a .qdone{margin:0 0 0 auto;flex:none;white-space:nowrap}
.trk-p{font-size:10.5px;color:var(--c);font-weight:700}
.trk-l i.par{border:2px solid var(--c);width:10px;height:10px;margin-left:-5px;top:2px;background:#fff}
.dlg-ck{display:flex;align-items:center;gap:6px;font-size:12px;margin:6px 0}
.dlg-ck input{width:auto}

.by{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:#4B5563;font-weight:600}
.by .rb{font-size:9.5px;padding:0 5px}
.trk-by{font-size:10.5px;color:var(--sub);display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden}

/* ===== 내부 화면도 로그인과 같은 결: 점 격자 + 하늘빛, 흰 카드 + 부드러운 그림자, 알약 버튼·입력칸 ===== */
body::before{content:"";position:fixed;inset:0;background-image:radial-gradient(#C7D3E6 1px,transparent 1px);background-size:22px 22px;opacity:.45;pointer-events:none;z-index:0}
.wrap,.nav,.foot,.mnav{position:relative;z-index:1}
.nav{background:rgba(255,255,255,.78);backdrop-filter:blur(12px);border-bottom:1px solid #EDF0F7;position:sticky}
.kpi,.fcard,.row,.panel,.thead,.cal > *,.mx-p,.fpanel{border:1px solid #EDF0F7;box-shadow:0 16px 34px -26px rgba(43,62,168,.35)}
.kpi{border-radius:16px;background:#fff}
.fcard{border-radius:22px}
.row{border-radius:18px}
.panel{border-radius:20px}
.thead{background:rgba(255,255,255,.85)}
.row:hover{box-shadow:0 18px 38px -24px rgba(43,62,168,.42)}
.search input{border:1.5px solid #DDE3EE;background:#fff;height:40px;box-shadow:0 10px 24px -18px rgba(43,62,168,.4)}
.search input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(59,91,245,.12);outline:0}
.btn{border-radius:999px}
.btn.p{border:0;background:linear-gradient(180deg,#5571FF,#3B5BF5);color:#fff;box-shadow:0 8px 18px -10px rgba(59,91,245,.7),inset 0 1px 0 rgba(255,255,255,.3)}
.btn.g{border:1px solid #DDE3EE;background:#fff}
.dbtn,.qdone,.out{border-radius:999px}
input[type=date],input[type=time],.sin input,.cbox input,.comp-rep input,.search.sm input,textarea{border-color:#DDE3EE}
.sin input,.cbox input,.comp-rep input,.search.sm input,.qplan{border-radius:999px}
textarea{border-radius:14px}
input:focus,textarea:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 4px rgba(59,91,245,.12)}
.dlg-b{border-radius:24px;box-shadow:0 30px 60px -24px rgba(43,62,168,.35)}
.strip{background:#F3F6FD;border-radius:12px}
.tabs button.on{color:var(--blue)}
.foot{background:transparent}
/* 완료 창: 날짜·시간·빠른 선택을 한 줄에 */
.dlg-b{max-width:460px}
.dlg-b .chipset{flex-wrap:nowrap;gap:4px}
.dlg-b .chipset input[type=date]{width:128px;flex:none;padding:0 8px;border-radius:999px}
.dlg-b .chipset input[type=time]{width:92px;flex:none;margin-left:0;border-radius:999px}
.dlg-b .chipset button{flex:none;padding:4px 9px;white-space:nowrap}
.dlg-b .chipset:has(button[data-txt]){flex-wrap:wrap}
@media (max-width:420px){.dlg-b .chipset{flex-wrap:wrap}}

/* 신규처 등록: 우측 상단 버튼 → 가운데 창 */
.newc{height:30px;padding:0 14px;font-size:12px;font-weight:700;white-space:nowrap}
.add-h{display:flex;align-items:center;gap:8px}
.add-h h2{margin:0}
.add-x{margin-left:auto}
@media (min-width:761px){
  html:not(.force-m) #addbox:not(.open){display:none}
  html:not(.force-m) #addbox.open{position:fixed;inset:0;z-index:40;background:rgba(17,24,39,.35);display:grid;place-items:center;padding:20px}
  html:not(.force-m) #addbox.open .panel{width:100%;max-width:440px;max-height:calc(100vh - 40px);overflow:auto;box-shadow:0 30px 60px -24px rgba(43,62,168,.45)}
}
html.force-pc #addbox:not(.open){display:none}
html.force-pc #addbox.open{position:fixed;inset:0;z-index:40;background:rgba(17,24,39,.35);display:grid;place-items:center;padding:20px}
html.force-pc #addbox.open .panel{width:100%;max-width:440px}
@media (max-width:760px){html:not(.force-pc) .newc{display:none}}
html.force-m .newc{display:none}

/* 진행현황 | 수금관리 전환 */
.pgsw{display:inline-flex;background:#fff;border:1px solid #E3E8F2;border-radius:999px;padding:4px;gap:4px;margin:4px auto 10px;box-shadow:0 10px 24px -18px rgba(43,62,168,.4)}
.pgsw button{border:0;background:none;border-radius:999px;padding:7px 22px;font-size:13.5px;font-weight:700;color:#6B7280}
.pgsw button.on{background:linear-gradient(180deg,#5571FF,#3B5BF5);color:#fff;box-shadow:0 6px 14px -8px rgba(59,91,245,.7)}
.head{display:flex;flex-direction:column;align-items:center}
.kpis.six{grid-template-columns:repeat(6,1fr)}
.bgrid{grid-template-columns:minmax(200px,1.7fr) 1.1fr 1fr 1fr 1.3fr 1fr 96px!important}
.pg-bill .thead{grid-template-columns:minmax(200px,1.7fr) 1.1fr 1fr 1fr 1.3fr 1fr 96px!important}
.bgrid > div{font-size:12px}
.bgrid .n{text-align:right;padding-right:14px!important}
.bgrid .n.bad b{color:var(--red)}
.bgrid .bm{color:#4B5563}
.ubar{display:block;height:4px;background:#EEF1F6;border-radius:2px;margin:4px 0 2px auto;width:80%;overflow:hidden}
.ubar i{display:block;height:100%;background:var(--red);margin-left:auto}
.bgrid small{color:var(--sub);font-size:10.5px}
.pg-bill #vsw,.pg-bill #checks,.pg-bill #cal,.pg-bill #cal-t,.pg-bill .strip{display:none!important}
@media (max-width:760px){.kpis.six{grid-template-columns:repeat(3,1fr)}html:not(.force-pc) .bgrid{grid-template-columns:1fr auto!important;grid-template-areas:none}html:not(.force-pc) .bgrid > div:not(.c-who):not(.c-act){grid-column:1/-1;text-align:left!important}}

/* 상단 바 고정 */
.nav{position:sticky!important;top:0;z-index:30}
/* 필터: 드롭다운 한 줄 */
.fbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 6px}
.fsel select{height:34px;border:1px solid #DDE3EE;border-radius:999px;background:#fff;padding:0 30px 0 14px;font-size:12.5px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%236B7280' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;box-shadow:0 8px 18px -16px rgba(43,62,168,.5)}
.fsel.on select{border-color:var(--blue);color:var(--blue);font-weight:700;background-color:#F3F6FF}
/* 한번에 입력 */
.bulk{background:#fff;border:1px solid #EDF0F7;border-radius:20px;padding:16px;box-shadow:0 16px 34px -26px rgba(43,62,168,.35)}
.bk-h{display:flex;gap:10px;align-items:baseline;margin-bottom:10px;flex-wrap:wrap}
.bk-h b{font-size:15px}
.bk-w{overflow-x:auto}
.bk-t{width:100%;border-collapse:collapse;font-size:12.5px}
.bk-t th,.bk-t td{padding:6px;border-bottom:1px solid #F0F2F7;text-align:left;vertical-align:middle}
.bk-t thead th{font-size:11.5px;color:var(--sub);font-weight:600}
.bk-t tbody th{min-width:170px;font-weight:400}
.bk-t tbody th b{display:block;font-size:13px}
.bk-t tbody th small,.bk-t td small{display:block;color:var(--sub);font-size:10.5px}
.bk-t select,.bk-t input{height:34px;border:1px solid #DDE3EE;border-radius:10px;padding:0 10px;font-size:12.5px;background:#fff;width:100%}
.bk-t select{min-width:150px}
.bk-t input[type=date]{width:140px}
.bk-t td:nth-child(4){min-width:220px}
.bk-t tr.dirty{background:#F5F8FF}
.bk-t tr.dirty th b{color:var(--blue)}
.bk-f{display:flex;align-items:center;gap:8px;justify-content:flex-end;margin-top:12px}
.bk-pg{margin-right:auto;font-size:12px;color:var(--sub)}
.bk-pg button{border:1px solid #DDE3EE;background:#fff;border-radius:999px;width:28px;height:28px}
.nobill .bp{display:none}
.pgsw[hidden]{display:none!important}
.grid{grid-template-columns:minmax(190px,1.6fr) minmax(230px,2.4fr) 76px 1.3fr 120px 112px}
.a-manual{display:block;margin:8px 2px 0}
.a-first{display:flex;gap:6px}
.a-first select{flex:1;height:36px;border:1px solid #DDE3EE;border-radius:999px;padding:0 12px;background:#fff}
.a-first input{height:36px;border:1px solid #DDE3EE;border-radius:999px;padding:0 10px;width:150px}
#a-off{width:100%;height:36px;border:1px solid #DDE3EE;border-radius:999px;padding:0 12px;background:#fff}
.a-first select{min-width:0;flex:1 1 auto;margin:0}.a-first input{flex:0 0 150px!important;width:150px!important;margin:0}

/* 상세보기: 단계별 리스트 */
.sb2{padding:4px 0}
.sr2-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.sr2{position:relative;padding:10px 4px 10px 26px;border-bottom:1px solid #F0F2F7}
.sr2:last-child{border-bottom:0}
.sr2::before{content:"";position:absolute;left:10px;top:0;bottom:0;width:2px;background:#E8ECF4}
.sr2:first-child::before{top:18px}.sr2:last-child::before{bottom:calc(100% - 18px)}
.sr2-n i{position:absolute;left:5px;top:13px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #CBD2DC;box-sizing:border-box}
.sr2.s-완료 .sr2-n i{background:var(--blue);border-color:var(--blue)}
.sr2.s-진행중 .sr2-n i,.sr2.s-대기중 .sr2-n i{border:3px solid var(--blue)}
.sr2 .sedit{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0;border:0;background:none;margin:0}
.sr2-n{display:flex;align-items:center;gap:6px;min-width:230px}
.sr2-n em{font-style:normal;font-size:11px;font-weight:700;color:var(--blue);min-width:14px}
.sr2-n b{font-size:13px}
.sr2 .fl{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--sub)}
.sr2 .fl input[type=date]{height:32px;border:1px solid #DDE3EE;border-radius:999px;padding:0 10px;font-size:12px;width:136px}
.sr2 .fl input[type=time]{height:32px;border:1px solid #DDE3EE;border-radius:999px;padding:0 8px;font-size:12px;width:96px}
.sr2-in{display:flex;gap:6px;margin-top:8px}
.sr2-in input{flex:1;height:34px;border:1px solid #DDE3EE;border-radius:999px;padding:0 14px;font-size:12.5px;background:#fff}
.btn.sm{height:34px;padding:0 16px;font-size:12.5px}
.sl2{margin:8px 0 0;padding:8px 10px;background:#F7F9FD;border-radius:12px;list-style:none;display:flex;flex-direction:column;gap:6px}
.sl2 li{border:0;padding:0}
.sr2.busy{opacity:.6;pointer-events:none}

/* 거래처 한 줄 목록 */
.thead.grid,.g1{grid-template-columns:minmax(220px,1.5fr) minmax(170px,1.1fr) minmax(200px,1.7fr) 170px 70px}
.list{display:flex;flex-direction:column;gap:6px}
.r1{border-radius:14px}
.g1{padding:9px 14px;column-gap:14px;align-items:center;min-height:52px}
.g1 > div{min-width:0;padding:0!important;border:0!important;text-align:left!important}
.g1 .c-who{display:flex;align-items:center;gap:10px}
.pico.sm{width:26px;height:26px;border-radius:8px;flex:none}
.w1{display:flex;flex-direction:column;min-width:0}
.w1 .hn{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.w1 .meta{font-size:11px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s1{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:8px;row-gap:4px;align-items:center}
.s1-t{display:flex;align-items:center;gap:5px;font-size:12.5px;white-space:nowrap;overflow:hidden}
.s1-t em{font-style:normal;font-size:10.5px;font-weight:700;color:var(--c)}
.s1-t .ok{color:var(--green)}
.s1-t .par{font-size:10px;font-weight:700;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff);border-radius:6px;padding:0 5px}
.s1-b{grid-column:1;height:5px;background:#EEF1F6;border-radius:3px;overflow:hidden}
.s1-b i{display:block;height:100%;background:var(--c);border-radius:3px}
.s1-p{grid-column:2;grid-row:1/3;font-size:11px;color:var(--sub);white-space:nowrap}
.l1{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#374151}
.n1{display:flex;align-items:center;gap:6px;font-size:12.5px;white-space:nowrap;overflow:hidden}
.n1 .nt{font-size:11.5px;color:var(--sub);overflow:hidden;text-overflow:ellipsis}
.g1 .dbtn{padding:5px 12px;font-size:12px}
.r1 .strip{display:none}
@media (max-width:760px){html:not(.force-pc) .g1{grid-template-columns:1fr auto!important;grid-template-areas:"who act" "stage stage" "last last" "next next"!important;row-gap:6px}html:not(.force-pc) .g1 .c-who{grid-area:who}html:not(.force-pc) .g1 .c-act{grid-area:act}html:not(.force-pc) .g1 .c-stage{grid-area:stage}html:not(.force-pc) .g1 .c-last{grid-area:last}html:not(.force-pc) .g1 .c-next{grid-area:next}}
html.force-m .g1{grid-template-columns:1fr auto!important;grid-template-areas:"who act" "stage stage" "last last" "next next"!important}
html.force-m .g1 .c-who{grid-area:who}html.force-m .g1 .c-act{grid-area:act}html.force-m .g1 .c-stage{grid-area:stage}html.force-m .g1 .c-last{grid-area:last}html.force-m .g1 .c-next{grid-area:next}
.thead.grid{padding:8px 14px;column-gap:14px;text-align:left}.thead.grid > div{text-align:left!important;padding:0!important}

/* 상세: 단계 한 줄 입력 */
.sr2{padding:6px 4px 6px 26px}
.sr2-n i{top:12px}
.s1line{display:grid!important;grid-template-columns:minmax(150px,190px) 136px 150px minmax(0,1fr);align-items:center;gap:8px!important}
.s1line .sr2-n{min-width:0;white-space:nowrap;overflow:hidden}
.s1line .sbadge{font-size:10px}
.s1line input[type=date]{height:30px;width:100%;border:1px solid #DDE3EE;border-radius:999px;padding:0 8px;font-size:12px;background:#fff}
.s1line .c-plan,.s1line .c-done{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
.s1line .ro{color:#374151}
.okc{display:inline-flex;align-items:center;gap:4px;color:var(--green);font-weight:700;font-size:12px}
.c-log{display:flex;gap:6px;min-width:0}
.c-log input{flex:1;min-width:0;height:30px;border:1px solid #DDE3EE;border-radius:999px;padding:0 12px;font-size:12px;background:#fff}
.c-log .btn.sm{height:30px;padding:0 12px;font-size:12px}
.sl2{margin:4px 0 2px;padding:4px 10px;gap:2px}
.sl2 .sl-h{display:flex;align-items:center;gap:6px;font-size:11.5px;flex-wrap:wrap}
.sl-c1{color:#374151;flex:1;min-width:0}
@media (max-width:760px){html:not(.force-pc) .s1line{grid-template-columns:1fr 1fr!important}html:not(.force-pc) .s1line .sr2-n,html:not(.force-pc) .s1line .c-log{grid-column:1/-1}}
html.force-m .s1line{grid-template-columns:1fr 1fr!important}
html.force-m .s1line .sr2-n,html.force-m .s1line .c-log{grid-column:1/-1}
.vsw[hidden]{display:none!important}

/* 상세: 완료·이후 단계는 칩으로 접고, 진행 중 단계만 펼침. 기록 입력은 한 줄 */
.sb3{display:flex;flex-direction:column;gap:6px;padding:4px 2px}
.sgrp{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.sgl{font-size:11px;font-weight:700;color:var(--sub);margin-right:4px;min-width:44px}
.sgl2{font-size:11px;font-weight:700;color:var(--blue);margin-top:2px}
.sch{display:inline-flex;align-items:center;gap:4px;border:1px solid #E3E8F2;background:#fff;border-radius:999px;padding:3px 10px;font-size:11.5px;color:#374151}
.sch small{color:var(--sub);font-size:10.5px}
.sch.ok{color:var(--green);border-color:#CDEAD9;background:#F3FBF6}
.sch.fu{color:#6B7280}
.sch.on,.sch:hover{border-color:var(--blue);color:var(--blue)}
.sb3 .s1line{grid-template-columns:minmax(190px,1fr) 190px 190px 40px!important;padding:6px 10px;background:#F7F9FD;border-radius:12px}
.sb3 .s1line label{display:flex;align-items:center;gap:6px}
.sb3 .s1line .sr2-n em{font-style:normal;font-size:11px;font-weight:700;color:var(--blue)}
.slog1{display:flex;gap:6px;margin-top:4px}
.slog1 select{height:32px;border:1px solid #DDE3EE;border-radius:999px;padding:0 10px;font-size:12px;background:#fff;max-width:170px}
.slog1 input{flex:1;min-width:0;height:32px;border:1px solid #DDE3EE;border-radius:999px;padding:0 12px;font-size:12.5px;background:#fff}
.slog1 .btn.sm{height:32px}
.sl3{list-style:none;margin:2px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.sl3 li{padding:4px 2px;border-bottom:1px dashed #EEF1F6}
.sl3 .sl-h{display:flex;align-items:center;gap:6px;font-size:12px;flex-wrap:wrap}
.logmore{align-self:flex-start}
@media (max-width:760px){html:not(.force-pc) .sb3 .s1line{grid-template-columns:1fr 1fr!important}html:not(.force-pc) .sb3 .s1line .sr2-n{grid-column:1/-1}}

.sgl2.gray{color:var(--sub)}
.s1line.slim{background:none!important;padding:2px 10px!important}
.s1line.slim .sr2-n b{font-weight:500;color:#4B5563}
.sdone{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.fbn{display:inline-flex;align-items:center;font-size:10.5px;font-weight:700;color:var(--blue);background:#EEF3FF;border-radius:999px;padding:1px 8px;margin-right:6px;white-space:nowrap;vertical-align:middle}
.fbn.new{color:#fff;background:var(--red)}
.mp{top:calc(var(--navh,58px) + 30px);z-index:35}

/* 다중 선택 필터 */
.fdd{position:relative}
.fdd-b{display:inline-flex;align-items:center;gap:8px;height:34px;border:1px solid #DDE3EE;border-radius:999px;background:#fff;padding:0 14px;font-size:12.5px;color:#374151;box-shadow:0 8px 18px -16px rgba(43,62,168,.5)}
.fdd.on .fdd-b{border-color:var(--blue);color:var(--blue);font-weight:700;background:#F3F6FF}
.fdd-m{position:absolute;top:40px;left:0;z-index:25;background:#fff;border:1px solid #E3E8F2;border-radius:14px;box-shadow:0 18px 40px -16px rgba(43,62,168,.35);padding:8px;min-width:200px;max-height:320px;overflow:auto;display:flex;flex-direction:column;gap:2px}
.fdd-m label{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;font-size:12.5px;cursor:pointer}
.fdd-m label:hover{background:#F3F6FD}
.fdd-m input{width:auto;margin:0;accent-color:var(--blue)}
.fdd-f{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #EEF1F6;padding-top:6px;margin-top:4px;position:sticky;bottom:-8px;background:#fff}

/* 신규처 등록: 표 형태 */
.aform{width:100%;border-collapse:collapse;margin-top:6px}
.aform th{width:64px;text-align:left;vertical-align:top;padding:10px 8px 10px 0;font-size:12.5px;color:#374151;font-weight:700;white-space:nowrap}
.aform td{padding:6px 0;border-bottom:1px solid #F0F2F7}
.aform tr:last-child td{border-bottom:0}
.aform input:not([type=checkbox]),.aform select,.aform textarea{width:100%;border:1px solid #DDE3EE;border-radius:12px;padding:8px 12px;font-size:13px;background:#fff;font-family:inherit}
.aform input,.aform select{height:38px;padding:0 12px;border-radius:999px}
.aform textarea{resize:vertical;min-height:56px}
.typepick.full{display:flex;gap:6px;width:100%;margin:0!important}
.typepick.full button{flex:1;height:36px;border-radius:999px;justify-content:center}
.aform .search.sm{max-width:none}
.aform .a-first input{flex:0 0 150px!important}

/* 품목별 한 줄 요약 */
#kpis{display:block}
.ksum{display:flex;flex-direction:column;gap:6px}
.ks{display:grid;grid-template-columns:120px 80px 150px minmax(0,1fr) 64px 64px;align-items:center;gap:14px;background:#fff;border:1px solid #EDF0F7;border-radius:16px;padding:10px 14px;box-shadow:0 16px 34px -26px rgba(43,62,168,.35)}
.ks.tot{background:#F7F9FE}
.ks .l{display:block;font-size:10.5px;color:var(--sub);margin-bottom:2px;white-space:nowrap}
.ks-p{display:flex;align-items:center;gap:8px;font-size:14px}
.ks-n b{font-size:20px}.ks-n small{font-size:11px;color:var(--sub);margin-left:2px}
.ks-rv{display:flex;align-items:center;gap:8px}
.ks-rv .hint{font-size:11px;white-space:nowrap}
.pcs{display:flex;flex-wrap:wrap;gap:4px}
.pc{font-size:11px;color:#4B5563;background:#F4F6FB;border-radius:999px;padding:2px 9px;white-space:nowrap}
.pc b{color:var(--c,#3B5BF5)}
.ks-a{border:0;background:#F4F6FB;border-radius:12px;padding:6px 0;text-align:center;cursor:pointer}
.ks-a b{font-size:18px}
.ks-a.info b{color:var(--blue)}.ks-a.warn b{color:var(--red)}
.ks-a.z{opacity:.55}
.ks-a:hover{box-shadow:0 0 0 2px rgba(59,91,245,.25)}
@media (max-width:760px){.ks{grid-template-columns:1fr 1fr 1fr;row-gap:8px}.ks-p{grid-column:1/-1}.ks-pace{grid-column:1/-1}}
html.force-m .ks{grid-template-columns:1fr 1fr 1fr}html.force-m .ks-p,html.force-m .ks-pace{grid-column:1/-1}

/* 단계 줄: 목표 + 완료 버튼 */
.sb3 .s1line.g2{grid-template-columns:minmax(170px,1fr) minmax(220px,1.3fr) 80px!important}
.goal{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:0;font-size:12px;color:#4B5563;cursor:pointer}
.goal b{font-size:13px;color:#111827}
.goal.late b{color:var(--red)}
.goal-in{display:flex;align-items:center;gap:6px}
.goal-in input{height:30px;width:140px;border:1px solid #DDE3EE;border-radius:999px;padding:0 10px;font-size:12px;background:#fff}
.c-btn{text-align:right}
.c-btn .qdone{margin:0}
.okc{color:var(--green);font-weight:700;font-size:12px;margin-right:6px}
.goal-in::before{content:"목표";font-size:12px;color:#4B5563}
.goal-in::before{white-space:nowrap;flex:none}.goal-in input{flex:0 0 150px!important;width:150px!important}

/* ===== 모바일 정리 ===== */
@media (max-width:760px){
html:not(.force-pc) .aside:not([data-view=add]) #addbox{display:none!important}
html:not(.force-pc) .head h1{font-size:19px;margin:6px 0 8px}
html:not(.force-pc) .search input{height:40px;font-size:13px}
/* 요약: 품목마다 한 줄 카드 (가로 스크롤 없이 촘촘하게) */
html:not(.force-pc) .ksum{gap:6px}
html:not(.force-pc) .ks{grid-template-columns:auto 1fr auto auto!important;grid-template-areas:"p r a1 a2" "n r a1 a2";column-gap:10px;row-gap:0;padding:10px 12px;border-radius:14px}
html:not(.force-pc) .ks-p{grid-area:p;font-size:13.5px;gap:6px}
html:not(.force-pc) .ks-p .pico{width:22px;height:22px}
html:not(.force-pc) .ks-n{grid-area:n}
html:not(.force-pc) .ks-n .l{display:none}
html:not(.force-pc) .ks-n b{font-size:13px}.ks-n small{font-size:11px}
html:not(.force-pc) .ks-r{grid-area:r}
html:not(.force-pc) .ks-r .l{font-size:10px}
html:not(.force-pc) .ks-rv .ring{width:32px!important;height:32px!important}
html:not(.force-pc) .ks-rv .ring b{font-size:8.5px}
html:not(.force-pc) .ks-pace{display:none}
html:not(.force-pc) .ks-a{width:46px;padding:4px 0;grid-row:1/3}
html:not(.force-pc) .ks-a:nth-of-type(1){grid-area:a1}.ks-a:nth-of-type(2){grid-area:a2}
html:not(.force-pc) .ks-a b{font-size:16px}.ks-a .l{font-size:10px;margin:0}
/* 필터: 한 줄 가로 스크롤 */
html:not(.force-pc) .fbar{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin:6px -2px}
html:not(.force-pc) .fdd{flex:none}
html:not(.force-pc) .fdd-m{position:fixed;left:12px;right:12px;top:auto;bottom:80px;max-height:55vh;min-width:0;z-index:60}
html:not(.force-pc) .checks{flex-wrap:nowrap;overflow-x:auto}
html:not(.force-pc) .rhead{font-size:13px}
/* 거래처 줄: 이름 / 단계·진행률 / 다음 일정, 빈 칸은 숨김 */
html:not(.force-pc) .list{gap:8px}
html:not(.force-pc) .g1{grid-template-columns:1fr auto!important;grid-template-areas:"who act" "stage stage" "last last" "next next"!important;row-gap:6px!important;padding:12px 12px 10px!important}
html:not(.force-pc) .g1 .c-who{grid-area:who}.g1 .c-act{grid-area:act;align-self:start}
html:not(.force-pc) .g1 .c-stage{grid-area:stage}.g1 .c-last{grid-area:last}.g1 .c-next{grid-area:next}
html:not(.force-pc) .g1 .c-last{background:none!important;padding:0!important;font-size:12px;color:#4B5563}
html:not(.force-pc) .g1 .c-last:has(> .hint:only-child){display:none}
html:not(.force-pc) .g1 .c-next:has(> .hint:only-child){display:none}
html:not(.force-pc) .g1 .c-next{font-size:12.5px}
html:not(.force-pc) .s1{grid-template-columns:auto 1fr auto;grid-template-rows:auto;column-gap:8px}
html:not(.force-pc) .s1-t{grid-column:1}.s1-b{grid-column:2;grid-row:1}.s1-p{grid-column:3;grid-row:1}
html:not(.force-pc) .w1 .hn{white-space:normal;font-size:14px}
html:not(.force-pc) .dbtn{padding:6px 12px}
/* 상세: 단계 줄을 두 줄로 (이름 / 목표 + 완료) */
html:not(.force-pc) .sb3 .s1line.g2{grid-template-columns:1fr auto!important;grid-template-areas:"n b" "g b";row-gap:4px;padding:8px 10px!important}
html:not(.force-pc) .sb3 .s1line.g2 .sr2-n{grid-area:n}
html:not(.force-pc) .sb3 .s1line.g2 .c-goal{grid-area:g}
html:not(.force-pc) .sb3 .s1line.g2 .c-btn{grid-area:b;align-self:center}
html:not(.force-pc) .goal-in input{flex:0 0 140px!important;width:140px!important}
html:not(.force-pc) .orders{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding-bottom:4px}
html:not(.force-pc) .ord{flex:none}
html:not(.force-pc) .sl3 .sl-h{font-size:11.5px}
/* 완료 창: 화면 아래에서 올라오는 시트 */
html:not(.force-pc) .dlg{align-items:flex-end!important;padding:0!important}
html:not(.force-pc) .dlg-b{max-width:none!important;border-radius:20px 20px 0 0!important;max-height:92vh;overflow:auto;padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
html:not(.force-pc) .dlg-b .chipset{flex-wrap:wrap}
html:not(.force-pc) .cal{grid-template-columns:1fr!important}
html:not(.force-pc) .foot{padding-bottom:84px}
}
html.force-m .aside:not([data-view=add]) #addbox{display:none!important}
html.force-m .head h1{font-size:19px;margin:6px 0 8px}
html.force-m .search input{height:40px;font-size:13px}
html.force-m .ksum{gap:6px}
html.force-m .ks{grid-template-columns:auto 1fr auto auto!important;grid-template-areas:"p r a1 a2" "n r a1 a2";column-gap:10px;row-gap:0;padding:10px 12px;border-radius:14px}
html.force-m .ks-p{grid-area:p;font-size:13.5px;gap:6px}
html.force-m .ks-p .pico{width:22px;height:22px}
html.force-m .ks-n{grid-area:n}
html.force-m .ks-n .l{display:none}
html.force-m .ks-n b{font-size:13px}.ks-n small{font-size:11px}
html.force-m .ks-r{grid-area:r}
html.force-m .ks-r .l{font-size:10px}
html.force-m .ks-rv .ring{width:32px!important;height:32px!important}
html.force-m .ks-rv .ring b{font-size:8.5px}
html.force-m .ks-pace{display:none}
html.force-m .ks-a{width:46px;padding:4px 0;grid-row:1/3}
html.force-m .ks-a:nth-of-type(1){grid-area:a1}.ks-a:nth-of-type(2){grid-area:a2}
html.force-m .ks-a b{font-size:16px}.ks-a .l{font-size:10px;margin:0}
html.force-m .fbar{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin:6px -2px}
html.force-m .fdd{flex:none}
html.force-m .fdd-m{position:fixed;left:12px;right:12px;top:auto;bottom:80px;max-height:55vh;min-width:0;z-index:60}
html.force-m .checks{flex-wrap:nowrap;overflow-x:auto}
html.force-m .rhead{font-size:13px}
html.force-m .list{gap:8px}
html.force-m .g1{grid-template-columns:1fr auto!important;grid-template-areas:"who act" "stage stage" "last last" "next next"!important;row-gap:6px!important;padding:12px 12px 10px!important}
html.force-m .g1 .c-who{grid-area:who}.g1 .c-act{grid-area:act;align-self:start}
html.force-m .g1 .c-stage{grid-area:stage}.g1 .c-last{grid-area:last}.g1 .c-next{grid-area:next}
html.force-m .g1 .c-last{background:none!important;padding:0!important;font-size:12px;color:#4B5563}
html.force-m .g1 .c-last:has(> .hint:only-child){display:none}
html.force-m .g1 .c-next:has(> .hint:only-child){display:none}
html.force-m .g1 .c-next{font-size:12.5px}
html.force-m .s1{grid-template-columns:auto 1fr auto;grid-template-rows:auto;column-gap:8px}
html.force-m .s1-t{grid-column:1}.s1-b{grid-column:2;grid-row:1}.s1-p{grid-column:3;grid-row:1}
html.force-m .w1 .hn{white-space:normal;font-size:14px}
html.force-m .dbtn{padding:6px 12px}
html.force-m .sb3 .s1line.g2{grid-template-columns:1fr auto!important;grid-template-areas:"n b" "g b";row-gap:4px;padding:8px 10px!important}
html.force-m .sb3 .s1line.g2 .sr2-n{grid-area:n}
html.force-m .sb3 .s1line.g2 .c-goal{grid-area:g}
html.force-m .sb3 .s1line.g2 .c-btn{grid-area:b;align-self:center}
html.force-m .goal-in input{flex:0 0 140px!important;width:140px!important}
html.force-m .orders{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding-bottom:4px}
html.force-m .ord{flex:none}
html.force-m .sl3 .sl-h{font-size:11.5px}
html.force-m .dlg{align-items:flex-end!important;padding:0!important}
html.force-m .dlg-b{max-width:none!important;border-radius:20px 20px 0 0!important;max-height:92vh;overflow:auto;padding-bottom:calc(16px + env(safe-area-inset-bottom))!important}
html.force-m .dlg-b .chipset{flex-wrap:wrap}
html.force-m .cal{grid-template-columns:1fr!important}
html.force-m .foot{padding-bottom:84px}

/* 상세: 단계당 한 줄 (등록·완료 버튼) */
.sb4{display:flex;flex-direction:column;gap:0;padding:2px 0}
.ol{display:grid;grid-template-columns:minmax(130px,170px) 140px minmax(0,1fr) auto;align-items:center;gap:12px;padding:7px 10px;border-bottom:1px solid #F0F2F7;font-size:12.5px}
.ol:last-of-type{border-bottom:0}
.ol.cur{background:#F5F8FF;border-radius:10px}
.ol.dn{opacity:.75}
.ol-n{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
.ol-n em{font-style:normal;font-size:11px;font-weight:700;color:var(--blue);min-width:14px}
.ol-n b{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.ol-d{display:flex;align-items:center;gap:6px;white-space:nowrap}
.ol-l{color:#4B5563;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.ol-l small{color:var(--blue);font-weight:700}
.ol-a{display:flex;gap:4px}
.ob{height:28px;padding:0 12px;border-radius:999px;border:1px solid #DDE3EE;background:#fff;font-size:12px;font-weight:600;color:#374151}
.ob:hover{border-color:var(--blue);color:var(--blue)}
.ob.ok{border-color:var(--green);color:var(--green)}
.ob.ok:hover{background:var(--green-soft)}
.ob.g{color:var(--sub);font-weight:400}
.ol-sum{display:flex;align-items:center;gap:8px;width:100%;border:0;background:#F3FBF6;color:var(--green);font-weight:700;font-size:12px;border-radius:10px;padding:7px 10px;margin-bottom:4px;text-align:left}
.ol-sum .hint{font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.ol-t{color:var(--blue);font-weight:600;flex:none}
.ol-h{font-size:12px;font-weight:700;margin:10px 2px 2px}
@media (max-width:760px){html:not(.force-pc) .ol{grid-template-columns:1fr auto;grid-template-areas:"n a" "d a" "l l";row-gap:2px}html:not(.force-pc) .ol-n{grid-area:n}html:not(.force-pc) .ol-d{grid-area:d}html:not(.force-pc) .ol-l{grid-area:l}html:not(.force-pc) .ol-l:empty{display:none}html:not(.force-pc) .ol-a{grid-area:a}}
html.force-m .ol{grid-template-columns:1fr auto;grid-template-areas:"n a" "d a" "l l";row-gap:2px}
html.force-m .ol-n{grid-area:n}html.force-m .ol-d{grid-area:d}html.force-m .ol-l{grid-area:l}html.force-m .ol-a{grid-area:a}
.dlg-l .opt{color:var(--sub);font-weight:400}
/* 모바일 로그인: 에이전트 소개를 위에, 로그인 박스를 아래에 */
@media (max-width:860px){.gate .gbox{order:0!important}.g-intro{text-align:center;align-items:center}.g-intro .g-badge{align-self:center}.g-intro .g-art{order:-1;width:90px!important;margin:0 auto 6px!important}.g-lead{margin:0 auto}}
html.force-m .gate .gbox{order:0!important}
html.force-m .g-intro{text-align:center;align-items:center}
html.force-m .g-intro .g-badge{align-self:center}
html.force-m .g-intro .g-art{order:-1;width:90px!important;margin:0 auto 6px!important}

.bt-s{display:none}
@media (max-width:760px){
html:not(.force-pc) .bt-l{display:none}html:not(.force-pc) .bt-s{display:inline}
html:not(.force-pc) .brand{font-size:15px;white-space:nowrap}
html:not(.force-pc) .brand small{display:none}
html:not(.force-pc) .nav-in{gap:8px;padding:8px 12px}
html:not(.force-pc) .viewsw{transform:scale(.9)}
html:not(.force-pc) .g1{display:flex!important;flex-wrap:wrap;align-items:flex-start;row-gap:6px!important;column-gap:8px}
html:not(.force-pc) .g1 .c-who{flex:1 1 0;min-width:0;order:1}
html:not(.force-pc) .g1 .c-act{flex:none;order:2}
html:not(.force-pc) .g1 .c-stage{flex:0 0 100%;order:3}
html:not(.force-pc) .g1 .c-last{flex:0 0 100%;order:4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not(.force-pc) .g1 .c-next{flex:0 0 100%;order:5}
html:not(.force-pc) .g1 .c-last:has(> .hint:only-child),html:not(.force-pc) .g1 .c-next:has(> .hint:only-child){display:none!important}
html:not(.force-pc) .s1{display:flex!important;align-items:center;gap:8px}
html:not(.force-pc) .s1-t{flex:none}
html:not(.force-pc) .s1-b{flex:1;min-width:40px;height:5px}
html:not(.force-pc) .s1-p{flex:none}
html:not(.force-pc) .w1 .meta{white-space:normal}
html:not(.force-pc) .mnav svg{width:22px;height:22px}
html:not(.force-pc) .mnav button{font-size:11.5px!important}
html:not(.force-pc) .mnav .b{top:4px!important;left:auto!important;right:calc(50% - 24px)!important;min-width:18px;text-align:center}
html:not(.force-pc) .mnav .fab{justify-content:flex-end!important;padding-bottom:6px}
html:not(.force-pc) .checks{gap:14px!important}
html:not(.force-pc) .checks label{flex:none}
}
html.force-m .bt-l{display:none}html.force-m .bt-s{display:inline}
html.force-m .brand{font-size:15px;white-space:nowrap}
html.force-m .brand small{display:none}
html.force-m .nav-in{gap:8px;padding:8px 12px}
html.force-m .viewsw{transform:scale(.9)}
html.force-m .g1{display:flex!important;flex-wrap:wrap;align-items:flex-start;row-gap:6px!important;column-gap:8px}
html.force-m .g1 .c-who{flex:1 1 0;min-width:0;order:1}
html.force-m .g1 .c-act{flex:none;order:2}
html.force-m .g1 .c-stage{flex:0 0 100%;order:3}
html.force-m .g1 .c-last{flex:0 0 100%;order:4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.force-m .g1 .c-next{flex:0 0 100%;order:5}
html.force-m .g1 .c-last:has(> .hint:only-child),html.force-m .g1 .c-next:has(> .hint:only-child){display:none!important}
html.force-m .s1{display:flex!important;align-items:center;gap:8px}
html.force-m .s1-t{flex:none}
html.force-m .s1-b{flex:1;min-width:40px;height:5px}
html.force-m .s1-p{flex:none}
html.force-m .w1 .meta{white-space:normal}
html.force-m .mnav svg{width:22px;height:22px}
html.force-m .mnav button{font-size:11.5px!important}
html.force-m .mnav .b{top:4px!important;left:auto!important;right:calc(50% - 24px)!important;min-width:18px;text-align:center}
html.force-m .mnav .fab{justify-content:flex-end!important;padding-bottom:6px}
html.force-m .checks{gap:14px!important}
html.force-m .checks label{flex:none}
@media (max-width:760px){
html:not(.force-pc) .ks{grid-template-columns:96px 1fr auto auto!important}
html:not(.force-pc) .ks-r .l{white-space:nowrap}
html:not(.force-pc) .sl3 .sl-h{display:grid!important;grid-template-columns:auto auto 1fr auto;column-gap:6px;row-gap:2px;align-items:center}
html:not(.force-pc) .sl3 .sl-h .rb{justify-self:start;padding:0 6px;font-size:10px}
html:not(.force-pc) .sl3 .sl-c1{grid-column:1/-1;order:9;font-size:12.5px;line-height:1.5}
html:not(.force-pc) .sl3 .sl-h .lnk{grid-column:4;grid-row:1}
html:not(.force-pc) .sl3 .sl-h .stg{white-space:nowrap}
html:not(.force-pc) .aside{box-sizing:border-box;overflow-x:hidden}
html:not(.force-pc) .aside .panel{max-width:100%;box-sizing:border-box}
html:not(.force-pc) .q li button{min-width:0}
html:not(.force-pc) .cm li{font-size:12px}
}
html.force-m .ks{grid-template-columns:96px 1fr auto auto!important}
html.force-m .ks-r .l{white-space:nowrap}
html.force-m .sl3 .sl-h{display:grid!important;grid-template-columns:auto auto 1fr auto;column-gap:6px;row-gap:2px;align-items:center}
html.force-m .sl3 .sl-h .rb{justify-self:start;padding:0 6px;font-size:10px}
html.force-m .sl3 .sl-c1{grid-column:1/-1;order:9;font-size:12.5px;line-height:1.5}
html.force-m .sl3 .sl-h .lnk{grid-column:4;grid-row:1}
html.force-m .sl3 .sl-h .stg{white-space:nowrap}
html.force-m .aside{box-sizing:border-box;overflow-x:hidden}
html.force-m .aside .panel{max-width:100%;box-sizing:border-box}
html.force-m .q li button{min-width:0}
html.force-m .cm li{font-size:12px}
/* 모바일 가로 넘침 방지 */
html,body{overflow-x:hidden}
.layout > main,.layout > *{min-width:0}
@media (max-width:760px){html:not(.force-pc) .fbar,html:not(.force-pc) .checks{max-width:100%}html:not(.force-pc) .sl3 .sl-h{display:flex!important;flex-wrap:wrap}html:not(.force-pc) .sl3 .sl-h .lnk{margin-left:auto}html:not(.force-pc) .sl3 .sl-c1{flex:0 0 100%;order:9}}
html.force-m .sl3 .sl-h{display:flex!important;flex-wrap:wrap}
html.force-m .sl3 .sl-c1{flex:0 0 100%;order:9}

/* 요약 표 (전체 강조 + 품목별 한 줄) */
.ksum2{display:flex;flex-direction:column;background:#fff;border:1px solid #EDF0F7;border-radius:16px;overflow:hidden;box-shadow:0 16px 34px -26px rgba(43,62,168,.35)}
.kr{display:grid;grid-template-columns:120px 64px 150px 96px 190px 64px 64px minmax(0,1fr);align-items:center;gap:10px;padding:7px 14px;border-top:1px solid #F0F2F7;font-size:12.5px;min-height:44px}
.kr:first-child{border-top:0}
.kr.tot{background:linear-gradient(90deg,#EEF3FF,#F6F9FF);font-weight:600;padding:10px 14px}
.kr.tot .kr-p b{font-size:14px;color:var(--blue)}
.kr.tot .kr-n b,.kr.tot .kr-m b,.kr.tot .kr-c b{font-size:16px}
.kr-p{display:flex;align-items:center;gap:8px;white-space:nowrap}
.kr-p .pico{width:22px;height:22px;border-radius:7px}
.kr-n b{font-size:15px;margin-right:2px}
.kr-r{display:flex;align-items:center;gap:6px;white-space:nowrap}
.kr-r .ring b{font-size:8px}
.kr-r small{font-size:10px}
.kr .l{font-size:10.5px;color:var(--sub);margin-right:4px;font-weight:400}
.kr-m,.kr-c{display:flex;align-items:baseline;gap:3px;white-space:nowrap}
.kr-m b,.kr-c b{font-size:14px}
.cr{margin-left:6px;font-size:11px;font-weight:700;color:var(--green);background:var(--green-soft);border-radius:999px;padding:1px 7px}
.cr.bad{color:var(--red);background:var(--red-soft)}
.kr-a{border:0;background:#F4F6FB;border-radius:999px;height:26px;padding:0 10px;font-size:11px;color:var(--sub);white-space:nowrap;cursor:pointer}
.kr-a b{font-size:13px;margin-left:2px}
.kr-a.info b{color:var(--blue)}.kr-a.warn b{color:var(--red)}
.kr-a.z{opacity:.55}
.kr-a:hover{box-shadow:0 0 0 2px rgba(59,91,245,.25)}
.kr-pace{font-size:11px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1100px){.kr{grid-template-columns:110px 56px 130px 84px 170px 60px 60px}.kr-pace{display:none}}
@media (max-width:760px){html:not(.force-pc) .kr{grid-template-columns:1fr auto auto;grid-template-areas:"p a1 a2" "n r r" "m c c";row-gap:4px;column-gap:8px}html:not(.force-pc) .kr-p{grid-area:p}html:not(.force-pc) .kr-n{grid-area:n}html:not(.force-pc) .kr-r{grid-area:r;justify-self:end}html:not(.force-pc) .kr-m{grid-area:m}html:not(.force-pc) .kr-c{grid-area:c;justify-self:end}html:not(.force-pc) .kr-a:nth-of-type(1){grid-area:a1}html:not(.force-pc) .kr-a:nth-of-type(2){grid-area:a2}html:not(.force-pc) .kr-pace{display:none}}
html.force-m .kr{grid-template-columns:1fr auto auto;grid-template-areas:"p a1 a2" "n r r" "m c c";row-gap:4px;column-gap:8px}
html.force-m .kr-p{grid-area:p}html.force-m .kr-n{grid-area:n}html.force-m .kr-r{grid-area:r;justify-self:end}html.force-m .kr-m{grid-area:m}html.force-m .kr-c{grid-area:c;justify-self:end}html.force-m .kr-a:nth-of-type(1){grid-area:a1}html.force-m .kr-a:nth-of-type(2){grid-area:a2}html.force-m .kr-pace{display:none}
/* 요약 표: 화면 폭에 맞춰 늘고 줄게, 글자 작게 */
.kr{grid-template-columns:minmax(80px,1fr) minmax(48px,.6fr) minmax(110px,1.3fr) minmax(90px,1fr) minmax(150px,1.7fr) auto auto minmax(0,1.2fr);gap:8px;padding:5px 12px;min-height:36px;font-size:12px}
.kr.tot{padding:7px 12px}
.kr-p b{font-size:12.5px}
.kr.tot .kr-p b{font-size:13px}
.kr-n b,.kr-m b,.kr-c b{font-size:13px}
.kr.tot .kr-n b,.kr.tot .kr-m b,.kr.tot .kr-c b{font-size:13.5px}
.kr-p .pico{width:20px;height:20px}
.kr-r .ring{width:26px!important;height:26px!important}
.kr-r .ring b{font-size:7px}
.kr-r .hint,.kr-c .hint{font-size:11px}
.kr .l{font-size:10px}
.cr{font-size:10.5px;padding:0 6px}
.kr-a{height:24px;padding:0 8px;font-size:10.5px}
.kr-a b{font-size:12px}
.kr-m,.kr-c,.kr-r{min-width:0;overflow:hidden}
@media (max-width:1180px){.kr{grid-template-columns:minmax(70px,1fr) 52px minmax(100px,1.2fr) minmax(84px,1fr) minmax(140px,1.6fr) auto auto}.kr-pace{display:none}.kr-r small{display:none}}
.kr{grid-template-columns:minmax(80px,1fr) minmax(48px,.6fr) minmax(170px,1.8fr) minmax(90px,1fr) minmax(150px,1.7fr) auto auto minmax(0,1fr)}
@media (max-width:1180px){.kr{grid-template-columns:minmax(70px,1fr) 52px minmax(160px,1.7fr) minmax(84px,1fr) minmax(140px,1.6fr) auto auto}}

/* 거래처 한 줄 (레퍼런스) */
.thead.grid,.g2r{grid-template-columns:minmax(210px,2fr) minmax(130px,1.1fr) 56px minmax(170px,1.7fr) 104px 100px 104px!important}
.g2r{padding:12px 16px;column-gap:0;align-items:center;min-height:72px}
.g2r > div{padding:0 12px!important;min-width:0;border-left:1px solid #EEF1F6}
.g2r > .c-who,.g2r > .c-res,.g2r > .c-act{border-left:0}
.g2r .c-who{display:flex;align-items:center;gap:12px;padding-left:0!important}
.av{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px}
.g2r .w1{display:flex;flex-direction:column;min-width:0}
.g2r .w1 .hn{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g2r .w1 .pn{font-size:12px;color:#374151}
.g2r .w1 .meta{font-size:11px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.sg-n{font-size:13px;font-weight:800;white-space:nowrap}
.sg-n small{font-size:10px;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff);border-radius:6px;padding:0 4px}
.sg-b{display:flex;gap:3px}
.sg-b i{width:10px;height:5px;border-radius:3px;background:#E3E7EE}
.sg-b i.d{background:var(--green)}
.sg-b i.a{background:var(--c)}
.st-t{font-size:10.5px;font-weight:700;border-radius:999px;padding:1px 8px}
.st-t.ok{color:var(--green);background:var(--green-soft)}
.st-t.ing{color:var(--blue);background:#EEF3FF}
.st-t.wait{color:var(--amber);background:var(--amber-soft)}
.st-t.late{color:var(--red);background:var(--red-soft)}
.c-bed{display:flex;flex-direction:column;align-items:center}
.c-bed b{font-size:15px}.c-bed span{font-size:11px;color:var(--sub)}
.g2r .c-last{display:flex;flex-direction:column;gap:2px;font-size:12.5px}
.g2r .c-last .d{font-size:11px;color:var(--sub)}
.g2r .c-last .t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#111827}
.g2r .c-last .fbn{align-self:flex-start}
.g2r .c-next{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.g2r .c-next b{font-size:14px}
.g2r .c-next .t{font-size:11px;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.g2r .c-res{display:flex;justify-content:center}
.rbtn{border:1px solid var(--green);background:#fff;color:var(--green);border-radius:999px;padding:4px 12px;font-size:12px;font-weight:700;white-space:nowrap}
.rbtn:hover{background:var(--green-soft)}
.rbtn.due{border-color:#F6C7CA;background:var(--red-soft);color:var(--red)}
.g2r .c-act{display:flex;justify-content:flex-end;padding-right:0!important}
.g2r .dbtn{display:inline-flex;align-items:center;gap:4px;border:1px solid #DDE3EE;background:#fff;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}
.r2 .strip{display:block!important;margin:0 12px 10px;width:calc(100% - 24px)}
.thead .th.st{font-size:11.5px;color:#4B5563;text-align:center}
@media (max-width:1180px){.thead.grid,.g2r{grid-template-columns:minmax(180px,1.8fr) minmax(120px,1.1fr) 48px minmax(140px,1.5fr) 96px 96px 92px!important}}
@media (max-width:760px){html:not(.force-pc) .g2r{display:flex!important;flex-wrap:wrap;row-gap:8px;padding:12px!important}html:not(.force-pc) .g2r > div{border-left:0;padding:0!important}html:not(.force-pc) .g2r .c-who{flex:1 1 0;order:1}html:not(.force-pc) .g2r .c-act{order:2;flex:none}html:not(.force-pc) .g2r .c-stage{order:3;flex:1 1 0;align-items:flex-start;text-align:left}html:not(.force-pc) .g2r .c-bed{order:4;flex:none}html:not(.force-pc) .g2r .c-last{order:5;flex:0 0 100%}html:not(.force-pc) .g2r .c-next{order:6;flex:1 1 0;flex-direction:row;align-items:center}html:not(.force-pc) .g2r .c-res{order:7;flex:none}html:not(.force-pc) .r2 .strip{display:none!important}}
html.force-m .g2r{display:flex!important;flex-wrap:wrap;row-gap:8px}
html.force-m .g2r > div{border-left:0;padding:0!important}
html.force-m .g2r .c-who{flex:1 1 0;order:1}html.force-m .g2r .c-act{order:2}html.force-m .g2r .c-stage{order:3;flex:1 1 0;align-items:flex-start}html.force-m .g2r .c-bed{order:4}html.force-m .g2r .c-last{order:5;flex:0 0 100%}html.force-m .g2r .c-next{order:6;flex:1 1 0;flex-direction:row}html.force-m .g2r .c-res{order:7}
.thead.grid{padding:8px 16px!important;column-gap:0}
.thead.grid > div{padding:0 12px!important;text-align:center!important}
.thead.grid > div:first-child,.thead.grid > div:nth-child(4){text-align:left!important}
.thead.grid > div:first-child{padding-left:48px!important}
.thead .thb{justify-content:inherit}
@media (max-width:760px){html:not(.force-pc) .g2r .c-who{flex:1 1 220px!important}html:not(.force-pc) .g2r .c-stage{flex:1 1 200px!important}html:not(.force-pc) .g2r .w1 .meta{white-space:nowrap}html:not(.force-pc) .g2r .c-last:has(> .hint:only-child){display:none}}
html.force-m .g2r .c-who{flex:1 1 220px!important}html.force-m .g2r .c-stage{flex:1 1 200px!important}
.thead.grid > div:first-child .thb,.thead.grid > div:nth-child(4) .thb{margin-right:auto}
.thead.grid > div{display:flex;justify-content:center}
.thead.grid > div:first-child,.thead.grid > div:nth-child(4){justify-content:flex-start}
@media (max-width:760px){html:not(.force-pc) .g2r .c-next{flex:1 1 170px!important;white-space:nowrap;justify-content:flex-start;gap:6px}html:not(.force-pc) .g2r .c-next .t{max-width:none}html:not(.force-pc) .g2r .c-res{margin-left:auto}}
html.force-m .g2r .c-next{flex:1 1 170px!important;white-space:nowrap;justify-content:flex-start;gap:6px}

.so-btn{margin-left:auto;height:32px}
.dlg-b.so{max-width:520px}
.so-l{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:55vh;overflow:auto}
.so-l li{display:grid;grid-template-columns:18px 22px auto minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #E3E8F2;border-radius:12px;padding:8px 10px;background:#fff;cursor:grab;font-size:13px}
.so-l li small{color:var(--sub);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.so-l li em{font-style:normal;font-weight:700;color:var(--blue);font-size:11.5px}
.so-h{color:#B0B7C3;letter-spacing:-2px}
.so-l li.drag{opacity:.4}
.so-l li.over{border-color:var(--blue);box-shadow:0 0 0 3px rgba(59,91,245,.15)}
.so-ud{display:flex;gap:2px}
.so-ud button{border:1px solid #E3E8F2;background:#fff;border-radius:6px;width:24px;height:22px;font-size:9px;color:#6B7280}

/* 필수·선택 표시 */
.mk{font-size:9.5px;font-weight:700;color:#8A6100;background:#FFF2C6;border-radius:5px;padding:0 5px;margin-left:4px}
.mk.op{color:var(--sub);background:#F1F3F7}
/* 입력 항목 */
.ie{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;background:#F7F9FE;border:1px solid #EDF0F7;border-radius:14px;padding:10px 12px;margin:6px 0 8px}
.ie-t{font-size:12px;flex:0 0 100%}
.ie-n{display:flex;align-items:center;gap:6px}
.ie-n input{width:80px;height:30px;border:1px solid #DDE3EE;border-radius:999px;padding:0 10px;font-size:12.5px;background:#fff}
.ie-l{font-size:11.5px;color:#4B5563;white-space:nowrap}
.ie-w{display:flex;gap:6px;align-items:flex-start;flex:0 0 100%}
.ie-c{display:flex;flex-wrap:wrap;gap:4px}
.wc{border:1px solid #DDE3EE;background:#fff;border-radius:999px;padding:2px 9px;font-size:11.5px;color:#4B5563}
.wc.on{background:var(--blue);border-color:var(--blue);color:#fff}
.ie-c input{height:26px;border:1px solid #DDE3EE;border-radius:999px;padding:0 10px;font-size:11.5px;min-width:160px;background:#fff}
.ie .btn.sm{margin-left:auto;height:30px}
.a-ward{gap:5px}.a-ward input{flex:1 1 140px}
.ord.miss{color:#B42318;background:#FEF3F2;border-color:#FDDCD8}
.ie-b{margin-left:auto;display:flex;gap:8px;align-items:center}
.ie .ie-b .btn.sm{margin-left:0}
.wc small{font-size:10px;opacity:.65;margin-left:2px}.wc.on small{opacity:.85}
/* 신규처 등록 창: 위치 고정, 검색 결과는 창 안에서 늘어남 */
html:not(.force-m) #addbox.open,html.force-pc #addbox.open{place-items:start center;padding-top:72px}
html:not(.force-m) #addbox.open .panel,html.force-pc #addbox.open .panel{height:min(640px,calc(100vh - 100px));max-height:none;overflow:auto;max-width:520px}
#addbox #a-res{max-height:none}

/* 이슈 · 건너뛰기 · 병원별 순서 */
.ob.bad{color:#B42318;border-color:#F4C7C3;background:#FFF5F4}
.ob.bad:hover{background:#FEE4E2}
.btn.bad{background:#D92D20;color:#fff;border-color:#D92D20}
.ol.iss{background:#FFF6F5;box-shadow:inset 3px 0 0 #E5484D}
.ol.iss .ol-n b{color:#B42318}
.itag{display:inline-block;font-size:10.5px;font-weight:700;color:#fff;background:#E5484D;border-radius:6px;padding:1px 6px;margin-right:5px;vertical-align:1px}
.ol-dt{border:0;background:none;padding:0;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font:inherit;color:inherit}
.ol-dt:hover b{text-decoration:underline}
.ol-tip{font-size:11px;color:var(--sub);margin:0 0 4px 2px}
.ol[data-hold]{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.ol.holding{transform:scale(.99);background:#EEF2FF;transition:transform .5s,background .5s}
.iss-o{display:flex;gap:6px;flex-wrap:wrap}
.iss-o label{display:flex;align-items:center;gap:6px;border:1px solid #E3E7EF;border-radius:10px;padding:7px 11px;cursor:pointer;font-size:13px}
.iss-o label:has(input:checked){border-color:#E5484D;background:#FFF5F4;color:#B42318}
.iss-o input{accent-color:#E5484D}
