/* 디자인 토큰은 아래 "2026 모던 ERP 공통 셸" :root 한 곳에서만 정의한다. */
@font-face{font-family:"Pretendard Variable";src:url("/assets/fonts/PretendardVariable.woff2?v=1.3.9") format("woff2-variations");font-weight:45 920;font-style:normal;font-display:swap}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 "Pretendard Variable",Pretendard,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--accent);text-decoration:none}button,.button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #89a2ff;outline-offset:2px}.topbar{position:fixed;z-index:20;top:0;left:0;right:0;height:64px;display:flex;align-items:center;gap:20px;padding:0 24px;background:var(--paper);border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;min-height:44px;font-weight:800;color:var(--ink);letter-spacing:-.03em}.account{margin-left:auto;display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}.account form{margin:0}.account a,.account .link{display:inline-flex;align-items:center;min-height:44px}.link{border:0;background:none;color:var(--accent);padding:0 4px;cursor:pointer}.menu{display:none;border:0;background:none;font-size:24px}.sidebar{position:fixed;z-index:10;top:64px;bottom:0;left:0;width:220px;background:var(--nav);padding:20px 12px}.sidebar a{display:block;color:#c7cfdf;padding:10px 14px;border-radius:8px;margin-bottom:4px}.sidebar a:hover{background:#202b43;color:#fff}.content{margin:64px 0 0 220px;padding:32px;max-width:1600px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.page-head h1{margin:0;font-size:28px;letter-spacing:-.03em}.eyebrow{margin:0 0 4px;color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.12em}.muted{color:var(--muted)}.actions{display:flex;gap:8px}.button,button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #ccd3df;border-radius:8px;background:#fff;color:var(--ink);padding:8px 12px;cursor:pointer}.primary{border-color:var(--accent);background:var(--accent);color:#fff}.danger{color:var(--danger-600)}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.cards article,.panel{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 1px 2px #1018280a}.cards span{color:var(--muted)}.cards strong{display:block;font-size:28px;margin-top:8px}.grid-two{display:grid;grid-template-columns:2fr 1fr;gap:20px}.panel{margin-bottom:20px}.panel h2{font-size:16px;margin:0 0 14px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:680px;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.03em}.mono{font-family:ui-monospace,monospace}.badge{display:inline-block;padding:3px 8px;border-radius:999px;background:#eef2ff;color:var(--info-600);font-size:12px}.filters{display:flex;gap:8px;margin-bottom:16px}.filters input{max-width:360px}.stack{display:grid;gap:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.form-grid button{align-self:end}label,.form-grid>div,.stack>div{display:grid;gap:6px;font-weight:650}input,select,textarea{width:100%;min-height:44px;border:1px solid #ccd3df;border-radius:8px;background:#fff;padding:10px;color:var(--ink)}textarea{resize:vertical}.form-panel{max-width:900px}.form-panel summary{font-weight:750;cursor:pointer}.helptext{display:block;color:var(--muted);font-size:12px}.errorlist{color:var(--danger-600);margin:4px 0;padding-left:20px}.notice{border-radius:10px;padding:12px 14px;margin-bottom:16px;background:var(--success-50);color:var(--success-600)}.notice.error{background:var(--danger-50);color:var(--danger-600)}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(145deg,#0b1020 0 58%,#1d2d57 58% 61%,#111a31 61%)}.login-card{width:min(460px,100%);background:#fff;border-radius:18px;padding:34px;box-shadow:0 24px 80px #0005}.login-card h1{margin:0}.login-card .muted{margin:6px 0 24px}.auth-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:13px}.auth-links a{display:inline-flex;align-items:center;min-height:44px}.auth-note{background:#f8fafc;color:var(--ink);border:1px solid var(--line)}.account-result{margin:0 0 18px;padding:18px;border-left:4px solid var(--accent);background:#eef2ff;font-weight:750}.account-summary{max-width:840px}.account-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:20px 0 0}.account-summary dl div{padding:14px 0;border-top:1px solid var(--line)}.account-summary dt{color:var(--muted);font-size:12px;font-weight:700}.account-summary dd{margin:4px 0 0;font-weight:700}.account a{color:inherit}.account a:hover{color:var(--accent)}@media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.menu{display:block}.account>a{display:none}.sidebar{transform:translateX(-100%);transition:transform .2s}.nav-open .sidebar{transform:none}.content{margin-left:0;padding:20px}.form-grid{grid-template-columns:1fr}}@media(max-width:520px){.cards{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.content{padding:16px}.topbar{padding:0 16px}.login-card{padding:24px}.account-summary dl{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.14s;animation-timing-function:ease-out}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}}

[hidden]{display:none!important}
.leave-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-top:12px}.leave-calendar-grid label{display:flex;align-items:center;gap:5px;padding:8px;border:1px solid var(--line);border-radius:8px;font-size:12px}.leave-calendar-grid input{width:auto;min-height:20px}.leave-calendar-panel{max-width:1100px}
.account-page{width:min(1080px,100%);margin:0 auto}
.account-page-head{margin-bottom:24px}
.account-page-lead{margin:7px 0 0;color:var(--muted)}
.account-overview{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr);gap:16px;margin-bottom:16px}
.account-identity{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:20px;min-height:220px;overflow:hidden;padding:28px;border-radius:16px;background:linear-gradient(135deg,#101728 0%,#17264a 72%,#24469e 100%);color:#fff;box-shadow:0 14px 36px #1018281f}
.account-identity::after{position:absolute;right:-12px;bottom:-44px;color:#ffffff0d;font:900 112px/1 system-ui,sans-serif;letter-spacing:-.08em;content:"IDWS";pointer-events:none}
.account-identity .account-avatar{position:relative;z-index:1;display:grid;width:76px;height:76px;place-items:center;border:1px solid #ffffff38;border-radius:24px;background:#ffffff17;color:#fff;font-size:30px;font-weight:800;box-shadow:inset 0 1px 0 #ffffff26}
.account-identity-copy{position:relative;z-index:1;min-width:0}
.account-profile-label{margin:0 0 8px;color:#67728a;font:800 11px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}
.account-identity .account-profile-label{color:#aabbe9}
.account-identity h2{margin:0;font-size:30px;line-height:1.2;letter-spacing:-.04em}
.account-identity-copy>p:not(.account-profile-label){margin:7px 0 20px;color:#ced7eb}
.account-status{display:inline-flex;align-items:center;gap:8px;min-height:28px;padding:4px 10px;border:1px solid #ffffff24;border-radius:999px;background:#ffffff12;color:#e8edfa;font-size:12px;font-weight:700}
.account-status span{width:7px;height:7px;border-radius:50%;background:#59d69c;box-shadow:0 0 0 4px #59d69c1f}
.account-security{display:flex;min-height:220px;flex-direction:column;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 1px 2px #1018280a}
.account-security h2{margin:0;font-size:20px;letter-spacing:-.025em}
.account-security>p:not(.account-profile-label){margin:10px 0 22px;color:var(--muted);font-size:14px}
.account-security-action{justify-content:space-between;min-height:48px;margin-top:auto;border-color:var(--accent);background:var(--accent);color:#fff;font-weight:750}
.account-security-action:hover{background:#2949b8}
.account-security-action span{font-size:20px;line-height:1}
.account-page .account-summary{max-width:none}
.account-details{padding:26px}
.account-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px}
.account-section-head h2{margin:0;font-size:20px;letter-spacing:-.025em}
.account-section-head>p{margin:0;color:var(--muted);font-size:13px}
.account-page .account-data-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px;margin-top:22px}
.account-page .account-data-grid>div{min-width:0;padding:16px 0 12px;border-top:1px solid var(--line)}
.account-data-grid dt{color:var(--muted);font-size:12px;font-weight:700}
.account-data-grid dd{overflow-wrap:anywhere;margin:5px 0 0;color:var(--ink);font-size:15px;font-weight:750}
.account-help{margin:0;padding:0 4px;color:var(--muted);font-size:13px}
@media(max-width:760px){.account-overview{grid-template-columns:1fr}.account-identity,.account-security{min-height:auto}.account-page .account-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.account-page-head{margin-bottom:18px}.account-identity{grid-template-columns:1fr;gap:16px;padding:24px}.account-identity .account-avatar{width:62px;height:62px;border-radius:20px;font-size:25px}.account-identity h2{font-size:26px}.account-identity-copy>p:not(.account-profile-label){margin-bottom:16px}.account-security,.account-details{padding:22px}.account-section-head{align-items:flex-start;flex-direction:column;gap:7px}.account-page .account-data-grid{grid-template-columns:1fr}.account-help{padding:0}}
.panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.panel-head h2,.panel-head p{margin:0}.panel-head p{margin-top:4px}.ledger-cards strong{font-variant-numeric:tabular-nums}.ledger-status-value{font-size:20px!important}.ledger-page-size{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}.ledger-page-size select{width:auto;min-width:92px}.ledger-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}.ledger-pagination p{margin:0;color:var(--muted)}.ledger-pagination button:disabled{cursor:not-allowed;opacity:.45}.ledger-metric{font-variant-numeric:tabular-nums;font-weight:750;white-space:nowrap}.amount-positive{color:var(--success-600)}.amount-negative{color:var(--danger-600)}.ledger-policy>summary{cursor:pointer;font-weight:800}.ledger-policy>summary::marker{color:var(--accent)}.ledger-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0}.ledger-policy section+section{margin-top:20px}.ledger-policy-grid section+section{margin-top:0}.ledger-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.ledger-facts div{padding:12px;border:1px solid var(--line);border-radius:10px}.ledger-facts dt{color:var(--muted);font-size:12px;font-weight:700}.ledger-facts dd{margin:4px 0 0;font-weight:750}.ledger-documents{margin:0;padding-left:20px}.ledger-documents li{margin-bottom:8px}#balance-table th[scope=row],#ledger-body th{font-size:13px;text-transform:none;letter-spacing:0;color:var(--ink);white-space:nowrap}@media(max-width:760px){.panel-head{align-items:flex-start;flex-direction:column}.ledger-policy-grid{grid-template-columns:1fr}.ledger-pagination{align-items:flex-start;flex-direction:column}.ledger-facts{grid-template-columns:1fr}.ledger-page-size{width:100%}.ledger-page-size select{margin-left:auto}}
.skip-link{position:fixed;z-index:100;top:-60px;left:12px;padding:10px 16px;border-radius:0 0 8px 8px;background:#000;color:#fff}.skip-link:focus{top:0}.permission-fieldset{grid-column:1/-1;margin:0;border:1px solid var(--line);border-radius:10px;padding:14px}.permission-fieldset>legend{padding:0 6px;font-weight:750}.permission-options>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin-bottom:14px}.permission-group{min-width:0;margin:0;border:0;padding:0}.permission-group legend{padding:0 0 6px;font-weight:750}.permission-options label,.checkbox-field{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:500}.permission-options input,.checkbox-field input{width:auto;margin:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus{scroll-margin-top:80px;scroll-margin-bottom:24px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-color:#1d4ed8}.primary:focus-visible,.account-security-action:focus-visible{outline-color:#fff;box-shadow:0 0 0 5px #1d4ed8}.sidebar a:focus-visible,.skip-link:focus-visible{outline-color:#fff}@media(max-width:900px){.sidebar{visibility:hidden}.nav-open .sidebar{visibility:visible}.permission-options>div{grid-template-columns:1fr}}

.sidebar a[aria-current=page]{background:#263554;color:#fff;font-weight:750}
.leave-monthly-panel{padding:24px}
.leave-filter-grid{--filterbar-columns:140px 120px minmax(220px,1fr) auto;margin-bottom:16px}

.leave-filter-grid select{border-color:#98a2b3}
.leave-request-panel input,.leave-request-panel select,.leave-request-panel textarea{border-color:#98a2b3}
.leave-filter-grid button{min-width:88px}
.leave-monthly-status{margin:0 0 16px;color:var(--muted)}
.leave-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}
.leave-summary-cards article{padding:16px;border-top-width:3px}
.leave-summary-cards strong{font-size:24px}
.leave-summary-cards small{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.leave-summary-cards .leave-summary-granted{border-top-color:#3157d5}
.leave-summary-cards .leave-summary-used{border-top-color:#d97706}
.leave-summary-cards .leave-summary-remaining{border-top-color:#039855}
.leave-employee-name,.leave-employee-meta{display:block;text-transform:none;letter-spacing:0}
.leave-employee-name{color:var(--ink);font-size:14px}
.leave-employee-meta,.leave-entitlement-period{margin-top:2px;font-size:12px;font-weight:500;white-space:nowrap}
.leave-entitlement-period{display:block}
.leave-employee-meta+.leave-entitlement-period{margin-top:6px}
.leave-entitlement-period+.badge{margin-top:5px}
.leave-granted{color:#3157d5}
.leave-used{color:#b54708}
.leave-remaining{color:var(--success-600);font-size:16px}
.leave-adjustment{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:600}
.leave-monthly-value{display:block;margin-bottom:5px;font-variant-numeric:tabular-nums}
.leave-type-list{display:flex;flex-wrap:wrap;gap:6px}
.leave-type-chip{display:inline-flex;align-items:center;gap:3px;padding:5px 8px;border:1px solid #d8deea;border-radius:999px;background:#f8fafc;font-size:12px;white-space:nowrap}
.leave-status-ended{background:#f2f4f7;color:#475467}
#monthly-table{min-width:800px}
#monthly-table th:first-child{position:sticky;left:0;z-index:1;background:var(--paper)}
#monthly-table thead th:first-child{z-index:2;background:#f8fafc}
.leave-month-detail{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.leave-month-detail>summary,.leave-reference>summary,.leave-request-panel>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;font-weight:800}
.leave-month-detail>summary::marker,.leave-reference>summary::marker{color:var(--accent)}
.leave-month-detail .muted{margin:8px 0 12px}
.leave-request-panel{scroll-margin-top:84px}
.leave-ledger-notice{margin:18px 0;background:var(--warning-50);color:var(--warning-600);border:1px solid #fed7aa}
.leave-reference>section+section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.leave-policy-summary{margin-top:24px}
.leave-decision-actions{display:flex;gap:6px}
.table-scroll-hint{display:none;margin:0 0 8px;color:var(--muted);font-size:12px}
@media(max-width:760px){
  .leave-monthly-panel{padding:18px}
  .leave-filter-grid label:last-of-type{grid-column:1/-1}
  .leave-filter-grid button{grid-column:1/-1}
  .leave-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .leave-summary-cards article{padding:12px 6px}
  .leave-summary-cards span{font-size:11px;white-space:nowrap}
  .leave-summary-cards strong{font-size:18px}
  .table-scroll-hint{display:block}
}

/* 건강검진 */
.health-check-head{align-items:flex-end}.health-check-form-link{white-space:nowrap}
.health-check-application-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;padding:20px 22px;border:1px solid #a7d7bd;border-radius:18px;background:linear-gradient(135deg,#f0fdf4,#f8fffb)}
.health-check-application-notice h2,.health-check-application-notice p{margin:0}.health-check-application-notice h2{font-size:18px}.health-check-application-notice p:last-child{margin-top:6px;color:#406052}
.health-check-overview{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:20px}
.health-check-eligibility{background:linear-gradient(145deg,#172554,#2447bd);color:#fff;border:0}.health-check-eligibility .eyebrow{color:#bfdbfe}.health-check-eligibility-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.health-check-eligibility-head h2{margin:0}.health-check-eligibility-message{margin:18px 0;color:#dbeafe;font-size:16px}
.health-check-date-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.health-check-date-facts div{padding:12px;border:1px solid #ffffff26;border-radius:12px;background:#ffffff10}.health-check-date-facts dt{color:#bfdbfe;font-size:12px}.health-check-date-facts dd{margin:3px 0 0;font-weight:800}
.health-check-process ol{display:grid;gap:0;margin:0;padding:0;list-style:none;counter-reset:health-step}.health-check-process li{position:relative;display:grid;gap:2px;min-height:50px;padding:0 0 14px 40px;counter-increment:health-step}.health-check-process li::before{content:counter(health-step);position:absolute;top:0;left:0;display:grid;width:28px;height:28px;place-items:center;border-radius:50%;background:#eef2ff;color:#2447bd;font-size:12px;font-weight:900}.health-check-process li:not(:last-child)::after{content:"";position:absolute;top:28px;bottom:0;left:13px;width:2px;background:#e1e7f0}.health-check-process span{color:var(--muted);font-size:13px}
.health-check-policy>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;font-weight:850}.health-check-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.health-check-policy-grid section{padding:16px;border:1px solid var(--line);border-radius:13px;background:#f8fafc}.health-check-policy-grid h2{font-size:14px}.health-check-policy-grid ul{margin:0;padding-left:19px}.health-check-policy-grid li+li{margin-top:8px}
.health-check-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.health-check-admin-panel{max-width:none}.health-check-admin-note{grid-column:1/-1}.health-check-admin-panel button{grid-column:1/-1}.health-check-filter{display:flex;align-items:center;gap:8px;font-size:13px}.health-check-filter select{width:auto;min-width:132px}
.health-check-action-form{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.health-check-action-form h3{margin:0}.health-check-action-form>.primary{justify-self:end}.health-check-evidence-current p{overflow-wrap:anywhere}.health-check-evidence-current a{font-weight:750}.health-check-dialog .payment-request-detail{margin-bottom:18px}
@media(max-width:900px){.health-check-overview{grid-template-columns:1fr}.health-check-policy-grid{grid-template-columns:1fr}.health-check-date-facts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.health-check-application-notice{align-items:flex-start;flex-direction:column}.health-check-date-facts{grid-template-columns:1fr}.health-check-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.health-check-list-head{align-items:flex-start}.health-check-filter{width:100%}.health-check-filter select{min-width:0;flex:1}.health-check-action-form .actions{align-items:stretch;flex-direction:column}.health-check-action-form .actions button{width:100%}}

/* 공통 운영 화면 UX */
.content,.panel,.grid-two>*{min-width:0}
.grid-two{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.table-wrap{width:100%;max-width:100%}
.button,button,input,select,textarea{border-color:#8792a2}
.primary{border-color:var(--accent)}
.button:disabled,button:disabled{cursor:not-allowed;opacity:.58}
.menu{width:44px;min-height:44px}
.sidebar{overflow-y:auto;padding-top:14px}
.sidebar-label{margin:14px 14px 6px;color:#8793aa;font-size:11px;font-weight:800;letter-spacing:.08em}
.sidebar-label:first-child{margin-top:2px}
.nav-backdrop{position:fixed;z-index:30;inset:64px 0 0;display:none;width:100%;border:0;border-radius:0;background:#10172880}
.actions{align-items:center}
.filters{align-items:end}
.filters input{min-width:0;flex:1}
.filters button{flex:none;white-space:nowrap}
.form-panel summary{display:flex;min-height:44px;align-items:center}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.badge{background:#f2f4f7;color:#475467;font-weight:700;white-space:nowrap}
.badge-info{background:#eef2ff;color:var(--info-600)}
.badge-success{background:var(--success-50);color:var(--success-600)}
.badge-warning{background:var(--warning-50);color:var(--warning-600)}
.badge-danger{background:var(--danger-50);color:var(--danger-600)}
.badge-neutral{background:#f2f4f7;color:#475467}
.table-state{padding:24px 12px;color:var(--muted);text-align:center}
.table-state-error{color:var(--danger-600)}
.failure-state{display:grid;max-width:620px;gap:6px;color:#344054}
.failure-state strong{color:var(--danger-600);font-size:14px}
.failure-state p{margin:0;color:#667085}
.failure-request-id{color:#667085;font-family:ui-monospace,monospace;overflow-wrap:anywhere}
.failure-state .button{width:max-content;margin-top:6px}
.table-state .failure-state{justify-items:center;margin:0 auto;text-align:center}
.metric-card{position:relative;display:block;min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:20px;color:var(--ink);box-shadow:0 1px 2px #1018280a}
.metric-card::after{position:absolute;right:18px;bottom:18px;color:var(--accent);content:"→";font-weight:800}
.metric-card:hover{border-color:#b8c4ea;box-shadow:0 4px 14px #10182812}
.metric-card span{color:var(--muted)}
.metric-card strong{display:block;margin-top:8px;font-size:28px}
.panel-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.panel-title-row h2{margin:0}
.panel-title-row a{font-size:13px;font-weight:700}
.employee-new{max-width:900px}
.employee-new>summary{font-size:16px}
.field-error{margin:6px 0 0;color:var(--danger-600);font-size:13px}
.dashboard-loading{margin:0;color:var(--muted)}

@media(max-width:900px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-two{grid-template-columns:minmax(0,1fr)}
  .topbar{z-index:40}
  .sidebar{z-index:35}
  .nav-open{overflow:hidden}
  .nav-open .nav-backdrop{display:block}
}
@media(max-width:520px){
  .cards{grid-template-columns:1fr}
  .topbar{padding-right:12px;padding-left:12px}
}

/* 320px·텍스트 확대에서 폼·fieldset은 문서 루트를 밀지 않고 표만 내부 스크롤한다. */
.content,.panel,.form-panel,.form-grid>*,fieldset,.permission-fieldset,
.permission-options,.permission-options>div{min-width:0;max-width:100%}
.table-wrap{max-width:100%}
input,select,textarea{min-width:0}
.actions{flex-wrap:wrap}
.employee-table-panel{contain:paint;overflow-x:hidden}
.table-scroll-panel{contain:paint;overflow-x:hidden}
.table-action-link{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center}
@media(max-width:520px){
  .panel{padding:16px}
  .permission-fieldset{padding:12px}
  .form-grid{gap:12px}
  .filters{align-items:stretch;flex-direction:column}
  .filters button{width:100%}
}

.order-status-dialog{width:min(520px,calc(100% - 32px));border:0;border-radius:16px;padding:0;box-shadow:0 24px 80px #1018284d}
.order-status-dialog::backdrop{background:#10172899}
.order-status-dialog form{display:grid;gap:16px;padding:24px}
.order-status-dialog h2,.order-status-dialog p{margin:0}
.order-status-dialog .actions{justify-content:flex-end}

/* 직원·권한 */
.employee-page{width:min(1440px,calc(100% - 220px))}
.employee-page-head{margin-bottom:28px}
.employee-page-head .eyebrow{margin-bottom:7px}
.employee-page-head .muted{margin:7px 0 0}
.employee-directory{margin-bottom:24px}
.employee-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px}
.employee-toolbar h2,.employee-toolbar p{margin:0}
.employee-toolbar h2{font-size:20px;letter-spacing:-.025em}
.employee-toolbar p{margin-top:4px}
.employee-search{display:grid;width:min(360px,100%);gap:6px;color:var(--muted);font-size:12px;font-weight:750}
.employee-search input{border-color:#98a2b3;background:var(--paper)}
.employee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.employee-grid-state{grid-column:1/-1;margin:0;padding:36px 20px;border:1px dashed #cfd6e2;border-radius:14px;background:#ffffff80;color:var(--muted);text-align:center}
.employee-grid-error{color:var(--danger-600)}
.employee-card{min-width:0}
.employee-card-button{display:flex;overflow:hidden;width:100%;height:100%;min-height:380px;align-items:stretch;justify-content:flex-start;flex-direction:column;gap:0;padding:0;border-color:var(--line);border-radius:18px;background:var(--paper);text-align:left;box-shadow:0 1px 2px #1018280a;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.employee-card-button:hover{border-color:#9fb0e8;box-shadow:0 10px 28px #10182814;transform:translateY(-2px)}
.employee-card-button:focus-visible{outline-color:#1d4ed8;box-shadow:0 0 0 5px #dbe4ff}
.employee-card-media{position:relative;display:grid;overflow:hidden;aspect-ratio:16/9;place-items:center;background:linear-gradient(145deg,#17264a,#3157d5)}
.employee-card-avatar{display:grid;width:72px;height:72px;place-items:center;border:1px solid #ffffff2e;border-radius:24px;background:#ffffff14;color:#fff;font-size:28px;font-weight:850;box-shadow:inset 0 1px 0 #ffffff30}
.employee-card-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.employee-card-status{position:absolute;z-index:1;top:14px;right:14px;padding:4px;border-radius:999px;background:#fffffff2;box-shadow:0 2px 9px #10182829}
.employee-card-body{display:flex;min-width:0;flex:1;align-items:stretch;flex-direction:column;padding:18px}
.employee-card-name{overflow:hidden;color:var(--ink);font-size:19px;font-weight:800;letter-spacing:-.025em;text-overflow:ellipsis;white-space:nowrap}
.employee-card-organization{overflow:hidden;margin-top:4px;color:#475467;font-size:12px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.employee-card-title{margin-top:2px;color:var(--ink);font-size:13px;font-weight:750}
.employee-card-email{overflow:hidden;margin-top:10px;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.employee-card-facts{display:grid;grid-template-columns:1.25fr .9fr .9fr;gap:8px;margin-top:15px;padding-top:14px;border-top:1px solid var(--line)}
.employee-card-facts span{display:grid;min-width:0;gap:3px}
.employee-card-facts small{color:var(--muted);font-size:11px;font-weight:750}
.employee-card-facts strong{overflow:hidden;color:#344054;font-size:11px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.employee-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px}
.employee-card-action{color:var(--accent);font-size:13px;font-weight:750}
.employee-card-action span{display:inline-block;margin-left:3px;transition:transform .16s ease}
.employee-card-button:hover .employee-card-action span{transform:translateX(3px)}
.employee-new{max-width:none;padding:0}
.employee-new>summary{padding:18px 20px;font-size:16px}
.employee-new>p,.employee-new>form{margin-right:20px;margin-left:20px}
.employee-new>p{margin-top:-6px;margin-bottom:0}
.employee-new>form{margin-bottom:20px}
.employee-dialog{width:min(940px,calc(100% - 32px));max-height:min(92dvh,920px);overflow:auto;border:0;border-radius:20px;padding:0;background:var(--paper);box-shadow:0 30px 90px #10182859}
.employee-dialog::backdrop{background:#101728b3;backdrop-filter:blur(2px)}
.employee-dialog-shell{min-width:0}
.employee-dialog-head{position:sticky;z-index:2;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 26px;border-bottom:1px solid var(--line);background:#fffffff5;backdrop-filter:blur(10px)}
.employee-dialog-head .eyebrow{margin-bottom:5px}
.employee-dialog-head h2{margin:0;font-size:24px;letter-spacing:-.035em}
.employee-dialog-email{margin:4px 0 0;color:var(--muted);font-size:13px}
.employee-dialog-close{min-width:64px}
.employee-dialog-loading{margin:0;padding:56px 26px;color:var(--muted);text-align:center}
.employee-dialog-error{color:var(--danger-600)}
.employee-profile-summary{display:grid;grid-template-columns:148px minmax(0,1fr);align-items:stretch;gap:24px;margin:24px 26px 0;padding:24px;border-radius:16px;background:linear-gradient(135deg,#101728 0%,#17264a 72%,#24469e 100%);color:#fff}
.employee-profile-photo{position:relative;display:grid;overflow:hidden;min-height:180px;place-items:center;border:1px solid #ffffff30;border-radius:20px;background:#ffffff14;box-shadow:inset 0 1px 0 #ffffff25}
.employee-profile-avatar{display:grid;width:72px;height:72px;place-items:center;border:1px solid #ffffff30;border-radius:22px;background:#ffffff14;font-size:28px;font-weight:850}
.employee-profile-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.employee-profile-copy{min-width:0}
.employee-profile-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}
.employee-profile-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0}
.employee-profile-facts div{min-width:0}
.employee-profile-facts .employee-profile-fact-wide{grid-column:span 2}
.employee-profile-facts dt{color:#aab6cf;font-size:11px;font-weight:750}
.employee-profile-facts dd{overflow-wrap:anywhere;margin:4px 0 0;color:#fff;font-size:14px;font-weight:750}
.employee-editor,.employee-readonly{padding:26px}
.employee-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.employee-section-head h3,.employee-section-head p{margin:0}
.employee-section-head h3{font-size:18px;letter-spacing:-.025em}
.employee-section-head p{margin-top:4px;color:var(--muted);font-size:13px}
.employee-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.employee-form-grid>div{display:grid;min-width:0;gap:6px;font-weight:700}
.employee-form-grid>.employee-form-wide{grid-column:1/-1}
.employee-profile-editor-group,.employee-access-editor{padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}
.employee-access-editor{margin-top:16px}
.employee-subsection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.employee-subsection-head h4,.employee-subsection-head p{margin:0}
.employee-subsection-head h4{font-size:16px}
.employee-subsection-head p{color:var(--muted);font-size:12px}
.employee-photo-field small{color:var(--muted);font-size:11px;font-weight:600}
.employee-photo-field input{padding:8px;background:var(--paper)}
.employee-active-field{display:flex;min-width:0;min-height:68px;align-items:center;gap:11px;margin-top:24px;padding:11px 13px;border:1px solid #98a2b3;border-radius:10px;background:#f8fafc}
.employee-active-field input{width:auto;margin:0}
.employee-active-field span{display:grid;gap:2px}
.employee-active-field small{color:var(--muted);font-size:11px;font-weight:500}
.employee-permissions-editor{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}
.employee-permissions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}
.employee-permissions-head h4,.employee-permissions-head p{margin:0}
.employee-permissions-head h4{font-size:16px}
.employee-permissions-head p{margin-top:4px}
.employee-permission-grid,.employee-permission-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.employee-permission-group{min-width:0;margin:0;border:1px solid var(--line);border-radius:12px;padding:13px;background:#fbfcfe}
.employee-permission-group legend{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:0 4px;color:var(--ink);font-size:13px;font-weight:800}
.employee-permission-count{color:var(--muted);font-size:11px;font-weight:700}
.employee-permission-choice{display:flex;min-height:48px;align-items:flex-start;gap:9px;padding:8px;border-radius:8px;font-weight:500}
.employee-permission-choice:hover{background:#eef2ff}
.employee-permission-choice input{width:auto;margin:4px 0 0}
.employee-permission-choice span{display:grid;min-width:0;gap:1px}
.employee-permission-choice strong{font-size:13px}
.employee-permission-choice code,.employee-permission-summary-group code{overflow-wrap:anywhere;color:var(--muted);font:11px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace}
.employee-form-status{margin:18px 0 0;padding:11px 13px;border:1px solid #a6f4c5;border-radius:9px;background:var(--success-50);color:var(--success-600);font-size:13px;font-weight:700}
.employee-form-error{border-color:#fecdca;background:var(--danger-50);color:var(--danger-600)}
.employee-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}
.employee-editor #employee-form>.employee-dialog-actions{position:sticky;z-index:1;bottom:0;margin:24px -26px -26px;padding:14px 26px;border-top:1px solid var(--line);background:#fffffff2;backdrop-filter:blur(8px)}
.employee-dialog-actions .primary{min-width:136px}
.employee-security{margin-top:26px;padding-top:8px;border-top:1px solid var(--line)}
.employee-security>summary{display:flex;min-height:48px;align-items:center;color:var(--danger-600);cursor:pointer;font-weight:800}
.employee-security>p{margin:0 0 14px}
.employee-password-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:16px;border:1px solid #fecaca;border-radius:12px;background:#fffafa}
.employee-password-form>div{display:grid;gap:6px;font-weight:700}
.employee-readonly-notice{display:flex;align-items:center;gap:10px;margin-bottom:22px;padding:12px 14px;border:1px solid #d8deea;border-radius:10px;background:#f8fafc;color:#475467;font-size:13px}
.employee-readonly-notice strong{flex:none;color:var(--ink)}
.employee-permission-summary-group{min-width:0;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}
.employee-permission-summary-group>div{display:flex;align-items:center;justify-content:space-between;gap:12px}
.employee-permission-summary-group h4,.employee-permission-summary-group p{margin:0}
.employee-permission-summary-group>div>span{color:var(--muted);font-size:12px;font-weight:750}
.employee-permission-summary-group ul{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.employee-permission-summary-group li{display:grid;gap:1px;padding-top:8px;border-top:1px solid var(--line)}
.employee-permission-summary-group li strong{font-size:13px}
.employee-permission-summary-group>p{margin-top:12px;font-size:12px}

@media(max-width:1180px){
  .employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .employee-profile-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .employee-page{width:auto}
}
@media(max-width:680px){
  .employee-toolbar{align-items:stretch;flex-direction:column;gap:14px}
  .employee-search{width:100%}
  .employee-grid{grid-template-columns:minmax(0,1fr)}
  .employee-card-button{display:grid;grid-template-columns:96px minmax(0,1fr);min-height:0}
  .employee-card-media{height:100%;min-height:210px;aspect-ratio:auto}
  .employee-card-avatar{width:56px;height:56px;border-radius:18px;font-size:22px}
  .employee-card-status{top:8px;right:8px}
  .employee-card-body{padding:14px}
  .employee-card-facts{gap:6px;margin-top:12px;padding-top:12px}
  .employee-card-foot{gap:8px;padding-top:12px}
  .employee-dialog{width:100%;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}
  .employee-dialog-head{padding:18px}
  .employee-profile-summary{grid-template-columns:112px minmax(0,1fr);gap:16px;margin:18px 18px 0;padding:20px}
  .employee-profile-photo{min-height:136px;border-radius:16px}
  .employee-profile-avatar{width:60px;height:60px;border-radius:18px;font-size:24px}
  .employee-editor,.employee-readonly{padding:20px 18px}
  .employee-form-grid,.employee-permission-grid,.employee-permission-summary{grid-template-columns:minmax(0,1fr)}
  .employee-form-grid>.employee-form-wide{grid-column:auto}
  .employee-subsection-head{flex-direction:column;gap:4px}
  .employee-active-field{margin-top:0}
  .employee-permissions-head{align-items:stretch;flex-direction:column}
  .employee-password-form{grid-template-columns:minmax(0,1fr)}
  .employee-password-form button,.employee-dialog-actions button{width:100%}
  .employee-dialog-actions{flex-direction:column-reverse}
  .employee-editor #employee-form>.employee-dialog-actions{margin-right:-18px;margin-bottom:-20px;margin-left:-18px;padding:14px 18px}
}
@media(max-width:380px){
  .employee-card-button{min-height:0}
  .employee-card-body{padding:17px}
  .employee-card-foot{gap:6px}
  .employee-profile-summary{grid-template-columns:minmax(0,1fr)}
  .employee-profile-photo{width:112px}
  .employee-profile-facts{grid-template-columns:minmax(0,1fr)}
  .employee-profile-facts .employee-profile-fact-wide{grid-column:auto}
  .employee-readonly-notice{align-items:flex-start;flex-direction:column}
}

/* 공통 운영 셸 */
body{min-height:100vh;background:linear-gradient(180deg,#f8faff 0,#f5f7fb 360px)}
.topbar{height:var(--shell-topbar);gap:0;padding:0 20px 0 0;border-bottom:1px solid #e7eaf0;background:#ffffffed;box-shadow:0 1px 0 #10182805;backdrop-filter:blur(14px)}
.brand{width:var(--shell-sidebar);height:var(--shell-topbar);flex:none;gap:11px;padding:0 20px;border-right:1px solid #ffffff0d;background:var(--nav);color:#fff}
.brand:hover{color:#fff}
.brand-mark{display:grid;width:36px;height:36px;flex:none;place-items:center;border:1px solid #ffffff24;border-radius:11px;background:linear-gradient(145deg,#3f6cff,#2348c7);font-size:12px;font-weight:900;letter-spacing:-.02em;box-shadow:inset 0 1px 0 #ffffff35,0 7px 20px #0003}
.brand-copy{display:grid;min-width:0;gap:1px;line-height:1}
.brand-copy strong{font-size:15px;letter-spacing:.01em}
.brand-copy small{color:#8796b2;font-size:9px;font-weight:800;letter-spacing:.13em}
.menu{margin-left:18px;border:0;background:#f2f4f7;color:var(--ink)}
.menu:hover{background:#e9edf5}
.account{min-width:0;gap:10px}
.account-profile{display:grid;max-width:340px;min-width:0;min-height:48px;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;padding:5px 10px 5px 5px;border:1px solid var(--line);border-radius:14px;background:#f8fafc;color:var(--ink)}
.account-profile:hover{border-color:#c8d2ec;background:#f3f6ff;color:var(--ink)}
.account-copy{display:grid;min-width:0;gap:1px}
.account-copy strong{overflow:hidden;font-size:12px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.account-copy small{color:var(--muted);font-size:10px;font-weight:700}
.account-logout{min-height:40px;border:1px solid transparent;border-radius:10px;padding:0 9px;color:#475467;font-size:12px;font-weight:700}
.account-logout:hover{border-color:var(--line);background:#fff;color:var(--danger-600)}
.sidebar{top:var(--shell-topbar);width:var(--shell-sidebar);padding:18px 14px 28px;background:linear-gradient(180deg,#0b1324 0%,#0d1830 100%);scrollbar-color:#33415d transparent;scrollbar-width:thin}
.sidebar-label{margin:19px 11px 7px;color:#73819d;font-size:10px;font-weight:850;letter-spacing:.14em}
.sidebar-label:first-child{margin-top:2px}
.sidebar a{display:flex;min-height:44px;align-items:center;gap:11px;margin-bottom:3px;padding:7px 9px;border:1px solid transparent;border-radius:12px;color:#b9c3d5;font-weight:650}
.sidebar a:hover{border-color:#ffffff0d;background:#ffffff0a;color:#fff}
.sidebar a[aria-current=page]{border-color:#ffffff12;background:#fff;color:#172033;font-weight:800;box-shadow:0 10px 24px #0003}
.sidebar-icon{display:grid;width:28px;height:28px;flex:none;place-items:center;border:1px solid #ffffff0d;border-radius:8px;background:#ffffff08;color:#8190ab;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;font-size:15px;font-weight:400;line-height:1}
.sidebar a:hover .sidebar-icon{color:#cbd5e5}
.sidebar a[aria-current=page] .sidebar-icon{border-color:#d9e1ff;background:#e8edff;color:#294fc8}
.sidebar-link-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-backdrop{inset:var(--shell-topbar) 0 0;background:#07101fc4;backdrop-filter:blur(2px)}
body>main.content{min-height:calc(100vh - var(--shell-topbar));margin:var(--shell-topbar) 0 0 var(--shell-sidebar);max-width:none;padding:clamp(28px,3vw,46px)}
.content.employee-page,.content.drive-page{width:auto}
.account-page{width:auto}
.account-page>*{width:min(1080px,100%);margin-right:auto;margin-left:auto}
.page-head{margin-bottom:26px}
.page-head h1{font-size:clamp(28px,2vw,34px);letter-spacing:-.045em}
.eyebrow{color:#355eea}
.cards{gap:18px;margin-bottom:22px}
.cards article,.panel,.metric-card{border-color:var(--line);border-radius:18px;box-shadow:0 1px 2px #10182808,0 10px 26px #10182806}
.panel{padding:22px}
.button,button,input,select,textarea{border-radius:10px}
th{color:#697386;background:#fafbfc;font-weight:750}
td{border-bottom-color:#e8ebf0}

@media(min-width:1320px){
  .employee-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1200px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .topbar{height:64px;padding:0 12px}
  .brand{width:auto;height:64px;gap:9px;padding:0 6px;border-right:0;background:transparent;color:var(--ink)}
  .brand:hover{color:var(--ink)}
  .brand-mark{width:32px;height:32px;border-color:#3157d533;border-radius:9px}
  .brand-copy small{color:#7b8495}
  .menu{order:-1;margin:0 7px 0 0}
  .account .account-profile{display:inline-grid;grid-template-columns:34px;padding:4px}
  .account-copy{display:none}
  .sidebar{top:64px;width:min(300px,calc(100% - 48px));padding-top:16px;box-shadow:24px 0 60px #07101f5c}
  .nav-backdrop{inset:64px 0 0}
  body>main.content{min-height:calc(100vh - 64px);margin:64px 0 0;padding:24px}
}
@media(max-width:520px){
  .topbar{padding:0 10px}
  .brand-copy small{display:none}
  .account .account-profile{display:none}
  .account-logout{padding:0 6px}
  body>main.content{padding:18px 16px 28px}
  .page-head{margin-bottom:20px}
  .page-head h1{font-size:27px}
  .cards{grid-template-columns:minmax(0,1fr);gap:12px}
  .cards article,.panel,.metric-card{border-radius:15px}
}

/* 상품·재고 통합 */
.product-workspace{width:auto}
.product-page-head .eyebrow{margin-bottom:7px}
.product-page-head .muted{margin:7px 0 0}
.product-view-tabs{display:flex;gap:4px;width:max-content;max-width:100%;margin-bottom:28px;padding:4px;border:1px solid var(--line);border-radius:13px;background:#edf1f7;overflow-x:auto}
.product-view-tabs a{display:flex;min-height:40px;align-items:center;padding:7px 16px;border-radius:9px;color:#667085;font-size:13px;font-weight:800;white-space:nowrap}
.product-view-tabs a:hover{background:#ffffffa8;color:var(--ink)}
.product-view-tabs a[aria-current=page]{background:#fff;color:#2447bd;box-shadow:0 1px 3px #10182814}
.product-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px}
.product-toolbar h2,.product-toolbar p{margin:0}
.product-toolbar h2{font-size:21px;letter-spacing:-.025em}
.product-toolbar h2+.muted{margin-top:4px}
.product-search{width:min(460px,100%);margin:0}
.product-image-source{margin:0 0 14px;color:#7b8495;font-size:12px}
.product-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.product-card-grid>.table-state{grid-column:1/-1;margin:0}
.product-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 1px 2px #10182808,0 10px 26px #10182806}
.product-image-shell{position:relative;display:grid;aspect-ratio:4/5;place-items:center;overflow:hidden;border-bottom:1px solid var(--line);background:linear-gradient(145deg,#f8fafc,#eef2f7)}
.product-image-shell:focus-visible{outline-offset:-4px}
.product-image-shell img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f8fafc;opacity:0}
.product-image-shell img.is-loaded{opacity:1}
.product-image-fallback{display:grid;place-items:center;gap:8px;color:#8993a5;text-align:center}
.product-image-fallback>span{font-size:32px;filter:grayscale(.35)}
.product-image-fallback small{font-size:12px;font-weight:700}
.product-card-body{display:grid;gap:13px;padding:17px}
.product-card-kicker{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#697386;font-size:11px}
.product-card h3{margin:0;font-size:17px;line-height:1.35;letter-spacing:-.025em;overflow-wrap:anywhere}
.product-card h3 a{color:var(--ink)}
.product-card h3 a:hover{color:var(--accent)}
.product-card-meta{margin:0;color:#7b8495;font-size:12px}
.product-facts,.product-stock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.product-facts div,.product-stock div{min-width:0}
.product-facts dt,.product-stock dt{color:#8993a5;font-size:11px;font-weight:750}
.product-facts dd,.product-stock dd{margin:3px 0 0;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.product-stock{padding-top:13px;border-top:1px solid #edf0f4}
.product-stock dd{font-size:16px;font-variant-numeric:tabular-nums}
.product-pager{justify-content:center;margin-top:22px}

@media(max-width:760px){
  .product-workspace{width:auto}
  .product-toolbar{align-items:stretch;flex-direction:column;gap:14px}
  .product-search{width:100%}
  .product-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media(max-width:480px){
  .product-view-tabs{width:100%}
  .product-view-tabs a{flex:1;justify-content:center}
  .product-card-grid{grid-template-columns:minmax(0,1fr)}
  .product-card{border-radius:15px}
}

/* 송금요청 */
.payment-request-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.payment-request-category-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}
.payment-request-category-tabs a{display:grid;min-width:0;gap:2px;padding:15px 17px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);box-shadow:0 1px 2px #1018280a}
.payment-request-category-tabs a:hover{border-color:#b8c6ff;background:#f8faff}
.payment-request-category-tabs a[aria-current=page]{border-color:#7390ff;background:#eef3ff;color:#193ba8;box-shadow:0 0 0 1px #7390ff}
.payment-request-category-tabs span{overflow:hidden;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.payment-request-category-tabs small{color:var(--muted);font-size:12px;font-weight:650}
.payment-request-form-panel{max-width:none}
.payment-request-form-panel #payment-request-submit{grid-column:1/-1}
.payment-request-field[hidden]{display:none}
.payment-request-reason{grid-column:1/-1}
.product-edit-form>.product-edit-wide,.product-edit-form>.actions,.product-edit-form>#product-edit-feedback{grid-column:1/-1}
.product-edit-form>#product-edit-feedback{margin:0}
.payment-upload-dropzone{display:grid;gap:8px;padding:14px;border:1px dashed #98a2b3;border-radius:12px;background:#f8fafc}
.payment-upload-dropzone.is-dragging{border-color:var(--accent);background:#eef4ff}
.payment-upload-dropzone input{background:#fff}
.payment-upload-summary{margin:0;color:var(--muted);font-size:13px}
.payment-request-filter{margin:0}
.payment-request-filter label{display:flex;align-items:center;gap:8px;font-size:13px}
.payment-request-filter select{width:auto;min-width:140px}
.payment-request-subtext{display:block;max-width:520px;margin-top:3px;color:var(--muted)}
.payment-request-pager{justify-content:flex-end;margin-top:16px}
.payment-request-pager span{align-self:center;color:var(--muted)}
.payment-request-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100vh - 32px);border:0;border-radius:16px;padding:24px;box-shadow:0 24px 80px #10182840}
.payment-request-dialog::backdrop{background:#10172899}
.payment-request-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.payment-request-dialog-head h2{margin:0}
.leave-request-dialog{width:min(640px,calc(100% - 32px));max-height:min(90dvh,760px);overflow:auto}
body.leave-dialog-open{overflow:hidden}
.payment-request-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;margin:0 0 20px}
.payment-request-detail div{min-width:0;padding:12px 0;border-top:1px solid var(--line)}
.payment-request-detail dt{color:var(--muted);font-size:12px;font-weight:700}
.payment-request-detail dd{overflow-wrap:anywhere;margin:4px 0 0;font-weight:700}
.payment-request-dialog h3{font-size:15px}
.payment-request-dialog ul{padding-left:20px}
.payment-request-dialog li{margin:8px 0;overflow-wrap:anywhere}
.payment-request-decision{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.payment-request-decision .actions{justify-content:flex-end}

@media(max-width:520px){
  .payment-request-category-tabs{grid-template-columns:1fr;gap:7px}
  .payment-request-category-tabs a{min-height:58px;padding:10px 13px}
  .payment-request-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .payment-request-cards article{padding:12px 8px}
  .payment-request-cards strong{font-size:20px}
  .payment-request-filter{align-items:stretch;width:100%}
  .payment-request-filter label{flex:1}
  .payment-request-filter select{min-width:0}
  .payment-request-detail{grid-template-columns:1fr}
}

/* 2026 모던 ERP 공통 셸 */
:root{
  --shell-sidebar-open:268px;
  --shell-sidebar-closed:84px;
  --shell-sidebar:var(--shell-sidebar-open);
  --shell-topbar:74px;
  --ink:#111827;
  --muted:#6b7280;
  --line:#e3e8f0;
  --paper:#fff;
  --bg:#f4f6fa;
  --accent:#335cff;
  --accent-strong:#2447d8;
  --primary:var(--accent);
  --nav:#0a1222;
  --nav-soft:#111c32;
  --surface-shadow:0 1px 2px #10182808,0 14px 38px #10182808;
  /* 시맨틱 상태 색 — 전경 600 + 배경 50 짝으로만 사용한다 */
  --success-50:#ecfdf3;
  --success-600:#027a48;
  --warning-50:#fff7ed;
  --warning-600:#9a3412;
  --danger-50:#fef3f2;
  --danger-600:#b42318;
  --info-50:#eef2ff;
  --info-600:#3346a8;
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 72% -10%,#dfe8ff80 0,transparent 33rem),
    linear-gradient(180deg,#f9fbff 0,#f4f6fa 38rem);
  color:var(--ink);
}
body.sidebar-collapsed{--shell-sidebar:var(--shell-sidebar-closed)}
::selection{background:#cdd9ff;color:#12245f}

.topbar{
  height:var(--shell-topbar);
  gap:0;
  padding:0 22px 0 0;
  border-bottom:1px solid #e4e8efcc;
  background:#ffffffd9;
  box-shadow:0 1px 0 #10182805,0 10px 32px #10182804;
  backdrop-filter:blur(18px) saturate(1.35);
}
.brand{
  width:var(--shell-sidebar);
  height:var(--shell-topbar);
  flex:none;
  gap:12px;
  justify-content:flex-start;
  padding:0 22px;
  border-right:1px solid #ffffff0d;
  background:linear-gradient(135deg,#08101f,#0d1830);
  color:#fff;
  transition:width .28s cubic-bezier(.2,.8,.2,1),padding .28s ease;
}
.brand:hover{color:#fff}
.brand-mark{
  display:grid;
  width:38px;
  height:38px;
  flex:none;
  place-items:center;
  border:1px solid #ffffff26;
  border-radius:12px;
  background:linear-gradient(145deg,#5278ff,#274ed4);
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:-.03em;
  box-shadow:inset 0 1px 0 #ffffff45,0 9px 24px #02061766;
}
.brand-copy{
  display:grid;
  min-width:0;
  gap:3px;
  line-height:1;
  opacity:1;
  transition:opacity .16s ease,width .24s ease;
}
.brand-copy strong{font-size:15px;font-weight:850;letter-spacing:.02em}
.brand-copy small{color:#8492aa;font-size:10px;font-weight:800;letter-spacing:.14em}

.menu{
  display:inline-flex;
  width:42px;
  min-width:42px;
  height:42px;
  min-height:42px;
  margin-left:16px;
  padding:0;
  border:1px solid #e2e7ef;
  border-radius:12px;
  background:#fff;
  color:#3d4a5f;
  box-shadow:0 1px 2px #1018280a;
}
.menu:hover{border-color:#cbd5e1;background:#f8fafc;color:var(--accent)}
.menu-glyph{display:grid;width:18px;gap:4px}
.menu-glyph span{
  display:block;
  width:18px;
  height:1.5px;
  border-radius:999px;
  background:currentColor;
  transform-origin:center;
  transition:transform .22s ease,width .22s ease;
}
body.sidebar-collapsed .menu-glyph span:nth-child(1){width:11px;transform:translateX(6px)}
body.sidebar-collapsed .menu-glyph span:nth-child(3){width:11px;transform:translateX(6px)}

.topbar-context{
  display:flex;
  min-width:0;
  align-items:center;
  gap:8px;
  margin-left:18px;
  color:#64748b;
}
.topbar-context>span{
  width:7px;
  height:7px;
  flex:none;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 4px #dcfce7;
}
.topbar-context strong{color:#344054;font-size:12px;font-weight:800}
.topbar-context small{font-size:11px}
.account{min-width:0;gap:9px}
.account-profile{
  display:grid;
  max-width:340px;
  min-width:0;
  min-height:48px;
  grid-template-columns:36px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:5px 11px 5px 5px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  color:var(--ink);
}
.account-profile:hover{border-color:#dce3ef;background:#f7f9fc;color:var(--ink)}
.account .account-avatar{
  display:grid;
  width:36px;
  height:36px;
  place-items:center;
  border:1px solid #dbe4ff;
  border-radius:11px;
  background:linear-gradient(145deg,#edf2ff,#dfe7ff);
  color:#2748bf;
  font-size:13px;
  font-weight:850;
}
.account-copy{display:grid;min-width:0;gap:2px}
.account-copy strong{overflow:hidden;font-size:12px;font-weight:780;text-overflow:ellipsis;white-space:nowrap}
.account-copy small{overflow:hidden;color:#7b8495;font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.account-logout{
  min-height:40px;
  border:1px solid transparent;
  border-radius:10px;
  padding:0 9px;
  color:#64748b;
  font-size:12px;
  font-weight:700;
}
.account-logout:hover{border-color:#fee2e2;background:#fff7f7;color:var(--danger-600)}

.sidebar{
  top:var(--shell-topbar);
  display:flex;
  width:var(--shell-sidebar);
  flex-direction:column;
  overflow:hidden;
  padding:16px 13px 14px;
  border-right:1px solid #ffffff0a;
  background:
    radial-gradient(circle at 10% 0,#1c315d55 0,transparent 18rem),
    linear-gradient(180deg,#091222 0%,#0b162a 100%);
  box-shadow:12px 0 34px #0f172a0b;
  transition:width .28s cubic-bezier(.2,.8,.2,1),transform .24s ease;
}
.sidebar-navigation{
  min-height:0;
  flex:1;
  overflow-x:hidden;
  overflow-y:auto;
  padding-right:2px;
  scrollbar-color:#34415a transparent;
  scrollbar-width:thin;
}
.sidebar-label{
  height:16px;
  margin:12px 12px 5px;
  color:#7c8caa;
  font-size:11px;
  font-weight:850;
  letter-spacing:.12em;
  white-space:nowrap;
  transition:opacity .14s ease;
}
.sidebar-label:first-child{margin-top:3px}
.sidebar a{display:flex;min-height:44px;position:relative;align-items:center;gap:11px;margin-bottom:3px;padding:7px 9px;border:1px solid transparent;border-radius:12px;color:#b8c3d6;font-size:13px;font-weight:660;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
.sidebar-navigation a:hover{border-color:#ffffff0d;background:#ffffff0a;color:#fff;transform:translateX(2px)}
.sidebar-navigation a[aria-current=page]{
  border-color:#ffffff16;
  background:linear-gradient(135deg,#fff,#eef3ff);
  color:#172033;
  font-weight:820;
  box-shadow:0 10px 28px #02061755;
}
.sidebar-icon{
  display:grid;
  width:30px;
  height:30px;
  flex:none;
  place-items:center;
  border:1px solid #ffffff0d;
  border-radius:9px;
  background:#ffffff08;
  color:#8695ae;
  transition:background .18s ease,color .18s ease;
}
.sidebar-icon svg{
  width:17px;
  height:17px;
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.7;
}
.sidebar-icon svg rect{fill:none}
.sidebar-navigation a:hover .sidebar-icon{background:#ffffff0d;color:#dbe6fb}
.sidebar-navigation a[aria-current=page] .sidebar-icon{border-color:#d7e1ff;background:#e5ecff;color:#294fc8}
.sidebar-link-label{
  min-width:0;
  overflow:hidden;
  opacity:1;
  text-overflow:ellipsis;
  white-space:nowrap;
  transition:opacity .14s ease,width .22s ease;
}

.sidebar-profile{
  flex:none;
  margin-top:12px;
  padding:11px;
  border:1px solid #ffffff10;
  border-radius:16px;
  background:#ffffff08;
  box-shadow:inset 0 1px 0 #ffffff08;
  transition:padding .24s ease;
}
.sidebar-profile-link{
  display:grid!important;
  min-width:0;
  min-height:42px!important;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
}
.sidebar-profile-link:hover{transform:none!important}
.sidebar-profile-avatar{
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  border:1px solid #ffffff1f;
  border-radius:12px;
  background:linear-gradient(145deg,#3e64ee,#2443ae);
  color:#fff;
  font-size:13px;
  font-weight:850;
  box-shadow:0 8px 18px #02061755;
}
.sidebar-profile-copy{display:grid;min-width:0;gap:2px;opacity:1;transition:opacity .14s ease}
.sidebar-profile-copy strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.sidebar-profile-copy small{overflow:hidden;color:#91a0ba;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.sidebar-profile-arrow{color:#71809b;font-size:14px}
.sidebar-profile-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #ffffff0d;
  color:#8290a9;
  font-size:10px;
  white-space:nowrap;
}
.sidebar-profile-meta span{display:flex;align-items:center;gap:5px}
.sidebar-profile-meta i{width:6px;height:6px;border-radius:50%;background:#34d399;box-shadow:0 0 0 3px #34d3991f}
.sidebar-profile-meta strong{color:#aeb9cc;font-size:10px}

.nav-backdrop{inset:var(--shell-topbar) 0 0;background:#07101fc4;backdrop-filter:blur(3px)}
body>main.content{
  min-height:calc(100vh - var(--shell-topbar));
  margin:var(--shell-topbar) 0 0 var(--shell-sidebar);
  max-width:none;
  padding:clamp(28px,3vw,48px);
  transition:margin-left .28s cubic-bezier(.2,.8,.2,1);
}
.page-head{margin-bottom:28px}
.page-head h1{font-size:clamp(29px,2.1vw,37px);font-weight:830;letter-spacing:-.05em}
.eyebrow{margin-bottom:6px;color:#4165e8;font-size:11px;letter-spacing:.15em}
.panel,.cards article,.metric-card{
  border-color:#e2e7ef;
  border-radius:18px;
  background:#ffffffed;
  box-shadow:var(--surface-shadow);
}
.panel{padding:23px}
.cards{gap:17px}
.cards article{position:relative;overflow:hidden}
.cards article::after{
  position:absolute;
  top:0;
  right:0;
  width:74px;
  height:74px;
  border-radius:0 0 0 74px;
  background:linear-gradient(135deg,transparent,#e9efff99);
  content:"";
  pointer-events:none;
}
.cards strong{font-weight:820;letter-spacing:-.04em}
.button,button{
  border-radius:11px;
  font-weight:720;
  transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.button:hover,button:hover{transform:translateY(-1px);box-shadow:0 5px 14px #10182810}
.primary{border-color:var(--accent);background:linear-gradient(135deg,#4168ff,#2e55e7);box-shadow:0 7px 18px #3157d526}
.primary:hover{border-color:var(--accent-strong);background:linear-gradient(135deg,#345df4,#2448cf)}
input,select,textarea{
  border-color:#d7dde8;
  border-radius:11px;
  background:#fff;
  box-shadow:inset 0 1px 2px #10182805;
  transition:border-color .18s ease,box-shadow .18s ease;
}
input:hover,select:hover,textarea:hover{border-color:#bcc7d8}
input:focus,select:focus,textarea:focus{border-color:#7390ff;box-shadow:0 0 0 4px #3157d512}
.table-wrap{border-radius:13px}
.table-wrap[tabindex]:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
th{background:#f8fafc;color:#667085;font-size:11px;font-weight:780}
tbody tr{transition:background .15s ease}
tbody tr:hover{background:#f8faff}

/* 표준 렌더 밀도 — 비표준 데스크톱 zoom(.9)을 제거하고 스케일 재조정으로 동등 밀도를 확보한다. 모바일(≤900px)은 변경 없음. */
@media(min-width:901px){
  body{font-size:14px}
  :root{--shell-topbar:68px;--shell-sidebar-open:246px;--shell-sidebar-closed:78px}
  body>main.content{padding:clamp(26px,2.7vw,43px)}
  .page-head h1{font-size:clamp(26px,1.9vw,33px)}
  .panel{padding:20px}
  .cards article{padding:18px}
  .cards strong,.metric-card strong{font-size:25px}
  th,td{padding:10px 11px}
}

@media(min-width:901px){
  body.sidebar-collapsed .brand{justify-content:center;padding-right:0;padding-left:0}
  body.sidebar-collapsed .brand-copy{
    width:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
  }
  body.sidebar-collapsed .sidebar{padding-right:12px;padding-left:12px}
  body.sidebar-collapsed .sidebar-label{
    height:6px;
    margin:8px 0 5px;
    overflow:hidden;
    opacity:0;
  }
  body.sidebar-collapsed .sidebar-navigation a{justify-content:center;gap:0;padding-right:7px;padding-left:7px}
  body.sidebar-collapsed .sidebar-navigation a:hover{transform:none}
  body.sidebar-collapsed .sidebar-link-label{
    width:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
  }
  body.sidebar-collapsed .sidebar-profile{padding:9px}
  body.sidebar-collapsed .sidebar-profile-link{display:flex!important;justify-content:center}
  body.sidebar-collapsed .sidebar-profile-copy,
  body.sidebar-collapsed .sidebar-profile-arrow,
  body.sidebar-collapsed .sidebar-profile-meta{display:none}
}

@media(max-width:1100px){
  .topbar-context small{display:none}
  .account-profile{max-width:250px}
}
@media(max-width:900px){
  :root{--shell-topbar:64px}
  .topbar{height:var(--shell-topbar);padding:0 12px}
  .brand{
    width:auto;
    height:var(--shell-topbar);
    gap:9px;
    padding:0 7px;
    border-right:0;
    background:transparent;
    color:var(--ink);
  }
  .brand:hover{color:var(--ink)}
  .brand-mark{width:33px;height:33px;border-radius:10px}
  .brand-copy strong{color:var(--ink)}
  .brand-copy small{color:#7b8495}
  .menu{order:-1;margin:0 7px 0 0}
  .topbar-context{min-width:0}
  .account .account-profile{display:inline-grid;grid-template-columns:34px;padding:4px}
  .account .account-avatar{width:34px;height:34px}
  .account-copy{display:none}
  .sidebar{
    top:var(--shell-topbar);
    width:min(304px,calc(100% - 44px));
    padding:16px 13px 14px;
    box-shadow:24px 0 60px #07101f66;
  }
  .nav-backdrop{inset:var(--shell-topbar) 0 0}
  body>main.content{
    min-height:calc(100vh - var(--shell-topbar));
    margin:var(--shell-topbar) 0 0;
    padding:25px 22px 34px;
  }
}
@media(max-width:520px){
  .topbar{padding:0 9px}
  .brand-copy{display:none}
  .topbar-context{display:none}
  .account .account-profile{display:inline-grid;width:42px;grid-template-columns:32px;padding:4px}
  .account .account-avatar{width:32px;height:32px}
  .account-logout{padding:0 6px}
  body>main.content{padding:20px 15px 30px}
  .page-head{margin-bottom:21px}
  .page-head h1{font-size:28px}
  .panel{padding:18px}
  .cards{gap:12px}
  .cards article,.panel,.metric-card{border-radius:15px}
}
.ai-operation-panel{overflow:hidden}
.ai-wide-field,.ai-confirmation{grid-column:1/-1}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}

/* 전역 알림 */
.account-actions{display:flex;min-width:0;align-items:center;gap:8px}
.notification-toggle{position:relative;width:44px;min-width:44px;height:44px;min-height:44px;padding:9px;border-radius:12px;color:var(--ink)}
.notification-toggle:hover{border-color:#c8d2ec;background:#f3f6ff}
.notification-icon{display:grid;width:22px;height:22px;place-items:center}
.notification-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9}
.notification-badge{position:absolute;top:3px;right:2px;min-width:17px;height:17px;border:2px solid var(--paper);border-radius:999px;background:var(--danger-600);color:#fff;font-size:10px;font-weight:800;line-height:13px}
.notifications-panel{position:fixed;z-index:50;top:76px;right:24px;width:min(420px,calc(100vw - 32px));max-height:min(640px,calc(100dvh - 92px));overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 20px 48px #1018282e;padding:12px}
.notifications-panel[hidden]{display:none}
.notifications-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 10px;border-bottom:1px solid var(--line)}
.notifications-head h2{margin:0;font-size:16px}.notifications-head>div{display:flex;align-items:center;gap:4px}.notifications-head .link{min-height:40px;padding:8px}.notification-close{width:40px;min-width:40px;height:40px;min-height:40px;border:0;font-size:24px;line-height:1}
.notifications-status{min-height:1.5em;margin:8px 4px;color:var(--muted);font-size:12px}.notifications-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}.notification-item{min-width:0;border:1px solid transparent;border-radius:11px}.notification-item.is-unread{border-color:#cdd8ff;background:#f2f5ff}.notification-link{display:grid;min-width:0;gap:3px;padding:11px 10px;color:var(--ink);overflow-wrap:anywhere}.notification-link:hover{background:#f7f9fc;color:var(--ink)}.notification-link strong{font-size:13px;line-height:1.45}.notification-link span{color:var(--muted);font-size:11px}.notifications-empty{margin:0;padding:24px 10px;color:var(--muted);text-align:center;font-size:13px}.notifications-more{display:flex;justify-content:center;padding:10px 0 2px}.notifications-more [hidden]{display:none}
.ai-chat-toggle{display:grid;width:44px;min-width:44px;height:44px;min-height:44px;place-items:center;padding:0;border-radius:12px;color:var(--ink);font-size:12px;font-weight:800}.ai-chat-toggle:hover{border-color:#c8d2ec;background:#f3f6ff}.ai-chat-toggle span{display:grid;width:24px;height:24px;place-items:center;border-radius:8px;background:#293d7a;color:#fff;letter-spacing:-.04em}
.ai-chat-dialog{width:min(820px,calc(100% - 32px));height:min(720px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);grid-template-rows:auto auto minmax(96px,1fr) auto auto;gap:12px;margin:auto;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--paper);box-shadow:0 24px 80px #10182840}.ai-chat-dialog[open]{display:grid}.ai-chat-dialog::backdrop{background:#10182873;backdrop-filter:blur(2px)}body.ai-chat-open{overflow:hidden}.ai-chat-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.ai-chat-head h2{margin:0;font-size:19px}.ai-chat-head p{margin:4px 0 0;color:var(--muted);font-size:13px}.ai-chat-device-block{display:grid;gap:4px}.ai-chat-device,.ai-chat-status{min-height:1.4em;margin:0;color:var(--muted);font-size:13px}.ai-chat-settings{width:max-content;min-height:24px;padding:0}.ai-chat-log{display:grid;align-content:start;gap:8px;min-height:0;margin:0;padding:4px;overflow:auto;list-style:none;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.ai-chat-message{max-width:92%;padding:10px 12px;border-radius:12px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px;line-height:1.5}.ai-chat-message.is-user{justify-self:end;background:#293d7a;color:#fff}.ai-chat-message.is-assistant{justify-self:start;background:#fff;color:var(--ink);box-shadow:0 1px 2px #10182814}.ai-chat-message.is-error{border:1px solid #f1a9a0;color:var(--danger-600)}.ai-chat-empty{padding:18px 10px;color:var(--muted);text-align:center;font-size:13px}.ai-chat-feedback{display:flex;align-items:center;gap:8px;min-height:1.4em}.ai-chat-feedback .ai-chat-status{flex:1}.ai-chat-form{display:grid;gap:7px}.ai-chat-form textarea{resize:vertical}.ai-chat-form .checkbox-field{font-size:13px}.ai-chat-form [aria-busy="true"]{cursor:wait}
#leave-body tr.is-deep-linked,#leave-body tr.is-deep-linked:focus{outline:3px solid #7f99f8;outline-offset:-3px;background:#f2f5ff}
@media(max-width:900px){.notifications-panel{top:calc(var(--shell-topbar) + 8px);right:12px;max-height:calc(100dvh - var(--shell-topbar) - 20px)}.ai-chat-dialog{width:calc(100% - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:16px;border-radius:16px}}
@media(max-width:520px){.account-actions{gap:4px}.notification-toggle,.ai-chat-toggle{width:40px;min-width:40px;height:40px;min-height:40px}.notifications-panel{right:8px;width:calc(100vw - 16px)}}

/* 공통 데이터 표 검색·정렬 */
.table-tools{display:flex;align-items:end;gap:10px;margin:0 0 12px}
.table-tools label{display:grid;flex:1 1 280px;max-width:420px;gap:5px;color:var(--muted);font-size:12px;font-weight:700}
.table-tools input{min-height:40px}
.table-tools-status{margin-left:auto;color:var(--muted);font-size:12px;white-space:nowrap}
.table-sort-button{display:inline-flex;width:100%;min-height:28px;align-items:center;justify-content:space-between;gap:8px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer}
.table-sort-button::after{content:"↕";flex:0 0 auto;color:#667085;font-size:13px;font-weight:800}
.table-sort-button[data-direction="ascending"]::after{content:"↑";color:var(--primary)}
.table-sort-button[data-direction="descending"]::after{content:"↓";color:var(--primary)}
.table-sort-button:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:3px}
th.num .table-sort-button{justify-content:flex-end}
th[aria-sort="ascending"],th[aria-sort="descending"]{background:#eef4ff;color:#183b75}
.content nav.table-pager-top{justify-content:flex-end!important;margin:0 0 12px!important}
@media(max-width:520px){
  .table-tools{align-items:stretch;flex-direction:column}
  .table-tools label{flex-basis:auto;max-width:none}
  .table-tools-status{margin-left:0}
}

/* 주간업무보고서 */
.weekly-report-page .page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.erp-dialog-form.weekly-report-create-dialog{--dialog-width:760px;padding:24px}
.erp-dialog-form.weekly-report-detail-dialog{--dialog-width:1120px;padding:24px}
.erp-dialog-form.weekly-report-create-dialog>form,.erp-dialog-form.weekly-report-detail-dialog>form{display:block;gap:0;padding:0}
body:has(.weekly-report-create-dialog[open]),body:has(.weekly-report-detail-dialog[open]){overflow:hidden}
.weekly-report-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.weekly-report-dialog-head h2,.weekly-report-dialog-head p{margin-top:0}
.weekly-report-title-field{grid-column:span 2}
.weekly-report-members-field{grid-column:1/-1}
.weekly-report-source-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:12px 14px;border-radius:11px;background:#f8fafc}
.weekly-report-content-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.weekly-report-editor-shell{position:relative}
.weekly-report-content{
  min-height:420px;
  margin-top:10px;
  padding:22px;
  overflow:auto;
  border:1px solid #d7dde8;
  border-radius:13px;
  background:#fff;
  line-height:1.65;
}
.weekly-report-content[contenteditable=true]:focus{border-color:#7390ff;outline:0;box-shadow:0 0 0 4px #3157d512}
.weekly-report-content[contenteditable=true]:empty::before{color:#98a2b3;content:attr(data-placeholder);pointer-events:none}
.weekly-report-content h1,.weekly-report-content h2,.weekly-report-content h3,.weekly-report-content h4{margin:1.4em 0 .55em}
.weekly-report-content h1:first-child,.weekly-report-content h2:first-child,.weekly-report-content h3:first-child{margin-top:0}
.weekly-report-content ul,.weekly-report-content ol{padding-left:1.7em}
.weekly-report-content li{margin:.3em 0}
.weekly-report-content blockquote{margin:1em 0;padding:.2em 1em;border-left:4px solid #98a2b3;color:#475467}
.weekly-report-content pre{overflow:auto;padding:14px;border-radius:9px;background:#101828;color:#f2f4f7;white-space:pre-wrap}
.weekly-report-content hr{margin:24px 0;border:0;border-top:1px solid #d7dde8}
.weekly-report-content table{width:max-content;min-width:100%;margin:14px 0;border-collapse:collapse}
.weekly-report-content th,.weekly-report-content td{padding:9px 11px;border:1px solid #dfe5ef;vertical-align:top}
.weekly-report-content img{display:block;max-width:100%;height:auto;margin:14px 0;border-radius:10px}
.weekly-report-content a{overflow-wrap:anywhere}
.weekly-report-slash-menu{
  position:absolute;
  z-index:5;
  width:min(292px,calc(100% - 16px));
  max-height:min(390px,50vh);
  overflow:auto;
  padding:8px;
  border:1px solid #d7dde8;
  border-radius:12px;
  background:#fff;
  box-shadow:0 18px 45px #1018282e;
}
.weekly-report-slash-menu[hidden]{display:none}
.weekly-report-slash-menu p{margin:2px 8px 6px;color:#667085;font-size:.8rem;font-weight:700}
.weekly-report-slash-menu button{
  display:flex;
  align-items:center;
  width:100%;
  min-height:44px;
  gap:12px;
  padding:8px 10px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#344054;
  text-align:left;
}
.weekly-report-slash-menu button span{font-weight:600}
.weekly-report-slash-menu button:hover,.weekly-report-slash-menu button.is-active{background:#f2f4f7;color:#101828}
.weekly-report-dialog-actions{justify-content:flex-end;margin-top:20px}

@media(max-width:700px){
  .weekly-report-page .page-head,.weekly-report-dialog-head,.weekly-report-source-row,.weekly-report-content-head{align-items:stretch;flex-direction:column}
  .weekly-report-title-field{grid-column:auto}
  .erp-dialog-form.weekly-report-create-dialog,.erp-dialog-form.weekly-report-detail-dialog{padding:18px}
  .weekly-report-content{min-height:340px;padding:15px}
}

.scene-path:focus-visible{
  filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #101828);
}

/* 커맨드 팔레트(⌘K)·사이드바 빠른 이동 */
.sidebar-search{display:flex;width:100%;min-height:40px;align-items:center;gap:8px;margin:0 0 12px;padding:8px 11px;border:1px solid #ffffff14;border-radius:11px;background:#ffffff0a;color:#8ea0c0;font-size:12px;font-weight:650;cursor:pointer}
.sidebar-search:hover{border-color:#ffffff24;background:#ffffff10;color:#dbe6fb;transform:none;box-shadow:none}
.sidebar-search-icon{font-size:15px;line-height:1}
.sidebar-search-label{min-width:0;overflow:hidden;flex:1;text-align:left;text-overflow:ellipsis;white-space:nowrap}
.sidebar-search kbd{padding:1px 6px;border:1px solid #ffffff1f;border-radius:5px;background:transparent;color:#a9b7d2;font-family:inherit;font-size:10px;font-weight:700;line-height:1.4}
@media(min-width:901px){
  body.sidebar-collapsed .sidebar-search{justify-content:center;padding:8px 0}
  body.sidebar-collapsed .sidebar-search-label,body.sidebar-collapsed .sidebar-search kbd{display:none}
}
.command-palette{width:min(560px,calc(100% - 32px));margin:min(14vh,130px) auto auto;border:0;border-radius:16px;padding:0;background:var(--paper);box-shadow:0 30px 90px #10182859}
.command-palette::backdrop{background:#10182880;backdrop-filter:blur(2px)}
body.command-palette-open{overflow:hidden}
.command-palette-shell{display:grid}
.command-palette-input{min-height:52px;border:0;border-bottom:1px solid var(--line);border-radius:16px 16px 0 0;padding:14px 18px;font-size:15px;box-shadow:none}
.command-palette-input:focus{border-color:var(--line);outline:0;box-shadow:none}
.command-palette-list{max-height:min(46vh,380px);overflow:auto;margin:0;padding:8px;list-style:none}
.command-palette-list li[role=option]{display:flex;min-height:46px;align-items:center;gap:11px;padding:7px 10px;border-radius:10px;cursor:pointer}
.command-palette-list li[role=option]:hover{background:#f4f6fb}
.command-palette-list li.is-active{background:var(--info-50)}
.command-palette-icon{display:grid;width:30px;height:30px;flex:none;place-items:center;border:1px solid var(--line);border-radius:9px;background:#f8fafc;color:#5b6b84}
.command-palette-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}
.command-palette-list li.is-active .command-palette-icon{border-color:#d7e1ff;background:#e5ecff;color:#294fc8}
.command-palette-copy{display:grid;min-width:0;gap:1px}
.command-palette-copy strong{overflow:hidden;font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.command-palette-copy small{color:var(--muted);font-size:11px;font-weight:650}
.command-palette-empty{padding:22px 12px;color:var(--muted);text-align:center;font-size:13px}
.command-palette-help{display:flex;align-items:center;gap:6px;margin:0;padding:10px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.command-palette-help kbd{padding:1px 5px;border:1px solid var(--line);border-radius:4px;background:#f8fafc;font-family:inherit;font-size:10px}
@media(max-width:520px){.command-palette{width:calc(100% - 20px);margin-top:10px}}

/* 표준 중앙 다이얼로그 컴포넌트 — 새 화면은 페이지별 다이얼로그 CSS를 새로 만들지 않고 이 클래스를 사용한다.
   폭 변형은 래퍼 클래스에서 --dialog-width만 재정의한다. */
.erp-dialog{width:min(var(--dialog-width,720px),calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);overflow:hidden;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 24px 64px #10182838}
.erp-dialog::backdrop{background:#10182891}
.erp-dialog>form,.erp-dialog-shell{display:grid;max-height:calc(100dvh - 48px);grid-template-rows:auto minmax(0,1fr) auto}
.erp-dialog-head,.erp-dialog-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;border-bottom:1px solid var(--line)}
.erp-dialog-head h2{margin:0;font-size:20px}
.erp-dialog-head p{margin:4px 0 0}
.erp-dialog-head>button{flex:0 0 auto}
.erp-dialog-body{display:grid;gap:16px;min-height:0;padding:20px;overflow:auto}
.erp-dialog-actions{align-items:center;justify-content:flex-end;border-top:1px solid var(--line);border-bottom:0;background:#fbfcfe}
.erp-dialog-close{width:42px;min-width:42px;padding:0;font-size:26px;font-weight:300;line-height:1}
.erp-dialog fieldset{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:12px}
.erp-dialog fieldset:disabled{opacity:.55}
.erp-dialog legend{padding:0 6px;font-weight:800}
body.erp-dialog-open{overflow:hidden}
@media(max-width:560px){
  .erp-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .erp-dialog>form,.erp-dialog-shell{max-height:calc(100dvh - 16px)}
  .erp-dialog-head,.erp-dialog-body,.erp-dialog-actions{padding:14px}
  .erp-dialog-actions{flex-wrap:wrap}
}

/* 원천 workbook·snapshot 공통 조회: 열은 생략하지 않고 내부에서만 가로 스크롤한다. */
.raw-data-dialog{--dialog-width:1280px;overflow:clip}
.raw-data-dialog-body{display:flex;flex-direction:column;min-width:0}
.raw-data-dialog-body>*{flex-shrink:0}
.raw-data-meta,.raw-data-policy{margin:0;padding:11px 13px;border:1px solid #cdd8ff;border-radius:10px;background:#f5f7ff;color:#344054;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.raw-sheet-select{display:grid;max-width:360px;gap:6px;font-size:12px;font-weight:750}
.raw-sheet-select select{min-height:40px}
.raw-data-range{margin:0}
.raw-data-table-wrap{max-height:min(52dvh,560px);margin:0;overflow:auto}
.raw-data-table{min-width:max-content;border-collapse:collapse}
.raw-data-table th,.raw-data-table td{max-width:360px;vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}
.raw-data-table th{position:sticky;z-index:1;top:0}
.raw-data-pager{justify-content:center;margin:0}
@media(max-width:640px){
  .raw-data-dialog{width:calc(100vw - 16px)}
  .raw-data-dialog-body{padding:14px}
  .raw-data-table-wrap{max-height:55dvh}
  .raw-data-pager{flex-wrap:wrap}
}

/* 소형 폼 다이얼로그 변형 — dialog>form 직속 구조(등록·확인·간단 폼). 폭은 --dialog-width 재정의. */
.erp-dialog-form{width:min(var(--dialog-width,560px),calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:0;border-radius:16px;padding:0;background:var(--paper);box-shadow:0 24px 80px #1018284d}
.erp-dialog-form::backdrop{background:#10182899}
.erp-dialog-form>form{display:grid;gap:14px;padding:22px}
.erp-dialog-form>form>h2{margin:0;font-size:20px;letter-spacing:-.025em}
.erp-dialog-form .dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.erp-dialog-form .dialog-head h2{margin:0;font-size:20px;letter-spacing:-.025em}
.erp-dialog-form .dialog-head .eyebrow{margin-bottom:5px}
.erp-dialog-form .actions,.erp-dialog-form .dialog-actions{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:520px){
  .erp-dialog-form{width:calc(100vw - 16px)}
  .erp-dialog-form>form{padding:18px}
  .erp-dialog-form .actions,.erp-dialog-form .dialog-actions{flex-direction:column-reverse}
  .erp-dialog-form .actions button,.erp-dialog-form .dialog-actions button{width:100%}
}

/* 사이드바 대기 건수 배지 */
.sidebar-count{margin-left:auto;flex:none;min-width:20px;padding:1px 7px;border-radius:999px;background:#ffffff14;color:#c8d3e8;font-size:10px;font-weight:750;text-align:center;font-variant-numeric:tabular-nums}
.sidebar-navigation a[aria-current=page] .sidebar-count{background:var(--info-50);color:var(--info-600)}
@media(min-width:901px){
  body.sidebar-collapsed .sidebar-count{display:none}
}

/* 공통 필터바 — 새 화면은 페이지별 필터 박스를 재구현하지 않고 이 클래스를 사용한다.
   열 구성만 --filterbar-columns로 재정의한다. */
.erp-filterbar{display:grid;grid-template-columns:var(--filterbar-columns,repeat(auto-fit,minmax(160px,1fr)));align-items:end;gap:12px;margin:0 0 14px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}
.erp-filterbar label{display:grid;min-width:0;gap:6px;color:var(--ink);font-size:12px;font-weight:700}
@media(max-width:760px){.erp-filterbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.erp-filterbar{grid-template-columns:1fr}}
