:root{--bg:#f4f6fa;--ink:#1f2a44;--sub:#5b6780;--blue:#2563eb;--blue-d:#1d4ed8;--card:#fff;--line:#dfe5ef;
--ok:#15803d;--ok-f:#16a34a;--warn:#b45309;--warn-f:#d97706;--bad:#b91c1c;--fix:#6d28d9;--in:#94a3b8}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--bg);color:var(--ink);font:13px/1.5 "Malgun Gothic","맑은 고딕",sans-serif}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3{margin:0}
.head{height:46px;background:linear-gradient(90deg,#1e3a8a,#2563eb);color:#fff;display:flex;align-items:center;padding:0 16px;gap:12px;position:sticky;top:0;z-index:20}
.head .t{font-size:16px;font-weight:700}
.head .sp{flex:1}
.head .who{opacity:.95}
/* 접속 아이디 + 로그아웃 = ERP 왼쪽 메뉴 머리(.logo .uid · .logout) 꼴 · 아이디를 누르면 비밀번호 바꾸기 */
.head .uid{color:#cbd5e1;font-weight:700;cursor:pointer;text-decoration:none;margin-left:2px}
.head .uid:hover{color:#fff;text-decoration:underline}
.head .logout{font-size:11px;font-weight:600;color:#93c5fd;text-decoration:none;border:1px solid #2c3a55;border-radius:8px;padding:3px 8px;cursor:pointer;background:rgba(30,41,64,.35)}
.head .logout:hover{background:#2563eb;color:#fff}
.head button{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:6px;padding:4px 10px;cursor:pointer}
.wrap{display:flex;min-height:calc(100vh - 46px)}
/* 왼쪽 메뉴 = 좋은상자 ERP 왼쪽 메뉴 값(erp_한지붕.py a.it · .subs · a.sub) */
.side{width:210px;flex:none;background:#1e2940;color:#e2e8f0;padding:10px 0}
.side a.it{display:block;color:#e2e8f0;font-weight:700;padding:8px 16px;text-decoration:none;cursor:default;user-select:none}
.side a.it.on{background:#2563eb;color:#fff;border-left:3px solid #60a5fa;padding-left:13px}
/* 13.12-16: 작은 메뉴는 모두 펼쳐 둔다(접고 펴기 없음) */
.side .subs{display:block;background:#16213a;padding:4px 0}
.side a.sub{display:block;color:#a7b4cc;font-size:12px;padding:6px 16px 6px 30px;margin:0;text-decoration:none}
.side a.sub::before{content:"•";color:#5DCAA5;margin-right:7px;font-size:11px}
.side a.sub:hover,.side a.sub.on{color:#fff;background:#243250}
.side a.sub.on{font-weight:700}
.main{flex:1;min-width:0;padding:16px 20px 60px}
.title{font-size:18px;font-weight:700;margin-bottom:10px}
.hint{color:var(--sub);font-size:12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:14px;margin-bottom:12px}
.card h3{font-size:14px;margin-bottom:8px}
.cards.five{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;margin-bottom:12px}
.stat{cursor:pointer}
.stat .n{font-size:26px;font-weight:700;color:var(--blue-d)}
.stat .n.warn{color:var(--warn)}
.stat .n.ok{color:var(--ok)}
/* 13.12-8: 윗줄은 이름표 달린 칸 · 버튼 · 안내 글의 아랫선을 맞춘다 */
.bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;margin-bottom:12px}
.bar .f{margin-bottom:0}
.btn{background:#fff;border:1px solid var(--in);border-radius:6px;padding:6px 12px;cursor:pointer;min-height:32px}
.btn:hover{border-color:var(--blue)}
.btn.p{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.btn.p:hover{background:var(--blue-d)}
.btn.ok{background:var(--ok-f);border-color:var(--ok-f);color:#fff;font-weight:700}
.btn.d{color:var(--bad);border-color:#e3b4b4}
.btn.s{padding:3px 8px;min-height:26px;font-size:12px}
.btn:disabled{opacity:.45;cursor:not-allowed}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=month],input[type=time],select,textarea{border:1px solid var(--in);border-radius:6px;padding:5px 8px;background:#fff;min-height:32px}
input:focus,select:focus,textarea:focus{outline:2px solid #bfdbfe;border-color:var(--blue)}
.f{display:flex;flex-direction:column;gap:3px;margin-bottom:8px}
.f>span{color:var(--sub);font-size:12px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.row .f{margin-bottom:0}
table.t{width:100%;border-collapse:collapse;background:#fff}
table.t th{background:#eef2f8;color:#39445c;font-weight:700;text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);white-space:nowrap;position:sticky;top:46px}
table.t td{padding:6px 8px;border-bottom:1px solid #edf0f6;vertical-align:middle}
table.t td.n,table.t th.n{text-align:right}
table.t tr.hol td{background:#f3f4f7}
table.t tr.sum td{font-weight:700;background:#f8fafc;border-top:2px solid var(--line)}
table.t tr.off td{color:#9aa4b6}
table.t.plan{table-layout:fixed}
table.t.plan th,table.t.plan td{border-right:1px solid #e3e8f1}
table.t.plan th:last-child,table.t.plan td:last-child{border-right:0}
table.t.plan td.c{text-align:center}
table.t.plan .tag{margin:1px 3px 1px 0}
.scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px}
.scroll table.t th{position:static}
.banner{background:#fef3c7;border:1px solid #f1d38a;color:#7c4a03;border-radius:8px;padding:8px 12px;margin-bottom:12px;font-weight:700}
.tag{display:inline-block;border-radius:10px;padding:1px 8px;font-size:11px;background:#e8eefb;color:#1d4ed8;margin:1px 3px 1px 0;white-space:nowrap}
.tag.w{background:#fdecd2;color:var(--warn)}
.tag.g{background:#dcf5e4;color:var(--ok)}
.tag.r{background:#fbe0e0;color:var(--bad)}
.tag.k{background:#eceff4;color:#4b566b}
.fixed{color:var(--fix);font-weight:700}
.okc{color:var(--ok);font-weight:700}
.badc{color:var(--bad);font-weight:700}
.warnc{color:var(--warn);font-weight:700}
.daily{display:flex;gap:14px;align-items:flex-start}
.chips{flex:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.chip{background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 10px;cursor:pointer;min-height:64px;user-select:none}
.chip:hover{border-color:var(--blue)}
.chip.on{border-color:var(--blue);background:#eaf1ff;box-shadow:inset 0 0 0 1px var(--blue)}
.chip b{font-size:14px}
.chip .s{color:var(--sub);font-size:11px}
.grp{grid-column:1/-1;color:var(--sub);font-size:12px;font-weight:700;margin-top:4px}
.act{width:300px;flex:none;position:sticky;top:58px}
.act h4{margin:10px 0 6px;font-size:13px}
.act .row{gap:6px}
.act input[type=time]{width:104px}
.why{color:var(--sub);font-size:12px;margin-top:4px}
.dlg-bg{position:fixed;inset:0;background:rgba(20,28,48,.45);z-index:50;display:flex;align-items:center;justify-content:center;padding:14px}
.dlg{background:#fff;border-radius:12px;padding:18px;width:460px;max-width:100%;max-height:92vh;overflow:auto}
.dlg h3{font-size:15px;margin-bottom:12px}
.dlg .btns{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;gap:6px;align-items:center}
#toast .m{background:#1f2a44;color:#fff;border-radius:8px;padding:9px 14px;display:flex;gap:12px;align-items:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
#toast .m.e{background:var(--bad)}
#toast .m button{background:none;border:1px solid rgba(255,255,255,.6);color:#fff;border-radius:6px;padding:2px 10px;cursor:pointer}
.login{max-width:340px;margin:9vh auto 0}
.login .card{padding:22px}
.login h1{font-size:20px;margin-bottom:4px}
.chk{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #edf0f6}
.chk .i{width:22px;height:22px;border-radius:50%;flex:none;color:#fff;text-align:center;line-height:22px;font-weight:700;background:var(--warn-f)}
.chk .i.y{background:var(--ok-f)}
.tree .d{font-weight:700;font-size:14px;margin:6px 0 4px}
.tree .tm{margin:4px 0 4px 14px}
.tree .pp{display:inline-block;border:1px solid var(--line);background:#fff;border-radius:14px;padding:3px 10px;margin:2px 4px 2px 0;cursor:pointer}
.tree .pp.gone{color:#9aa4b6;text-decoration:line-through}
.money{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.money div{border:1px solid var(--line);border-radius:8px;padding:6px 10px}
.money div span{display:block;color:var(--sub);font-size:11px}
.money div b{font-size:15px}
.legend{display:flex;flex-wrap:wrap;gap:14px;color:var(--sub);font-size:12px;margin-top:6px}
.legend i{display:inline-block;width:22px;height:0;border-top:3px solid #1e3a8a;vertical-align:middle;margin-right:4px}
svg text{font-family:"Malgun Gothic","맑은 고딕",sans-serif}
@media(max-width:760px){
body{font-size:15px}
.wrap{flex-direction:column}
.side{width:auto;display:flex;flex-wrap:wrap;padding:0}
.side a.it{display:inline-block;padding:12px 14px;border-left:0;border-bottom:3px solid transparent}
.side a.it:hover,.side a.it.on{border-left:0;padding-left:14px;border-bottom-color:#60a5fa}
.side .subs{order:9;width:100%;white-space:nowrap;overflow-x:auto}
.side .subs.on{display:flex}
.side a.sub{padding:12px 14px;font-size:14px;flex:none}
.main{padding:12px 10px 90px}
.btn{min-height:44px}
.btn.s{min-height:36px}
input,select{min-height:44px!important}
.head .who{display:none}
.daily{display:block}
.chips{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}
.act{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;margin:0;border-radius:14px 14px 0 0;max-height:66vh;overflow:auto;z-index:30;box-shadow:0 -6px 20px rgba(0,0,0,.2);transform:translateY(calc(100% - 52px));transition:transform .18s}
.act.on{transform:none}
table.t th{position:static}
}

/* 수정·오류 접수 / 새 기능 건의 */
.fbtabs{margin-bottom:8px}
.fbtabs a{display:inline-block;padding:5px 12px;border:1px solid var(--in);border-radius:6px;margin:0 4px 6px 0;text-decoration:none;color:inherit;background:#fff;cursor:pointer}
.fbtabs a.on{background:var(--blue);border-color:var(--blue);color:#fff;font-weight:700}
.fbbody{white-space:pre-wrap;word-break:break-word}
.fbdrop{border:2px dashed #cbd5e1;border-radius:8px;padding:12px;text-align:center;color:#64748b;font-size:12.5px;margin:6px 0}
.fbdrop.on{border-color:var(--blue);background:#eff6ff}
.fbthumbs img{height:70px;border:1px solid var(--in);border-radius:6px;margin:4px 6px 0 0;vertical-align:top}
.fbshots img{max-width:100%;border:1px solid var(--in);border-radius:8px;margin:6px 0;display:block}
.fbhist{padding-left:18px}.fbhist li{margin:5px 0}
.fbform textarea{width:100%;min-height:130px}.fbform input[type=text]{width:100%}
@media(max-width:760px){.head #bidea{display:none}}
.bar a.btn{text-decoration:none;color:inherit}
/* 조직도: 호기 카드 안 조 표 */
.tree table.org th{position:static}
.tree table.org td{vertical-align:top;padding:8px}
.tree table.org td.cn{font-weight:700;white-space:nowrap}
.tree table.org tr.off .pp{color:#1f2937}
.tree table.org th:nth-child(1){width:70px}.tree table.org th:nth-child(2){width:90px}.tree table.org th:nth-child(3){width:130px}
.tree table.org th:nth-child(4),.tree table.org th:nth-child(5){width:100px}
.tree table.org .btn{white-space:nowrap}
table.pay th{position:static;white-space:nowrap}table.pay td{white-space:nowrap}table.pay td.cn{font-weight:700}
table.pay td:last-child,table.pay th:last-child{position:sticky;right:0;background:#fff;box-shadow:-6px 0 6px -6px rgba(0,0,0,.18)}table.pay th:last-child{background:#eef2f8}
table.pay tr.ed td,table.pay tr.ed td:last-child{background:#eff6ff}table.pay input,table.pay select{padding:4px 6px}
.tree .pp:hover{border-color:#2563eb;background:#eff6ff}
.tree .tm.pick{cursor:pointer;border:1px dashed var(--line);border-radius:8px;padding:6px 10px}
.tree .tm.pick:hover{border-color:#2563eb;background:#eff6ff}
.tree .tm.pick .pp{cursor:inherit}
table.pay td .exc{white-space:normal;width:540px;margin-top:6px}table.pay td .exc[hidden]{display:none}
.fbtabs[hidden]{display:none}
table.t.plan td.pick{cursor:pointer}
table.t.plan td.pick:hover{background:#eef4ff}
table.t.plan .add{color:var(--blue);font-size:12px;opacity:.55}
table.t.plan td.pick:hover .add{opacity:1}
.card .byd{font-size:13px;margin-top:3px}
.card .stat .n small{font-size:13px;font-weight:400;color:var(--sub);margin-left:3px}
table.t.plan th.c,table.t.plan td.pick{text-align:center}
.otg{text-align:left;margin:2px 0;line-height:1.5}
.otg .tag{font-weight:700;margin-right:6px}
.otg .nm{font-size:12.5px;color:#334155}
.otg .tm{font-size:12.5px;margin-right:6px}
.drop{border:2px dashed #94a3b8;border-radius:10px;padding:22px 12px;text-align:center;color:var(--sub);margin-bottom:10px;background:#f8fafc}
.drop.on{border-color:var(--blue);background:#eaf1ff;color:var(--blue)}
.stline{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-size:14px}
table.t tr.bad td{background:#fff1f1}
.btn.bad{border-color:#dc2626;color:#b91c1c;background:#fff5f5;font-weight:700}
.btn.bad.on{background:#dc2626;color:#fff}
.btn.bad small{font-weight:400;font-size:11px;margin-left:2px}
.calg{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;max-width:980px}
.calg .wd{text-align:center;font-weight:700;font-size:13px;padding:4px 0;color:var(--sub)}
.calg .wd.sun,.calg .dn.sun{color:#dc2626}
.calg .wd.sat,.calg .dn.sat{color:#2563eb}
.calg .cell{background:#fff;border:1px solid var(--line);border-radius:8px;min-height:78px;padding:6px 8px;position:relative}
.calg .cell.none{background:transparent;border:0}
.calg .cell.hol{background:#eef0f4}
.calg .cell.alt{background:#fff8e6}
.calg .cell.today{box-shadow:inset 0 0 0 2px var(--blue)}
.calg .cell.can{cursor:pointer}
.calg .cell.can:hover{border-color:var(--blue)}
.calg .dn{font-weight:700;font-size:15px}
.calg .kd{font-size:11.5px;color:var(--sub);margin-top:2px}
.calg .nm{font-size:12px;color:#b45309;margin-top:1px}
.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#f59e0b;margin-left:4px;vertical-align:middle}
.dlg:has([name=b0a]){width:660px}
[hidden]{display:none!important}
table.wg{table-layout:fixed;min-width:980px}
table.wg th,table.wg td{text-align:center!important;border-left:1px solid var(--line,#e3e8f0);vertical-align:middle}
table.wg th:first-child,table.wg td:first-child{border-left:0;width:20%}
table.wg th:nth-child(2),table.wg td:nth-child(2){width:11%}
table.wg th:nth-child(8),table.wg td:nth-child(8){width:17%}
table.wg th:last-child,table.wg td:last-child{width:70px}
table.wg.fx{min-width:1280px}table.wg.fx th:first-child,table.wg.fx td:first-child{width:150px}table.wg.fx th,table.wg.fx td{width:auto}
table.wg.fx th:nth-child(2),table.wg.fx td:nth-child(2),table.wg.fx th:nth-child(8),table.wg.fx td:nth-child(8){width:auto}
.dlg:has([name=from_ym]){width:680px}
.side a.sub{white-space:nowrap;overflow:hidden;text-overflow:clip;letter-spacing:-.3px}
table.wg.sl{min-width:1500px}table.wg.sl th,table.wg.sl td{width:auto}table.wg.sl th:first-child,table.wg.sl td:first-child{width:150px}
table.wg.sl th:nth-child(2),table.wg.sl td:nth-child(2),table.wg.sl th:nth-child(8),table.wg.sl td:nth-child(8),table.wg.sl th:last-child,table.wg.sl td:last-child{width:auto}
.dlg:has(#bkz){width:760px}
table.wg th:nth-child(9),table.wg td:nth-child(9){width:15%}
.dlg:has([name=acct_no]){width:720px}
table.wg td:first-child a,table.wg td:first-child b{white-space:nowrap}
table.wg.sl th:first-child,table.wg.sl td:first-child{width:210px}
table.wg.sl td:first-child .hint{white-space:nowrap;font-size:11px}
table.wg.fx th:first-child,table.wg.fx td:first-child{width:190px;white-space:nowrap}
table.wg td.cn{white-space:nowrap}
.permg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 14px}.permg .f{margin:0}.permg select{width:100%}
.dlg:has(.permg){width:760px}
