/* 링크로직 마스터 — 시안(master_mock_v1) 팔레트·간격 그대로
   배경 #f3f3f1 · 카드 #fff · 선 #e2e3e0 · 강조 #4a5568 · 보조글자 #5d636b · 흐린글자 #83888f · 칩 바탕 #f1f1ee
   상태 글자색: 정상 #3f7256 · 주의 #8a6b3c · 중단/위험 #9d5252 (바탕색 금지, 행 왼쪽 가는 띠만) */
*{box-sizing:border-box}
[hidden]{display:none!important}   /* display:flex·grid 를 준 요소는 hidden 속성이 안 먹는다 — 접힘·필터가 실제로 숨도록 강제 */
html,body{margin:0}
body{font-family:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;background:#f3f3f1;color:#1f2430;font-size:14px}
a{color:#4a5568;text-decoration:none}a:hover{color:#2d3748}
button,input,select{font-family:inherit}
.app{display:flex;min-height:100vh}
.nav{width:220px;flex-shrink:0;background:#fff;border-right:1px solid #e2e3e0;padding:20px 14px;display:flex;flex-direction:column;gap:6px;position:sticky;top:0;height:100vh}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px 18px}.brand span{font-size:16px;font-weight:700}
.nav a.item{display:flex;align-items:center;height:40px;padding:0 14px;border-radius:8px;color:#1f2430;font-size:14px}
.nav a.item.on{background:#eaeae6;color:#4a5568;font-weight:700}
.nav .item.off{display:flex;align-items:center;height:40px;padding:0 14px;border-radius:8px;color:#b3b6b9;font-size:14px;cursor:default}
.nav .who{margin-top:auto;padding:12px 8px;border-top:1px solid #ecedea;font-size:12px;color:#83888f;line-height:1.6}
.nav .who button{background:none;border:none;padding:0;color:#4a5568;font-size:12px;cursor:pointer}
.main{flex:1;min-width:0;padding:22px 28px;display:flex;flex-direction:column;gap:16px}
.head{display:flex;align-items:center;justify-content:space-between;gap:12px}
h1{margin:0;font-size:22px;font-weight:700}h2{margin:0;font-size:15px;font-weight:700}
.back{font-size:13px}
.btn{height:40px;padding:0 18px;border-radius:10px;border:none;background:#4a5568;color:#fff;font-size:14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center}
.btn:hover{background:#3d4757;color:#fff}.btn:disabled{background:#b9bec6;cursor:not-allowed}
.btn.lg{height:44px;padding:0 22px;font-size:15px}
.btn-s{height:38px;padding:0 14px;border-radius:8px;border:1px solid #d2d4d0;background:#fff;color:#1f2430;font-size:13px;cursor:pointer;display:inline-flex;align-items:center}
.btn-s:hover{background:#f6f6f3;color:#1f2430}.btn-s.fill{border:none;background:#4a5568;color:#fff;font-weight:700}.btn-s.fill:hover{background:#3d4757}
.btn-s.danger{border-color:#d9c2c2;color:#9d5252}.btn-s.sm{height:34px;padding:0 12px}.btn-s.soft{border-color:#d4dae3;background:#eaeae6;color:#4a5568}
.btn-s.xs{height:32px;padding:0 12px}.btn-s:disabled{color:#b3b6b9;cursor:not-allowed;background:#f6f6f3}
.cards{display:flex;gap:14px}
.stat{flex:1;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:12px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.stat.tint{background:#f1f1ee}.stat .k{font-size:13px;color:#5d636b}.stat .v{font-size:28px;font-weight:700;line-height:1}.stat .s{font-size:12px;color:#83888f}
.c-ok{color:#3f7256}.c-warn{color:#8a6b3c}.c-stop{color:#9d5252}.c-acc{color:#4a5568}.c-dim{color:#83888f}.c-sub{color:#5d636b}
.tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.search{height:40px;width:300px;padding:0 14px;border:1px solid #d2d4d0;border-radius:10px;font-size:14px;background:#fff;color:#1f2430}
.seg{display:flex;gap:4px;padding:3px;background:#e7e7e3;border-radius:10px}
.seg button,.seg a{height:34px;padding:0 12px;border-radius:8px;border:none;background:transparent;font-size:13px;color:#5d636b;cursor:pointer;display:inline-flex;align-items:center}
.seg .on{background:#fff;font-weight:700;color:#1f2430}.seg.sm{border-radius:8px}.seg.sm button,.seg.sm a{height:28px;padding:0 10px;border-radius:6px;font-size:12px}
.hint{font-size:12px;color:#83888f}.ml-auto{margin-left:auto}
.banner{background:#fff;border:1px solid #d9c2c2;border-left:4px solid #c48a8a;border-radius:10px;padding:12px 16px;font-size:13px;color:#9d5252;font-weight:700}
.banner span{font-weight:400;color:#5d636b;margin-left:8px}
.tbl{background:#fff;border:1px solid #e2e3e0;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.tbl.inner{border-radius:10px}
.tr{display:grid;gap:0;padding:0 20px;align-items:center}
.tr.h{height:44px;background:#f6f6f3;border-bottom:1px solid #e2e3e0;font-size:13px;color:#5d636b}
.tr.li{min-height:66px;border-bottom:1px solid #ecedea;border-left:4px solid transparent;font-size:14px}
.tr.li:last-child{border-bottom:none}
.tr.li.bar-stop{border-left-color:#c48a8a}.tr.li.bar-warn{border-left-color:#d4b27a}.tr.li.gone{opacity:.55}
.cols-list{grid-template-columns:minmax(0,1.5fr) minmax(0,1.25fr) 86px minmax(0,1fr) minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1.05fr) minmax(0,.85fr) 176px}
.cols-list>*{min-width:0}
.sort{display:flex;align-items:center;gap:4px;background:none;border:none;padding:0;font:inherit;font-weight:500;color:#5d636b;cursor:pointer;text-align:left}
.sort.on{font-weight:700;color:#4a5568}.sort svg{width:12px;height:12px;stroke:#b3b6b9}.sort.on svg{stroke:#4a5568}
.sort .up,.sort .dn{display:none}.sort.asc .both,.sort.desc .both{display:none}.sort.asc .up{display:inline}.sort.desc .dn{display:inline}
.two{display:flex;flex-direction:column;gap:2px}.two .a{font-size:15px;font-weight:700}.two .b{font-size:12px;color:#83888f}
.chip{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:12px;font-size:12px;font-weight:700;background:#f1f1ee;color:#4a5568}
.chip.mc{background:#eaeae6;color:#4a5568}.chip.lc{color:#3f7256}.chip.cp{color:#6c6486}
.chip.st-normal{color:#3f7256}.chip.st-caution{color:#8a6b3c}.chip.st-stopped{color:#9d5252}.chip.st-install_wait{color:#4a5568}.chip.st-terminated{color:#83888f}
.chip.tag{height:22px;border-radius:11px;font-size:11px;background:#eaeae6}
.chips{display:flex;gap:4px;flex-wrap:wrap}.acts{display:flex;justify-content:flex-end;gap:6px;position:relative}
.menu{position:absolute;right:0;top:40px;background:#fff;border:1px solid #d2d4d0;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.08);padding:6px;display:none;z-index:20;min-width:150px}
.menu.open{display:block}.menu a{display:block;padding:9px 12px;border-radius:6px;font-size:13px;color:#1f2430;white-space:nowrap}.menu a:hover{background:#f6f6f3}
.card{background:#fff;border:1px solid #e2e3e0;border-radius:12px;padding:18px 20px;display:flex;flex-direction:column;gap:14px}
.card.tight{padding:16px 18px;gap:12px}.card.red{border-color:#d9c2c2}
.row{display:flex;gap:14px}.row>.fld{width:100%}
.fld{display:flex;flex-direction:column;gap:6px}
.fld label,.lbl{font-size:13px;font-weight:700;color:#4d5359}.req{color:#9d5252}
.in{height:42px;padding:0 12px;border:1px solid #d2d4d0;border-radius:8px;font-size:14px;background:#fff;color:#1f2430;width:100%}
.in.sm{height:38px;padding:0 10px;font-size:13px}.in.num{text-align:right;font-size:15px}
.in.bad{border-color:#9d5252;background:#fbf3f3;color:#9d5252}
.unitwrap{display:flex;align-items:center;gap:8px}.unitwrap span{font-size:13px;color:#5d636b;flex-shrink:0}
.pick{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #d2d4d0;border-radius:10px;background:#fff;cursor:pointer;flex:1}
.pick.on{border-color:#4a5568;background:#eaeae6}.pick input{width:18px;height:18px;margin:2px 0 0}
.pick .t{font-size:14px;font-weight:700}.pick .d{font-size:12px;color:#83888f}
.strip{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#f6f6f3;border-radius:10px;gap:14px}
.strip.info{justify-content:flex-start;font-size:13px;color:#5d636b;line-height:1.6;flex-wrap:wrap}.strip.info strong{color:#1f2430}
details.card{padding:0 20px;gap:0}details.card summary{height:52px;display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;cursor:pointer;list-style:none}
details.card summary::-webkit-details-marker{display:none}details.card summary span{font-size:12px;font-weight:400;color:#83888f}
details.card .row{padding:4px 0 18px}
.side{width:340px;flex-shrink:0;display:flex;flex-direction:column;gap:14px}
.note{background:#f1f1ee;border:1px solid #e3d7b8;border-radius:12px;padding:16px 18px;font-size:13px;line-height:1.7;color:#6e5a32}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:13px}.kv .k{color:#83888f}.kv .v{font-weight:500;text-align:right}
.big{font-size:34px;font-weight:700;line-height:1}.big small{font-size:16px;font-weight:500;color:#5d636b}
.flash{padding:12px 16px;border-radius:10px;font-size:13px;background:#fff;border:1px solid #e2e3e0}
.flash.ok{border-left:4px solid #7fae92;color:#3f7256}.flash.err{border-left:4px solid #c48a8a;color:#9d5252}
.overlay{position:fixed;inset:0;background:rgba(31,36,48,.45);display:none;align-items:center;justify-content:center;z-index:50}
.overlay.open{display:flex}.modal{background:#fff;border-radius:14px;padding:24px;width:min(460px,92vw);display:flex;flex-direction:column;gap:14px;word-break:keep-all}
.modal p{margin:0;font-size:13px;line-height:1.7;color:#5d636b}.modal .acts{justify-content:flex-end;gap:8px}
.pw{font:700 26px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.06em;padding:16px 18px;background:#f6f6f3;border-radius:10px;text-align:center}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center}
.login .card{width:380px}
.ledger-cols{grid-template-columns:104px 138px 84px 84px minmax(0,1fr) 56px}
.ledger-all-cols{grid-template-columns:118px minmax(0,170px) 150px 100px 100px minmax(0,1fr) 64px}
.tr.lr>*,.tr.lh>*{min-width:0}.tr.lr{word-break:keep-all;padding-top:8px;padding-bottom:8px}
.tr.lh{padding:0 14px;height:40px;font-size:12px}.tr.lr{padding:0 14px;min-height:42px;font-size:13px;border-bottom:1px solid #ecedea}.tr.lr:last-child{border-bottom:none}
.tax{background:none;border:none;padding:0;font:inherit;color:#5d636b;cursor:pointer;text-decoration:underline dotted}
.r{text-align:right}
@media (max-width:1100px){.nav{width:72px;padding:20px 8px}.brand span,.nav .who{display:none}.nav a.item,.nav .item.off{font-size:12px;padding:0 6px;justify-content:center}.cards{flex-wrap:wrap}.stat{min-width:45%}.tbl{overflow-x:auto}.tr{min-width:1100px}}
