/* 전산관리시스템 관리자 화면 — UI 고도화판 (2026-10-22)
   원칙: 흰 카드 + 파랑 한 가지 강조, 상태는 색 점으로, 글자 13~14px, 목록은 한눈에·상세는 넉넉히 */
:root{--pri:#1b6ca8;--pri-dark:#123f67;--pri-soft:#eaf3fb;--pri-line:#bfd7ea;--ink:#182430;--ink-2:#3a4a58;--muted:#6b7a88;--line:#e3e9ef;--line-2:#eef2f6;--bg:#f3f6f9;--white:#fff;--green:#13804a;--green-soft:#e6f5ec;--orange:#c45d0a;--orange-soft:#fff1e3;--red:#b8262b;--red-soft:#fdecec;--gray-soft:#eef2f5;--navy:#123f67;--radius:12px;--radius-s:8px;--shadow:0 1px 2px rgba(16,32,48,.05),0 1px 1px rgba(16,32,48,.03);--shadow-lg:0 18px 50px rgba(16,32,48,.18);--side-w:236px;--side-compact:72px;--top-h:60px;--font:"Pretendard Variable",Pretendard,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}html,body{margin:0;height:100%}body{font-family:var(--font);color:var(--ink);background:var(--bg);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:var(--pri)}button{font-family:inherit;color:inherit}input,select,textarea{font-family:inherit;font-size:14px;color:var(--ink)}.hidden{display:none!important}.muted{color:var(--muted)}.right{text-align:right}.center{text-align:center}
::selection{background:#cfe3f3}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-thumb{background:#cfd8e0;border-radius:10px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background:#b7c3cd;background-clip:padding-box;border:2px solid transparent}
:focus-visible{outline:2px solid var(--pri);outline-offset:2px;border-radius:4px}
.sym{position:relative;display:inline-block;width:34px;height:34px;flex:0 0 34px}.sym:before,.sym:after{content:"";position:absolute;width:20px;height:20px;border-radius:50%}.sym:before{left:0;top:0;background:#2e9bc2}.sym:after{right:0;bottom:0;background:#df3f4a}.sym i{position:absolute;left:11px;top:11px;width:12px;height:12px;border-radius:50%;background:#fff;z-index:2}

/* ---------- 로그인 ---------- */
.login-view{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;align-items:center}.login-left{padding:64px;background:radial-gradient(1200px 600px at -10% -10%,#2a86c6 0%,transparent 60%),linear-gradient(135deg,#0d385c,#1b6ca8);color:#fff;min-height:100vh;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-left:after{content:"";position:absolute;right:-120px;bottom:-160px;width:420px;height:420px;border-radius:50%;border:60px solid rgba(255,255,255,.06)}.login-left h1{font-size:40px;margin:30px 0 10px;letter-spacing:-1.5px;line-height:1.15}.login-left p{font-size:16px;opacity:.85;max-width:460px}.brand-img{object-fit:contain;flex:0 0 auto}.login-brand .brand-img{filter:drop-shadow(0 1px 2px rgba(0,0,0,.25))}.login-brand{display:flex;gap:12px;align-items:center}.login-brand b{display:block;font-size:17px}.login-brand small{opacity:.85}
.login-card{width:min(420px,90%);margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:16px;padding:36px;box-shadow:var(--shadow)}.login-card small{color:var(--pri);font-weight:800;letter-spacing:.2px}.login-card h2{margin:4px 0 22px;font-size:24px;letter-spacing:-.5px}.login-card label{display:grid;gap:6px;margin-bottom:14px;font-weight:700;font-size:13px;color:var(--ink-2)}.login-card input{height:46px;border:1px solid #cfdbe4;border-radius:10px;padding:0 14px;font-size:15px}.login-card input:focus{outline:0;border-color:var(--pri);box-shadow:0 0 0 3px rgba(27,108,168,.14)}.login-card em{display:block;margin-top:10px;color:var(--red);font-style:normal;font-size:13px;min-height:18px}
.demo-accounts{margin-top:16px;padding:12px 14px;background:var(--bg);border-radius:10px;font-size:12px;color:var(--muted)}.demo-accounts b{display:block;margin-bottom:4px;color:var(--ink-2)}.demo-accounts span{display:block}
.qr-box{display:flex;justify-content:center;min-height:120px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:8px}.qr-help{font-size:12px;color:var(--muted);margin:0 0 6px}.login-card code,.modal-body code{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;letter-spacing:1px;background:#f3f5f7;padding:8px 10px;border-radius:8px;word-break:break-all;margin-bottom:10px}
.link-btn{background:none;border:0;color:var(--pri);font-weight:700;cursor:pointer;padding:4px 0;font-size:12px;text-decoration:underline;text-underline-offset:2px}.link-btn:hover{color:var(--pri-dark)}
@media(max-width:900px){.login-view{grid-template-columns:1fr}.login-left{min-height:auto;padding:40px 24px}.login-card{margin:24px auto}}

/* ---------- 앱 뼈대 ---------- */
.app{display:grid;grid-template-columns:var(--side-w) 1fr;min-height:100vh;transition:grid-template-columns .18s}.app.compact{grid-template-columns:var(--side-compact) 1fr}
.sidebar{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow:hidden auto}
.side-brand{display:flex;gap:10px;align-items:center;padding:16px 14px;text-decoration:none;color:var(--ink);border-bottom:1px solid var(--line);min-height:70px}.side-brand b{display:block;font-size:14px;line-height:1.2}.side-brand small{font-size:11px;color:var(--muted);line-height:1.3;display:block}
#sideMenu{padding:8px 10px 16px;flex:1}.menu-group{margin-top:10px}.menu-group>small{display:block;padding:8px 10px 4px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.3px;text-transform:uppercase}
.menu-item{position:relative;display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;color:var(--ink-2);text-decoration:none;font-weight:600;font-size:14px;transition:background .12s,color .12s}.menu-item:hover{background:var(--bg);color:var(--ink)}.menu-item.active{background:var(--pri-soft);color:var(--pri);font-weight:800}.menu-item.active:before{content:"";position:absolute;left:-10px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--pri)}.menu-item svg{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;opacity:.9}.menu-item .badge-n{margin-left:auto;background:var(--red);color:#fff;border-radius:999px;font-size:11px;font-weight:800;min-width:18px;height:18px;display:inline-grid;place-items:center;padding:0 5px}
.side-user{border-top:1px solid var(--line);padding:12px 14px;font-size:13px;display:flex;gap:10px;align-items:center}.side-user .avatar{width:34px;height:34px;border-radius:50%;background:var(--pri-dark);color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 34px}.side-user b{display:block;line-height:1.2}.side-user small{color:var(--muted);display:block}.side-user-actions{display:flex;gap:10px;margin-top:2px}.side-user-actions .link-btn{text-decoration:none;font-weight:600}
.side-foot{padding:8px 10px;border-top:1px solid var(--line)}.side-collapse{width:100%;border:0;background:none;color:var(--muted);font-size:12px;cursor:pointer;padding:8px;border-radius:8px;display:flex;align-items:center;gap:8px}.side-collapse:hover{background:var(--bg);color:var(--ink)}
.app.compact .side-brand div,.app.compact .menu-group>small,.app.compact .menu-item span.lbl,.app.compact .side-user>div,.app.compact .side-collapse span{display:none}.app.compact .menu-item{justify-content:center;padding:11px 0}.app.compact .menu-item .badge-n{position:absolute;top:4px;right:6px;margin:0}.app.compact .side-brand{justify-content:center}.app.compact .side-user{justify-content:center}.app.compact .side-collapse{justify-content:center}.app.compact .side-collapse svg{transform:rotate(180deg)}
.main{min-width:0;display:flex;flex-direction:column}
.topbar{height:var(--top-h);background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;padding:0 20px;position:sticky;top:0;z-index:50}.crumb{font-size:13px;color:var(--muted);white-space:nowrap}.crumb b{color:var(--ink);font-size:17px;letter-spacing:-.3px}.topbar-right{margin-left:auto;display:flex;gap:8px;align-items:center}
.top-search{display:flex;align-items:center;gap:6px;height:36px;border:1px solid var(--line);border-radius:999px;background:#fff;padding:0 6px 0 12px;min-width:260px;color:var(--muted)}.top-search svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}.top-search input{border:0;outline:0;flex:1;min-width:0;font-size:13px;background:transparent}.top-search kbd{font-family:inherit;font-size:11px;border:1px solid var(--line);border-radius:5px;padding:1px 6px;color:var(--muted);background:var(--bg)}
.icon-btn{position:relative;border:1px solid var(--line);background:#fff;border-radius:10px;width:36px;height:36px;cursor:pointer;display:grid;place-items:center;color:var(--ink-2)}.icon-btn:hover{background:var(--bg)}.icon-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.icon-btn b{position:absolute;top:-6px;right:-6px;background:var(--red);color:#fff;font-size:10px;border-radius:999px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;font-weight:800}
.content{padding:20px 22px 40px;flex:1;min-width:0}
@media(max-width:1000px){.app.compact .side-brand div,.app.compact .menu-group>small,.app.compact .side-user>div{display:block}.app.compact .menu-item span.lbl{display:inline}.app.compact .menu-item{justify-content:flex-start;padding:9px 10px}.app.compact .menu-item .badge-n{position:static;margin-left:auto}.app.compact .side-brand,.app.compact .side-user{justify-content:flex-start}.side-foot{display:none}.app,.app.compact{grid-template-columns:1fr}.sidebar{position:fixed;left:-260px;width:var(--side-w);z-index:200;transition:left .2s;box-shadow:none}.sidebar.open{left:0;box-shadow:0 0 0 100vw rgba(0,0,0,.3)}.top-search{min-width:0;flex:1}.content{padding:14px}}

/* ---------- 버튼·배지·칩 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border-radius:9px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:700;cursor:pointer;font-size:13px;text-decoration:none;white-space:nowrap;transition:background .12s,border-color .12s,transform .05s}.btn:hover{background:var(--bg);border-color:#d3dce4}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--pri);border-color:var(--pri);color:#fff}.btn.primary:hover{background:#165c90;border-color:#165c90}.btn.danger{color:var(--red);border-color:#f0c4c6}.btn.danger:hover{background:var(--red-soft)}.btn.green{background:var(--green);border-color:var(--green);color:#fff}.btn.green:hover{background:#106a3d}.btn.small{height:30px;padding:0 10px;font-size:12px;border-radius:8px}.btn.wide{width:100%;height:46px;font-size:15px;border-radius:10px}.btn:disabled{opacity:.5;cursor:default;transform:none}.btn.is-busy{opacity:.7}
.badge{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800;background:var(--gray-soft);color:#4b5c6b;white-space:nowrap;line-height:1.6}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}.badge.blue{background:#e6f0f8;color:var(--pri)}.badge.orange{background:var(--orange-soft);color:var(--orange)}.badge.green{background:var(--green-soft);color:var(--green)}.badge.red{background:var(--red-soft);color:var(--red)}.badge.gray{background:var(--gray-soft);color:#64748b}.badge.navy{background:var(--navy);color:#fff}.badge.navy:before{background:#fff}
.chip{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:12px;font-weight:700;cursor:pointer;color:#46596a;transition:background .12s}.chip:hover{background:var(--bg)}.chip.active{background:var(--navy);border-color:var(--navy);color:#fff}.chip b{font-weight:800;opacity:.85}.chip.red{color:var(--red);border-color:#f0c4c6}.chip.red.active{background:var(--red);border-color:var(--red);color:#fff}.chip:disabled{opacity:.4;cursor:default}

/* ---------- 패널·그리드·KPI ---------- */
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.panel-head h3{margin:0;font-size:15px;letter-spacing:-.2px;display:flex;align-items:center;gap:6px}.panel-head h3 small{font-weight:600;color:var(--muted);font-size:12px}.panel-head small{color:var(--muted)}.panel-body{padding:16px}
.grid{display:grid;gap:14px}.g2{grid-template-columns:1fr 1fr}.g3{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:repeat(4,1fr)}.g5{grid-template-columns:repeat(5,1fr)}@media(max-width:1200px){.g5{grid-template-columns:repeat(3,1fr)}.g4{grid-template-columns:1fr 1fr}}@media(max-width:1100px){.g3{grid-template-columns:1fr}.g2{grid-template-columns:1fr}}@media(max-width:700px){.g4,.g5{grid-template-columns:1fr 1fr}}
.kpi{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;display:flex;gap:12px;align-items:center;box-shadow:var(--shadow);min-width:0}.kpi i{width:42px;height:42px;border-radius:12px;background:var(--pri-soft);display:grid;place-items:center;font-style:normal;color:var(--pri);flex:0 0 42px;font-weight:800}.kpi small{display:block;color:var(--muted);font-size:12px;font-weight:600}.kpi b{font-size:24px;color:var(--ink);letter-spacing:-.5px;line-height:1.2}.kpi em{display:block;font-style:normal;font-size:11px;color:var(--muted);margin-top:2px}.kpi em.up{color:var(--green)}.kpi em.down{color:var(--red)}
.split{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(480px,1.1fr);gap:14px;align-items:start}.split.wide-right{grid-template-columns:minmax(330px,.7fr) minmax(520px,1.3fr)}@media(max-width:1100px){.split,.split.wide-right{grid-template-columns:1fr}.scroll-list{max-height:380px}}

/* ---------- 목록 ---------- */
.scroll-list{max-height:calc(100vh - 250px);overflow:auto;overscroll-behavior:contain}
.list-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:11px 14px;border-bottom:1px solid var(--line-2);cursor:pointer;transition:background .1s;position:relative}.list-item:hover{background:#f7fafc}.list-item.active{background:#f1f8fd}.list-item.active:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--pri)}.list-item small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-item b{font-size:14px;display:block;margin:2px 0;line-height:1.35;color:var(--ink)}.list-item .tags{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.list-item .amt{font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink);font-size:14px}.list-item .mark{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--muted)}.list-item .mark.red{color:var(--red)}.list-item .mark.blue{color:var(--pri)}
.list-item>div:first-child{min-width:0}

/* ---------- 탭·필터·표 ---------- */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin-bottom:14px;overflow:auto}.tabs button{border:0;background:none;padding:10px 14px;font-weight:700;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;font-size:14px;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.tabs button:hover{color:var(--ink)}.tabs button.active{color:var(--pri);border-bottom-color:var(--pri)}.tabs button .n{font-size:11px;background:var(--gray-soft);padding:1px 7px;border-radius:999px;color:var(--ink-2);font-weight:800}.tabs button.active .n{background:var(--pri-soft);color:var(--pri)}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.filters input,.filters select{height:34px;border:1px solid #cfdbe4;border-radius:8px;padding:0 10px;background:#fff;font-size:13px}.filters input:focus,.filters select:focus{outline:0;border-color:var(--pri);box-shadow:0 0 0 3px rgba(27,108,168,.12)}.filters input[type=search]{min-width:180px}.filters details{width:100%}.filters summary{list-style:none}.filters summary::-webkit-details-marker{display:none}.filters summary:before{content:"▸ ";font-size:11px}.filters details[open] summary:before{content:"▾ "}
.table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.table th{background:#f6f8fb;text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);font-weight:700;color:#4b5c6b;white-space:nowrap;position:sticky;top:0;z-index:1;font-size:12px}.table td{padding:9px 12px;border-bottom:1px solid var(--line-2);vertical-align:middle}.table tbody tr:hover td{background:#fafcfd}.table .num{text-align:right;font-variant-numeric:tabular-nums}.table .link{color:var(--pri);cursor:pointer;font-weight:700}.table .link:hover{text-decoration:underline}.table .empty td{text-align:center;color:var(--muted);padding:34px 12px}.table code{display:inline;padding:2px 6px;margin:0;font-size:12px;border-radius:5px;background:#f3f5f7}

/* ---------- 폼 ---------- */
.form{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}.form .f{display:grid;gap:5px;min-width:0;align-content:start}.form .f.wide{grid-column:1/-1}.form .f>b{font-size:13px;color:var(--ink);padding-top:6px;border-top:1px dashed var(--line);margin-top:2px}.form .f:first-child>b{border-top:0;margin-top:0;padding-top:0}.form label,.form .f>span{font-size:12px;font-weight:700;color:var(--ink-2)}.form input,.form select,.form textarea{height:38px;border:1px solid #cfdbe4;border-radius:9px;padding:0 11px;background:#fff;width:100%;min-width:0;transition:border-color .12s,box-shadow .12s}.form textarea{height:120px;padding:10px 11px;resize:vertical;line-height:1.55}.form input:focus,.form select:focus,.form textarea:focus{outline:0;border-color:var(--pri);box-shadow:0 0 0 3px rgba(27,108,168,.12)}.form input[readonly],.form input:disabled,.form select:disabled{background:#f6f8fa;color:var(--muted)}.form .help{font-size:11px;color:var(--muted)}.form .switch{display:flex;align-items:center;gap:8px;min-height:38px;font-weight:600;font-size:13px;cursor:pointer}.form .switch input,.switch input{width:auto;height:auto;accent-color:var(--pri);width:16px;height:16px}.switch{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;cursor:pointer}
.form select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a88' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:28px}
@media(max-width:640px){.form{grid-template-columns:1fr}.form .f.wide{grid-column:auto}}

/* ---------- 상세 ---------- */
.detail-head{display:flex;justify-content:space-between;gap:12px;align-items:start;padding:16px 18px 14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfcfd,#fff)}.detail-head h2{margin:4px 0 4px;font-size:19px;letter-spacing:-.4px;line-height:1.3}.detail-head .meta{font-size:12.5px;color:var(--muted)}.detail-head .tags{display:flex;gap:4px;flex-wrap:wrap;align-items:center}.detail-head>div:first-child{min-width:0}
.sec{margin-bottom:18px}.sec>small{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:var(--ink-2);margin-bottom:7px;letter-spacing:.1px}.sec>small .badge{font-weight:800}.box{background:#f7fafc;border:1px solid var(--line);border-radius:10px;padding:11px 13px;white-space:pre-wrap;font-size:13.5px;line-height:1.65;word-break:break-word}
.timeline{list-style:none;margin:0;padding:0}.timeline li{position:relative;padding:8px 0 10px 20px;border-left:2px solid var(--line);margin-left:6px}.timeline li:last-child{border-left-color:transparent}.timeline li:before{content:"";position:absolute;left:-6px;top:14px;width:10px;height:10px;border-radius:50%;background:var(--pri);border:2px solid #fff;box-shadow:0 0 0 1px var(--line)}.timeline small{display:block;color:var(--muted);font-size:11.5px}.timeline b{font-weight:700;font-size:13.5px}
.steps{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:14px;align-items:center}.steps span{font-size:12px;padding:5px 11px;border-radius:999px;background:var(--gray-soft);color:#5b6b79;font-weight:700;display:inline-flex;align-items:center;gap:6px}.steps span.on{background:var(--pri);color:#fff}.steps span.done{background:var(--green-soft);color:var(--green)}.steps span.done:before{content:"✓";font-size:11px}
.ai-card{border:1px solid #cfe2f1;background:linear-gradient(180deg,#f7fbfe,#fff 60px);border-radius:12px;padding:16px}.ai-card h4{margin:0 0 10px;font-size:14px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ai-card .f{margin-bottom:10px}.ai-card .f small{display:block;font-weight:800;color:var(--ink-2);font-size:12px;margin-bottom:4px}.ai-card textarea{width:100%;min-height:60px;border:1px solid #cfdbe4;border-radius:9px;padding:8px 10px;font-size:13px;resize:vertical;line-height:1.55}.ai-card textarea[readonly]{background:#f8fafc;color:var(--ink-2)}.ai-card .flag{background:var(--red-soft);border:1px solid #f3c2c2;color:var(--red);border-radius:9px;padding:8px 10px;font-size:12px;margin-bottom:10px}
.progress-box{background:#fff7e9;border:1px solid #f1d9ad;border-radius:10px;padding:10px 12px;font-size:13px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spinner{width:16px;height:16px;border:2px solid #cfdbe4;border-top-color:var(--pri);border-radius:50%;animation:spin .8s linear infinite;flex:0 0 16px}@keyframes spin{to{transform:rotate(360deg)}}
.bars{display:grid;gap:7px}.bar-row{display:grid;grid-template-columns:72px 1fr 64px;gap:8px;align-items:center;font-size:12px}.bar-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-2)}.bar-row i{display:block;height:10px;border-radius:5px;background:linear-gradient(90deg,var(--pri),#4a93cc)}.bar-row b{text-align:right;font-variant-numeric:tabular-nums}
.svg-chart{width:100%;height:220px;display:block}.chart-legend{display:flex;gap:12px;font-size:12px;color:var(--muted);margin-bottom:6px}.chart-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px;vertical-align:middle}
.donut{display:grid;grid-template-columns:140px 1fr;gap:14px;align-items:center}.donut .ring{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;position:relative}.donut .ring:after{content:"";position:absolute;inset:30px;background:#fff;border-radius:50%}.donut .ring b{position:relative;z-index:1;font-size:15px;text-align:center}.donut ul{list-style:none;margin:0;padding:0;font-size:12px}.donut li{display:flex;gap:6px;align-items:center;padding:3px 0;color:var(--ink-2)}.donut li i{width:10px;height:10px;border-radius:3px;flex:0 0 10px}.donut li b{margin-left:auto;font-variant-numeric:tabular-nums}
.cal-mini{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;font-size:12px}.cal-mini .d{min-height:58px;border:1px solid var(--line-2);border-radius:7px;padding:4px;background:#fff}.cal-mini .d.other{opacity:.35}.cal-mini .d.has{background:var(--pri-soft);border-color:var(--pri-line)}.cal-mini .dow{text-align:center;color:var(--muted);font-weight:700;padding:2px 0}.cal-mini .ev{display:block;font-size:10px;background:var(--pri);color:#fff;border-radius:4px;padding:1px 5px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.matrix select{height:30px;border:1px solid #cfdbe4;border-radius:7px;font-size:12px;padding:0 6px}
.upload-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.upload-row input[type=text],.upload-row input:not([type]),.upload-row input[type=date],.upload-row select{height:34px;border:1px solid #cfdbe4;border-radius:8px;padding:0 10px;font-size:13px;min-width:0}.upload-row input[type=file]{font-size:12px;max-width:260px}.file-list{list-style:none;margin:8px 0 0;padding:0;font-size:12.5px}.file-list li{display:flex;gap:8px;align-items:center;padding:5px 0;border-bottom:1px dashed var(--line-2);flex-wrap:wrap}.file-list li:last-child{border-bottom:0}.file-list a{font-weight:700;text-decoration:none}.file-list a:hover{text-decoration:underline}

/* ---------- 빈 상태·스켈레톤 ---------- */
.loading{padding:40px;text-align:center;color:var(--muted);font-size:13px}
.empty-state{padding:40px 20px;text-align:center;color:var(--muted)}.empty-state i{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--bg);margin:0 auto 10px;font-style:normal;font-size:22px}.empty-state b{display:block;color:var(--ink-2);font-size:14px;margin-bottom:4px}.empty-state p{margin:0 0 12px;font-size:13px}
.skeleton{padding:16px;display:grid;gap:12px}.skeleton i{display:block;height:14px;border-radius:7px;background:linear-gradient(90deg,#eef2f6 25%,#f6f8fb 37%,#eef2f6 63%);background-size:400% 100%;animation:shimmer 1.3s ease infinite}.skeleton i.h{height:24px;width:40%}.skeleton i.w60{width:60%}.skeleton i.w80{width:80%}.skeleton i.block{height:120px;border-radius:12px}@keyframes shimmer{0%{background-position:100% 0}100%{background-position:0 0}}

/* ---------- 모달·다이얼로그·토스트·알림 ---------- */
.modal{position:fixed;inset:0;background:rgba(10,25,40,.5);display:flex;align-items:flex-start;justify-content:center;padding:30px 16px;z-index:300;overflow:auto;animation:fade .15s}.modal-dialog{position:relative;background:#fff;border-radius:16px;width:min(1100px,100%);max-height:calc(100vh - 60px);overflow:auto;box-shadow:var(--shadow-lg);animation:rise .18s}.modal-close{position:absolute;right:12px;top:10px;border:0;background:none;font-size:24px;cursor:pointer;color:var(--muted);z-index:2;width:32px;height:32px;border-radius:8px}.modal-close:hover{background:var(--bg)}.modal-header{padding:20px 24px 12px;border-bottom:1px solid var(--line)}.modal-header small{color:var(--pri);font-weight:800}.modal-header h2{margin:2px 0 4px;font-size:20px;letter-spacing:-.4px}.modal-header p{margin:0;color:var(--muted);font-size:13px}.modal-body{padding:18px 24px 22px}
@keyframes fade{from{opacity:0}}@keyframes rise{from{transform:translateY(8px);opacity:0}}
.decision{position:fixed;inset:0;background:rgba(10,25,40,.5);display:grid;place-items:center;z-index:400;padding:16px;animation:fade .15s}.decision-card{background:#fff;border-radius:16px;padding:24px;width:min(460px,100%);box-shadow:var(--shadow-lg);animation:rise .18s}.decision-card small{color:var(--pri);font-weight:800}.decision-card h3{margin:4px 0 8px;font-size:18px;letter-spacing:-.3px}.decision-card p{color:var(--ink-2);margin:0 0 12px;font-size:13.5px;line-height:1.6}.decision-card label{display:grid;gap:6px;font-size:12px;font-weight:700;margin-bottom:12px}.decision-card textarea{height:84px;border:1px solid #cfdbe4;border-radius:9px;padding:8px 10px;resize:vertical}.decision-card .actions{display:flex;justify-content:flex-end;gap:8px}
.toast{position:fixed;right:20px;bottom:20px;background:#182430;color:#fff;padding:11px 16px 11px 14px;border-radius:12px;z-index:500;font-size:13px;box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:10px;max-width:420px;animation:rise .18s}.toast:before{content:"✓";width:20px;height:20px;border-radius:50%;background:var(--green);display:grid;place-items:center;font-size:12px;font-weight:900;flex:0 0 20px}.toast.error{background:var(--red)}.toast.error:before{content:"!";background:rgba(255,255,255,.25)}.toast.info:before{content:"i";background:var(--pri)}
.notif-panel{position:fixed;right:70px;top:62px;width:380px;max-height:70vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);z-index:120;animation:rise .18s}.notif-panel .panel-head{position:sticky;top:0;background:#fff;z-index:1}.notif-panel .n{padding:10px 14px;border-bottom:1px solid var(--line-2);cursor:pointer;position:relative}.notif-panel .n:hover{background:#f7fafc}.notif-panel .n.unread{background:#f1f8fd}.notif-panel .n.unread:before{content:"";position:absolute;left:6px;top:16px;width:6px;height:6px;border-radius:50%;background:var(--pri)}.notif-panel .n b{display:block;font-size:13px}.notif-panel .n small{color:var(--muted);font-size:11.5px}
@media(max-width:600px){.notif-panel{right:8px;left:8px;width:auto}}

.print-only{display:none}@media print{.sidebar,.topbar,.btn,.filters,.tabs,.chip,.toast,.notif-panel{display:none!important}.app{display:block}.content{padding:0}.panel{box-shadow:none;border:0}.print-only{display:block}}

/* ---- 회계관리(고정비·지출결의·총괄결산) ---- */
.fin-add{grid-template-columns:1.4fr .8fr 1fr 1fr 1.2fr 1fr auto}.fin-add .f{min-width:0}
.legend{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:4px;vertical-align:middle}.legend.posted{background:var(--pri)}.legend.pending{background:var(--orange)}.legend.locked{background:#9aa7b4}
.fin-grid-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius-s);max-width:100%}.fin-grid{min-width:1120px;border-collapse:separate;border-spacing:0}.fin-grid th,.fin-grid td{border-bottom:1px solid var(--line-2);white-space:nowrap;padding:6px 6px;font-size:12px}
.fin-grid th{background:#f8fafc;text-align:center;font-weight:700;color:var(--ink-2);position:sticky;top:0;z-index:2}.fin-grid th .link-btn{font-size:11px;padding:0;color:var(--pri)}.fin-grid td.sticky,.fin-grid th.sticky{position:sticky;left:0;background:#fff;z-index:3;text-align:left;min-width:190px;border-right:1px solid var(--line)}.fin-grid th.sticky{z-index:4;background:#f8fafc}
.fin-grid td.cell{text-align:right;cursor:pointer;min-width:66px;border-left:1px solid var(--line-2)}.fin-grid td.cell small{display:block;color:var(--muted);font-size:10px;line-height:1.1}.fin-grid td.cell b{font-weight:700;color:var(--ink)}.fin-grid td.cell.empty{text-align:center;color:#b4bec8}.fin-grid td.cell:hover{background:var(--pri-soft)}
.fin-grid td.cell.posted b{color:var(--pri)}.fin-grid td.cell.posted small:before{content:"●";color:var(--pri);margin-right:2px;font-size:8px}.fin-grid td.cell.pending b{color:var(--orange)}.fin-grid td.cell.pending small:before{content:"●";color:var(--orange);margin-right:2px;font-size:8px}.fin-grid td.cell.locked{background:#f6f8fa;cursor:not-allowed}.fin-grid td.cell.locked b{color:#5d6b78}.fin-grid td.cell.locked small:before{content:"🔒";margin-right:2px;font-size:8px}
.filters .f.inline{display:flex;align-items:center;gap:4px;margin:0}.filters .f.inline span{font-size:12px;color:var(--muted);white-space:nowrap}.filters .f.inline select{min-width:110px}
.tx-table tr.group td{background:#f3f7fb;font-size:12.5px;padding:7px 10px;border-top:2px solid #dbe6ef}.tx-table tr.selected td{background:#fff8ea}.tx-table td{font-size:13px}
.st-sheet{background:#fff;border:1px solid var(--line);border-radius:var(--radius-s);padding:22px 26px;max-width:860px}.st-head{text-align:center;position:relative;margin-bottom:12px}.st-head h4{margin:0;font-size:22px;letter-spacing:8px;text-decoration:underline;text-underline-offset:6px}.st-head small{display:block;color:var(--ink-2);margin-top:4px}.st-who{text-align:right;font-size:13px;margin-top:8px}
.st-table{width:100%;border-collapse:collapse;font-size:13px}.st-table th,.st-table td{border:1px solid #8a98a6;padding:6px 9px;height:28px}.st-table th{background:#8ed8ff;font-weight:700;text-align:center}.st-table td.c{text-align:center}.st-table td.b{font-weight:700}.st-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.st-table tr.hs td{background:#ccffcc;font-weight:700}.st-table tr.gs td{background:#ccf2ff;font-weight:700}.st-table tr.tot td{background:#66c7f5;font-weight:800}.st-table tr.fin td{background:#2e9ac9;color:#fff;font-weight:800}
@media(max-width:1100px){.fin-add{grid-template-columns:1fr 1fr}}

/* ---- 서식 편집기(rich-lite) ---- */
.rich-lite{border:1px solid #cfdbe4;border-radius:8px;background:#fff;overflow:hidden}.rich-lite:focus-within{border-color:var(--pri);box-shadow:0 0 0 3px rgba(27,108,168,.12)}
.rl-bar{display:flex;align-items:center;gap:2px;padding:6px 8px;border-bottom:1px solid var(--line-2);background:#f8fafc;flex-wrap:wrap}.rl-bar button{border:1px solid transparent;background:transparent;border-radius:6px;min-width:30px;height:28px;padding:0 6px;font-size:13px;cursor:pointer;color:var(--ink-2)}.rl-bar button:hover{background:#fff;border-color:var(--line)}.rl-sep{width:1px;height:18px;background:var(--line);margin:0 4px}.rl-count{margin-left:auto;font-size:11px;color:var(--muted)}.rl-count.over{color:var(--red);font-weight:700}
.rl-body{min-height:220px;max-height:520px;overflow:auto;padding:12px 14px;line-height:1.7;font-size:14px;outline:0}.rl-body:empty:before{content:attr(data-placeholder);color:#9aa7b4}.rl-body p{margin:0 0 8px}.rl-body blockquote{margin:8px 0;padding:6px 12px;border-left:3px solid var(--pri-line);background:#f6f9fc;color:var(--ink-2)}.rl-body img{max-width:100%}
.list-item label input{margin:0}

/* ---- 상담카드 작성 양식 ---- */
.intake-strip{display:flex;gap:12px;align-items:center;background:linear-gradient(90deg,#eef6fc,#f7fafc);border:1px solid #cfe1ef;border-radius:var(--radius-s);padding:10px 14px;margin-bottom:12px}.intake-strip>div{flex:1;min-width:0}.intake-strip small{color:var(--muted);font-size:12px;display:block}.intake-strip b{display:block;font-size:13.5px;margin:2px 0}.intake-strip p{margin:0;font-size:12.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-form{border:1px solid #cfe1ef;border-radius:var(--radius);background:#fff;box-shadow:0 6px 24px rgba(27,108,168,.08);overflow:hidden}
.cf-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:linear-gradient(90deg,#0f3d63,#1b6ca8);color:#fff;flex-wrap:wrap}.cf-head>div{display:flex;gap:10px;align-items:center}.cf-head .cf-icon{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:18px}.cf-head b{font-size:16px}.cf-head small{display:block;opacity:.85;font-size:12px;margin-top:2px}.cf-head .badge{background:rgba(255,255,255,.18);color:#fff}.cf-head .badge.green{background:#1ea35a}.cf-head .badge.orange{background:#e07a12}.cf-tools{display:flex;gap:6px}.cf-tools .btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}.cf-tools .btn:hover{background:rgba(255,255,255,.22)}
.cf-sec{border-top:1px solid var(--line-2)}.cf-sec h4{margin:0;padding:10px 16px;font-size:13.5px;display:flex;align-items:center;gap:8px;background:#f6f9fc;color:var(--pri-dark)}.cf-sec h4 i{width:22px;height:22px;border-radius:50%;background:var(--pri);color:#fff;font-style:normal;font-size:12px;display:grid;place-items:center;font-weight:800}.cf-sec h4 small{font-weight:500;color:var(--muted);margin-left:4px}.cf-body{padding:12px 16px 14px}
.cf-grid{display:grid;gap:10px 14px}.cf-grid.g3{grid-template-columns:repeat(3,1fr)}.cf-grid.g4{grid-template-columns:repeat(4,1fr)}.cf-f{display:flex;flex-direction:column;gap:4px;min-width:0;border-radius:8px;padding:4px;margin:-4px}.cf-f>span{font-size:12px;font-weight:700;color:var(--ink-2);display:flex;align-items:center;gap:4px}.cf-f>span em{font-style:normal;color:var(--red)}.cf-f input:not([type=radio]):not([type=checkbox]):not(.cr-text):not(.cc-text),.cf-f select,.cf-f textarea{border:1px solid #cfdbe4;border-radius:8px;height:34px;padding:0 9px;font-size:13px;width:100%;background:#fff}.cf-f input[type=radio],.cf-f input[type=checkbox]{width:14px;height:14px;margin:0}.cf-f textarea{height:110px;padding:8px 10px;resize:vertical;line-height:1.6}.cf-f.span2{grid-column:span 2}.cf-unit{display:flex;align-items:center;gap:6px;font-size:13px}.cf-unit input{width:70px;text-align:right}
.cf-f.ai{background:#f3effd;outline:1px dashed #b9a5f1;outline-offset:0}.ai-chip{display:inline-block;background:#6d4ad8;color:#fff;font-size:10px;font-style:normal;font-weight:800;border-radius:4px;padding:1px 5px;line-height:1.4;letter-spacing:.3px}
.cr-row{display:flex;gap:6px;flex-wrap:wrap}.cr-row.wrap .cr{margin-bottom:2px}.cr,.cc{display:inline-flex;align-items:center;gap:5px;border:1px solid #d6e0e8;border-radius:999px;padding:5px 11px;font-size:12.5px;cursor:pointer;background:#fff;user-select:none;transition:.12s}.cr input,.cc input{margin:0;accent-color:var(--pri)}.cr:hover,.cc:hover{border-color:var(--pri-line);background:#f6faff}.cr.on,.cc.on{background:var(--pri);border-color:var(--pri);color:#fff}.cc.on{background:#1e5f94;border-color:#1e5f94}.cf-f .cr-text,.cf-f .cc-text,.cr-text,.cc-text{border:0!important;border-bottom:1px solid currentColor!important;border-radius:0!important;background:transparent!important;width:96px!important;font-size:12px!important;padding:0 4px!important;color:inherit;height:20px!important}.cr-text::placeholder,.cc-text::placeholder{color:inherit;opacity:.6}
.cf-count{display:block;text-align:right;color:var(--muted);font-size:11px;margin-top:3px}
.cf-cat{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fcfdfe}.cf-cat>b{display:block;font-size:13px;margin-bottom:8px;color:var(--pri-dark)}.cf-cat-items{display:flex;flex-wrap:wrap;gap:6px}.cf-cat-items.results .cc{border-radius:8px}.cf-item{display:flex;flex-direction:column;gap:4px}.cf-item.has-sub{width:100%}.cf-sub{display:flex;gap:4px;flex-wrap:wrap;padding-left:22px}.cc.small{padding:3px 9px;font-size:12px;border-style:dashed}.cc.small.on{border-style:solid}
.cf-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;border-top:1px solid var(--line);background:#f8fafc;flex-wrap:wrap}.btn.ai{background:linear-gradient(90deg,#6d4ad8,#8a63f0);border-color:#6d4ad8;color:#fff;font-weight:700}.btn.ai:hover{filter:brightness(1.06)}
@media(max-width:1200px){.cf-grid.g4{grid-template-columns:repeat(2,1fr)}.cf-grid.g3{grid-template-columns:1fr}}

.consult-item{display:grid!important;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.consult-item .tags .badge{font-size:11px}
.cf-head .badge.blue{background:#2f86c7}

/* ---- 색 강조 KPI 카드 ---- */
.kpi.kpi-tone{display:flex;gap:12px;align-items:center;border-left:4px solid var(--pri);background:linear-gradient(90deg,#f7fbff,#fff)}.kpi.kpi-tone .kpi-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:0 0 40px;background:var(--pri-soft);color:var(--pri)}.kpi.kpi-tone .kpi-ic svg{width:20px;height:20px}.kpi.kpi-tone small{font-size:12px}.kpi.kpi-tone b{font-size:19px;letter-spacing:-.3px}.kpi.kpi-tone em{display:block;font-style:normal;font-size:11.5px;color:var(--muted);margin-top:2px}
.kpi.kpi-tone.navy{border-color:var(--navy)}.kpi.kpi-tone.navy .kpi-ic{background:#e6edf5;color:var(--navy)}.kpi.kpi-tone.orange{border-color:var(--orange);background:linear-gradient(90deg,#fff8f1,#fff)}.kpi.kpi-tone.orange .kpi-ic{background:var(--orange-soft);color:var(--orange)}.kpi.kpi-tone.orange b{color:var(--orange)}.kpi.kpi-tone.green{border-color:var(--green);background:linear-gradient(90deg,#f3fbf6,#fff)}.kpi.kpi-tone.green .kpi-ic{background:var(--green-soft);color:var(--green)}.kpi.kpi-tone.red{border-color:var(--red);background:linear-gradient(90deg,#fff5f5,#fff)}.kpi.kpi-tone.red .kpi-ic{background:var(--red-soft);color:var(--red)}.kpi.kpi-tone.red b{color:var(--red)}

.ai-lock-banner{display:flex;gap:12px;align-items:center;background:linear-gradient(90deg,#fff8e9,#fff);border:1px solid #f1ddb1;border-radius:var(--radius-s);padding:12px 14px;margin-bottom:12px;color:#5b4a14}.ai-lock-banner span{font-size:22px}.ai-lock-banner small{color:#7a6a3a}
.ai-locked{opacity:.55;pointer-events:none;user-select:none;filter:grayscale(.25)}

.whats-new{background:linear-gradient(100deg,#0f3d63,#1b6ca8 70%,#2e9bc2);color:#fff;border-radius:var(--radius);padding:16px 18px;margin-bottom:14px;box-shadow:0 10px 30px rgba(27,108,168,.25)}.wn-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.wn-head b{font-size:16px}.wn-head .link-btn{margin-left:auto;color:#dbeaf7}.wn-tag{background:#df3f4a;color:#fff;font-size:11px;font-weight:800;border-radius:999px;padding:3px 9px;letter-spacing:.2px}
.wn-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.wn-item{display:block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:10px;padding:10px 12px;color:#fff;text-decoration:none;transition:.15s}.wn-item:hover{background:rgba(255,255,255,.22);transform:translateY(-1px)}.wn-item b{display:block;font-size:13.5px;margin-bottom:2px}.wn-item small{display:block;font-size:11.5px;color:#dbeaf7;line-height:1.4}
@media(max-width:1100px){.wn-grid{grid-template-columns:repeat(2,1fr)}}
/* 2차 수정: 지출 증빙 내역서 목록 · 회계원장/항목분개장 화면 양식 */
.evsheet-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}.evsheet-list li{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:#fff}.evsheet-list li>b{width:22px;height:22px;border-radius:50%;background:var(--pri);color:#fff;display:grid;place-items:center;font-size:11px;flex:0 0 auto}.evsheet-list li>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:12.5px}.evsheet-list li small{color:var(--muted);font-size:11.5px}.evsheet-list li small em{font-style:normal;color:var(--orange)}
.st-sheet.wide{max-width:860px;padding:22px 16px;overflow-x:auto}.st-table.ledger td,.st-table.journal td{padding:4px;height:24px;font-size:inherit;white-space:nowrap}.st-table.ledger th,.st-table.journal th{background:#eef3f7;font-size:.96em;padding:5px 4px;white-space:nowrap}.st-table.ledger td small,.st-table.journal td small{font-size:.94em}.st-table.ledger .badge,.st-table.journal .badge{font-size:.88em;padding:1px 5px;gap:3px}.st-table.wrap td.w{white-space:normal;word-break:keep-all;overflow-wrap:anywhere}.st-table.ledger tr.in td:nth-child(4),.st-table.ledger tr.in td:nth-child(5),.st-table.ledger tr.in td:nth-child(6){background:#e9ecef}.st-table.ledger tr.first td{border-top:2px solid #2f9e44}.st-head small mark{background:#e9ecef;color:var(--ink-2);padding:0 4px;border-radius:3px}
.st-table.journal tr.hs td{background:#f1f5f9}.st-table.journal tr.tot td{background:#dbe7f1;font-weight:800}.st-table.journal tr.fin td{background:#1b4f7a;color:#fff;font-weight:800}

/* ---- 통계 메뉴(2026-11-03) ---- */
.stat-filter{display:grid;gap:8px}.stat-filter .lbl{font-size:12px;font-weight:700;color:var(--ink-2)}.stat-filter input[type=date],.stat-filter input[type=text],.stat-filter input:not([type]){height:36px;border:1px solid #cfdbe4;border-radius:9px;padding:0 10px}.stat-filter select{height:36px;border:1px solid #cfdbe4;border-radius:9px;padding:0 10px;background:#fff}
.kpi .kpi-sub{font-size:11.5px;margin-top:2px;white-space:normal;line-height:1.4}.kpi b em{font-style:normal;font-size:13px;margin-left:3px;color:var(--muted);font-weight:700}.kpi-sub .up{color:var(--green);font-weight:800}.kpi-sub .down{color:var(--red);font-weight:800}
.chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--ink-2);padding:4px 2px 0}.chart-legend i{display:inline-block;width:12px;height:10px;border-radius:3px;vertical-align:middle;margin-right:5px}
.bar-row.rank{grid-template-columns:200px 1fr 56px}.bar-row.rank span b{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--navy);color:#fff;font-size:11px;margin-right:4px}.bar-row.rank span small{font-size:11px}
.sheet-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}.sheet-title b{font-size:15px}.sheet-title .legend-note{margin-left:auto;font-size:12px;color:var(--muted);display:flex;gap:10px;align-items:center}.sw{display:inline-block;width:12px;height:12px;border-radius:3px;border:1px solid #8a98a6;vertical-align:middle;margin-right:4px}.sw.yel{background:#fff2cc}.sw.gray{background:#ccffcc}.sw.tot{background:#ccf2ff}
.stat-sheet{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}.stat-sheet .st-table{font-size:12.5px}.st-table.compact th,.st-table.compact td{padding:4px 7px;height:26px;border-color:#b9c4cf}.st-table.compact th{background:#e3f4ff;font-size:11.5px;line-height:1.3;white-space:nowrap}.st-table.compact th small{font-weight:600;color:#4b5c6b}
.st-table tr.hl td{background:#fff8dc}.st-table tr.hl td.hl,.st-table td.hl{background:#ffe9a8;font-weight:800}.st-table td.sub{background:#f1f6fb}.st-table td.tot2{background:#e5f1fb}.st-table.compact tr.tot td{background:#ccf2ff}.st-table.compact tr.gs td{background:#f0fbf2;font-weight:600}
.st-table td.l{text-align:left}.st-table td.nowrap,.st-table th.nowrap{white-space:nowrap}.st-table th.sep,.st-table td.sep{border-top:0;border-bottom:0;background:#fff;width:8px;padding:0}
.st-table.wide th.sticky,.st-table.wide td.sticky{position:sticky;left:0;z-index:2;background:#fff;box-shadow:1px 0 0 #b9c4cf}.st-table.wide th.sticky{background:#e3f4ff;z-index:3}.st-table.wide tr.hl td.sticky{background:#fff8dc}.st-table.wide tr.tot td.sticky{background:#ccf2ff}.st-table.wide td{min-width:44px}
.st-table.sheet1 td{white-space:nowrap}.st-table.sheet1 td.g1{background:#f4f9ff}.st-table.sheet1 td.g2{background:#f7f3fb}.st-table.sheet1 td.g3{background:#f1faf4}.st-table.sheet1 td.g4{background:#fff7ee}.st-table.sheet1 th.date{min-width:92px}
.ratio{display:flex;align-items:center;gap:8px;min-width:160px}.ratio i{display:block;height:10px;border-radius:5px;background:var(--pri);min-width:2px;flex:0 0 auto;max-width:calc(100% - 52px)}.ratio span{font-size:12px;font-variant-numeric:tabular-nums;color:var(--ink-2);min-width:44px;text-align:right}
.st-table.list td.wide{min-width:260px;max-width:520px;white-space:normal}.file-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;margin:2px 4px 2px 0;border:1px solid var(--line);border-radius:999px;background:#f7fafc;font-size:11.5px;color:var(--pri);text-decoration:none;white-space:nowrap}.file-chip .x{border:0;background:none;color:var(--red);cursor:pointer;font-size:14px;line-height:1;padding:0 2px}.file-list{margin-top:6px}
.f .req{color:var(--red);font-weight:800}.f.wide{grid-column:1/-1}
@media(max-width:1100px){#stHero .grid.g5{grid-template-columns:repeat(2,1fr)}.grid.g2[style*="1.6fr"]{grid-template-columns:1fr!important}.bar-row.rank{grid-template-columns:140px 1fr 50px}}
@media print{.stat-filter,.tabs,#stActions,.menu-item,.topbar{display:none!important}.stat-sheet{overflow:visible;border:0}}
.st-table.compact td.c.b{white-space:nowrap}.st-table.wide td.sticky{min-width:100px;white-space:nowrap;text-align:left}.st-table.wide td.sticky a{color:var(--pri);font-weight:800;text-decoration:none}.st-table.wide td.sticky a:hover{text-decoration:underline}

/* ---- 통계 표: 엑셀 모양 대신 관리자 공통 스타일(흰 바탕·연한 헤더·얇은 선·파랑 강조) ---- */
.stat-sheet{border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}
.stat-sheet .st-table.compact th,.stat-sheet .st-table.compact td{border:0;border-bottom:1px solid var(--line-2);height:34px;padding:7px 10px}
.stat-sheet .st-table.compact th{background:#f6f8fb;color:#4b5c6b;font-weight:700;font-size:12px;letter-spacing:-.1px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1;text-align:center}
.stat-sheet .st-table.compact thead tr:first-child th[colspan]{background:#eef3f8;color:var(--navy);font-weight:800;border-left:1px solid #fff;border-right:1px solid #fff}
.stat-sheet .st-table.compact thead tr:nth-child(2) th,.stat-sheet .st-table.compact thead tr:nth-child(3) th{top:34px}
.stat-sheet .st-table.compact td{color:var(--ink);font-variant-numeric:tabular-nums}
.stat-sheet .st-table.compact td.c.b{color:var(--ink-2);background:#fbfcfd;text-align:left;padding-left:14px}
.stat-sheet .st-table.compact tbody tr:hover td{background:#f8fbfe}
.stat-sheet .st-table.compact tr.gs td{background:#fff;color:var(--muted);font-weight:500}
.stat-sheet .st-table.compact tr.hl td{background:var(--pri-soft);color:var(--ink);font-weight:700}.stat-sheet .st-table.compact tr.hl td.c.b{color:var(--pri);box-shadow:inset 3px 0 0 var(--pri)}
.stat-sheet .st-table.compact td.hl{background:#d9e9f7;color:var(--pri-dark);font-weight:800}
.stat-sheet .st-table.compact tr.tot td{background:#fff;font-weight:800;border-top:2px solid #c9d6e2;border-bottom:0;color:var(--navy)}.stat-sheet .st-table.compact tr.tot td.c.b{background:#fff}
.stat-sheet .st-table.compact td.sub{background:#fafcfe;font-weight:800;color:var(--navy);border-left:1px solid var(--line)}.stat-sheet .st-table.compact td.tot2{background:#eef3f8;font-weight:800;color:var(--navy);border-left:1px solid var(--line);border-right:1px solid var(--line)}
.stat-sheet .st-table.compact td.num{text-align:right}.stat-sheet .st-table.compact td.num .muted{color:#c3ccd5}
.stat-sheet .st-table.wide th.sticky,.stat-sheet .st-table.wide td.sticky{box-shadow:1px 0 0 var(--line)}.stat-sheet .st-table.wide th.sticky{background:#f6f8fb;z-index:3}.stat-sheet .st-table.wide tr.hl td.sticky{background:var(--pri-soft)}.stat-sheet .st-table.wide tr.tot td.sticky{background:#fff}
.stat-sheet .st-table.sheet1 td.g1,.stat-sheet .st-table.sheet1 td.g2,.stat-sheet .st-table.sheet1 td.g3,.stat-sheet .st-table.sheet1 td.g4{background:transparent}
.stat-sheet .st-table.sheet1 th:nth-child(11),.stat-sheet .st-table.sheet1 td:nth-child(11),.stat-sheet .st-table.sheet1 th:nth-child(18),.stat-sheet .st-table.sheet1 td:nth-child(18),.stat-sheet .st-table.sheet1 th:nth-child(23),.stat-sheet .st-table.sheet1 td:nth-child(23),.stat-sheet .st-table.sheet1 th:nth-child(28),.stat-sheet .st-table.sheet1 td:nth-child(28),.stat-sheet .st-table.sheet1 th:nth-child(31),.stat-sheet .st-table.sheet1 td:nth-child(31){border-left:1px solid var(--line)}
.stat-sheet .st-table.sheet1 td{color:var(--ink-2)}.stat-sheet .st-table.sheet1 td:nth-child(2){font-weight:700;color:var(--ink)}
.stat-sheet .st-table.compact th.sep,.stat-sheet .st-table.compact td.sep{background:#fff;border-bottom:0;width:10px}
.stat-sheet .st-table.list td{vertical-align:middle}.stat-sheet .st-table.list td.wide{color:var(--ink);font-weight:600}.stat-sheet .st-table.list td .btn.small{height:26px;padding:0 9px;font-size:11.5px}
.sheet-title .legend-note .sw{border:1px solid var(--line)}.sw.yel{background:var(--pri-soft)}.sw.gray{background:#fff}.sw.tot{background:#fff;border-top:2px solid #c9d6e2!important;border-radius:0}
.ratio i{height:8px;border-radius:4px}

.stat-caption{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;font-size:13px;color:var(--ink-2)}.stat-caption b{font-size:15px;color:var(--ink);letter-spacing:-.2px}.stat-caption .chip{height:26px}
.stat-empty{background:#fff8e6;border:1px solid #f1dc9c;color:#6b5311;border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:13px}.stat-empty .link-btn{font-size:13px}
.st-table tr.clickable{cursor:pointer}.st-table tr.clickable:hover td{background:#f3f8fd}
.btn.is-busy{opacity:.7;cursor:progress}
@media(max-width:640px){#stHero .grid.g5{grid-template-columns:1fr}.stat-filter .filters{gap:6px}.stat-filter input[type=date]{flex:1 1 130px}.grid.g3{grid-template-columns:1fr}.bar-row.rank{grid-template-columns:120px 1fr 44px}}
.sheet-title .legend-note b{font-size:12px}.sheet-title .legend-note .sw{display:inline-block;width:12px;height:12px;border-radius:3px}@media(max-width:640px){.sheet-title .legend-note{display:none}}

/* 자동 해설 카드 + 지도 */
.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.insight{display:flex;gap:10px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;box-shadow:var(--shadow);border-left:4px solid var(--navy);min-width:0}
.insight i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 34px;background:#e6edf5;color:var(--navy)}.insight i svg{width:18px;height:18px}.insight b{display:block;font-size:13.5px;line-height:1.4;letter-spacing:-.2px;color:var(--ink)}.insight p{margin:4px 0 0;font-size:12.5px;line-height:1.55;color:var(--ink-2)}.insight p a{font-weight:700;white-space:nowrap}
.insight.up{border-left-color:var(--green)}.insight.up i{background:var(--green-soft);color:var(--green)}.insight.down{border-left-color:var(--red)}.insight.down i{background:var(--red-soft);color:var(--red)}.insight.warn{border-left-color:var(--orange)}.insight.warn i{background:var(--orange-soft);color:var(--orange)}
.st-map{height:520px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f3f6f9;position:relative;z-index:0}.map-loading{display:grid;place-items:center;height:100%;font-size:13px}
.leaflet-container{font-family:var(--font)}.map-lbl{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:6px;padding:1px 6px;font-size:11.5px;font-weight:800;color:var(--navy);box-shadow:var(--shadow)}.map-lbl:before{display:none}.map-pop{font-size:12.5px;line-height:1.6}.map-pop b{font-size:13.5px}.leaflet-popup-content-wrapper{border-radius:10px}
@media(max-width:1100px){.insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.g2[style*="1.5fr"]{grid-template-columns:1fr!important}}@media(max-width:640px){.insight-grid{grid-template-columns:1fr}.st-map{height:300px}}

/* ---- 2026-11-04 이나현 수정: ① 년통계·지역통계 한 화면 맞춤 ② 표 구분선·음영 ---- */
.stat-sheet .st-table.compact th,.stat-sheet .st-table.compact td{border-right:1px solid #e6ebf0}.stat-sheet .st-table.compact th:last-child,.stat-sheet .st-table.compact td:last-child{border-right:0}
.stat-sheet .st-table.sheet1 tbody tr:nth-child(even) td,.stat-sheet .st-table.list tbody tr:nth-child(even) td{background:#f5f8fb}.stat-sheet .st-table.sheet1 th{background:#dbe8f5;color:var(--navy)}.stat-sheet .st-table.sheet1 td{border-bottom:1px solid #dfe6ed}
.stat-sheet .st-table.wide tbody tr:nth-child(even) td{background:#f8fafc}.stat-sheet .st-table.wide tr.hl td{background:var(--pri-soft)}
/* 년통계·지역통계: 열 37개가 한 화면에 들어오도록 글자·여백을 줄이고 머리글을 줄바꿈 */
.stat-sheet.fit{overflow:visible}.stat-sheet.fit .st-table.wide{table-layout:fixed;width:100%;font-size:11px}
.stat-sheet.fit .st-table.wide th,.stat-sheet.fit .st-table.wide td{padding:3px 2px;height:auto;min-width:0}
.stat-sheet.fit .st-table.wide thead tr:nth-child(2) th{white-space:normal;word-break:keep-all;overflow-wrap:anywhere;line-height:1.2;font-size:10px;font-weight:700;vertical-align:middle;height:62px;padding:2px 1px}
.stat-sheet.fit .st-table.wide thead tr:nth-child(2) th{top:30px}.stat-sheet.fit .st-table.wide thead tr:first-child th{height:30px;font-size:11px}
.stat-sheet.fit .st-table.wide td.num{text-align:center;padding:3px 1px;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.stat-sheet.fit .st-table.wide th.sticky,.stat-sheet.fit .st-table.wide td.sticky{position:static;width:58px;padding-left:6px;font-size:11px}
.stat-sheet.fit .st-table.wide td.sticky a{white-space:normal;line-height:1.15;display:block}
.stat-sheet.fit .st-table.wide td.sub,.stat-sheet.fit .st-table.wide td.tot2{width:34px}
.stat-compact #stHero .grid.g5{gap:8px}.stat-compact .kpi{padding:8px 12px}.stat-compact .kpi b{font-size:17px}.stat-compact .kpi .kpi-sub{display:none}.stat-compact .kpi-ic{width:30px;height:30px;flex-basis:30px}.stat-compact .stat-caption{margin-bottom:6px}
@media(max-width:1280px){.stat-sheet.fit{overflow:auto}.stat-sheet.fit .st-table.wide{table-layout:auto;min-width:1180px}}
.stat-sheet.fit .st-table.wide td{padding:2px 1px;line-height:1.35}.stat-sheet.fit .st-table.wide thead tr:nth-child(2) th{height:56px}.stat-compact .sheet-title{margin-bottom:6px}.stat-compact .sheet-title .legend-note{display:none}.stat-compact .panel-body{padding-top:10px}.stat-compact .tabs{margin-bottom:8px}

/* 종이 상담카드 사진 인식(OCR, 2026-11-10) */
.btn.ocr{border-color:#e3b765;color:#8a5a00;background:#fff9ec}.btn.ocr:hover{background:#fff1d6}
.cf-f.ocr,.cf-cat-items.ocr,div.ocr{background:#fff9ec;outline:1px dashed #e3b765;outline-offset:0;border-radius:8px}.cf-f.ocr.check,.cf-cat-items.ocr.check,div.ocr.check{background:#fff3da;outline:1.5px solid #e09a1f}
div.ocr{padding:6px}.cf-cat-items.ocr{padding:6px}
.ocr-chip{display:inline-block;background:#d08a0c;color:#fff;font-size:10px;font-style:normal;font-weight:800;border-radius:4px;padding:1px 5px;line-height:1.4;letter-spacing:.2px;margin-left:5px;vertical-align:1px}.ocr-chip.check{background:#c2410c}
.ocr-crop{display:flex;gap:4px;margin-top:5px;align-items:center;max-width:100%}.ocr-crop img{max-width:100%;max-height:150px;border:1px solid #e6cf9f;border-radius:6px;background:#fff;display:block}.ocr-crop img+img{max-width:32%}.ocr-crop.wide{display:block}.ocr-crop.wide img{max-height:none;width:100%}.ocr-note span.ocr-chip{display:inline-block}
.cc .ocr-crop,.cf-item .ocr-crop{display:inline-flex;margin:0 0 0 6px;vertical-align:middle}.cc .ocr-crop img{max-height:28px}
.ocr-note{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;background:#fff9ec;border:1px solid #edd39a;border-radius:10px;padding:12px 14px;margin:0 0 12px;font-size:13.5px;line-height:1.65;color:#5f4300}.ocr-note b{display:block;font-size:14px;color:#6b4a00}.ocr-note span{display:block}.ocr-note em{display:block;font-style:normal;color:#b3261e;font-weight:700;margin-top:2px}.ocr-note-tools{display:flex;gap:6px;flex:0 0 auto}
@media(max-width:760px){.ocr-note{flex-direction:column}}

.gal-admin-thumbs{display:flex;flex-wrap:wrap;gap:6px}.gal-admin-thumbs img{width:110px;height:82px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.ev-preview{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fafcfd}

/* 11/11 상담소 의견 반영 */
.cf-consent{display:flex;flex-direction:column;gap:3px}.cf-consent small{color:var(--muted);font-size:12px}.cf-consent small.warn{color:#b45309;font-weight:700}
.cf-phrases{margin-top:10px;border:1px dashed var(--line);border-radius:8px;padding:8px 10px;background:#fbfdff}.cf-phrase-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.cf-phrase-head small{color:var(--muted);font-size:12px}.cf-phrase-head .link-btn{margin-left:auto}
.cf-phrase-list{display:flex;flex-wrap:wrap;gap:6px}.cf-phrase-list .cc{font-size:12.5px}
.badge-link{border:0;cursor:pointer;font:inherit}.badge-link:hover{text-decoration:underline}
.btn.small.danger-outline{color:var(--red);border-color:#f3c4c4;background:#fff}
.ex-guide>summary{cursor:pointer;padding:12px 16px;list-style:none}.ex-guide>summary::-webkit-details-marker{display:none}.ex-guide>summary:before{content:'▸ ';color:var(--pri)}.ex-guide[open]>summary:before{content:'▾ '}
.ex-steps{margin:0;padding:0 16px 14px 34px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ex-steps li{font-size:12.5px;line-height:1.55;color:#3d4c59}.ex-steps li b{display:block;color:var(--pri-dark,#123f67);margin-bottom:2px}
@media (max-width:1100px){.ex-steps{grid-template-columns:1fr 1fr}}

/* ===== 2026-11-12 UI 수정(나현 화면 수정사항): 목록 우선 + 상세·등록 팝업, 대시보드 재배치, 통계·활동 정리 ===== */
.pop{position:fixed;inset:0;background:rgba(10,25,40,.45);display:flex;align-items:flex-start;justify-content:center;padding:24px 16px;z-index:250;animation:fade .15s}
.pop-dialog{position:relative;width:min(980px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:var(--shadow-lg);animation:rise .18s;overflow:hidden}
.pop[data-size=md] .pop-dialog{width:min(860px,100%)}.pop[data-size=xl] .pop-dialog{width:min(1320px,100%)}
#popBody{overflow:auto;overscroll-behavior:contain;min-height:120px}
.pop-panel{border:0;border-radius:0;box-shadow:none}.pop-panel .detail-head{padding-right:58px;position:sticky;top:0;z-index:4}
.pop-close{position:absolute;right:12px;top:12px;z-index:6;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:22px;line-height:1;color:var(--muted);cursor:pointer}.pop-close:hover{background:var(--bg);color:var(--ink)}
@media(max-width:700px){.pop{padding:0}.pop-dialog{max-height:100vh;height:100vh;border-radius:0}}
.list-page .list-item{padding:12px 18px}
.list-table-wrap{overflow:auto}.list-table td{vertical-align:middle;padding:10px 12px}.list-table tbody tr{cursor:pointer}.list-table tbody tr:hover td{background:#f5f9fd}.list-table tbody tr.active td{background:var(--pri-soft,#eaf4fb)}
.list-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--ink-2);white-space:nowrap}.list-table .nowrap{white-space:nowrap}
.list-table .lt-title{display:block;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:520px}.list-table .lt-sub{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.dash-filter{margin-bottom:16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;box-shadow:var(--shadow)}
.dash-sec{font-size:17px;letter-spacing:-.3px;margin:6px 0 10px;color:var(--ink);display:flex;align-items:center;gap:8px}.dash-sec:before{content:"";width:4px;height:17px;border-radius:2px;background:var(--pri)}
.dash-even{align-items:stretch}.dash-even>.panel{display:flex;flex-direction:column}.dash-even>.panel>.panel-body{flex:1}
.ex-steps{list-style:none;counter-reset:exs;padding:0 16px 16px}.ex-steps li{counter-increment:exs;background:#f7fafc;border:1px solid var(--line);border-radius:12px;padding:12px 14px}.ex-steps li>b{display:flex;align-items:center;gap:8px;font-size:13.5px;margin-bottom:6px}.ex-steps li span b{display:inline;margin:0;font-size:inherit;color:var(--ink)}.ex-steps li>b:before{content:counter(exs);display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--pri);color:#fff;font-size:12px;flex:0 0 22px}.ex-steps li span{display:block}
.ex-guide>summary small{margin-left:6px}
.stat-kpi3 .kpi{min-height:84px}.stat-compact #stHero .grid.g3{gap:8px}
.sum-top{align-items:stretch}.sum-top>.sec{display:flex;flex-direction:column;margin-bottom:0}.sum-top>.sec>.box{flex:1}.sum-side{max-height:330px;overflow:auto}
.wide-bars .bar-row.rank{grid-template-columns:minmax(220px,320px) 1fr 60px}
.insight-fold{margin-top:4px}.insight-fold>summary{cursor:pointer;list-style:none;padding:12px 16px;display:flex;align-items:center;gap:8px}.insight-fold>summary::-webkit-details-marker{display:none}.insight-fold .fold-hint{margin-left:auto;font-size:12px;color:var(--pri);font-weight:700}.insight-fold .fold-hint:after{content:" ▾"}.insight-fold[open] .fold-hint{font-size:0}.insight-fold[open] .fold-hint:before{content:"접기 ▴";font-size:12px}
.act-sum{grid-template-columns:minmax(320px,.9fr) minmax(360px,1.4fr);margin-bottom:12px;align-items:stretch}.act-sum.stack{grid-template-columns:1fr}.act-sum>.panel{display:flex;flex-direction:column}.act-sum>.panel>.panel-body{flex:1}
.act-chart-body{padding:10px 16px 8px;display:flex}.act-sum.stack .act-chart-body{height:170px}
.mbars{flex:1;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;min-height:120px;align-items:stretch}
.mbars .mb{display:flex;flex-direction:column;min-width:0}.mbars .tr{flex:1;display:flex;align-items:flex-end;justify-content:center;padding-top:16px;min-height:0}
.mbars .mb i{position:relative;display:block;width:min(34px,62%);background:#1b6ca8;border-radius:4px 4px 0 0}.mbars .mb.cur i{background:#123f67}
.mbars .mb em{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-style:normal;font-size:11px;font-weight:800;color:#2b3a48;padding-bottom:2px;white-space:nowrap}.mbars .mb small{font-size:11.5px;color:#5b6b79;border-top:1px solid var(--line);text-align:center;padding-top:4px}
@media(max-width:1100px){.act-sum{grid-template-columns:1fr}.wide-bars .bar-row.rank{grid-template-columns:160px 1fr 50px}}

/* 2026-11-16 상담카드 항목 수정: 지난 양식에만 있던 값(직종·조합원 수) 안내 */
.cf-old{margin:8px 0 0;padding:6px 10px;border-left:3px solid #c8d3dc;background:#f6f8fa;border-radius:0 6px 6px 0;font-size:12.5px;color:#4a5a68}.cf-old small{color:var(--muted)}

/* 통계 요약: 주요 상담 유형 | 월간 보고용 표를 좌우로(2026-11-18). 좁은 화면에서는 위아래로 */
.sum-pair>.sec{margin-bottom:0;min-width:0}.sum-pair .stat-sheet{overflow-x:auto}@media(max-width:1250px){.sum-pair{grid-template-columns:1fr!important}}

/* 꼭 채워야 하는 칸 강조(2026-11-19: 종사자 규모) */
.cf-f.need-hl input:not([type=radio]):not([type=checkbox]):not(.cr-text):not(.cc-text){background:#fffbe6;border-color:#e0b100}.cf-f.need-hl input:not([type=radio]):not([type=checkbox]):not(.cr-text):not(.cc-text):focus{background:#fff}
.mark.orange{color:#c95d08}

/* ===== 2026-11-23: 업무 현황 간소화 · 방문상담 신청 · 교육예약 관리 ===== */
.seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:14px;max-width:100%;flex-wrap:wrap}
.seg button{border:0;border-right:1px solid var(--line);background:#fff;height:38px;padding:0 20px;font-size:13px;font-weight:700;color:var(--ink-2);cursor:pointer;white-space:nowrap}
.seg button:last-child{border-right:0}
.seg button:hover{background:var(--bg)}
.seg button.active{background:var(--navy);color:#fff}
.seg button:focus-visible{outline:2px solid var(--pri);outline-offset:-2px}
.svg-chart.vbars{width:100%;height:auto;max-height:340px;display:block}
.visit-split{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}
.visit-split.open{grid-template-columns:minmax(0,1.65fr) minmax(360px,1fr)}
.visit-detail{position:sticky;top:70px;max-height:calc(100vh - 86px);display:flex;flex-direction:column;overflow:hidden}
.visit-detail.hidden{display:none}
.visit-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.visit-head h3{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.visit-head .icon-btn{border:0;font-size:22px;line-height:1;width:32px;height:32px}
.visit-body{padding:14px 16px 16px;overflow:auto}
.visit-body h4{margin:18px 0 8px;font-size:14.5px}
.table.kv th{width:108px;text-align:left;background:var(--bg);font-weight:700;color:var(--ink-2);vertical-align:top;white-space:nowrap}
.table.kv td{vertical-align:top}
.table.kv input,.table.kv select,.table.kv textarea{width:100%;border:1px solid #cfdbe4;border-radius:8px;padding:7px 9px;font-size:13px;font-family:inherit;background:#fff}
.table.kv textarea{height:84px;resize:vertical}
.table.kv .help{display:block;margin-top:4px}
.visit-content{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:9px 11px;max-height:180px;overflow:auto;line-height:1.6}
.visit-note{margin:12px 0;background:var(--bg);border-radius:8px;padding:9px 12px;font-size:12.5px;color:var(--ink-2)}
.visit-actions{display:flex;justify-content:flex-end;gap:8px}
.visit-actions .btn{min-width:96px}
.list-table tbody tr.active td{background:#eaf4fb}
.visit-split.open .visit-table td,.visit-split.open .visit-table th{padding-left:9px;padding-right:9px}
.nowrap{white-space:nowrap}
@media(max-width:1180px){.visit-split.open{grid-template-columns:1fr}.visit-detail{position:static;max-height:none}}
