:root{
  --navy:#0d1526; --navy2:#131d33; --ink:#101828; --muted:#667085; --line:#e4e8f0;
  --bg:#f4f6fa; --card:#fff; --amber:#f5a623; --amber-d:#e0901a; --amber-l:#fff6e6;
  --teal:#0f9d8f; --teal-l:#e6f7f5; --blue:#2e6bd8; --blue-l:#eaf1fd;
  --red:#d9534f; --red-l:#fdecec; --green:#12805c; --green-l:#e7f6ef;
  --radius:14px; --shadow:0 1px 2px rgba(16,24,40,.05),0 6px 18px -12px rgba(16,24,40,.25);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Pretendard Variable","Pretendard","Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",system-ui,-apple-system,sans-serif;
  background:var(--bg); color:var(--ink); font-size:15.5px; font-weight:500; line-height:1.5; -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
h1,h2,h3,h4{margin:0;font-weight:800;letter-spacing:-.02em}
.mono{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.small{font-size:13.5px;font-weight:600}
.tiny{font-size:12.5px;font-weight:600}
/* A4 인쇄 양식(.sheet) 안에서는 화면 글자 확대를 적용하지 않는다 — 인쇄물 비율 유지 */
.sheet{font-weight:400}
.sheet .small{font-size:12px;font-weight:400}
.sheet .tiny{font-size:11px;font-weight:400}
.right{text-align:right}
.center{text-align:center}
.nowrap{white-space:nowrap}
.row{display:flex;gap:10px;align-items:center}
.between{display:flex;justify-content:space-between;align-items:center;gap:12px}
.wrap{max-width:1720px;margin:0 auto;padding:20px 26px 34px}

/* ---------------- top bar ---------------- */
.topbar{background:linear-gradient(180deg,#0d1526,#111b2e);color:#e9eef8;border-bottom:1px solid #1c2942;position:sticky;top:0;z-index:40}
.topbar .inner{max-width:1720px;margin:0 auto;padding:0 26px;min-height:62px;display:flex;align-items:center;gap:16px;flex-wrap:nowrap}
.brand{display:flex;align-items:center;flex:none;background:#fff;border-radius:10px;
  padding:4px 12px 4px 10px;box-shadow:0 2px 8px rgba(8,15,30,.28)}
.brand-logo{height:38px;width:auto;display:block}
.brand .sun{width:26px;height:26px}
.brand small{display:block;font-size:9.5px;letter-spacing:.18em;color:#93a2bd;font-weight:600;margin-top:2px}
/* 베타 운영 표시 — 로고 옆 작은 알약. 화면 전용(인쇄물·A4 서식에는 나오지 않음) */
.beta-badge{flex:none;display:inline-flex;align-items:center;justify-content:center;
  height:19px;padding:0 5px 0 8px;border-radius:999px;white-space:nowrap;
  font-size:9.5px;font-weight:900;letter-spacing:.14em;line-height:1;text-indent:.01em;
  color:#f7c873;background:rgba(245,166,35,.13);border:1px solid rgba(245,166,35,.42);
  box-shadow:0 1px 3px rgba(8,15,30,.22);user-select:none}
@media print{.beta-badge{display:none!important}}
.nav{display:flex;gap:2px;margin-left:6px;flex:1 1 auto;min-width:0;align-items:center}
.nav > a,.dept-btn{padding:10px 12px;border-radius:10px;color:#c3cde0;font-weight:800;font-size:14.5px;white-space:nowrap;display:inline-flex;align-items:center;height:42px}
.nav > a{line-height:1.5;justify-content:center}
.nav > a:hover{background:#1a2740;color:#fff}
.nav > a.on{background:#1e2c47;color:#fff;box-shadow:inset 0 -2px 0 var(--amber)}
/* ---- 5대 부서 드롭다운 ---- */
.dept{position:relative;display:flex;flex:none}
.dept-btn{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;cursor:pointer;font-family:inherit}
.dept-btn:hover{background:#1a2740;color:#fff}
.dept-btn.on{background:#1e2c47;color:#fff;box-shadow:inset 0 -2px 0 var(--amber)}
/* 부서 홈 링크 + 옆 캐럿(생산) — 이름은 부서 홈으로, 캐럿은 하위 메뉴 */
.dept.split .dept-btn{border-radius:10px 0 0 10px;padding-right:3px}
.dept-toggle{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;
  cursor:pointer;color:#c3cde0;height:42px;min-width:30px;padding:0 9px 0 4px;border-radius:0 10px 10px 0}
.dept-toggle:hover{background:#1a2740;color:#fff}
.dept.split .dept-btn:hover + .dept-toggle{background:#1a2740;color:#fff}
.dept.split .dept-btn.on + .dept-toggle{background:#1e2c47;color:#fff;box-shadow:inset 0 -2px 0 var(--amber)}
.dept-toggle .caret,.dept-toggle .caret{width:6px;height:6px;border-right:1.7px solid currentColor;
  border-bottom:1.7px solid currentColor;transform:rotate(45deg) translate(-1px,-1px);opacity:.7;transition:transform .15s}
.dept.open .dept-toggle .caret{opacity:1;transform:rotate(225deg) translate(-1px,-1px)}
.dept-btn .caret{width:6px;height:6px;border-right:1.7px solid currentColor;border-bottom:1.7px solid currentColor;transform:rotate(45deg) translate(-1px,-1px);opacity:.65;transition:transform .15s}
.dept-btn:hover .caret,.dept.open .dept-btn .caret{opacity:1}
.dept.open .dept-btn .caret{transform:rotate(225deg) translate(-1px,-1px)}
.dept-panel{position:absolute;top:calc(100% + 10px);left:0;min-width:284px;max-width:340px;background:#fff;color:var(--ink);
  border:1px solid var(--line);border-radius:14px;padding:8px;display:none;z-index:80;
  box-shadow:0 20px 44px -14px rgba(9,17,32,.42),0 2px 6px rgba(9,17,32,.10)}
.dept-panel:before{content:"";position:absolute;left:22px;top:-6px;width:10px;height:10px;background:#fff;
  border-left:1px solid var(--line);border-top:1px solid var(--line);transform:rotate(45deg);border-radius:2px 0 0 0}
.dept.align-r .dept-panel,.dept.flip-r .dept-panel{left:auto;right:0}
.dept.align-r .dept-panel:before,.dept.flip-r .dept-panel:before{left:auto;right:22px;border-left:0;border-top:1px solid var(--line);border-right:1px solid var(--line)}
.dept.open .dept-panel{display:block}
/* 버튼과 패널 사이 10px 틈 — hover 가 끊기지 않게 투명 다리를 놓는다 */
@media (hover:hover) and (pointer:fine){
  .dept:hover .dept-panel{display:block}
  .dept:before{content:"";position:absolute;left:0;right:0;top:100%;height:10px}
}
.dp-head{padding:8px 12px 6px;font-size:9.5px;letter-spacing:.18em;font-weight:900;color:#98a2b3}
.dp-item{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border-radius:10px}
.dp-item:hover{background:#f4f7fc}
.dp-item.on{background:var(--amber-l)}
.dp-item.on:hover{background:#ffefd2}
.dp-item .dp-t{display:flex;align-items:center;gap:7px;font-weight:800;font-size:13px;color:#1d2939;line-height:1.35}
.dp-item .dp-d{font-size:11.5px;color:var(--muted);line-height:1.35}
.dp-badge{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;background:#f1f3f7;border:1px solid #e1e5ed;
  color:#667085;font-size:10px;font-weight:800;letter-spacing:0}
.dp-foot{margin-top:4px;padding:9px 12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;
  align-items:center;font-size:11.5px;font-weight:800;color:#475467;border-radius:0 0 10px 10px}
.dp-foot:hover{background:#f4f7fc;color:#1d2939}
.userchip{display:flex;align-items:center;gap:10px;font-size:12.5px;color:#bac6db}
.userchip b{color:#fff;font-size:13px}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--amber);color:#20180a;display:grid;place-items:center;font-weight:900}
.btn-ghost{border:1px solid #33415e;background:transparent;color:#d6dfef;padding:8px 12px;border-radius:10px;font-weight:700;cursor:pointer}
.btn-ghost:hover{background:#1a2740}

/* mode pill */
.mode-switch{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid #2c3b58;background:#101a2d;font-size:12px}
.mode-switch .dot{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 8px #4ade80}
.mode-switch.off .dot{background:#94a3b8;box-shadow:none}
.switch{position:relative;display:inline-block;width:40px;height:22px;flex:none}
.switch input{display:none}
.switch span{position:absolute;inset:0;background:#39465f;border-radius:999px;transition:.15s;cursor:pointer}
.switch span:before{content:"";position:absolute;width:16px;height:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.15s}
.switch input:checked + span{background:var(--amber)}
.switch input:checked + span:before{transform:translateX(18px)}

/* ---------------- generic ---------------- */
.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin:6px 0 18px;gap:16px;flex-wrap:wrap}
.page-head h1{font-size:26px}
.page-head .sub{color:var(--muted);margin-top:6px;font-size:13px}
.page-head .head-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}
.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;font-size:12.5px;font-weight:800;border:1px solid transparent;white-space:nowrap}
.badge.amber{background:var(--amber-l);color:#a26300;border-color:#f3d59a}
.badge.teal{background:var(--teal-l);color:#0a6f65;border-color:#b7e5df}
.badge.blue{background:var(--blue-l);color:#1e4fa8;border-color:#c3d7f8}
.badge.red{background:var(--red-l);color:#a83a36;border-color:#f3c4c2}
.badge.green{background:var(--green-l);color:#0b6b4c;border-color:#bfe6d5}
.badge.gray{background:#f1f3f7;color:#475467;border-color:#e1e5ed}
/* 생산계획표 헤더 — 상태 빠른 필터(누르면 그 상태만 보기) */
.quickf{display:inline-flex;align-items:center;gap:5px}
.quickf a.badge.qf{background:#f1f3f7;color:#475467;border-color:#e1e5ed;text-decoration:none;cursor:pointer;transition:background .12s,border-color .12s}
.quickf a.badge.qf:hover{background:#fff7e6;border-color:#f3d59a;color:#8a5500}
.quickf a.badge.qf.on{background:var(--amber-l);color:#7a4a00;border-color:var(--amber-d);box-shadow:0 0 0 2px rgba(243,213,154,.45)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card .hd{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}
.card .hd h3{font-size:14px}
.card .bd{padding:16px 18px}
.grid{display:grid;gap:14px}
.kpi{padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}
.kpi .lab{color:var(--muted);font-size:12px;font-weight:700}
.kpi .val{font-size:22px;font-weight:900;margin-top:6px;letter-spacing:-.02em}
.kpi .val small{font-size:12px;font-weight:700;color:var(--muted)}
.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:800;cursor:pointer;transition:.12s}
.btn:hover{border-color:#c9d2e2;background:#fafbfe}
.btn.primary{background:var(--amber);border-color:var(--amber);color:#241a07}
.btn.primary:hover{background:var(--amber-d);border-color:var(--amber-d)}
.btn.dark{background:var(--navy2);border-color:var(--navy2);color:#fff}
.btn.dark:hover{background:#1b2740}
.btn.danger{color:#a83a36;border-color:#f3c4c2;background:#fff}
.btn.sm{padding:6px 10px;font-size:12px;border-radius:8px}
.btn:disabled{opacity:.5;cursor:not-allowed}
.field label{display:block;font-size:13.5px;font-weight:800;color:#344054;margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;padding:10px 12px;border:1px solid #d5dbe6;border-radius:10px;background:#fff;outline:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#f0b64a;box-shadow:0 0 0 3px #fdf1da}
.stepper{display:flex;align-items:center;border:1px solid #d5dbe6;border-radius:10px;overflow:hidden;background:#fff}
.stepper button{width:40px;height:42px;border:0;background:#f7f9fc;font-size:18px;font-weight:800;cursor:pointer;color:#344054}
.stepper button:hover{background:#eef2f8}
.stepper input{flex:1;border:0;text-align:center;height:42px;font-weight:800;outline:none}
table.tb{width:100%;border-collapse:collapse}
table.tb th,table.tb td{padding:9px 10px;border-bottom:1px solid #edf0f5;text-align:left;vertical-align:middle}
table.tb td{font-size:14px;font-weight:600}
table.tb th{background:#fafbfd;color:#475467;font-weight:800;font-size:13px;white-space:nowrap}
table.tb td.num,table.tb th.num{text-align:right;font-variant-numeric:tabular-nums}
table.tb tr:hover td{background:#fcfdff}
.tag{display:inline-block;padding:2px 7px;border-radius:6px;background:#f1f3f7;font-size:12px;font-weight:800;color:#475467}
.tag.pouch{background:var(--blue-l);color:#1e4fa8}
.tag.box{background:var(--teal-l);color:#0a6f65}
.empty{padding:36px;text-align:center;color:var(--muted);font-size:13px}
.notice{display:block;padding:12px 14px;border-radius:12px;font-size:14px;font-weight:600;line-height:1.6;border:1px solid}
.notice.warn{background:#fffaf0;border-color:#f6dfae;color:#8a5a00}
.notice.info{background:#f5f8ff;border-color:#d5e2fa;color:#1e4b9c}
.notice.ok{background:#f2fbf7;border-color:#c8e9da;color:#0b6b4c}
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);background:#101828;color:#fff;padding:12px 20px;border-radius:12px;font-weight:700;box-shadow:0 12px 30px rgba(16,24,40,.3);opacity:0;pointer-events:none;transition:.2s;z-index:99}
.toast.show{opacity:1;bottom:36px}
.divider{height:1px;background:var(--line);margin:14px 0}

/* ---------------- login ---------------- */
.login-body{min-height:100vh;background:#05080f;color:#fff;position:relative;overflow:hidden}
.login-bg{position:absolute;inset:0;background-image:url("/static/img/login-horizon.jpg");background-size:cover;background-position:center;filter:saturate(1.05)}
.login-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,8,16,.92) 0%,rgba(4,8,16,.7) 38%,rgba(4,8,16,.35) 62%,rgba(4,8,16,.55) 100%)}
.login-wrap{position:relative;z-index:2;min-height:100vh;display:flex;flex-direction:column;justify-content:center;max-width:1500px;margin:0 auto;padding:40px 56px}
.login-brand{position:absolute;top:38px;left:56px;display:flex;align-items:center;gap:12px}
.login-brand .lb-logo{height:42px;width:auto;display:block;background:#fff;border-radius:10px;
  padding:4px 11px 4px 9px;box-shadow:0 2px 10px rgba(8,15,30,.35)}
.login-brand .lb-tx{display:flex;flex-direction:column;gap:2px}
.login-brand .nm-line{display:flex;align-items:center;gap:8px}
.login-brand .nm{font-weight:900;letter-spacing:.2em;font-size:15px;color:#e9eef8;line-height:1.1}
.login-brand .beta-badge{height:18px;font-size:9px;letter-spacing:.13em}
.login-brand .hmean{display:grid;grid-template-columns:auto 1fr;column-gap:6px;row-gap:1px;
  margin-top:1px;line-height:1.35;align-items:baseline}
.login-brand .hmean .h{font-size:10px;font-weight:800;letter-spacing:.04em;color:#93a2bd;white-space:nowrap}
.login-brand .hmean .w{font-size:10px;font-weight:700;letter-spacing:.1em;color:#93a2bd;white-space:nowrap}
.login-brand .hmean b{color:#f5b64a;font-weight:900;letter-spacing:.02em}
.login-brand .hmean .h:empty{visibility:hidden}
.login-main{display:grid;grid-template-columns:1.25fr 460px;gap:60px;align-items:center}
.login-hero h1{font-size:74px;letter-spacing:.16em;font-weight:800;margin:0 0 10px}
.login-hero .tagline{font-size:16px;color:#d7deea;font-weight:700}
.login-hero .quote{margin-top:26px;padding-left:16px;border-left:3px solid var(--amber);color:#dbe2ee;font-size:15px;line-height:1.75;font-weight:600}
.phil{display:flex;gap:0;margin-top:40px;border:1px solid #3a4560;border-radius:14px;padding:17px 18px;background:rgba(10,16,28,.55);backdrop-filter:blur(6px);max-width:760px}
.phil div{flex:1;text-align:center}
.phil b{display:block;font-size:26px;color:var(--amber);letter-spacing:.05em;line-height:1}
.phil span{display:block;margin-top:7px;font-size:9.5px;color:#aab6cc;letter-spacing:.04em;line-height:1.3}
.login-card{background:rgba(255,255,255,.97);color:var(--ink);border-radius:18px;padding:34px 32px 26px;box-shadow:0 30px 60px -20px rgba(0,0,0,.5)}
.login-card .st{font-size:10.5px;letter-spacing:.2em;color:var(--amber-d);font-weight:900}
.login-card h2{font-size:30px;margin:6px 0 6px}
.login-card .desc{color:var(--muted);font-size:13px;margin-bottom:20px}
.login-card .field{margin-bottom:14px}
.login-card .btn{width:100%;justify-content:center;padding:13px;font-size:15px}
.demo{margin-top:18px;border-top:1px dashed #dfe4ee;padding-top:16px}
.demo .t{text-align:center;color:#98a2b3;font-size:11px;font-weight:700;margin-bottom:10px}
.demo a{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e3e8f1;border-radius:10px;margin-bottom:7px;background:#fbfcfe}
.demo a:hover{border-color:#f0c47a;background:#fffaf0}
.demo .av{width:30px;height:30px;border-radius:7px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:800;font-size:12px}
.demo .nm{font-weight:800;font-size:13px}
.demo .rl{color:var(--muted);font-size:11.5px;margin-left:auto}
.login-foot{position:absolute;bottom:26px;left:56px;color:#8b98b0;font-size:11.5px;letter-spacing:.02em;z-index:2}
.err{background:#fdecec;border:1px solid #f3c4c2;color:#a83a36;padding:10px 12px;border-radius:10px;font-size:12.5px;font-weight:700;margin-bottom:12px}

/* ---------------- home ---------------- */
.sys-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.sys-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 16px 14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px;min-height:132px}
.sys-card .t{display:flex;align-items:center;gap:10px;font-weight:800;font-size:14px}
.sys-card .ic{width:34px;height:34px;border-radius:9px;background:#f3f5fa;display:grid;place-items:center;font-size:16px}
.sys-card .meta{color:var(--muted);font-size:11.5px;line-height:1.6}
.sys-card .foot{margin-top:auto;display:flex;gap:6px;flex-wrap:wrap}
.sys-card.hz{border-color:#f3d59a;background:linear-gradient(180deg,#fffdf8,#fff)}
.sys-card .go{color:var(--amber-d);font-weight:800;font-size:12px;margin-left:auto}
.dash{display:grid;grid-template-columns:1fr 420px;gap:16px;margin-top:16px;align-items:start}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.kpis.three{grid-template-columns:repeat(3,1fr)}   /* 카드 3장인 화면(생산계획표 상단) */
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:#f1f3f7;font-size:11px;font-weight:700;color:#475467}
.dotg{width:7px;height:7px;border-radius:50%;background:#22c55e}
.list-line{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px dashed #eceff5;font-size:12.5px}
.list-line:last-child{border:0}

/* print hub */
.print-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.pcard{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}
.pcard .no{font-size:11px;font-weight:900;color:var(--amber-d);letter-spacing:.12em}
.pcard h4{font-size:15px}
.pcard p{margin:0;color:var(--muted);font-size:12px;line-height:1.55;min-height:36px}
.pcard .kbd{align-self:flex-start;font-size:10.5px;color:#667085;border:1px solid #dfe4ee;border-bottom-width:2px;border-radius:6px;padding:2px 6px;background:#fbfcfe;font-weight:700}
.pcard .acts{display:flex;gap:6px;margin-top:auto}
.pcard-link{display:inline-block;font-size:11.5px;font-weight:800;color:#b7791f;margin-top:-4px}
.pcard-link:hover{text-decoration:underline}

/* mix/work split */
.workbench{display:grid;grid-template-columns:330px minmax(0,1fr) 340px;gap:16px;align-items:start}
.workbench.two-col{grid-template-columns:330px minmax(0,1fr)}
.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.panel .ph{padding:13px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:13px}
.panel .pb{padding:14px 16px}
.stack{display:flex;flex-direction:column;gap:12px}
.seg{display:flex;background:#eef1f7;border-radius:10px;padding:3px;gap:3px}
.seg button{flex:1;border:0;background:transparent;padding:8px;border-radius:8px;font-weight:800;color:#5b667a;cursor:pointer;font-size:12.5px}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(16,24,40,.12)}
.seg.amber button.on{background:var(--amber);color:#241a07}
.picker{position:relative}
.picker input{width:100%;padding:10px 12px;border:1px solid #d5dbe6;border-radius:10px}
.picker .list{position:absolute;z-index:30;left:0;right:0;top:44px;max-height:280px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 36px -18px rgba(16,24,40,.4);display:none}
.picker .list.show{display:block}
.picker .it{padding:8px 12px;cursor:pointer;font-size:12.5px;border-bottom:1px solid #f4f6fa}
.picker .it:hover,.picker .it.sel{background:#fff7e8}
.picker .it small{color:var(--muted);margin-left:6px}
.rail .kpi{display:flex;justify-content:space-between;align-items:baseline}
.staff-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px dashed #eef1f6}
.staff-row .nm{flex:1;font-weight:700;font-size:12.5px;min-width:0}
.staff-row .tm{color:var(--muted);font-size:10.5px;font-weight:600}
.staff-row .tm-in{display:block;width:100%;margin-top:3px;padding:3px 6px;border:1px solid #dfe4ee;border-radius:6px;background:#fbfcfe;font-size:10.5px;font-weight:800;color:#334155;letter-spacing:.01em}
.staff-row .tm-in:hover{border-color:#c7d0e0}
.staff-row .tm-in:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 2px rgba(37,99,235,.12)}
.mini-step{display:flex;align-items:center;border:1px solid #dfe4ee;border-radius:8px;overflow:hidden;background:#fff}
.mini-step button{width:26px;height:28px;border:0;background:#f7f9fc;font-weight:800;cursor:pointer}
.mini-step input{width:34px;border:0;text-align:center;font-weight:800;height:28px;outline:none}
.staff-legend{display:flex;gap:6px;font-size:10.5px;color:var(--muted);font-weight:700}

/* A4 sheet */
.sheet-scroll{overflow:auto;padding:8px 0 20px}
.sheet{
  width:210mm;min-height:297mm;margin:0 auto;background:#fff;color:#111;
  padding:11mm 12mm 9mm;box-shadow:0 18px 40px -22px rgba(16,24,40,.45);border:1px solid #e5e9f0;
  font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-size:9.6pt;line-height:1.42;
  display:flex;flex-direction:column;
}
.sh-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2.2px solid #111;padding-bottom:5px}
.sh-head .co{font-size:9pt}
.sh-head .co b{font-size:10.5pt;letter-spacing:.06em}
.sh-head .doc{font-size:8.4pt;text-align:right}
.sh-title{text-align:center;font-size:21pt;letter-spacing:.42em;font-weight:800;margin:7px 0 8px;padding-left:.42em}
.sh-band{display:flex;justify-content:space-between;gap:8px;background:#f2f4f7;border:1px solid #d7dce5;padding:5px 8px;font-size:8.6pt;margin-bottom:6px}
.sh-band b{font-weight:800}
.sec-t{background:#20293a;color:#fff;font-size:8.6pt;font-weight:800;padding:3px 8px;letter-spacing:.05em;margin:7px 0 0}
table.sh{width:100%;border-collapse:collapse;font-size:8.6pt}
table.sh th,table.sh td{border:1px solid #b9c0cc;padding:3.4px 5px;vertical-align:middle}
table.sh th{background:#eef0f4;font-weight:800;text-align:center;font-size:8.2pt}
table.sh td.c{text-align:center}
table.sh td.r{text-align:right;font-variant-numeric:tabular-nums}
table.sh td.l{text-align:left}
table.sh tr.total td{background:#f6f7f9;font-weight:800}
.sh-grid{display:grid;grid-template-columns:repeat(6,1fr);border:1px solid #b9c0cc;border-top:0}
.sh-grid div{border-right:1px solid #d7dce5;border-bottom:1px solid #d7dce5;padding:4px 6px;font-size:8.4pt;min-height:26px}
.sh-grid div.k{background:#eef0f4;font-weight:800;text-align:center;border-right:1px solid #b9c0cc}
.sh-warn{border:1px solid #d9a300;background:#fff8df;padding:5px 8px;font-size:8.2pt;margin-bottom:5px;line-height:1.4}
.sh-note{border:1px solid #b9c0cc;padding:6px 8px;font-size:8.5pt;min-height:64px;white-space:pre-wrap;line-height:1.55}
.sh-sign{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.sh-sign div{border:1px solid #b9c0cc;height:52px;padding:5px 7px;font-size:8pt;color:#444}
.sh-foot{margin-top:auto;padding-top:8px;display:flex;justify-content:space-between;font-size:7.6pt;color:#666;border-top:1px solid #dde1e8}
.sh-tag{display:inline-block;border:1px solid #b9c0cc;padding:0 5px;font-size:7.6pt;color:#333}
.check{display:inline-block;width:9px;height:9px;border:1px solid #666;margin-right:4px;vertical-align:-1px}

/* ── 최종본(OK 확정) 배지 · 미리보기 편집 ───────────────────────────── */
.sh-final{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;border:1.6px solid #1f7a4d;
  background:#eefaf2;color:#134a2f;font-size:8.2pt;font-weight:700;padding:3px 8px;margin:0 0 5px;
  -webkit-print-color-adjust:exact;print-color-adjust:exact}
.sh-final .sh-final-mark{background:#1f7a4d;color:#fff;padding:0 5px;font-size:7.6pt;letter-spacing:.02em}
.sh-final b{font-weight:800;letter-spacing:.02em}
.sh-final .sh-final-sub{font-weight:600;color:#3c6b53;font-size:7.4pt}
.sh-final .sh-final-sub a{color:#134a2f;text-decoration:underline}
.sheet [data-edit]{border-radius:2px}
.sheet.edit-on [data-edit]{background:#fffbe6;box-shadow:inset 0 0 0 1px #e6c469;cursor:text;padding:0 2px;margin:0 -2px}
.sheet.edit-on [data-edit]:focus{outline:2px solid #2563eb;outline-offset:-1px;background:#fff;box-shadow:none}
.sheet.edit-on [data-edit].dirty{background:#fde68a;box-shadow:inset 0 0 0 1px #d69e2e}
.ed{display:inline-block;min-height:1.15em}
.ed-block{display:block;min-width:4em;min-height:1.15em;white-space:pre-wrap}
.tool-group{display:flex;gap:6px;align-items:center}
.btn.ok{background:#1f7a4d;border-color:#1f7a4d;color:#fff}
.btn.ok:hover{background:#196640;border-color:#196640}
.btn.on{background:#20293a;border-color:#20293a;color:#fff}
.tool-hint{font-size:11.5px;color:#5b6678;font-weight:700}
.tool-hint b{color:#134a2f}
.final-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid #1f7a4d;background:#eefaf2;
  color:#134a2f;font-weight:800;font-size:12px;padding:5px 10px;border-radius:999px}
.final-modal{position:fixed;inset:0;z-index:80;background:rgba(15,21,36,.42);display:none;align-items:center;justify-content:center;padding:24px}
.final-modal.show{display:flex}
.final-modal-box{background:#fff;border-radius:14px;box-shadow:0 30px 70px -30px rgba(10,18,34,.55);
  width:min(860px,96vw);max-height:86vh;display:flex;flex-direction:column;overflow:hidden}
.final-modal-hd{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.final-modal-hd b{font-size:15px}
.final-modal-hd .btn{margin-left:auto}
.final-modal-bd{display:grid;grid-template-columns:300px minmax(0,1fr);gap:0;overflow:hidden;min-height:0}
.final-hist{border-right:1px solid var(--line);overflow:auto;padding:10px;display:flex;flex-direction:column;gap:6px}
.final-hist-item{text-align:left;border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;
  font-size:12px;font-weight:700;cursor:pointer;color:#25324a}
.final-hist-item:hover{border-color:#c9d2e2;background:#fafbfe}
.final-hist-item.latest{border-color:#1f7a4d;background:#f3fbf6}
.final-hist-item.on{background:#eef4fd;border-color:#2563eb}
.final-detail{overflow:auto;padding:12px 14px;font-size:12px}
.final-detail-hd{font-weight:800;margin-bottom:6px}
.final-detail-note{color:#4a5568;margin:4px 0 8px;line-height:1.5}
.final-detail-tb{width:100%;font-size:11.5px}
.final-detail-tb th,.final-detail-tb td{border:1px solid #e4e9f2;padding:4px 6px}
.final-detail-tb th{background:#f4f6fa;font-weight:800}
.cycle-bd{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 14px}
.cycle-info{font-size:12.5px;line-height:1.55;color:#25324a}

/* daily */
.daily-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:16px;align-items:start}
.payload{background:#0f1524;color:#cfe0ff;border-radius:12px;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.6;white-space:pre-wrap;max-height:300px;overflow:auto}
.line-table input,.line-table select{width:100%;padding:6px 8px;border:1px solid #dfe4ee;border-radius:7px;font-size:12px}
.line-table td{padding:6px}
.line-table .q{width:110px}
.line-table .lot{width:150px}

/* admin */
.adm-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:start}
.exc-item{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;background:#fff}
.exc-item.on{border-color:#f3d59a;background:#fffdf7}
.exc-line{display:grid;grid-template-columns:1fr 130px 40px;gap:8px;margin-bottom:6px}
.toggle-line{display:flex;align-items:center;gap:10px}

/* 생산계획 입력·편집 */
.plans-grid{display:grid;grid-template-columns:360px minmax(0,1fr);gap:16px;align-items:start}
.plans-grid > aside.panel{position:sticky;top:76px;min-width:0;scroll-margin-top:84px}
.plans-grid > section{min-width:0}
.plan-table tfoot td{border-top:2px solid #e4e9f2;background:#fafbfd;font-weight:800;font-size:12.5px}
.plan-table-wrap{overflow-x:auto}
.plan-table{min-width:1120px;table-layout:fixed}
.plan-table td{word-break:keep-all;overflow-wrap:anywhere}
.plan-table tr.skel td{border-bottom:1px solid #eef1f6;height:36px;color:#cbd2de}
.plan-table tr.skel:hover td{background:transparent}
.plan-table tr.is-sample td{background:#fffdf7}
.plan-table tr.is-sample:hover td{background:#fffbf0}
.plan-table td .btn + .btn{margin-left:4px}
.plan-table td .btn{white-space:nowrap}
.plan-table td.ordcell{font-size:9.5px;letter-spacing:-.03em;overflow:hidden;white-space:nowrap;padding-left:6px;padding-right:4px}
.plan-table td.ordcell .tiny{font-size:9.5px;letter-spacing:0}
/* 배치 안내를 저장 버튼 아래에 두어 높이가 변해도 버튼 위치가 움직이지 않게 한다 */
.batch-hint{min-height:54px;margin-top:4px;font-weight:400}

/* responsive */
@media (max-width:1500px){
  .workbench{grid-template-columns:300px minmax(0,1fr)}
  .workbench .rail{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
  .nav > a,.dept-btn{padding:9px 10px;font-size:14px}
}
@media (max-width:1360px){
  .topbar .inner{flex-wrap:wrap;padding:8px 18px;row-gap:6px}
  .nav{order:10;flex:1 0 100%;margin-left:0;overflow:visible;flex-wrap:wrap;padding-bottom:2px}
  .brand small{display:none}
  .plans-grid{grid-template-columns:1fr}
  .plans-grid > aside.panel{position:static;max-width:560px}
  .plans-grid .kpis{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1200px){
  .sys-grid{grid-template-columns:repeat(3,1fr)}
  .print-grid{grid-template-columns:repeat(3,1fr)}
  .login-main{grid-template-columns:1fr;gap:26px}
  .login-hero h1{font-size:52px}
  .dash{grid-template-columns:1fr}
  .plans-grid > aside.panel{position:static}
}
@media (max-width:900px){
  /* 좁은 화면 — 드롭다운을 메뉴 줄 안에서 펼치는 블록으로 */
  .dept.open{flex:1 0 100%;flex-wrap:wrap}
  .dept-panel{position:static;flex:1 0 100%;min-width:0;max-width:none;margin-top:6px;box-shadow:none;border-color:#d5dbe6}
  .dept-panel:before{display:none}
  .dept.align-r .dept-panel{left:0;right:auto}
  .sys-grid,.print-grid,.kpis,.adm-grid{grid-template-columns:repeat(2,1fr)}
  .kpis.three{grid-template-columns:repeat(2,1fr)}
  .daily-grid,.workbench{grid-template-columns:1fr}
  .topbar .inner{padding:8px 12px;gap:10px}
  .nav > a,.dept-btn{padding:8px 10px;font-size:13px}
  .mode-switch span:not(.dot){display:none}
  .userchip > div:first-child{display:none}
  .wrap{padding:16px 12px 40px}
}

/* 예외 배합 — 배합비 합계 표시 */
.ratio-sum{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;color:#475467;background:#f4f6fa;border:1px solid #e4e9f2;border-radius:999px;padding:4px 12px}
.ratio-sum b{font-size:12.5px;font-weight:900;color:#166534}
.ratio-sum.bad{background:#fff4ec;border-color:#f6c9a8;color:#9a3412}
.ratio-sum.bad b{color:#c2410c}

/* 차이 리포트 — 요약 카드·빈 양식 */
.var-kpis{margin-top:16px}
.var-kpis .kpi .val{line-height:1.3}
.var-guide{margin:2px 2px 10px;padding:10px 12px;border:1px dashed #dfe4ee;border-radius:10px;background:#fbfcfe;color:#475467;font-size:12.5px;line-height:1.6}
.var-table tr.skel td{border-bottom:1px solid #eef1f6;height:34px;color:#cbd2de}
.var-table tr.skel:hover td{background:transparent}
.var-table tfoot td{border-top:2px solid #e4e9f2;background:#fafbfd;font-weight:800;font-size:12.5px}
.var-table td.nowrap{white-space:nowrap}
.final-var-table tfoot td{border-top:2px solid #e4e9f2;background:#fafbfd;font-weight:800;font-size:12.5px}

/* ================= 통합 홈 — 좌(생산) · 중(해오름 고동색 허브) · 우(품질) ================= */
.hub3{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.14fr) minmax(0,1fr);gap:16px;align-items:stretch}
.hub-col{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px 18px 16px;display:flex;flex-direction:column;min-width:0}
.hub-head .kicker{font-size:10px;font-weight:900;letter-spacing:.2em;color:#98a2b3}
.hub-head h2{font-size:22px;margin-top:3px}
.hub-head p{margin:4px 0 0;color:var(--muted);font-size:11.5px}
.mod-list{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.mod{display:flex;align-items:center;gap:11px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fcfdff;transition:.12s;min-width:0}
.mod:hover{border-color:#f0c47a;background:#fffdf7;transform:translateY(-1px)}
.mod .ic{width:34px;height:34px;border-radius:9px;background:#f3f5fa;display:grid;place-items:center;font-size:15px;flex:none}
.mod .tx{display:flex;flex-direction:column;min-width:0}
.mod .tx b{font-size:13.5px}
.mod .tx small{color:var(--muted);font-size:11px;line-height:1.45;margin-top:2px}
.mod .go{margin-left:auto;color:#b7791f;font-weight:900;font-size:13px;flex:none}
.hub-title-row{display:flex;justify-content:space-between;align-items:center;margin:16px 0 4px;font-size:11.5px;font-weight:900;color:#475467}
.link{color:#b7791f;font-weight:800}
.hub-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px}
.hub-stats .st{border:1px solid var(--line);border-radius:11px;background:#fbfcfe;padding:9px 11px}
.hub-stats .k{font-size:10.5px;font-weight:800;color:var(--muted)}
.hub-stats .v{font-size:19px;font-weight:900;letter-spacing:-.02em;margin-top:3px;line-height:1.15}
.hub-stats .v small{font-size:10.5px;font-weight:800;color:var(--muted)}
.hub-stats .s{font-size:10.5px;color:var(--muted);margin-top:1px}
.mini-rows{display:flex;flex-direction:column}
.mini-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px;border-bottom:1px dashed #eef1f6;font-size:12px}
.mini-row:last-child{border-bottom:0}
.mini-row .nm{display:flex;flex-direction:column;min-width:0}
.mini-row .nm small{color:var(--muted);font-size:10.5px;margin-top:1px}
.mini-row .q{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.hub-empty{margin-top:8px;padding:13px 12px;border:1px dashed #dfe4ee;border-radius:11px;background:#fbfcfe;color:var(--muted);font-size:12px;text-align:center}
.hub-more{font-size:10.5px;color:var(--muted);text-align:right;padding-top:4px}

/* 가운데 — 해오름 고동색 공용 허브 */
.hub-center{background:linear-gradient(168deg,#5f3723 0%,#4a2c1d 48%,#372013 100%);border-color:#3a2216;color:#f6ecdd;
  box-shadow:0 22px 44px -26px rgba(74,44,29,.85),0 1px 2px rgba(16,24,40,.08);position:relative;overflow:hidden;
  justify-content:space-between;padding-bottom:20px}
.hub-center:after{content:"";position:absolute;right:-70px;top:-70px;width:230px;height:230px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,182,74,.22),rgba(245,182,74,0) 68%);pointer-events:none}
.hub-center-head{position:relative;z-index:1}
.hub-center-title{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.hub-center-title b{font-size:21px;letter-spacing:.03em;color:#fdf6ea}
.hub-center-title span{font-size:10px;letter-spacing:.16em;color:#dcbc93;font-weight:900}
.hub-center-head p{margin:9px 0 0;font-size:11.5px;color:#e4cfb4;line-height:1.6}
.ext-list{display:flex;flex-direction:column;gap:8px;margin-top:16px;position:relative;z-index:1}
.ext{display:flex;align-items:center;gap:11px;padding:12px;border-radius:12px;min-width:0;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.13)}
a.ext:hover{background:rgba(255,255,255,.14);border-color:rgba(245,182,74,.55)}
.ext .eic{width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.15);color:#fbefdc;
  display:grid;place-items:center;font-size:11.5px;font-weight:900;flex:none}
.ext .etx{display:flex;flex-direction:column;min-width:0}
.ext .etx b{font-size:13px;color:#fdf6ea}
.ext .etx small{font-size:10.5px;color:#ddc2a0;line-height:1.45;margin-top:2px}
.ext .ego{margin-left:auto;color:#f0b45c;font-weight:900;flex:none}
.hub-center-foot{padding-top:14px;position:relative;z-index:1}
.hub-btn{display:flex;align-items:center;gap:9px;width:100%;padding:12px 14px;border-radius:11px;
  background:linear-gradient(180deg,#f7c260,#e49a25);color:#2a1a09;font-weight:900;font-size:13.5px;
  box-shadow:0 14px 28px -18px rgba(0,0,0,.85)}
.hub-btn:hover{background:linear-gradient(180deg,#ffd07a,#eda62f)}
.hub-btn i{font-style:normal;margin-left:auto;font-weight:900}
.hub-btn.off{background:rgba(255,255,255,.12);color:#e8d6bd;box-shadow:none;cursor:default}
.hub-btn.off i{font-size:10.5px;font-weight:800;color:#d6b992}
.hub-meta{margin-top:9px;font-size:11px;color:#d9bd97;text-align:center;letter-spacing:.01em}

/* 우측 — 보정 모드 박스 */
.mode-box{border-radius:12px;border:1px solid #e1e5ed;background:#f8fafc;padding:12px 13px;margin-top:14px}
.mode-box.on{border-color:#f0c47a;background:linear-gradient(180deg,#fff8ea,#fffdf8)}
.mb-top{display:flex;align-items:center;gap:8px}
.mb-top b{font-size:13.5px}
.mb-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8;flex:none}
.mode-box.on .mb-dot{background:#22c55e;box-shadow:0 0 8px #22c55e}
.mb-tag{margin-left:auto;font-size:10.5px;font-weight:800;color:#475467;background:#fff;border:1px solid #e1e5ed;border-radius:999px;padding:2px 8px}
.mode-box.on .mb-tag{color:#a26300;border-color:#f3d59a}
.mb-desc{margin-top:8px;font-size:11.5px;line-height:1.55;color:var(--muted)}
.mode-box.on .mb-desc{color:#6b5a3e}
.mb-foot{display:flex;align-items:center;gap:10px;margin-top:9px;border-top:1px dashed #e7ebf2;padding-top:8px;font-size:11px;font-weight:700;color:#7a6a50}
.mode-box:not(.on) .mb-foot{color:var(--muted)}
.mb-foot .link{margin-left:auto}


.hub-flow{margin:0 0 14px;padding:12px 13px;border-radius:12px;border:1px dashed rgba(245,182,74,.38);
  background:rgba(0,0,0,.16);position:relative;z-index:1}
.hub-flow .hf-title{font-size:9.5px;font-weight:900;letter-spacing:.18em;color:#e8c494}
.hub-flow ol{list-style:none;margin:9px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.hub-flow li{display:flex;align-items:center;gap:9px;font-size:11px;color:#ead9c1;line-height:1.4}
.hub-flow i{font-style:normal;width:19px;height:19px;border-radius:50%;background:rgba(245,182,74,.22);
  color:#f8cd92;font-size:10px;font-weight:900;display:grid;place-items:center;flex:none}
.hub-flow b{color:#fdf6ea}

/* 하단 — 리포트 · 인쇄 */
.hub-bottom{margin-top:16px}
.rep-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.pcard.mini{padding:14px;gap:8px}
.pcard.mini h4{font-size:13.5px}
.pcard.mini p{font-size:11px;min-height:32px}
.pcard.var{background:linear-gradient(180deg,#f7faff,#fff);border-color:#c3d7f8}
.pcard.var .no{color:#1e4fa8}

@media (max-width:1500px){
  .rep-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1360px){
  .hub3{gap:12px}
  .hub-col{padding:15px 14px 14px}
  .hub-head h2{font-size:20px}
  .mod{padding:10px}
  .mod .tx b{font-size:13px}
  .mod .tx small{font-size:10.5px}
  .ext .etx small{font-size:10px}
}
@media (max-width:1080px){
  .hub3{grid-template-columns:1fr}
  .hub-center{order:-1}
}
@media (max-width:900px){
  .rep-grid{grid-template-columns:repeat(2,1fr)}
  .hub-stats{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .rep-grid{grid-template-columns:1fr}
}

/* ================= 로그인 — 해오름식품 로고 ================= */
.login-ci{display:inline-flex;background:linear-gradient(180deg,#fffdf9,#f4ead8);padding:16px 22px;border-radius:16px;
  border:1px solid rgba(255,255,255,.4);box-shadow:0 26px 50px -26px rgba(0,0,0,.75);margin:0}
.login-ci img{height:92px;width:auto;display:block}
.hz-line{display:flex;align-items:center;gap:14px;margin-top:22px;font-weight:900;letter-spacing:.05em;color:#dbe2ee}
.hz-line b{color:#f5b64a;font-size:19px;letter-spacing:.3em;line-height:1}
.hz-line i{width:1px;height:17px;background:#4d5a74;display:block}
.hz-line span{font-size:13.5px;color:#cdd8ea;font-weight:700;letter-spacing:.02em}
.login-card .card-ci{display:flex;justify-content:center;margin-bottom:14px}
.login-card .card-ci img{height:40px;width:auto;display:block;opacity:.95}
@media (max-width:1200px){
  .login-ci img{height:72px}
}
@media (max-width:900px){
  .login-ci img{height:44px}
  .hz-line b{font-size:16px}
  .hz-line span{font-size:12px}
}

/* ================= 1배치 기준 설정 ================= */
.bstd-wrap{overflow:auto;max-height:calc(100vh - 300px);border:1px solid #eef1f6;border-radius:10px}
table.bstd{min-width:1180px}
table.bstd thead th{position:sticky;top:0;z-index:2;background:#f7f9fc;border-bottom:1px solid #e4e8f0}
table.bstd td{padding:6px 8px;vertical-align:middle}
table.bstd td input{width:100%;padding:6px 8px;border:1px solid #dfe4ee;border-radius:7px;font-size:12px;text-align:right;font-variant-numeric:tabular-nums;background:#fff}
table.bstd td input:focus{outline:none;border-color:#f0b64a;box-shadow:0 0 0 2px #fdf1da}
table.bstd td:first-child input,table.bstd td:nth-child(4) input{text-align:left}
table.bstd tr.is-set td{background:#fffdf6}
table.bstd tr.saved td{background:#f2fbf7;transition:background .3s}
table.bstd .per-cell b{font-size:12.5px}
table.bstd .demo-cell b{color:#a26300}

/* 로그인 — 모바일 정리 */
@media (max-width:900px){
  .login-body{overflow-x:hidden}
  .login-wrap{padding:20px 16px 32px;justify-content:flex-start;min-height:100vh}
  .login-brand{position:static;margin:0 0 18px;left:auto;top:auto}
  .login-ci{width:100%;padding:12px 14px;justify-content:center;border-radius:13px}
  .login-ci img{height:38px;max-width:86%}
  .hz-line{flex-wrap:wrap;gap:10px;margin-top:16px}
  .login-hero .quote{margin-top:18px;font-size:13.5px;line-height:1.7}
  .phil{flex-wrap:wrap;gap:8px 4px;margin-top:22px;padding:13px 12px}
  .phil div{flex:1 1 72px}
  .phil b{font-size:17px}
  .phil span{font-size:8px}
  .login-card{width:100%;padding:22px 18px 18px;border-radius:16px}
  .login-card h2{font-size:25px}
  .login-card .card-ci img{height:19px;max-width:100%}
  .login-foot{position:static;margin-top:20px;left:auto;bottom:auto;text-align:center;font-size:10.5px;line-height:1.7}
}

/* ================= 주문 받아적기 + 날짜별 생산계획표 (허 과장님 달력형) ================= */
.intake{margin-bottom:14px}
.intake .bd{padding:14px 16px 12px}
.intake .ph, .intake .hd h3{font-size:14px}
.intake-grid{display:grid;grid-template-columns:180px minmax(230px,1.2fr) minmax(230px,1.15fr) 150px auto;
  gap:12px;align-items:end}
.intake-grid .field label{font-size:13.5px}
.intake-save{padding:11px 18px;white-space:nowrap;height:42px}
.intake-hint{margin-top:10px;font-size:12px;line-height:1.6;color:#475467;background:#fbfcfe;
  border:1px dashed #dfe4ee;border-radius:10px;padding:8px 12px;min-height:40px}
.intake-hint b{color:#101828}
.picker .oit{padding:8px 12px;cursor:pointer;font-size:12.5px;border-bottom:1px solid #f4f6fa}
.picker .oit:hover{background:#fff7e8}
.picker .oit small{color:var(--muted);margin-left:6px}
/* 기간·보기 전환 링크형 세그먼트 */
.seg a.seg-a{flex:1;text-align:center;border:0;background:transparent;padding:8px 10px;border-radius:8px;
  font-weight:800;color:#5b667a;font-size:12.5px;white-space:nowrap}
.seg a.seg-a:hover{color:#101828}
.seg a.seg-a.on{background:var(--amber);color:#241a07;box-shadow:0 1px 3px rgba(16,24,40,.12)}

/* 달력형 계획표 */
.pgrid-wrap{overflow:auto;max-height:min(74vh,780px);border-top:1px solid var(--line)}
.pgrid{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;font-size:12px}
.pgrid th,.pgrid td{border-bottom:1px solid #eef1f6;border-right:1px solid #f2f5fa;padding:5px 6px;
  vertical-align:middle;background:#fff}
.pgrid thead th{position:sticky;top:0;z-index:4;background:#f7f9fc;color:#475467;font-size:11px;
  font-weight:800;white-space:nowrap;padding:6px 4px;text-align:center}
.pgrid tbody td{height:38px}
.pgrid .c1{left:0}
.pgrid .c2{left:60px}
.pgrid .c3{left:172px}
.pgrid .c4{left:342px}
.pgrid .c5{left:522px}
.pgrid .c6{left:584px}
.pgrid .c7{left:696px;border-right:2px solid #e4e8f0;box-shadow:6px 0 8px -6px rgba(16,24,40,.16)}
.pgrid tbody td.c1,.pgrid tbody td.c2,.pgrid tbody td.c3,.pgrid tbody td.c4,
.pgrid tbody td.c5,.pgrid tbody td.c6,.pgrid tbody td.c7{position:sticky;z-index:3}
.pgrid thead th.c1,.pgrid thead th.c2,.pgrid thead th.c3,.pgrid thead th.c4,
.pgrid thead th.c5,.pgrid thead th.c6,.pgrid thead th.c7{z-index:6}
.pgrid tfoot td{position:sticky;bottom:0;z-index:3;background:#fafbfd;font-weight:800;
  border-top:2px solid #e4e9f2;font-size:11.5px}
.pgrid tfoot td.dsum{text-align:right;font-variant-numeric:tabular-nums;color:#0f9d8f}
.pgrid tr:hover td{background:#fcfdff}
.pgrid td.c2 b{font-size:12px;display:block;line-height:1.2}
.pgrid td.c2 .ordno{font-size:9px;color:#98a2b3;white-space:nowrap;letter-spacing:-.01em}
.pgrid td.c3 .pname{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;line-height:1.25}
.pgrid td.c3{word-break:keep-all;overflow-wrap:anywhere;line-height:1.3}
.pgrid td.c4{color:#475467;line-height:1.35;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pgrid td.c5 small{margin-left:2px;font-size:9.5px}
.pgrid td.c6{line-height:1.25}
.pgrid td.c6 b{font-size:13px}
.pgrid td.c6 .tiny{line-height:1.25}
.pgrid .badge{font-size:9.5px;padding:2px 5px;white-space:nowrap}
/* 날짜 열 */
.pgrid th.dcol{padding:4px 2px}
.pgrid .sat{background:#f7f9ff}
.pgrid .sun{background:#fff8f8}
.pgrid th.dcol .dmenu{position:relative;display:inline-block;text-align:center}
.pgrid th.dcol summary{list-style:none;cursor:pointer;padding:1px 4px;border-radius:6px;line-height:1.15;white-space:nowrap}
.pgrid th.dcol summary::-webkit-details-marker{display:none}
.pgrid th.dcol summary:hover{background:#e9eef7}
.pgrid th.dcol summary small{display:block;font-size:9px;color:#98a2b3;font-weight:700}
.pgrid th.dcol.istoday{background:#fff3d9}
.pgrid th.dcol.istoday summary{color:#a26300}
.pgrid .dlinks{position:absolute;top:100%;left:0;z-index:30;background:#fff;border:1px solid var(--line);
  border-radius:10px;box-shadow:0 18px 36px -18px rgba(16,24,40,.4);padding:6px;display:flex;
  flex-direction:column;min-width:140px}
/* 날짜 메뉴는 클릭했을 때만 열린다 — 호버·미열림 상태에서는 절대 보이지 않게 */
.pgrid details.dmenu:not([open]) .dlinks{display:none}
/* 전일 생산실적 미마감 경고 */
.cl-alert{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 16px;border-radius:12px;
  border:1px solid #f3c4c2;background:linear-gradient(180deg,#fff6f5,#fff);box-shadow:0 10px 24px -18px rgba(168,58,54,.6)}
.cl-alert .ic{font-size:20px;line-height:1}
.cl-alert .tx{flex:1;min-width:0}
.cl-alert .tx b{display:block;font-size:13.5px;color:#a83a36}
.cl-alert .tx .tiny{color:#8a5550}
.cl-alert .btn{flex:none}
/* 상시 마감 원칙 안내(차분한 안내) */
.cl-note{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:11px 16px;border-radius:12px;
  border:1px solid #d9e2f1;background:linear-gradient(180deg,#f7faff,#fff)}
.cl-note .ic{font-size:17px;line-height:1}
.cl-note .tx b{display:block;font-size:13px;color:#1e3a63}
.cl-note .tx .tiny{color:#5b6c85}
/* 2장짜리 KPI(현장 화면)도 폭을 고르게 */
.kpis.two{grid-template-columns:repeat(2,1fr)}
/* 생산계획표 헤더 오른쪽 — 빠른 필터 + 수정 잠금 토글 */
.hdright{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
.locktog{display:inline-flex;align-items:center;gap:7px;padding:4px 10px 4px 11px;border-radius:999px;
  border:1px solid var(--line);background:#f8fafc;font-size:12px;font-weight:800;color:#475467;
  cursor:pointer;user-select:none}
.locktog:hover{border-color:#c9d2e2;background:#fff}
.locktog.on{background:var(--amber-l);border-color:#f3d59a;color:#7a4a00}
.locktog.nudge{animation:locknudge .45s ease}
@keyframes locknudge{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
/* 행별 「수정」 버튼 — 연필 아이콘 대신 글씨 */
.pgrid td.c7 .btn.editb{padding:3px 8px;font-size:11px;border-radius:7px;line-height:1.2;font-weight:800}
/* 신규 생산계획 — 주문서 없이 생산하는 경우(중요) */
.req-flag{margin-left:6px;font-size:12px;font-weight:700;color:#dc2626;letter-spacing:-.01em}
/* 오른쪽 끝 날짜 열 — 메뉴를 오른쪽으로 붙여 화면 밖으로 넘지 않게 */
.pgrid .dlinks.right{left:auto;right:0}
.pgrid .dlinks a{padding:5px 8px;border-radius:6px;font-size:12px;font-weight:700;text-align:left;white-space:nowrap}
.pgrid .dlinks a:hover{background:#fff7e8}
/* 날짜 칸 — 적는 순간 저장 */
.pgrid td.cell{padding:2px 3px;text-align:center;background:#fbfcfe}
.pgrid td.cell.has{background:#fffdf3;box-shadow:inset 0 0 0 1px #f2dcaa}
.pgrid td.cell.istoday{box-shadow:inset 2px 0 0 #f5a623, inset -2px 0 0 #f5a623}
.pgrid input.cq{width:100%;border:1px dashed #d7dfec;border-radius:6px;text-align:right;
  padding:4px 5px;font-weight:800;font-variant-numeric:tabular-nums;background:#fff;font-size:12px}
.pgrid input.cq::placeholder{color:#b6c0d2;font-weight:700}
.pgrid input.cq:hover{border:1px solid #a9bcdd;background:#fff;box-shadow:0 0 0 2px rgba(46,107,216,.08)}
.pgrid input.cq:focus{outline:none;border:1px solid #2e6bd8;box-shadow:0 0 0 3px rgba(46,107,216,.18);background:#fff}
.pgrid td.cell.has input.cq{border:1px solid #e6cf98;background:transparent}
.pgrid td.cell.has input.cq:hover{border-color:#d0a94f}
.pgrid input.cq.saved{background:#e7f6ef;border-color:#bfe6d5}
.pgrid input.cq.err{background:#fdecec;border-color:#f3c4c2}
.pgrid input.cq.saving{opacity:.6}
.pgrid td.cell .cb{color:#98a2b3;font-size:9.5px;line-height:1.1;height:11px;overflow:hidden}
.pgrid td.cell .static-q{display:block;font-variant-numeric:tabular-nums}
.pgrid td.cell .tiny a{font-size:9.5px;color:#b7791f;font-weight:800;margin:0 1px}
.icbtn{width:23px;height:23px;border:1px solid var(--line);background:#fff;border-radius:6px;
  cursor:pointer;font-size:11px;line-height:1;color:#475467;padding:0}
.icbtn:hover{border-color:#f0c47a;background:#fffaf0}
.pgrid tr.is-sample td.c1 .badge.amber{margin-left:2px}
@media (max-width:1500px){
  .intake-grid{grid-template-columns:160px minmax(200px,1.15fr) minmax(200px,1fr) 140px auto}
}
@media (max-width:1200px){
  .intake-grid{grid-template-columns:1fr 1fr}
  .intake-save{grid-column:1 / -1}
}
@media (max-width:760px){
  .intake-grid{grid-template-columns:1fr}
  .pgrid-wrap{max-height:none}
}

/* 직접 계획 입력 — 가로 4열 컴팩트 (주문 받아적기와 같은 결) */
.direct-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.direct-grid .span2{grid-column:span 2}
.direct-grid .field label{font-size:13.5px}
.use-notes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
@media (max-width:1200px){
  .direct-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .use-notes{grid-template-columns:1fr}
}
@media (max-width:760px){
  .direct-grid{grid-template-columns:1fr}
  .direct-grid .span2{grid-column:span 1}
}

/* ── 2주 생산계획 결재 ─────────────────────────────────────────── */
.pa-alert{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 16px;border-radius:12px;
  border:1px solid #f0c47a;background:linear-gradient(180deg,#fffaef,#fff);box-shadow:0 10px 24px -18px rgba(168,106,20,.5)}
.pa-alert .ic{font-size:20px;line-height:1}
.pa-alert .tx{flex:1;min-width:0}
.pa-alert .tx b{display:block;font-size:13.5px}
.pa-alert .btn{flex:none}
.pa-alert .tx b{color:#8a5300}
.pa-alert .tx .tiny{color:#8a6a3a}
.pa-pending{margin-bottom:14px;border-color:#f3d59a;background:#fffdf6}
.pa-pending .hd h3{font-size:13.5px}
.pa-table{width:100%;border-collapse:collapse;font-size:12px}
.pa-table th{font-size:11px;color:var(--muted);text-align:left;padding:5px 6px;border-bottom:1px solid var(--line)}
.pa-table td{padding:5px 6px;border-bottom:1px solid #f1f4f9;vertical-align:top}
.pa-table tr:last-child td{border-bottom:0}
.pa-summary .hd h3{font-size:13.5px}
.pa-sched-label{font-size:11.5px;font-weight:800;color:#5b667a;padding:3px 9px;border-radius:999px;
  background:#f2f4f7;border:1px solid var(--line)}
.pa-current{padding:6px 2px 10px;border-bottom:1px dashed var(--line)}
.pa-hist-hd{font-size:11.5px;font-weight:800;color:#5b667a;margin:8px 0 4px}
.pa-status{margin-right:2px}
.chk{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;color:#344054}
.chk input{width:15px;height:15px;accent-color:#f5a623}

/* ── 배합지시서 — 오늘 계획 품목 빠른 선택 ─────────────────────── */
.pa-chips{padding:9px 10px 4px;border-bottom:1px solid var(--line);background:#fffdf7}
.pa-chips-hd{font-size:11px;font-weight:900;color:#8a5300;letter-spacing:-.01em;margin-bottom:6px}
.plan-chip{display:block;width:100%;text-align:left;margin:0 0 4px;padding:5px 8px;border-radius:8px;
  border:1px solid #f0e0bf;background:#fff;font-size:11.5px;font-weight:700;color:#3d4453;cursor:pointer;line-height:1.35}
.plan-chip:hover{background:#fff7e8;border-color:#e9c887}
.plan-chip.on{background:#f5a623;border-color:#e09612;color:#241a07}
.plan-chip b{font-weight:900}
.pa-chips-empty{padding:2px 2px 6px;line-height:1.5}
.pa-plan-hint{font-size:11px;font-weight:700;color:#7a4a00;background:#fff7e8;border:1px solid #f3d59a;
  border-radius:8px;padding:5px 8px;line-height:1.45}
.pa-plan-hint.off{background:transparent;border:0;padding:0}

/* ※ 중요 — 담당자가 놓치기 쉬운 주의·안내(동작이 시스템에 어떻게 반영·저장되는지) */
.note-important{color:#dc2626 !important;font-weight:700}
.note-important b,.note-important strong{color:#b91c1c !important}
.note-important .tag{color:#dc2626}

/* 통합 홈 제목 옆 HORIZON — 해오름 CI 두 색(주황·녹색) */
.hz-mark{display:inline-flex;align-items:baseline;margin-left:10px;font-size:15px;font-weight:900;
  letter-spacing:.18em;vertical-align:2px;transform:translateY(-2px)}
.hz-mark b{font-weight:900}
.hz-mark b.o{color:#ea7600}
.hz-mark b.g{color:#3f8f29}

/* ── 원부재료 부족 점검 · 발주 (/shortage) ─────────────────────────── */
.short-wrap{max-height:66vh;overflow:auto}
table.short-table{min-width:1180px;width:100%;table-layout:fixed}
table.short-table td.sup{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table.short-table td.nmcell{overflow:hidden}
table.short-table td.nmcell b,table.short-table td.nmcell .tiny{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table.short-table thead th{position:sticky;top:0;z-index:2;background:#f7f9fc}
table.short-table td,table.short-table th{padding:6px 8px}
table.short-table td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
table.short-table td.c{text-align:center}
table.short-table tr.st-short td{background:#fdecec}
table.short-table tr.st-short:hover td{background:#fbe1e1}
table.short-table tr.st-low td{background:#fff7e8}
table.short-table tr.st-low:hover td{background:#fdefd6}
table.short-table tr.picked td{box-shadow:inset 0 0 0 2px #f5a623}
table.short-table tr.st-short td:first-child{box-shadow:inset 3px 0 0 #d9534f}
table.short-table tr.st-low td:first-child{box-shadow:inset 3px 0 0 #f5a623}
.short-table .po-qty{width:96px;padding:5px 7px;border:1px solid #d5dbe6;border-radius:7px;
  text-align:right;font-variant-numeric:tabular-nums;background:#fff}
.short-table .po-qty:focus{outline:none;border-color:#f0b64a;box-shadow:0 0 0 2px #fdf1da}
.short-table .pick{width:15px;height:15px;accent-color:#f5a623}
.hub-stats .st .s{font-size:11px}

/* ── 휴일·야간 작업 사전 결재 ──────────────────────────────────────── */
.wa-banner{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 16px;border-radius:12px;
  border:1px solid #f3c4c2;background:linear-gradient(180deg,#fff5f5,#fff);box-shadow:0 10px 24px -18px rgba(168,54,54,.45)}
.wa-banner.ok{border-color:#bfe6d5;background:linear-gradient(180deg,#f2fbf6,#fff)}
.wa-banner.wait{border-color:#f0c47a;background:linear-gradient(180deg,#fffaef,#fff)}
.wa-banner .ic{font-size:19px;line-height:1}
.wa-banner .tx{flex:1;min-width:0}
.wa-banner .tx b{display:block;font-size:13.5px;color:#a83a36}
.wa-banner.ok .tx b{color:#0b6b4c}
.wa-banner.wait .tx b{color:#8a5300}
.wa-banner .tx .tiny{color:#5b667a}
.wa-banner .btn{flex:none}
.wa-pending{margin-bottom:14px;border-color:#f3d59a;background:#fffdf6}
.wa-pending .hd h3{font-size:13.5px}
.wa-modal-sum{padding:10px 12px;border:1px solid #f3d59a;background:#fff8ec;border-radius:10px;font-size:12.5px}

/* 작업지시서 화면의 휴일·야간 결재 배지 (인쇄물과 같은 자리) */
.sh-approval{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;margin:0 0 6px;padding:5px 9px;
  border:1px solid #d7dce5;border-left:3px solid #111;font-size:11.5px;color:#333;background:#fafbfd}
.sh-approval b{font-weight:900}
.sh-approval.wa-ok{border-left-color:#1f7a4d;background:#f3fbf6;color:#0b6b4c}
.sh-approval.wa-wait{border-left-color:#e0901a;background:#fff8ec;color:#8a5300}
.sh-approval.wa-need{border-left-color:#d9534f;background:#fff5f5;color:#a83a36}

/* 부족 점검 KPI — 4열 고정 */
.hub-stats.short-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:900px){.hub-stats.short-kpis{grid-template-columns:1fr 1fr}}

/* ── 5대 부서 안내 (통합 홈 하단) ─────────────────────────────────── */
.dept-strip{margin-top:16px}
.dept-strip .hd h3{display:flex;align-items:center;gap:8px}
.dept-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.dept-card{display:flex;flex-direction:column;gap:6px;padding:14px 15px 13px;border:1px solid var(--line);
  border-radius:12px;background:#fbfcfe;transition:.12s;min-width:0}
.dept-card:hover{border-color:#c9d2e2;background:#fff;box-shadow:0 10px 22px -16px rgba(16,24,40,.45)}
.dept-card .dc-en{font-size:9.5px;letter-spacing:.16em;font-weight:900;color:#98a2b3}
.dept-card .dc-nm{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:900;letter-spacing:-.02em}
.dept-card .dc-desc{font-size:11.5px;color:var(--muted);line-height:1.45}
.dept-card .dc-go{margin-top:auto;font-size:11.5px;font-weight:800;color:#475467;display:flex;justify-content:space-between;align-items:center}
.dept-card.soon{background:#fdfdfe;border-style:dashed}
.dept-card.soon .dc-nm{color:#344054}
.dept-card.locked{opacity:.48;background:#f4f6fa;cursor:not-allowed;pointer-events:none;border-style:dashed}
.dept-btn.locked{opacity:.45;cursor:not-allowed;color:#98a2b3}
.dept-lock{font-size:10px;margin-left:3px}
.dept-card .badge{align-self:flex-start}
@media (max-width:1200px){.dept-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){.dept-grid{grid-template-columns:1fr 1fr}}

/* ── 부서 시스템 준비 중 화면 (/dept/*) ──────────────────────────── */
.soon-wrap{max-width:1120px;margin:0 auto}
.soon-hero{position:relative;overflow:hidden;border-radius:18px;padding:30px 32px 26px;color:#eef2f9;
  background:linear-gradient(135deg,#0d1526 0%,#16233c 58%,#1d2d4b 100%);box-shadow:0 24px 50px -30px rgba(9,17,32,.7)}
.soon-hero:after{content:"";position:absolute;right:-70px;top:-90px;width:320px;height:320px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,166,35,.22),transparent 68%)}
.soon-hero .sh-kicker{font-size:10px;letter-spacing:.24em;font-weight:900;color:var(--amber)}
.soon-hero h1{margin:10px 0 8px;font-size:30px;letter-spacing:-.03em;color:#fff}
.soon-hero p{margin:0;max-width:720px;color:#c6d1e4;font-size:13.5px;line-height:1.7}
.soon-hero .sh-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;position:relative;z-index:1}
.soon-hero .sh-meta span{padding:5px 11px;border-radius:999px;border:1px solid #33415e;background:rgba(255,255,255,.06);
  font-size:11.5px;font-weight:700;color:#d6dfef}
.soon-hero .sh-meta span.hot{border-color:#5c4a22;background:rgba(245,166,35,.14);color:#ffce7a}
.soon-cols{display:grid;grid-template-columns:1.35fr 1fr;gap:16px;margin-top:16px;align-items:start}
.soon-list{display:flex;flex-direction:column;gap:2px}
.soon-item{display:flex;align-items:flex-start;gap:12px;padding:12px 4px;border-bottom:1px dashed #e8ecf3}
.soon-item:last-child{border-bottom:0}
.soon-item .si-no{flex:none;width:24px;height:24px;border-radius:8px;background:#f1f3f7;color:#475467;
  display:grid;place-items:center;font-size:11.5px;font-weight:900}
.soon-item .si-tx{flex:1;min-width:0}
.soon-item .si-tx b{display:block;font-size:13.5px;color:#1d2939}
.soon-item .si-tx small{display:block;margin-top:3px;font-size:11.5px;color:var(--muted);line-height:1.5}
.soon-live a{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;
  background:#fbfcfe;margin-bottom:8px}
.soon-live a:hover{border-color:#c9d2e2;background:#fff}
.soon-live .sl-tx{flex:1;min-width:0}
.soon-live .sl-tx b{display:block;font-size:13px}
.soon-live .sl-tx small{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.soon-others{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.soon-others a{padding:8px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:12px;font-weight:800;color:#475467}
.soon-others a:hover{border-color:var(--amber-d);background:var(--amber-l);color:#7a4a00}
.soon-others a.on{background:var(--amber-l);border-color:#f3d59a;color:#7a4a00}
.soon-back{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:900px){
  .soon-hero{padding:24px 20px 22px}
  .soon-hero h1{font-size:24px}
  .soon-cols{grid-template-columns:1fr}
}

/* ── 신제품 등록 (/admin/products/new) ─────────────────────────────── */
.pn-card{margin-bottom:14px}
.pn-card .hd{align-items:center;gap:12px;flex-wrap:wrap}
.pn-no{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--amber-l);
  color:#7a4a00;font-size:12px;font-weight:900;margin-right:6px}
.pn-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.pn-grid .pn-span2{grid-column:span 2}
.pn-inline{display:flex;gap:6px;align-items:center}
.pn-inline input,.pn-inline select{flex:1;min-width:0}
.pn-inline select{max-width:110px}
.pn-ea{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;
  padding:12px 14px;border:1px dashed #d7dfec;border-radius:12px;background:#fbfcfe}
.pn-ea div{display:flex;flex-direction:column;gap:3px}
.pn-ea span{font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.02em}
.pn-ea b{font-size:16px;letter-spacing:-.02em}
.pn-sum{display:flex;align-items:baseline;gap:8px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);
  background:#f8fafc;font-size:12px;font-weight:800;color:#475467}
.pn-sum b{font-size:16px;font-variant-numeric:tabular-nums}
.pn-sum em{font-style:normal;font-size:11px;font-weight:700;color:var(--muted)}
.pn-sum.ok{border-color:#bfe6d5;background:#eefaf4;color:#116b4a}
.pn-sum.ok em{color:#116b4a}
.pn-sum.bad{border-color:#f3c4c2;background:#fdf1f0;color:#a12822}
.pn-sum.bad em{color:#a12822}
table.pn-bom td{padding:5px 6px;vertical-align:top}
table.pn-bom th{font-size:11.5px}
table.pn-bom .mat-in{width:100%;padding:7px 9px;border:1px solid #dfe4ee;border-radius:8px;font-size:12.5px;background:#fff}
table.pn-bom .mat-in:focus{outline:none;border-color:#f0b64a;box-shadow:0 0 0 2px #fdf1da}
table.pn-bom .pct{width:100%;padding:7px 9px;border:1px solid #dfe4ee;border-radius:8px;text-align:right;
  font-variant-numeric:tabular-nums;font-weight:800;background:#fff}
table.pn-bom .pct:focus{outline:none;border-color:#f0b64a;box-shadow:0 0 0 2px #fdf1da}
table.pn-bom .kg{text-align:right;font-variant-numeric:tabular-nums;padding-top:10px}
table.pn-bom .mat-ok.ok{color:#116b4a}
table.pn-bom .mat-ok.bad{color:#a12822}
.btn-x{border:0;background:#f3f5f9;color:#667085;width:26px;height:26px;border-radius:8px;font-size:15px;
  font-weight:900;line-height:1;cursor:pointer}
.btn-x:hover{background:#fdecec;color:#c0302a}
.pn-actions{display:flex;justify-content:flex-end;gap:10px;margin:4px 0 14px}
.pn-msg{padding:12px 14px;border-radius:12px;font-size:13px;font-weight:700;margin-bottom:14px}
.pn-msg.bad{border:1px solid #f3c4c2;background:#fdf1f0;color:#a12822}
.pn-msg.ok{border:1px solid #bfe6d5;background:#eefaf4;color:#116b4a}
.pn-result{margin-bottom:14px;border-color:#bfe6d5}
.pn-done{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.pn-done-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px dashed #e8ecf3;font-size:13px}
.pn-done-row span{color:var(--muted);font-weight:700}
.req{color:#c0302a}

/* ── 사번 · 부서권한 (기준정보 · 설정) ─────────────────────────────── */
.um-depts{display:flex;flex-wrap:wrap;gap:8px 14px;padding:10px 12px;border:1px solid #dfe4ee;border-radius:10px;background:#fbfcfe}
.um-dept-badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#eef3fb;color:#2f4d7a;
  font-size:11px;font-weight:800;margin-right:4px}
.um-dept-badge.on{background:#e7f6ef;color:#116b4a}
.um-mine td{background:#fffaf0}
.modal{position:fixed;inset:0;z-index:90;background:rgba(9,17,32,.44);display:flex;align-items:flex-start;
  justify-content:center;padding:48px 16px;overflow:auto}
.modal[hidden]{display:none}
.modal-card{width:100%;max-width:620px;background:#fff;border-radius:16px;box-shadow:0 30px 70px -30px rgba(9,17,32,.6)}
.modal-card .hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.modal-card .hd h3{margin:0;font-size:16px}
.modal-card .bd{padding:16px 18px;display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.modal-card .bd .full{grid-column:1/-1}
.modal-card .ft{display:flex;justify-content:flex-end;gap:10px;padding:14px 18px;border-top:1px solid var(--line)}
.modal-card .field label{font-size:13.5px}
@media (max-width:900px){
  .modal-card .bd{grid-template-columns:1fr}
  .pn-grid{grid-template-columns:1fr 1fr}
  .pn-ea{grid-template-columns:1fr}
}

/* ── 사내 업무 매뉴얼 (/manuals) ───────────────────────────────────── */
.manual-grid{display:grid;grid-template-columns:1fr;gap:14px}
.manual-card{padding:0;overflow:hidden}
.mc-head{display:flex;gap:16px;align-items:flex-start;padding:18px 20px 12px;
  background:linear-gradient(135deg,#0d1526 0%,#17253d 62%,#1e2f4d 100%);color:#eef2f9}
.mc-no{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:74px;padding:8px 0;border-radius:12px;border:1px solid #33415e;background:rgba(255,255,255,.05)}
.mc-no{font-size:9px;letter-spacing:.16em;font-weight:900;color:#9fb0cb}
.mc-no b{font-size:26px;letter-spacing:-.02em;color:#ffce7a;line-height:1.1}
.mc-title h2{margin:2px 0 6px;font-size:21px;letter-spacing:-.03em;color:#fff}
.mc-title p{margin:0;font-size:12.5px;line-height:1.6;color:#c6d1e4;max-width:760px}
.mc-meta{display:flex;flex-wrap:wrap;gap:6px 16px;padding:10px 20px;border-bottom:1px solid var(--line);
  background:#f8fafc;font-size:11.5px;color:var(--muted)}
.mc-meta b{color:#344054;font-weight:800}
.mc-body{display:grid;grid-template-columns:1fr 1.25fr;gap:22px;padding:16px 20px;align-items:start}
.mc-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.mc-sec h4{margin:0 0 8px;font-size:11.5px;font-weight:900;letter-spacing:.04em;color:#667085;
  text-transform:uppercase}
.mc-sum{margin:0;padding-left:16px;display:flex;flex-direction:column;gap:7px}
.mc-sum li{font-size:12.5px;line-height:1.62;color:#344054}
.mc-rnr th{width:112px;text-align:left;font-size:11.5px;color:#2f4d7a;background:#f5f8fd;
  padding:6px 8px;vertical-align:top;white-space:nowrap}
.mc-rnr td{font-size:12px;line-height:1.55;color:#344054;padding:6px 8px}
.mc-toc{display:flex;flex-direction:column;gap:5px}
.mc-toc span{font-size:11.5px;line-height:1.45;color:#475467;padding:5px 9px;border-radius:8px;background:#f6f8fb}
.mc-foot{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 18px}
.mc-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mc-principles div{padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}
.mc-principles b{display:block;font-size:13px;margin-bottom:4px}
.mc-principles span{font-size:11.5px;color:var(--muted);line-height:1.55}
@media (max-width:1100px){
  .mc-body{grid-template-columns:1fr}
  .mc-principles{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .mc-body{grid-template-columns:1fr}
  .mc-head{flex-direction:column;gap:10px}
  .mc-principles{grid-template-columns:1fr}
}

/* ── 403 접근 권한 안내 · 사번 표 버튼 ────────────────────────────── */
.nf-ico{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:14px;
  background:var(--amber-l);border:1px solid #f3d59a;margin-bottom:12px}
.nf-ico span{font-size:15px;font-weight:900;letter-spacing:.02em;color:#8a5200}
.nf-title{margin:0 0 8px;font-size:20px;letter-spacing:-.02em;color:#1d2939}
.nf-desc{margin:0;font-size:13px;line-height:1.7;color:#475467;max-width:760px}
.nf-desc b{color:#1d2939}
.btn-edit-user{white-space:nowrap}

/* ================= 통합 홈 — 해오름 브랜드 톤 (고동 + 오렌지) ================= */
/* 좌·우 패널 제목: 고동색 글자 + 오렌지 좌측 포인트 바, 아래 고동/오렌지 밑줄 */
.hub-head{padding-bottom:9px;border-bottom:2px solid #efe3d4;position:relative}
.hub-head .kicker{color:#e87722;letter-spacing:.18em}
.hub-head h2{color:#4a2a16;display:flex;align-items:center;gap:8px;position:relative;padding-left:12px}
.hub-head h2:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:4px;height:19px;border-radius:2px;background:linear-gradient(180deg,#f5a623,#e87722)}
.hub-head p{color:#8a6d55}
/* 내부 중간 제목(오늘의 …, 이달의 …) — 연한 고동 배경 + 오렌지 포인트 바 */
.hub-title-row{background:#fdf6ee;border-left:3px solid #e87722;border-radius:0 8px 8px 0;
  padding:6px 10px;margin:16px 0 8px;color:#4a2a16}
.hub-title-row .tiny,.hub-title-row .link{color:#a35b1c}
.hub-title-row .btn.sm{padding:4px 9px;font-size:10.5px;border-radius:7px;margin:-2px -4px -2px 0}

/* ── 좌: 경영 공지 ─────────────────────────────────────────────── */
.nt-tools{display:flex;align-items:center;gap:9px;margin-top:10px;flex-wrap:wrap}
.nt-list{display:flex;flex-direction:column;gap:8px;margin-top:10px;max-height:430px;overflow:auto}
.nt{border:1px solid #eee4d7;border-left:3px solid #e8d9c6;border-radius:11px;background:#fffdfa;
  padding:9px 11px;transition:.12s}
.nt.pinned{border-left-color:#e87722;background:linear-gradient(180deg,#fffaf3,#fffdfa)}
.nt:hover{border-color:#f0d3ac;background:#fffdf8}
.nt-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.nt-tag{font-size:10px;font-weight:900;letter-spacing:.02em;color:#7a4a1d;background:#f6e7d3;
  border-radius:999px;padding:2px 8px;flex:none}
.nt-tag.sched{color:#9a4f00;background:#ffeacd}
.nt-tag.celeb{color:#8d2f4a;background:#fbe4ea}
.nt-title{border:0;background:transparent;padding:0;font:inherit;font-weight:800;font-size:12.5px;
  color:#2b2118;text-align:left;cursor:pointer;flex:1;min-width:0}
.nt-title:hover{color:#b85c00;text-decoration:underline;text-underline-offset:2px}
.nt.pinned .nt-title{color:#4a2a16}
.nt-pin{font-size:10px;flex:none}
.nt-date{font-size:10.5px;font-weight:900;color:#b8792a;font-variant-numeric:tabular-nums;flex:none}
.nt-body{display:none;margin-top:7px;padding-top:7px;border-top:1px dashed #f0e2cf;
  font-size:11.5px;line-height:1.65;color:#5b4a3b;white-space:pre-wrap}
.nt.open .nt-body{display:block}
.nt-foot{display:none;align-items:center;gap:8px;margin-top:6px}
.nt.open .nt-foot{display:flex}
.nt-acts{margin-left:auto;display:inline-flex;gap:5px}
.nt-sep{height:1px;margin:16px 0 14px;background:linear-gradient(90deg,#e87722,#f5a623 45%,rgba(232,119,34,0))}

/* 일정 — 날짜 배지 + D-day */
.sc-list{display:flex;flex-direction:column;gap:7px;margin-top:10px;max-height:330px;overflow:auto}
.sc{display:flex;gap:10px;border:1px solid #eee4d7;border-radius:11px;background:#fffdfa;padding:9px 10px}
.sc.pinned{border-color:#f3d3aa;background:linear-gradient(180deg,#fff8ee,#fffdfa)}
.sc.past{opacity:.62}
.sc-date{flex:none;width:62px;display:flex;flex-direction:column;align-items:center;gap:3px;
  background:linear-gradient(180deg,#5b3419,#4a2a16);color:#fff4e4;border-radius:9px;padding:6px 4px}
.sc-date b{font-size:11px;font-weight:900;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.sc-dday{font-size:9.5px;font-weight:900;background:rgba(245,166,35,.28);color:#ffe0b0;
  border-radius:999px;padding:1px 6px;letter-spacing:.02em}
.sc-dday.now{background:#e87722;color:#22150a}
.sc-tx{min-width:0;flex:1}
.sc-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sc-title{font-size:12.5px;color:#2b2118}
.sc-body{margin:4px 0 0;font-size:11px;line-height:1.55;color:#6b5a4a}
.sc-acts{display:flex;align-items:center;gap:6px;margin-top:5px}
.sc-acts .tiny{margin-right:auto}

/* ── 우: 이달의 생일 ───────────────────────────────────────────── */
.bd-list{display:flex;flex-direction:column;gap:8px}
.bd-card{border:1px solid #eee4d7;border-radius:11px;background:#fffdfa;padding:8px 10px}
.bd-card.today{border-color:#f3c579;background:linear-gradient(180deg,#fff7e6,#fffdfa);
  box-shadow:0 10px 20px -18px rgba(232,119,34,.9)}
.bd-top{display:flex;align-items:center;gap:8px}
.bd-day{flex:none;width:46px;text-align:center;font-size:11px;font-weight:900;color:#fff4e4;
  background:linear-gradient(180deg,#5b3419,#4a2a16);border-radius:8px;padding:4px 0;
  font-variant-numeric:tabular-nums}
.bd-card.today .bd-day{background:linear-gradient(180deg,#f5a623,#e87722);color:#2a1a08}
.bd-nm{display:flex;flex-direction:column;min-width:0;font-size:12.5px;font-weight:800;color:#2b2118}
.bd-nm small{font-size:10px;font-weight:700;color:#95795f;margin-top:1px}
.bd-top .badge{margin-left:auto}

/* ── 우: 경조사 ─────────────────────────────────────────────────── */
.cl-list{display:flex;flex-direction:column;gap:8px}
.cl-card{border:1px solid #f1e2e8;border-left:3px solid #d98aa0;border-radius:11px;background:#fffcfd;padding:9px 10px}
.cl-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cl-title{font-size:12.5px;color:#3a2630}
.cl-body{margin:4px 0 0;font-size:11px;line-height:1.55;color:#6b5a60;white-space:pre-wrap}

/* ── 축하 댓글 ──────────────────────────────────────────────────── */
.cm-box{margin-top:7px;padding-top:7px;border-top:1px dashed #f0e2cf}
.cm-list{display:flex;flex-direction:column;gap:3px;max-height:150px;overflow:auto}
.cm{display:flex;align-items:baseline;gap:6px;font-size:11px;line-height:1.5;padding:2px 0}
.cm-nm{flex:none;font-weight:900;color:#a35b1c;max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-body{flex:1;min-width:0;color:#4b3d31;word-break:break-word}
.cm-at{flex:none;font-size:9.5px;color:#a99684;font-variant-numeric:tabular-nums}
.cm-del{flex:none;border:0;background:transparent;color:#c0a99a;font-size:13px;line-height:1;cursor:pointer;padding:0 2px}
.cm-del:hover{color:#c0302a}
.cm-form{display:flex;gap:5px;margin-top:5px}
.cm-input{flex:1;min-width:0;border:1px solid #e9ddcd;border-radius:8px;padding:5px 8px;font-size:11px;background:#fff}
.cm-input:focus{outline:none;border-color:#e87722;box-shadow:0 0 0 2px rgba(232,119,34,.13)}
.btn.xs{padding:3px 8px;font-size:11px;border-radius:7px}
.cm-form .btn.sm{padding:4px 9px;font-size:10.5px;white-space:nowrap}

@media (max-width:1360px){
  .nt-list{max-height:360px}
  .sc-list{max-height:280px}
  .sc-date{width:56px}
}

/* 공지 펼침 표시 */
.nt-tag{white-space:nowrap}
.nt-caret{flex:none;font-size:10px;color:#c1946a;transition:transform .15s}
.nt.open .nt-caret{transform:rotate(180deg)}

/* ================= 통합 홈 — 우 하단 ⚠️ 확인 · 결재 대기 ================= */
/* 오른쪽 컬럼을 위(생일·경조사) / 아래(확인·결재) 2구역으로 — 아래 구역은 컬럼 바닥에 붙는다 */
.hub-people-top{display:flex;flex-direction:column;min-width:0;flex:1 0 auto}
.hub-alerts{margin-top:auto;padding-top:4px;border-top:1px solid #efe3d4}
.hub-alerts .hub-head{margin-top:14px}
.hub-alert-list{display:flex;flex-direction:column;gap:8px;margin-top:10px;max-height:620px;overflow-y:auto;
  padding-right:3px;scrollbar-width:thin;scrollbar-color:#d9a86f #f8efe4}
.hub-alert-list::-webkit-scrollbar{width:7px}
.hub-alert-list::-webkit-scrollbar-track{background:#f8efe4;border-radius:9px}
.hub-alert-list::-webkit-scrollbar-thumb{background:#d9a86f;border-radius:9px}
.hub-alert-more{margin-top:5px;font-size:10.5px;font-weight:800;color:#a35b1c;text-align:center;
  background:#fdf6ee;border:1px dashed #f0d3ac;border-radius:8px;padding:3px 6px}
.hub-alert-more[hidden]{display:none}

/* 경고 배너(전일 미마감 · 2주 계획 기한) — 좁은 컬럼용 세로 카드 */
.hub-alerts .cl-alert,.hub-alerts .pa-alert{margin:0;padding:10px 11px;border-radius:11px;
  display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 7px;align-items:start}
.hub-alerts .cl-alert .ic,.hub-alerts .pa-alert .ic{font-size:14px;line-height:1.35}
.hub-alerts .cl-alert .tx,.hub-alerts .pa-alert .tx{flex:1;min-width:0}
.hub-alerts .cl-alert .tx b,.hub-alerts .pa-alert .tx b{font-size:12px;line-height:1.45}
.hub-alerts .cl-alert .tx .tiny,.hub-alerts .pa-alert .tx .tiny{display:block;margin-top:2px;font-size:10.5px;line-height:1.5}
.hub-alerts .cl-alert .btn,.hub-alerts .pa-alert .btn{grid-column:1/-1;justify-self:start;margin-top:5px;
  max-width:100%;white-space:normal;text-align:left;font-size:11px;line-height:1.4;padding:5px 9px;border-radius:8px}

/* 결재 대기 카드 — 표를 3단 컬럼 폭에 맞춘 세로 카드로 전환 */
.hub-alerts .card{margin:0;border-radius:11px;box-shadow:none}
.hub-alerts .card .hd{display:block;padding:9px 11px 7px}
.hub-alerts .card .hd h3{font-size:12px;line-height:1.45}
.hub-alerts .card .hd .tiny{display:block;margin-top:3px;font-size:10px;line-height:1.5}
.hub-alerts .pa-pending .bd,.hub-alerts .wa-pending .bd{padding:0 9px 9px !important}
.hub-alerts .pa-table{display:block;width:100%;table-layout:auto;font-size:11px}
.hub-alerts .pa-table thead{display:none}
.hub-alerts .pa-table tbody{display:block}
.hub-alerts .pa-table tr{display:block;margin-top:7px;padding:7px 9px;
  border:1px solid #f1e4d2;border-radius:9px;background:#fffefb}
.hub-alerts .pa-table tr:last-child td{border-bottom:0}
.hub-alerts .pa-table td{display:block;border:0;padding:1px 0;font-size:11px;line-height:1.45;
  min-width:0;word-break:break-word;overflow:hidden;text-overflow:ellipsis}
.hub-alerts .pa-table td .tiny{font-size:9.5px;line-height:1.4}
.hub-alerts .pa-table td b{font-size:11.5px}
.hub-alerts .pa-table td:before{display:inline-block;margin-right:6px;font-size:9.5px;font-weight:900;
  letter-spacing:.02em;color:#b3835a;white-space:nowrap}
.hub-alerts .pa-pending .pa-table td:nth-child(1):before{content:"대상 기간"}
.hub-alerts .pa-pending .pa-table td:nth-child(2):before{content:"요청자"}
.hub-alerts .pa-pending .pa-table td:nth-child(3):before{content:"계획"}
.hub-alerts .pa-pending .pa-table td:nth-child(4):before{content:"메모"}
.hub-alerts .wa-pending .pa-table td:nth-child(1):before{content:"작업일자"}
.hub-alerts .wa-pending .pa-table td:nth-child(2):before{content:"근무조"}
.hub-alerts .wa-pending .pa-table td:nth-child(3):before{content:"품목"}
.hub-alerts .wa-pending .pa-table td:nth-child(4):before{content:"배치"}
.hub-alerts .wa-pending .pa-table td:nth-child(5):before{content:"인원"}
.hub-alerts .wa-pending .pa-table td:nth-child(6):before{content:"사유"}
.hub-alerts .wa-pending .pa-table td:nth-child(7):before{content:"요청자"}
/* 배치·인원은 한 줄에 */
.hub-alerts .wa-pending .pa-table td:nth-child(4),
.hub-alerts .wa-pending .pa-table td:nth-child(5){display:inline-block;margin-right:14px}
/* 승인/반려 버튼 줄 */
.hub-alerts .pa-table td.nowrap{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;padding-top:6px;
  border-top:1px dashed #f0e2cf}
.hub-alerts .pa-table td.nowrap:before{display:none}
.hub-alerts .pa-table td.nowrap .btn{font-size:11px;padding:4px 11px;border-radius:8px}

/* ================= 생산 홈 (/production) — 해오름 고동 + 오렌지 ================= */
.prod-quick-wrap,.prod-print,.prod-memo{margin-bottom:14px}
.pq-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.pq{display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid #eee4d7;border-radius:12px;
  background:#fffdfa;transition:.12s;min-width:0}
.pq:hover{border-color:#f0c47a;background:#fffaf2;box-shadow:0 14px 24px -20px rgba(74,42,22,.6)}
.pq-ic{width:34px;height:34px;border-radius:10px;background:#fdf1e2;display:grid;place-items:center;font-size:16px;flex:none}
.pq-tx{display:flex;flex-direction:column;min-width:0}
.pq-tx b{font-size:13px;color:#4a2a16;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pq-tx small{font-size:10.5px;color:#96795f;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pq-go{margin-left:auto;color:#e87722;font-weight:900;flex:none}

.prod-cols{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;margin-bottom:14px;align-items:start}
.hub-stats.prod-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:0}
.prod-report .hub-title-row{margin-top:14px}
.prod-tb{margin-top:2px}
.prod-tb td,.prod-tb th{padding:7px 9px}
.prod-tb td{font-size:13px}
.prod-tb th{font-size:11.5px}
.prod-inline-btn{margin-top:8px}
.prod-appr{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:4px 0 2px}
.prod-appr .badge{flex:none}
.prod-appr-tx{display:flex;flex-direction:column;min-width:0;flex:1}
.prod-appr-tx b{font-size:13px;color:#2b2118}
.prod-appr-tx small{font-size:11px;line-height:1.4}
.prod-items{display:flex;flex-direction:column;gap:6px}
.prod-item{display:flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #f2e7d9;
  border-radius:10px;background:#fffdfa}
.pi-no{flex:none;min-width:34px;text-align:center;font-size:11px;font-weight:900;color:#fff4e4;
  background:linear-gradient(180deg,#5b3419,#4a2a16);border-radius:7px;padding:3px 5px;
  font-variant-numeric:tabular-nums}
.pi-nm{display:flex;flex-direction:column;min-width:0;flex:1}
.pi-nm b{font-size:12.5px;color:#2b2118;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pi-nm small{font-size:10.5px;color:#96795f}
.pi-bt{flex:none;font-size:11px;font-weight:900;color:#a35b1c;background:#fdf1e2;border-radius:999px;padding:2px 8px}

.prod-warn-list{display:flex;flex-direction:column;gap:9px}
.prod-warn .card{margin:0;box-shadow:none}
.pw-line{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border-radius:11px;
  border:1px solid #f0d3ac;background:linear-gradient(180deg,#fff8ee,#fff);color:#4a2a16}
.pw-line .ic{font-size:15px;line-height:1.3;flex:none}
.pw-line .tx{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.pw-line .tx b{font-size:12.5px}
.pw-line .tx .tiny{color:#8a6d55;font-size:10.5px}
.pw-line .go{flex:none;align-self:center;font-size:11.5px;font-weight:900;color:#b85c00}
.pw-line.bad{border-color:#f3c4c2;background:linear-gradient(180deg,#fff5f5,#fff)}
.pw-line.bad .tx b{color:#a8342e}
.pw-line.bad .go{color:#c0302a}
.pw-line:hover{box-shadow:0 12px 22px -20px rgba(74,42,22,.7)}

/* ④ 메모 */
.pm-form{display:flex;flex-direction:column;gap:8px;padding:12px 13px;border:1px solid #f0e2cf;
  border-radius:12px;background:#fffdf9}
.pm-form-row{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.pm-form textarea{width:100%;border:1px solid #e9ddcd;border-radius:10px;padding:9px 11px;font-size:13px;
  line-height:1.6;resize:vertical;background:#fff}
.pm-form textarea:focus{outline:none;border-color:#e87722;box-shadow:0 0 0 2px rgba(232,119,34,.13)}
.pm-form-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pm-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.pm{border:1px solid #eee4d7;border-left:3px solid #e8d9c6;border-radius:11px;background:#fffdfa;padding:9px 11px}
.pm.pinned{border-left-color:#e87722;background:linear-gradient(180deg,#fffaf3,#fffdfa)}
.pm-top{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.pm-tag{font-size:10px;font-weight:900;border-radius:999px;padding:2px 8px;flex:none;
  color:#7a4a1d;background:#f6e7d3}
.pm-tag.hand{color:#0a6f65;background:#e6f7f5}
.pm-tag.part{color:#854d0e;background:#fdf1e2}
.pm-tag.notice{color:#1e4fa8;background:#eaf1fd}
.pm-tag.etc{color:#475467;background:#f1f3f7}
.pm-who{font-size:12px;font-weight:900;color:#4a2a16}
.pm-at{font-size:10.5px;color:#a99684;font-variant-numeric:tabular-nums}
.pm-pinned{font-size:10px;color:#b85c00;font-weight:900}
.pm-acts{margin-left:auto;display:inline-flex;gap:5px}
.pm-body{margin-top:5px;font-size:12.5px;line-height:1.65;color:#3f3128;white-space:pre-wrap;word-break:break-word}
.pm-updated{margin-top:3px}
.pm-empty{margin-top:10px;padding:13px 12px;border:1px dashed #dfe4ee;border-radius:11px;
  background:#fbfcfe;color:var(--muted);font-size:12px;text-align:center}

@media (max-width:1500px){
  .pq-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:1200px){
  .prod-cols{grid-template-columns:1fr}
  .hub-stats.prod-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .pq-grid{grid-template-columns:1fr 1fr}
  .pq-tx small{display:none}
}

/* ================= 경영 대시보드 (/management) — 생산 홈과 같은 고동 + 오렌지 톤 ============ */
.mg-tools-wrap{margin-bottom:14px}
.mg-tools{display:flex;flex-direction:column;gap:12px}
.mg-mode{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 14px;border-radius:12px;
  border:1px solid #eee4d7;background:linear-gradient(180deg,#fffaf3,#fffdfa)}
.mg-mode.on{border-color:#f0c47a;background:linear-gradient(180deg,#fff4e3,#fffdfa)}
.mg-mode-tx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.mg-mode-tx .k{font-size:10.5px;font-weight:900;letter-spacing:.12em;color:#b8792a}
.mg-mode-tx b{font-size:15px;color:#4a2a16}
.mg-mode-tx .tiny{color:#8a6d55;font-size:11.5px}
.mg-tool-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.mg-tool{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #eee4d7;border-radius:12px;
  background:#fffdfa;transition:.12s;min-width:0}
.mg-tool:hover{border-color:#f0c47a;background:#fffaf2;box-shadow:0 14px 24px -20px rgba(74,42,22,.6)}
.mg-tool.locked{opacity:.55;background:#f7f5f2;cursor:not-allowed}
.mg-ic{width:32px;height:32px;border-radius:9px;background:#fdf1e2;display:grid;place-items:center;font-size:15px;flex:none}
.mg-tx{display:flex;flex-direction:column;min-width:0}
.mg-tx b{font-size:12.5px;color:#4a2a16;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-tx small{font-size:10.5px;color:#96795f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mg-go{margin-left:auto;font-size:11px;font-weight:900;color:#b85c00;flex:none}
.mg-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:4px 0 2px}
.mg-bar-track{flex:1 1 220px;height:10px;border-radius:999px;background:#f3ece3;overflow:hidden;min-width:140px}
.mg-bar-track span{display:block;height:100%;border-radius:999px;
  background:linear-gradient(90deg,#f5a623,#e87722)}
.mg-bar-tx{display:flex;flex-direction:column;min-width:0}
.mg-bar-tx b{font-size:13px;color:#4a2a16}
.mg-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mg-mini{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #eee4d7;
  border-radius:11px;background:#fffdfa;color:#4a2a16}
.mg-mini .k{font-size:10.5px;font-weight:800;color:#96795f}
.mg-mini b{font-size:17px;font-weight:900;letter-spacing:-.02em}
.mg-mini b small{font-size:10.5px;font-weight:800;color:#96795f}
.mg-mini .s{font-size:10.5px;color:#8a6d55}
.mg-mini.bad{border-color:#f3c4c2;background:linear-gradient(180deg,#fff5f5,#fff)}
.mg-mini.bad b{color:#a8342e}
.mg-mini.warn{border-color:#f0d3ac;background:linear-gradient(180deg,#fff8ee,#fff)}
a.mg-mini:hover{box-shadow:0 12px 22px -20px rgba(74,42,22,.7)}
@media (max-width:1500px){.mg-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1200px){.mg-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.mg-two{grid-template-columns:1fr}.mg-tool-grid{grid-template-columns:1fr}}

/* ================= 생산 홈 ⑤ 추이 그래프 — 인라인 SVG ================= */
.prod-charts-wrap{margin-bottom:14px}
.prod-charts{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.chart-card{border:1px solid #eee4d7;border-radius:12px;background:linear-gradient(180deg,#fffdfa,#fff);
  padding:12px 13px 10px;min-width:0}
.chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:4px}
.chart-head b{display:block;font-size:13.5px;color:#4a2a16}
.chart-head .tiny{display:block;margin-top:1px;font-size:10.5px;line-height:1.4}
.chart-badge{flex:none;font-size:11px;font-weight:800;color:#7a4a1d;background:#fdf1e2;
  border:1px solid #f0d3ac;border-radius:999px;padding:2px 9px;white-space:nowrap}
.chart-badge b{display:inline;font-size:11.5px;color:#b85c00}
.chart-badge.gray{color:#667085;background:#f4f6fa;border-color:#e4e8f0}
.chart-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-top:2px;padding-top:6px;border-top:1px dashed #f0e2cf}
.svg-wrap{width:100%}
.linechart{width:100%;height:auto;display:block;overflow:visible}
.linechart .gl{stroke:#f1e7db;stroke-width:1}
.linechart .yl,.linechart .xl{font-size:10px;font-weight:700;fill:#a99684;font-variant-numeric:tabular-nums}
.linechart .base{stroke:#c8a887;stroke-width:1.2;stroke-dasharray:6 5}
.linechart .bl{font-size:9.5px;font-weight:800;fill:#b3835a}
.linechart .ln{fill:none;stroke:#e67e22;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}
.linechart .dot{fill:#4a2a16;stroke:#fff;stroke-width:1.6;cursor:pointer}
.linechart .dot:hover,.linechart .dot.last{fill:#e67e22;stroke:#fff;stroke-width:2}
.linechart .vl{font-size:11px;font-weight:900;fill:#4a2a16;font-variant-numeric:tabular-nums}
.linechart .empty{font-size:12px;font-weight:700;fill:#a99684}
@media (max-width:1200px){.prod-charts{grid-template-columns:1fr}}

/* ================= 공장 전환 배지 — F1 익산 / F2 논산 =================
   전 직원 상단 상시 표시. F1 은 파랑·청록, F2 는 오렌지·고동으로 확실히 구분한다.
   겸직(G0·F0)·기간제 대직 수임자는 같은 자리에서 [F1 익산 | F2 논산] 로 전환한다. */
.factory-block{display:flex;align-items:center;gap:6px;flex:none}
.factory-badge,.factory-switch .factory-opt{
  display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;
  border-radius:999px;font-size:12.5px;font-weight:900;letter-spacing:-.01em;white-space:nowrap;
  border:1px solid transparent;transition:background .15s,color .15s,box-shadow .15s}
.factory-badge .fb-dot,.factory-switch .fb-dot{width:7px;height:7px;border-radius:50%;
  background:currentColor;box-shadow:0 0 7px currentColor;flex:none}
.factory-badge em{font-style:normal;font-size:10px;font-weight:800;opacity:.75;
  border:1px solid currentColor;border-radius:999px;padding:0 5px;line-height:14px}
/* F1 익산 — 파랑·청록 */
.factory-badge.f1,.factory-switch .factory-opt.f1.on{
  background:linear-gradient(180deg,#128aa8,#0b6477);color:#eafcff;border-color:#1397b7;
  box-shadow:0 2px 12px -2px rgba(19,151,183,.65)}
/* F2 논산 — 오렌지·고동 */
.factory-badge.f2,.factory-switch .factory-opt.f2.on{
  background:linear-gradient(180deg,#c9600f,#9a3d05);color:#fff4e8;border-color:#b85408;
  box-shadow:0 2px 12px -2px rgba(184,84,8,.6)}
.factory-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border-radius:999px;
  background:#0a1322;border:1px solid #24334f}
.factory-switch .factory-opt{height:28px;padding:0 10px;font-size:12px;background:transparent;
  color:#b6c3d9;cursor:pointer;box-shadow:none}
.factory-switch .factory-opt:hover{color:#fff;background:#1a2740}
.factory-switch .factory-opt.on{color:#fff}
.factory-deleg{font-size:10.5px;font-weight:900;color:#f5c07a;background:rgba(245,166,35,.14);
  border:1px solid rgba(245,166,35,.45);border-radius:999px;padding:2px 7px;white-space:nowrap}
@media (max-width:1360px){
  .factory-badge,.factory-switch .factory-opt{height:30px;padding:0 10px;font-size:11.5px}
  .factory-switch .factory-opt{height:26px;padding:0 9px;font-size:11.5px}
}
@media (max-width:900px){
  .factory-badge em,.factory-deleg{display:none}
}

/* F1 데이터 준비 전 — 실데이터 화면 위 안내 배너 */
.factory-pending{display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;
  padding:12px 16px;border-radius:12px;background:#eef9fd;border:1px solid #a8d9ea;
  border-left:5px solid #128aa8;color:#0b4553}
.factory-pending .fp-tag{flex:none;font-size:11.5px;font-weight:900;color:#eafcff;
  background:linear-gradient(180deg,#128aa8,#0b6477);border-radius:999px;padding:4px 10px;margin-top:1px}
.factory-pending .fp-body{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.5}
.factory-pending .fp-body b{font-size:13.5px;color:#083c49}
.factory-pending .fp-body span{color:#3c6b78}
@media print{.factory-pending{display:none}}

/* ================= 1·2페이지 탭 — 생산 홈 · 경영 대시보드 · 기준정보 (2026-11-28) =================
   1680×1050 데스크톱 한 화면에 담기 위해 상단 카드는 한 줄 스트립으로 접고,
   본문은 1페이지 · 2페이지로 나눈다. 탭 주소는 ?page=2 (해시 #users·#erp-delegations 도 인식). */
.pg-tabs{display:flex;align-items:center;gap:6px;margin:0 0 10px;padding:4px;
  border:1px solid #eee4d7;border-radius:13px;background:#fffdfa;
  box-shadow:0 1px 2px rgba(74,42,22,.04)}
.pg-tab{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:10px;
  border:1px solid transparent;color:#8a6d55;font-weight:800;font-size:13px;transition:.12s;white-space:nowrap}
.pg-tab .pg-n{font-size:10.5px;font-weight:900;letter-spacing:.04em;color:#b8792a;
  background:#fdf1e2;border-radius:999px;padding:2px 7px}
.pg-tab b{font-size:13px;color:inherit}
.pg-tab.on{background:linear-gradient(180deg,#fff2dd,#fffdfa);border-color:#f0c47a;color:#4a2a16;
  box-shadow:0 1px 2px rgba(74,42,22,.1)}
.pg-tab.on b{color:#4a2a16}
.pg-tab.on .pg-n{background:linear-gradient(180deg,#f5a623,#e87722);color:#fff8ee}
.pg-tab:hover{border-color:#f0d3ac;color:#4a2a16}
.pg-badge{margin-left:1px;font-size:10.5px;font-weight:900;border-radius:999px;padding:1px 7px;
  background:#f1f3f7;color:#475467;border:1px solid transparent}
.pg-tab.on .pg-badge{background:#fff;border-color:#f0d3ac;color:#b85c00}
.pg-badge.warn{background:#fdecec;color:#a83a36}
.pg-tab.on .pg-badge.warn{background:#fff3f2;border-color:#f3c4c2;color:#a8342e}
.pg-hint{margin-left:auto;padding-right:8px;font-size:11.5px;font-weight:700;color:#a99684;white-space:nowrap}
.pg-hint kbd{font-family:inherit;font-size:10.5px;font-weight:900;color:#8a6d55;background:#f6ece0;
  border:1px solid #ecdcc8;border-radius:5px;padding:1px 5px;margin:0 1px}
.pg-pane[hidden]{display:none}
@media (max-width:900px){.pg-hint{display:none}}
@media print{.pg-pane[hidden]{display:block !important}.pg-tabs,.pg-hint{display:none !important}}

/* ── 상단 한 줄 스트립 — ① 생산 메뉴 바로가기 · 🖨 인쇄 5종 · 경영 메뉴/보정 모드 ── */
.tool-line{display:flex;align-items:center;gap:14px;padding:5px 12px;margin:0 0 8px}
.tool-line > .hd{flex:none;border:0;padding:0;display:flex;align-items:baseline;gap:7px;min-width:0}
.tool-line > .hd h3{font-size:12px;letter-spacing:-.01em;color:#4a2a16;white-space:nowrap}
.tool-line > .hd .muted{display:none}
.tool-line > .bd{flex:1;min-width:0;padding:0}
.tool-line .pq{padding:6px 9px;gap:8px;border-radius:10px}
.tool-line .pq-ic{width:26px;height:26px;border-radius:8px;font-size:14px}
.tool-line .pq-tx b{font-size:12px}
.tool-line .pq-tx small{font-size:10px;line-height:1.25}
.tool-line .pq-go{font-size:12px}
.tool-line .rep-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.tool-line .pcard.mini{padding:5px 9px;gap:6px;flex-direction:row;align-items:center;
  border-radius:10px;min-width:0;background:#fffdfa}
.tool-line .pcard.mini .no{flex:none;font-size:9px;letter-spacing:.06em;color:#b8792a}
.tool-line .pcard.mini h4{flex:1;min-width:0;font-size:12px;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.tool-line .pcard.mini p{display:none}
.tool-line .pcard.mini .acts{flex:none;margin:0}
.tool-line .pcard.mini .btn{font-size:11px;padding:3px 9px;border-radius:8px}
.tool-line .pcard.mini .kbd{display:none}
.tool-line .pcard.var{background:linear-gradient(180deg,#f7faff,#fff);border-color:#c3d7f8}

/* 경영 상단 — 보정 모드 + 6개 메뉴를 한 줄에 */
.mg-tools.tool-line-row{display:grid;grid-template-columns:minmax(250px,.9fr) repeat(6,minmax(0,1fr));
  gap:7px;align-items:stretch}
.mg-tools.tool-line-row .mg-mode{padding:7px 12px;border-radius:11px}
.mg-tools.tool-line-row .mg-mode-tx b{font-size:13.5px}
.mg-tools.tool-line-row .mg-mode-tx .tiny{font-size:10.5px}
.mg-tools.tool-line-row .mg-mode .btn{font-size:11.5px;padding:6px 10px}
.mg-tools.tool-line-row .mg-tool{padding:7px 9px;border-radius:11px}
.mg-tools.tool-line-row .mg-ic{width:24px;height:24px;border-radius:8px;font-size:13px}
.mg-tools.tool-line-row .mg-tx b{font-size:11.5px}
.mg-tools.tool-line-row .mg-tx small{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1500px){.mg-tools.tool-line-row{grid-template-columns:minmax(280px,1fr) repeat(3,minmax(0,1fr))}}

/* ── 1페이지 압축 — 카드 여백·표 줄 높이를 줄여 한 화면에 담는다 ── */
.prod-head{margin:6px 0 10px;align-items:center}
.prod-head h1{font-size:21px}
.prod-head .sub{font-size:12px;margin-top:3px}
.prod-report .hd,.prod-warn .hd,.prod-memo .hd,.prod-erp-auth .hd,
.prod-charts-wrap .hd,.prod-quick-wrap .hd,.prod-print .hd{padding:11px 16px}
.prod-report .bd,.prod-warn .bd,.prod-memo .bd,.prod-erp-auth .bd,
.prod-charts-wrap .bd{padding:12px 16px}
.hub-stats.prod-kpis .st{padding:7px 10px}
.hub-stats.prod-kpis .v{font-size:17px;margin-top:2px}
.hub-stats.prod-kpis .s{font-size:10px}
.prod-report .hub-title-row{margin:9px 0 6px;padding:4px 10px}
.prod-tb td,.prod-tb th{padding:5px 9px}
.prod-tb th{font-size:11px}
.prod-tb td{font-size:12.5px}
.prod-inline-btn{margin-top:7px;padding:5px 11px;font-size:11.5px}
/* 오늘 계획 품목 — 두 칸 그리드 + 넘치면 카드 안에서만 스크롤 */
.prod-items{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:178px;overflow-y:auto;
  padding-right:2px}
.prod-item{padding:5px 9px;gap:7px;border-radius:9px}
.pi-no{min-width:30px;font-size:10px;padding:2px 4px}
.pi-nm b{font-size:12px}
.pi-nm small{font-size:10px}
.prod-item .btn.xs{padding:2px 7px;font-size:10.5px}
/* 워닝 목록 — 많아지면 카드 안에서 스크롤 */
.prod-warn-list{max-height:300px;overflow-y:auto;padding-right:3px}
.pw-line{padding:7px 10px;border-radius:10px}
.pw-line .tx b{font-size:12px}
.pw-line .tx .tiny{font-size:10px}
.pw-line .go{font-size:11px}
.prod-warn .cl-alert,.prod-warn .pa-alert{padding:7px 10px;gap:8px}
.prod-warn .cl-alert b,.prod-warn .pa-alert b{font-size:12px}
/* 2페이지 — 메모 · 대직 · 추이 */
.prod-cols.p2-top{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.prod-memo .pm-form{padding:9px 11px;gap:6px}
.prod-memo .pm-form textarea{padding:7px 10px;font-size:12.5px}
.prod-memo .pm-list{max-height:236px;overflow-y:auto;padding-right:3px;margin-top:9px}
.prod-memo .pm{padding:7px 10px}
.prod-memo .pm-body{font-size:12px;line-height:1.6;margin-top:4px}
.prod-erp-auth .ea-form .pm-form-row{gap:10px}
.prod-erp-auth .pm-form-foot{padding-top:2px}
.prod-erp-auth .tb td,.prod-erp-auth .tb th{padding:5px 9px;font-size:12px}
.prod-erp-auth .hub-title-row{margin:8px 0 5px;padding:4px 10px}
.prod-charts-wrap .chart-card{padding:9px 11px 7px}
.prod-charts-wrap .chart-head b{font-size:12.5px}
.prod-charts-wrap .chart-head .tiny{font-size:10px}
.prod-charts-wrap .chart-foot{padding-top:4px;margin-top:0}

/* ── 기준정보 · 설정(/admin) — 1페이지 계정·권한 / 2페이지 기준정보·대직 ── */
.um-scroll{max-height:522px;overflow:auto;border:1px solid #f2e7d9;border-radius:11px;background:#fffdfa}
.um-filter{padding:7px 11px;border:1px solid #e3d5c1;border-radius:10px;font-size:12.5px;min-width:210px;background:#fffdfa}
.um-filter:focus{outline:none;border-color:#f0b64a;box-shadow:0 0 0 3px #fdf1da}
.um-scroll .tb{margin:0;border:0}
.um-scroll thead th{position:sticky;top:0;z-index:2;background:#fdf6ee}
.um-scroll-sm{max-height:250px}
.um-notes{line-height:1.55;padding:7px 2px 1px}
.adm-grid3{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.adm-grid3 .card .hd{padding:10px 14px}
.adm-grid3 .card .bd{padding:11px 14px}
.adm-grid3 .list-line{padding:6px 0;font-size:12px}
.adm-pair{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:12px;margin-top:12px;align-items:start}
.adm-pair .card .hd{padding:10px 14px}
.adm-pair .card .bd{padding:11px 14px}
.adm-pair .tb td,.adm-pair .tb th{padding:5px 9px;font-size:12px}
@media (max-width:1400px){.adm-grid3{grid-template-columns:1fr 1fr}.adm-pair{grid-template-columns:1fr}}
/* 경영 대시보드 3③ — 스케줄 목록은 카드 안에서만 스크롤 */
.mg-warn .sc-list.mg-sched{max-height:250px;overflow-y:auto;margin-top:8px}
.mg-warn .prod-warn-list{max-height:318px}
/* 2페이지 메모(경영) — 넓게 쓰고 목록은 카드 안에서 스크롤 */
.mg-memo .pm-list{max-height:430px}
.mg-memo .pm-form{padding:11px 13px}

/* ── 메모 폼 한 줄 액션 줄 (입력창 아래) ── */
.pm-form-compact{padding:8px 11px;gap:6px}
.pm-form-compact textarea{padding:6px 10px;font-size:12.5px;line-height:1.55;min-height:46px}
.pm-foot-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pm-foot-row .field-inline{display:flex;align-items:center;gap:7px}
.pm-foot-row .field-inline label{margin:0;font-size:11.5px;font-weight:800;color:#8a6d55;white-space:nowrap}
.pm-foot-row .field-inline select{width:118px;padding:4px 8px;border-radius:8px;font-size:12px}
.pm-foot-row .chk{font-size:11.5px}
.pm-foot-row .pm-count{font-size:10.5px}
.pm-foot-row .btn{margin-left:auto;padding:6px 14px;font-size:12.5px}
.prod-cols{margin-bottom:10px}
.prod-memo .pm-list{max-height:198px}
.prod-charts-wrap .chart-head{margin-bottom:2px}
.prod-charts-wrap .chart-foot{border-top:0}
.prod-charts-wrap .chart-card{padding:7px 11px 5px}
.prod-erp-auth .bd > .tiny.muted:last-child{padding:3px 2px}
/* 대직 위임 폼 — 좁은 오른쪽 칸에 두 줄로 들어가게 */
.prod-erp-auth .field label{font-size:10.5px;margin-bottom:3px;color:#8a6d55}
.prod-erp-auth .field input,.prod-erp-auth .field select{padding:6px 9px;font-size:12.5px;border-radius:8px}
.prod-erp-auth .ea-form .pm-form-row{gap:8px;row-gap:7px}
.prod-erp-auth .pm-form-foot{gap:8px}
.prod-erp-auth .pm-form-foot .btn{padding:6px 12px;font-size:12px}
.prod-erp-auth .pm-form-foot .tiny{font-size:10px;line-height:1.4}
.prod-erp-auth .list-line{padding:6px 0;font-size:12px}
.pg-pane > :last-child{margin-bottom:0}
.prod-charts-wrap:last-child{margin-bottom:0}
.prod-charts-wrap .hd{padding:9px 16px !important}
.prod-charts-wrap .bd{padding:10px 14px !important}
.tool-line{padding:4px 12px}
.ea-tables{max-height:168px;overflow-y:auto;padding-right:3px}
/* 사번 · 권한 관리 — 표 아래 권한 요약 */
.um-summary{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch;margin-top:8px}
.um-s{display:flex;flex-direction:column;gap:1px;padding:7px 12px;border:1px solid #f2e7d9;border-radius:10px;
  background:linear-gradient(180deg,#fffdfa,#fff);min-width:104px}
.um-s .k{font-size:10.5px;font-weight:800;color:#96795f}
.um-s b{font-size:16px;font-weight:900;color:#4a2a16;letter-spacing:-.02em}
.um-s b small{font-size:10.5px;font-weight:800;color:#96795f;margin-left:2px}
.um-s b.bad{color:#a8342e}
.um-s-depts{flex:1;min-width:280px}
.um-s-depts .k em{font-style:normal;font-weight:700;color:#b9a692;margin-left:5px}
.um-dept-counts{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.um-dc{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;color:#6b5544;
  background:#fdf1e2;border-radius:999px;padding:2px 9px}
.um-dc b{font-size:12px;color:#b85c00}
/* 기준정보 · 설정 2페이지 — 카드 높이를 맞춘다 */
.adm-grid3{align-items:stretch}
.adm-grid3 .list-line{padding:7px 0}
.adm-pair{align-items:stretch}
.adm-pair .um-scroll-sm{max-height:300px}
/* 오늘 계획 품목 — 4줄(8종)까지 접지 않고 보이게 줄 높이를 조금 줄인다 */
.prod-items{max-height:198px;gap:4px}
.prod-item{padding:4px 8px;gap:6px}
.pi-nm b{line-height:1.25}
.pi-nm small{line-height:1.2}
.prod-report .hub-title-row{margin:8px 0 5px}
/* 경영 대시보드 1페이지 — 실데이터(어제 마감 버튼·3건 일정)에서도 한 화면에 담기게 조금 더 조인다 */
.prod-report .mg-bar{padding:3px 0 1px}
.prod-report .mg-two{gap:8px}
.prod-report .mg-mini{padding:8px 12px}
.prod-report .mg-mini b{font-size:16px}
.prod-report .bd{padding:11px 16px}
.prod-report .hub-title-row{margin:7px 0 5px}
.prod-report .prod-inline-btn{margin-top:6px}

/* ═══════════════════════════════════════════════════════════════════════════
   실행 버튼 = 해오름 고동색 (2026-11-28)
   검은색·진남색(.btn.dark / .btn.on) 실행 버튼을 회사 고동색으로 통일한다.
   — '어제 실적 마감하러 가기', '2주 계획 결재 요청', '차이 리포트 열기' 등
   ═══════════════════════════════════════════════════════════════════════════ */
.btn.dark{background:linear-gradient(180deg,#5c351e,#4a2a16);border-color:#45281a;color:#fff;
  box-shadow:0 1px 2px rgba(74,42,22,.22)}
.btn.dark:hover{background:linear-gradient(180deg,#6b3f25,#5a341b);border-color:#4a2a16}
.btn.on{background:linear-gradient(180deg,#5c351e,#4a2a16);border-color:#45281a;color:#fff}
.btn.on:hover{background:linear-gradient(180deg,#6b3f25,#5a341b);border-color:#4a2a16}

/* ═══════════════════════════════════════════════════════════════════════════
   맥북 등 노트북 화면 대응 (1440×900 · 1512×982) — 2026-11-28
   ① ①생산 메뉴 바로가기 7개는 1280~1680 폭에서도 **한 줄** 유지
      (좁아지면 부제를 숨기고 아이콘·글자를 줄인다 — title 툴팁에 부제 유지)
   ② /production · /management 1·2페이지가 세로 잘림 없이 한 화면에 담긴다
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width:1201px) and (max-width:1560px){
  .pq-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
  .tool-line .pq{padding:5px 7px;gap:6px}
  .tool-line .pq-ic{width:22px;height:22px;font-size:12.5px;border-radius:7px}
  .tool-line .pq-tx b{font-size:11px}
  .tool-line .pq-tx small{display:none}
  .tool-line .pq-go{font-size:11px}
  .mg-tools.tool-line-row{grid-template-columns:minmax(230px,.95fr) repeat(5,minmax(0,1fr));gap:7px}
  .mg-tools.tool-line-row .mg-mode{padding:6px 10px;gap:8px}
  .mg-tools.tool-line-row .mg-mode .btn{padding:5px 8px;font-size:11px}
  .mg-tools.tool-line-row .mg-tool{padding:6px 8px;gap:8px}
  .mg-tools.tool-line-row .mg-tx b{font-size:11.5px}
  .mg-tools.tool-line-row .mg-tx small{display:none}
}

@media (min-width:1201px) and (max-height:1010px){
  /* 공통 — 위아래 여백을 줄여 세로를 번다 */
  .wrap{padding:8px 20px 5px}
  .prod-head{margin:0 0 5px}
  .prod-head h1{font-size:19px}
  .prod-head .sub{font-size:11.5px;margin-top:2px}
  .prod-head .head-badges .badge{font-size:11px;padding:2px 8px}
  .tool-line{margin-bottom:4px;padding:2px 10px}
  .pg-tabs{margin:0 0 5px;padding:2px}
  .pg-tab{padding:4px 10px;font-size:12px}
  .card .hd{padding:7px 13px !important}
  .card .bd{padding:8px 13px !important}
  .hub-title-row{margin:4px 0 2px;padding:2px 9px}
  .prod-report .hub-title-row{margin:4px 0 2px}
  .prod-tb td,.prod-tb th{padding:3px 8px}
  .prod-tb td{font-size:11.5px}
  .prod-cols{gap:12px;margin-bottom:8px}
  .hub-stats.prod-kpis{gap:8px}
  .hub-stats.prod-kpis .st{padding:5px 9px;border-radius:9px}
  .hub-stats.prod-kpis .v{font-size:15.5px}
  .hub-stats.prod-kpis .s{font-size:9.5px}
  .prod-items{max-height:148px}
  .prod-warn-list{max-height:250px}
  .pw-line{padding:6px 9px}
  .prod-appr{padding:5px 9px}
  .prod-inline-btn{margin-top:5px !important;padding:4px 10px !important;font-size:11px !important}
  /* 2페이지 — 메모 · 추이 */
  .prod-memo .pm-form{padding:7px 9px}
  .prod-memo .pm-form textarea{min-height:40px;padding:5px 9px}
  .prod-memo .pm-list{max-height:150px;margin-top:7px}
  .prod-memo .pm{padding:6px 9px}
  .prod-memo .pm-body{font-size:11.5px;line-height:1.5}
  .prod-erp-auth .bd .pm-form-row{gap:6px;row-gap:5px}
  .prod-erp-auth .tb td,.prod-erp-auth .tb th{padding:3px 8px;font-size:11.5px}
  .prod-erp-auth .list-line{padding:4px 0;font-size:11.5px}
  .prod-erp-auth .pm-form-foot{padding-top:1px}
  .prod-charts-wrap .bd{padding:6px 10px !important}
  .prod-charts-wrap .chart-card{padding:4px 8px 3px}
  .prod-charts-wrap .chart-head .tiny{display:none}
  .prod-charts-wrap .chart-head b{font-size:12px}
  .prod-charts-wrap .chart-head{margin-bottom:0}
  .prod-charts-wrap .chart-foot{padding-top:0;font-size:10px}
  .prod-charts-wrap .hd .small{font-size:11px}
  /* 통합 홈 — 3단 포털 카드 여백 (한 화면) */
  .page-head{margin:0 0 10px}
  .page-head h1{font-size:23px}
  .page-head .sub{margin-top:3px;font-size:12.5px}
  .hub3{gap:14px}
  .hub-col{padding:12px 14px 10px}
  .hub-head{padding-bottom:6px}
  .hub-head h2{font-size:20px}
  .hub-head p{margin-top:2px}
  .sc-list{max-height:300px}
  /* 경영 — 상단 5개 메뉴 · 본문 */
  .mg-tools-wrap{margin-bottom:7px}
  .mg-tools.tool-line-row .mg-mode{padding:4px 9px;gap:7px}
  .mg-mode .mg-mode-tx .tiny{display:none}
  .mg-tools.tool-line-row .mg-mode .btn{padding:4px 8px;font-size:11px}
  .prod-warn .sc-list.mg-sched{max-height:200px}
  .mg-warn .prod-warn-list{max-height:240px}
  .mg-memo .pm-list{max-height:320px}
  .mg-warn .pw-line,.mg-warn .cl-alert,.mg-warn .pa-alert{padding:5px 8px}
}

/* ═══════════════════════════════════════════════════════════════════════════
   인사회계(/hr) — 근태·휴가 신청 · 3단 급여 · 매입매출 짝 맞춤 · 지출 기안 (2026-11-28)
   생산 홈과 같은 고동 + 오렌지 톤. 1·2페이지 탭은 page_tabs.js 를 그대로 쓴다.
   ═══════════════════════════════════════════════════════════════════════════ */
/* 상단 인사회계 탭 — 권한 없는 직원에게는 '근태 · 휴가 신청' 한 줄만 (링크 하나) */
.dept.hr-entry .dept-btn{color:#dfe6f2}
.dept.hr-entry .dept-btn:hover{background:#1a2740;color:#fff}
.dept.hr-entry .hr-link::after{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;
  background:#f5a623;margin-left:6px;vertical-align:2px}
/* 권한이 없어도 전 직원 공통 창구(근태 · 휴가 신청, 소모품 · 지출 기안)만 여는 탭 —
   부서 이름 = 첫 공통 창구 링크 · 캐럿 = 공통 메뉴 두 줄. 잠금색(회색)으로 두지 않는다. */
.dept.common-only .dept-btn{color:#dfe6f2}
.dept.common-only .dept-btn:hover{background:#1a2740;color:#fff}
.dept.common-only .dept-btn.on{background:#1e2c47;color:#fff;box-shadow:inset 0 -2px 0 var(--amber)}
.dept.common-only .common-link::after{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;
  background:#f5a623;margin-left:6px;vertical-align:2px}
.dp-note{padding:8px 12px 10px;border-top:1px solid var(--line);margin-top:4px;
  font-size:11.5px;color:var(--muted);line-height:1.45}
/* 인사회계 두 공통 화면(근태 · 휴가 신청 ↔ 소모품 · 지출 기안) 서로 가는 버튼 */
.btn.hs-go{padding:4px 10px;font-size:11.5px;border-radius:8px;border-color:#f0c987;
  background:#fff8ec;color:#8a5a12;font-weight:800;text-decoration:none;white-space:nowrap}
.btn.hs-go:hover{background:#ffefd2;border-color:#e9b45f;color:#7a4c08}

.card .hd > h3 + .muted{margin-left:12px}
.hr-head{margin:6px 0 10px;align-items:center}
.hr-head h1{font-size:21px}
.hr-head .sub{font-size:12px;margin-top:3px}
/* 바로가기 5개 — 생산 홈의 7개 스트립과 같은 모양, 열 수만 5 */
.hr-quick .pq-grid,.hr-quick .hr-pq{grid-template-columns:repeat(5,minmax(0,1fr))}

.hr-tb td,.hr-tb th{padding:5px 9px}
.hr-tb th{font-size:11px}
.hr-tb td{font-size:12.5px}
.hr-reason{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hr-acts .btn{font-size:11px;padding:3px 9px;border-radius:8px}
.hr-pend-list{max-height:250px;overflow-y:auto;padding-right:3px}
.hr-kpis .st .s{font-size:10px}

/* 구분 배지 — 근태 · 매입/매출 · 지출 */
.hr-type{display:inline-block;font-size:10.5px;font-weight:900;border-radius:999px;padding:2px 8px;white-space:nowrap}
.hr-type.t-leave{color:#0a6f65;background:#e6f7f5}
.hr-type.t-half_leave{color:#0b6477;background:#e8f4f8}
.hr-type.t-late{color:#a8342e;background:#fdeceb}
.hr-type.t-early{color:#a15c1d;background:#fdf1e2}
.hr-type.t-overtime{color:#1e4fa8;background:#eaf1fd}
.hr-type.t-buy{color:#854d0e;background:#fdf1e2}
.hr-type.t-sell{color:#1e4fa8;background:#eaf1fd}
.hr-type.t-exp{color:#475467;background:#f1f3f7}

/* 연동 예정 · 샘플 안내 */
.hr-note{display:flex;flex-direction:column;gap:2px;padding:8px 11px;border-radius:11px;
  border:1px solid #f0d3ac;background:linear-gradient(180deg,#fff8ee,#fff);margin-bottom:8px}
.hr-note b{font-size:12px;color:#8a4b12}
.hr-note span{font-size:11px;line-height:1.55;color:#7b6650}
.hr-note-line{font-size:11px;line-height:1.55;color:#8a7a68;padding:6px 2px 2px}
.hr-bad{color:#a8342e;font-weight:900}

/* 짝 맞춤 경고 카드 */
.hr-recon-card{border:1px solid #f0e2cf;border-radius:11px;background:#fffdfa;padding:8px 11px;margin-bottom:7px}
.hr-recon-card .rc-top{display:flex;align-items:center;gap:7px}
.hr-recon-card .rc-name{font-size:12.5px;font-weight:900;color:#4a2a16}
.hr-recon-card .rc-n{margin-left:auto;font-size:16px;font-weight:900;color:#4a2a16;letter-spacing:-.02em}
.hr-recon-card .rc-n small{font-size:10px;color:#96795f;margin-left:1px}
.hr-recon-card .rc-amt{font-size:12px;font-weight:800;color:#6b5544;margin-top:1px}
.hr-recon-card .rc-desc{font-size:10.5px;line-height:1.5;color:#96795f;margin-top:2px}
.hr-recon-card.red{border-color:#f3c4c2;background:linear-gradient(180deg,#fff7f6,#fff)}
.hr-recon-card.red .rc-name{color:#a8342e}
.hr-recon-card.amber{border-color:#f0d3ac;background:linear-gradient(180deg,#fffaf1,#fff)}
.hr-recon-card.green{border-color:#cbe9dc;background:linear-gradient(180deg,#f6fdf9,#fff)}
.hr-recon-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.hr-recon-cards .hr-recon-card{margin-bottom:0;padding:10px 12px}

/* 3단 급여 — 왼쪽(+) · 가운데 기본 · 오른쪽(−) */
.hr-pay3 th,.hr-pay-table th{vertical-align:middle}
.hr-pay3 th.plus,.hr-pay-table th.plus{color:#0f7a52;background:#f3fbf7;border-bottom:1px solid #dcefe6}
.hr-pay3 th.base,.hr-pay-table th.base{color:#6b5544;background:#fdf8f1}
.hr-pay3 th.minus,.hr-pay-table th.minus{color:#a8342e;background:#fdf5f4;border-bottom:1px solid #f6dedb}
.hr-pay3 th b{font-size:10.5px;letter-spacing:.02em}
.hr-pay3 th small,.hr-pay-table th small{display:block;font-size:9.5px;font-weight:700;opacity:.75}
.hr-pay3 .hr-pay-sub th{font-size:9.5px;font-weight:800;padding:2px 9px}
.hr-pay-total td{background:#fffdf7;border-top:2px solid #f0d3ac}
.hr-pay-total td.plus{color:#0f7a52}
.hr-pay-total td.minus{color:#a8342e}
.hr-blank{font-size:10.5px;font-weight:800;color:#a99684;background:#f6f1ea;
  border:1px dashed #e3d5c1;border-radius:7px;padding:1px 7px;white-space:nowrap}
.hr-amt{font-size:10.5px;font-weight:800;margin-top:1px}
td.plus .hr-amt{color:#0f7a52}
td.minus .hr-amt{color:#a8342e}

/* 정강 마감 체크 */
.hr-check{display:flex;flex-direction:column;gap:6px}
.hc{display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #f2e7d9;
  border-radius:10px;background:#fffdfa}
.hc .hc-dot{width:7px;height:7px;border-radius:50%;background:#cbd5e1;flex:none}
.hc.done .hc-dot{background:#12805c}
.hc.wait .hc-dot{background:#f5a623}
.hc .hc-tx{display:flex;flex-direction:column;flex:1;min-width:0}
.hc .hc-tx b{font-size:12px;color:#3f3128}
.hc .hc-tx small{font-size:10.5px;color:#96795f}

/* 근태 신청 — 폼 · 이력 2열 */
.hr-att-cols{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,1fr);gap:14px;align-items:start;margin-bottom:12px}
.hr-form{display:flex;flex-direction:column;gap:9px}
.hr-form-grid{display:flex;flex-wrap:wrap;gap:9px}
.hr-form-grid .field{flex:1 1 30%;min-width:130px}
.hr-form-grid .field.hr-wide{flex:1 1 100%}
.hr-form .field label{display:block;font-size:10.5px;font-weight:800;color:#8a6d55;margin-bottom:3px}
.hr-form .field input,.hr-form .field select{width:100%;padding:7px 9px;border:1px solid #e3d5c1;
  border-radius:9px;background:#fffdfa;font-size:12.5px}
.hr-form .field input:focus,.hr-form .field select:focus{outline:none;border-color:#e87722;
  box-shadow:0 0 0 2px rgba(232,119,34,.13)}
.hr-form-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:2px}
.hr-hint{margin-top:4px;line-height:1.5}
.hr-hint-box{font-size:11px;line-height:1.55;color:#8a7a68;background:#fbf8f3;border:1px dashed #e3d5c1;
  border-radius:9px;padding:7px 10px}
.hr-table-scroll{max-height:300px;overflow:auto;border:1px solid #f2e7d9;border-radius:10px;background:#fffdfa}
.hr-table-scroll.tall{max-height:340px}
.hr-table-scroll .tb{margin:0;border:0}
.hr-table-scroll thead th{position:sticky;top:0;z-index:2;background:#fdf6ee}
.hr-given{display:flex;flex-direction:column;gap:4px}
.hr-given-line{font-size:11.5px;color:#6b5544;display:flex;align-items:center;gap:6px}
.hr-recent{display:flex;flex-direction:column;gap:3px;max-height:126px;overflow-y:auto;padding-right:3px}
.hr-recent-line{font-size:11.5px;color:#6b5544;display:flex;align-items:center;gap:6px;flex-wrap:wrap}

/* 직책 계정 안내 */
.hr-title-note{display:flex;gap:10px;align-items:flex-start;padding:9px 12px;margin:0 0 12px;
  border:1px solid #f0d3ac;border-radius:11px;background:linear-gradient(180deg,#fff8ee,#fff)}
.hr-title-note .tn-tag{flex:none;font-size:10px;font-weight:900;color:#fff8ee;background:#b8792a;
  border-radius:999px;padding:2px 9px;margin-top:2px}
.hr-title-note b{display:block;font-size:12.5px;color:#8a4b12}
.hr-title-note span{font-size:11px;line-height:1.55;color:#7b6650}

/* 3단 급여 화면 */
.hr-pay-filter .bd{padding:8px 14px}
.hr-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.hr-filter.mini{display:inline-flex;gap:6px;align-items:center}
.hr-filter .field{display:flex;flex-direction:column;gap:3px;min-width:120px}
.hr-filter .field.grow{flex:1 1 200px}
.hr-filter label{font-size:10.5px;font-weight:800;color:#8a6d55}
.hr-filter input,.hr-filter select{padding:6px 9px;border:1px solid #e3d5c1;border-radius:9px;
  background:#fffdfa;font-size:12.5px}
.hr-filter.mini select,.hr-filter.mini input{padding:4px 8px;font-size:11.5px;border-radius:8px}
.hr-sample-chk{font-size:11.5px;font-weight:700;color:#6b5544;display:inline-flex;align-items:center;gap:6px;
  padding-bottom:6px}
.hr-pay-scroll{max-height:calc(100vh - 410px);overflow:auto;border:1px solid #f2e7d9;border-radius:11px;
  background:#fffdfa}
.hr-pay-scroll .tb{margin:0;border:0}
.hr-pay-scroll thead th{position:sticky;top:0;z-index:2}
.hr-pay-table td.plus{color:#0f7a52}
.hr-pay-table td.minus{color:#a8342e}
.hr-pay-table tr.hr-touched td{background:#fffdf7}
.hr-pay-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:6px;flex-wrap:wrap}

/* 매입·매출 보드 · 지출 목록 */
.hr-recon-board .hd{flex-wrap:wrap;gap:8px}
.hr-status-filter{display:inline-flex;gap:4px}
.hr-status-filter a{font-size:11px;font-weight:800;color:#8a6d55;border:1px solid #ecdcc8;
  border-radius:999px;padding:2px 9px;background:#fffdfa}
.hr-status-filter a.on{color:#fff8ee;background:linear-gradient(180deg,#5c351e,#4a2a16);border-color:#45281a}
.hr-exp-title{font-size:12.5px;color:#2b2118}

@media (max-width:1200px){
  .hr-recon-cards{grid-template-columns:1fr 1fr}
  .hr-att-cols{grid-template-columns:1fr}
}
@media (min-width:1201px) and (max-width:1560px){
  .hr-quick .pq-grid,.hr-quick .hr-pq{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .hr-reason{max-width:170px}
}
@media (min-width:1201px) and (max-height:1010px){
  .hr-head{margin:0 0 5px}
  .hr-head h1{font-size:19px}
  .hr-head .sub{font-size:11.5px;margin-top:2px}
  .hr-pend-list{max-height:206px}
  .hr-table-scroll{max-height:250px}
  .hr-table-scroll.tall{max-height:246px}
  .hr-recent{max-height:98px}
  .hr-title-note{padding:7px 11px;margin-bottom:8px}
  .hr-note{padding:6px 10px;margin-bottom:6px}
  .hr-recon-card{padding:6px 10px;margin-bottom:6px}
  .hr-recon-card .rc-amt{font-size:11.5px}
  .hc{padding:4px 9px}
  .hr-pay-scroll{max-height:calc(100vh - 380px)}
  .hr-form .field input,.hr-form .field select{padding:5px 8px}
}

/* 3단 급여 표 — 열 너비를 고정해 이름·왼쪽·가운데·오른쪽·예상이 고르게 보이게 */
.hr-pay-table{width:100%;table-layout:fixed}
.hr-pay-table col.c-name{width:22%}
.hr-pay-table col.c-plus{width:23%}
.hr-pay-table col.c-base{width:19%}
.hr-pay-table col.c-minus{width:23%}
.hr-pay-table col.c-net{width:13%}

/* ================= F1+F2 생산계획 통합 조회 (2026-11-29) =================
   통합 보기는 읽기 전용이다. 행·합계 앞에 공장 배지를 붙여 색으로 구분한다.
   F1 익산 = 파랑·청록 / F2 논산 = 오렌지·고동 (상단 공장 배지와 같은 색). */
.fx-badge{display:inline-flex;align-items:center;justify-content:center;min-width:30px;
  padding:1px 6px;border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.02em;
  border:1px solid transparent;white-space:nowrap}
.fx-badge.f1{background:linear-gradient(180deg,#128aa8,#0b6477);color:#eafcff;border-color:#1397b7}
.fx-badge.f2{background:linear-gradient(180deg,#c9600f,#9a3d05);color:#fff4e8;border-color:#b85408}
.fx-readonly{display:flex;align-items:flex-start;gap:12px;margin:0 0 14px;padding:11px 15px;
  border-radius:12px;background:#f7f9fd;border:1px solid #d7e2f2;border-left:5px solid #2e6bd8;color:#233a5c}
.fx-readonly .fx-ro-tag{flex:none;font-size:11.5px;font-weight:900;color:#fff;background:#2e6bd8;
  border-radius:999px;padding:4px 10px;margin-top:1px}
.fx-readonly .fx-ro-body{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.5}
.fx-readonly .fx-ro-body b{font-size:13.5px;color:#16305a}
.fx-sum{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 12px;
  border-bottom:1px solid #eef1f6;background:#fbfcfe}
.fx-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border-radius:999px;
  font-size:12px;font-weight:800;border:1px solid transparent}
.fx-chip.f1{background:#e7f6fa;color:#0b4b5b;border-color:#bfe6ef}
.fx-chip.f2{background:#fdf1e2;color:#7a3405;border-color:#f2d9b8}
.fx-chip i{font-style:normal;font-weight:900;font-size:10.5px;color:#fff;border-radius:999px;
  padding:1px 6px}
.fx-chip.f1 i{background:linear-gradient(180deg,#128aa8,#0b6477)}
.fx-chip.f2 i{background:linear-gradient(180deg,#c9600f,#9a3d05)}
.fx-chip small{font-weight:700;opacity:.8}
.pgrid-ro tbody tr.fx-f1 td.c1{border-left:3px solid #128aa8}
.pgrid-ro tbody tr.fx-f2 td.c1{border-left:3px solid #c9600f}
.pgrid-ro td.cell.ro{background:#fcfdff}
.pgrid-ro td.cell.ro.has{background:#f7fafd;box-shadow:inset 0 0 0 1px #e2e9f4}
.pgrid-ro tfoot tr.fx-foot.f1 td{background:#f2fafc}
.pgrid-ro tfoot tr.fx-foot.f2 td{background:#fffaf3}
.pgrid-ro tfoot tr.fx-foot.all td{background:#fafbfd;font-weight:900}
.factory-view-seg .seg-a{text-decoration:none}

/* ================= 배차 · 출하 관리 (/dispatch) — 2026-11-29 ================= */
.dp-head .sub b{color:#4a2a16}
.dp-combine{display:flex;align-items:flex-start;gap:12px;margin:0 0 12px;padding:10px 14px;
  border-radius:12px;background:#fffaf2;border:1px solid #f2d9b8;border-left:5px solid #e87722;color:#6b3a10}
.dp-combine.strong{background:#fdf4e8;border-color:#eec98f;border-left-color:#c9600f}
.dp-cb-tag{flex:none;font-size:11.5px;font-weight:900;color:#fff;background:linear-gradient(180deg,#e5861f,#c9600f);
  border-radius:999px;padding:4px 10px;margin-top:1px;white-space:nowrap}
.dp-cb-body{display:flex;flex-direction:column;gap:2px;font-size:12.5px;line-height:1.5}
.dp-cb-body b{font-size:13px;color:#7a3405}
.dp-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;align-items:start}
@media (max-width:1440px){.dp-layout{grid-template-columns:minmax(0,1fr) 290px}}
@media (max-width:1180px){.dp-layout{grid-template-columns:1fr}}
.dp-main .hd,.dp-links .hd{align-items:center}
.dp-kpis{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}
.dp-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;padding:10px 14px;border-bottom:1px solid #eef1f6;background:#fbfcfe}
.dp-filter .field label{font-size:10.5px}
.dp-filter .field input,.dp-filter .field select{padding:5px 8px;font-size:12px}
.dp-form{padding:10px 14px 12px;border-bottom:1px solid #eef1f6;background:#fffdf9}
.dp-form-hd{display:flex;align-items:baseline;gap:8px;margin-bottom:7px}
.dp-form-hd b{font-size:13px;color:#4a2a16}
.dp-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px 9px}
.dp-fields .field label{font-size:10.5px;margin-bottom:2px}
.dp-fields .field input,.dp-fields .field select{padding:5px 8px;font-size:12px}
.dp-fields .field.span2{grid-column:span 2}
.dp-chk{margin-top:6px;font-size:12px;gap:6px}
@media (max-width:1440px){.dp-fields{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:1180px){.dp-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
.dp-table-wrap{overflow:auto;max-height:calc(100vh - 360px)}
table.dp-table{width:100%;font-size:12px}
table.dp-table th{position:sticky;top:0;z-index:2;background:#f8fafc}
table.dp-table td,table.dp-table th{padding:5px 7px}
table.dp-table tr.dp-day td{background:#f4f6fa;font-weight:800;color:#334155;border-top:1px solid #dde3ee}
table.dp-table tr.dp-day.sat td{background:#eef3fb}
table.dp-table tr.dp-day.sun td{background:#fdf1f1}
table.dp-table tr.dp-row.is-today td:first-child{box-shadow:inset 3px 0 0 #e87722}
table.dp-table tr.dp-row.cancelled{opacity:.55;text-decoration:line-through}
table.dp-table tfoot td{background:#fafbfd;font-weight:800;border-top:2px solid #e4e9f2}
.dp-mini-combine{margin-left:8px;font-size:11px;font-weight:900;color:#a4550c;background:#fdf1e2;
  border:1px solid #f2d9b8;border-radius:999px;padding:1px 8px}
.dp-cb{font-size:11px;font-weight:900;color:#7a3405;background:#fdf1e2;border-radius:999px;padding:1px 7px}
.dp-cb.soft{color:#475467;background:#eef1f7}
.dp-acts{display:flex;gap:4px}
.dp-acts .btn.xs{padding:3px 6px;font-size:11px}
.dp-links{position:sticky;top:76px}
.dp-links .bd{padding:10px 12px 14px}
.dp-link-note{font-size:11.5px;color:#6b5b48;background:#fffaf2;border:1px solid #f2e3cf;border-radius:9px;
  padding:7px 9px;margin-bottom:9px;line-height:1.45}
.dp-link-list{display:flex;flex-direction:column;gap:7px;max-height:44vh;overflow:auto;margin-bottom:10px}
.dp-link{border:1px solid #eef1f6;border-radius:10px;padding:7px 9px;background:#fbfcfe}
.dp-link:hover{border-color:#f0c47a;background:#fffaf2}
.dp-link-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.dp-link-name{font-size:12.5px;font-weight:900;color:#1e4fa8;text-decoration:none}
a.dp-link-name:hover{text-decoration:underline}
.dp-link-acts{display:flex;gap:3px;opacity:.65}
.dp-link:hover .dp-link-acts{opacity:1}
.dp-link-acts .btn.xs{padding:2px 5px;font-size:10.5px}
.dp-link-form{border-top:1px dashed #e7ebf2;padding-top:9px;display:flex;flex-direction:column;gap:6px}
.dp-link-form .field label{font-size:10.5px;margin-bottom:2px}
.dp-link-form .field input{padding:5px 8px;font-size:12px}

/* 📦 마감 실적에서 불러오기 — 마감 건 고르기 (2026-11-29) */
.dp-import{padding:9px 14px 10px;border-bottom:1px solid #eef1f6;background:#f7fbf8}
.dp-imp-hd{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:7px}
.dp-imp-hd b{font-size:13px;color:#14532d}
.dp-imp-tools{display:flex;gap:7px;align-items:flex-end;flex-wrap:wrap;margin-bottom:7px}
.dp-imp-tools .field label{font-size:10.5px;margin-bottom:2px}
.dp-imp-tools .field input,.dp-imp-tools .field select{padding:5px 8px;font-size:12px}
.dp-imp-tools .field.grow{flex:1;min-width:150px}
.dp-imp-list{border:1px solid #e0ebe3;border-radius:9px;background:#fff;max-height:29vh;overflow:auto}
.dp-imp-empty{padding:15px 12px;text-align:center;line-height:1.65}
.dp-imp-empty .btn{margin-top:6px}
table.dp-imp-tbl{width:100%;font-size:11.8px;border-collapse:collapse}
table.dp-imp-tbl th{position:sticky;top:0;z-index:1;background:#f2f7f3;font-size:10.5px;color:#3f5a49;
  padding:4px 6px;border-bottom:1px solid #e0ebe3;text-align:left}
table.dp-imp-tbl td{padding:4px 6px;border-bottom:1px solid #f1f4f2;vertical-align:middle}
table.dp-imp-tbl tbody tr{cursor:pointer}
table.dp-imp-tbl tbody tr:hover{background:#f6fbf7}
table.dp-imp-tbl tbody tr.is-used{background:#fffdf6}
table.dp-imp-tbl .c{text-align:center}
table.dp-imp-tbl .num{text-align:right}
.dp-used{margin-left:6px;font-size:10px;font-weight:900;color:#8a5a00;background:#fdf1e2;
  border-radius:999px;padding:1px 6px}
.dp-imp-foot{display:flex;align-items:center;gap:10px;margin-top:7px}
.dp-imp-foot .btn{margin-left:auto}
.dp-product-hint{font-size:9.5px;margin-top:1px}

/* 화물 라인 — 불러온 품목·수량·BOX·단가·LOT */
.dp-lines{margin-top:9px;border:1px solid #e6ecf5;border-radius:9px;background:#fcfdff;padding:7px 9px 9px}
.dp-lines-hd{display:flex;align-items:baseline;gap:8px;margin-bottom:5px;flex-wrap:wrap}
.dp-lines-hd b{font-size:12.5px;color:#1d2939}
table.dp-lines-tbl{width:100%;font-size:12px;border-collapse:collapse;table-layout:fixed}
table.dp-lines-tbl th{font-size:10.5px;color:#475467;background:#f4f7fc;padding:3px 5px;
  border-bottom:1px solid #e4e9f2;text-align:left;font-weight:800}
table.dp-lines-tbl th:nth-child(2){width:92px}
table.dp-lines-tbl th:nth-child(3){width:78px}
table.dp-lines-tbl th:nth-child(4){width:96px}
table.dp-lines-tbl th:nth-child(5){width:104px}
table.dp-lines-tbl th:nth-child(6){width:88px}
table.dp-lines-tbl th:nth-child(7){width:116px}
table.dp-lines-tbl th:nth-child(8){width:30px}
table.dp-lines-tbl td{padding:3px 5px;border-bottom:1px solid #eef1f6;vertical-align:middle}
table.dp-lines-tbl td.num{text-align:right}
table.dp-lines-tbl input{padding:3px 5px;font-size:12px;width:100%;min-width:0}
table.dp-lines-tbl input[type=number]{text-align:right;padding-right:8px;-moz-appearance:textfield}
table.dp-lines-tbl input[type=number]::-webkit-inner-spin-button,
table.dp-lines-tbl input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
table.dp-lines-tbl tfoot td{background:#f7f9fd;font-weight:900;border-top:1px solid #e4e9f2}
table.dp-lines-tbl .ln-del{padding:1px 5px;font-size:11px}

@media (max-width:1500px){
  .prod-report .hub-title-row{margin:4px 0 3px}
}
/* 1440~1500px 노트북 — 경영 상단 메뉴 7칸(보정모드+6)을 한 줄에 유지 */
@media (min-width:1201px) and (max-width:1500px){
  .mg-tools.tool-line-row{grid-template-columns:minmax(180px,.75fr) repeat(6,minmax(0,1fr));gap:6px}
  .mg-tools.tool-line-row .mg-tool{padding:6px 7px;gap:6px}
  .mg-tools.tool-line-row .mg-ic{width:22px;height:22px;font-size:12px}
  .mg-tools.tool-line-row .mg-tx b{font-size:10.8px}
  .mg-tools.tool-line-row .mg-tx small{display:none}
  .mg-tools.tool-line-row .mg-mode{padding:6px 9px;gap:9px}
  .mg-tools.tool-line-row .mg-mode-tx b{font-size:12px}
  .mg-tools.tool-line-row .mg-mode-tx .tiny{font-size:9.5px}
  .mg-tools.tool-line-row .mg-mode .btn{font-size:10.5px;padding:5px 8px}
}
@media (min-width:1201px) and (max-width:1500px){
  .prod-report .hub-title-row{margin:3px 0 2px}
  .prod-report .mg-bar{padding:2px 0 0}
}
