/* EZ BIOTECH · MARENA 인트라넷 공통 스타일
   회사 메인 컬러 2종: 네이비 #29316c (메인) + 민트 #62cbc9 (포인트), 폰트 Pretendard
   - 민트 #62cbc9 는 흰 배경 위 글자색으로 쓰면 잘 안 읽혀서,
     글자에는 같은 계열의 진한 민트(--teal)를 쓰고 원색(--mint)은 배경·점·선·어두운 배경 위에만 씀
   - 사업 구분: 장비(EZ BIOTECH) = 네이비, 의류(MARENA) = 민트 */

:root {
  --navy: #29316c;
  --navy-2: #1c2250;
  --navy-3: #363f86;
  --navy-pale: #e9ebf5;
  --mint: #62cbc9;
  --mint-pale: #e5f6f5;
  --teal: #23918e;
  --teal-light: #62cbc9;
  --ink: #161a2e;
  --text: #3a3e52;
  --muted: #6f7487;
  --line: #e3e6ee;
  --line-soft: #eef0f5;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-alt: #f8f9fc;
  --warn: #c2410c;
  --warn-bg: #fff4ec;
  --ok: #2f7a5b;
  --ok-bg: #eaf5ef;
  --side-w: 248px;
  --top-h: 68px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }

.app { display: flex; min-height: 100vh; }

/* =========================================================
   아이콘 — 단색 SVG 를 mask 로 그려 currentColor 를 따름
   ========================================================= */
.ico {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.ico--home   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ico--box    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.ico--cal    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ico--hosp   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V7l8-4 8 4v14'/%3E%3Cpath d='M12 9v6M9 12h6M2 21h20'/%3E%3C/svg%3E"); }
.ico--doc    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }
.ico--mail   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.ico--web    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.ico--search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
.ico--bell   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2 8 2 8H4s2-2 2-8'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
.ico--in     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 21h16'/%3E%3C/svg%3E"); }
.ico--out    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M7 8l5-5 5 5M4 21h16'/%3E%3C/svg%3E"); }
.ico--plus   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ico--tool   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18l3 3 6.3-6.3a4 4 0 0 0 5.4-5.4l-2.5 2.5-2.4-.6-.6-2.4z'/%3E%3C/svg%3E"); }

/* =========================================================
   왼쪽 메뉴
   ========================================================= */
.side {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 20px;
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-2) 100%);
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.3s ease;
}

.side__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* MZ 로고: Z 가 네이비라 네이비 메뉴 위에서 안 보이므로 흰 타일 위에 얹음 */
.side__mark {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
}
.side__mark img { width: 38px; height: 38px; display: block; }
.side__title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.side__title b { font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.side__title small {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.side__nav { flex: 1; overflow-y: auto; padding-top: 14px; }
.side__label {
  margin: 18px 10px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
}
.side__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.side__link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side__link.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 700; }
.side__link.is-active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--teal-light);
}
.side__link--ext { font-size: 13.5px; color: rgba(255, 255, 255, 0.58); }
.side__link--ext::after {
  content: "↗";
  margin-left: auto;
  font-size: 12px;
  opacity: 0.5;
}
.side__badge {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}
.side__foot {
  padding: 16px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.side-dim { display: none; }

/* =========================================================
   본문 · 상단바
   ========================================================= */
.main {
  flex: 1;
  min-width: 0;
  margin-left: var(--side-w);
  display: flex;
  flex-direction: column;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  background: rgba(243, 245, 249, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__menu { display: none; }
.top__search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
}
.top__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
}
.top__search:focus-within { border-color: var(--teal); }
.top__user { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.top__icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.top__icon i {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 2px var(--surface);
}
.top__me { display: flex; align-items: center; gap: 10px; }
.top__avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.top__name { display: flex; flex-direction: column; line-height: 1.3; font-weight: 700; color: var(--ink); }
.top__name small { font-size: 11.5px; font-weight: 500; color: var(--muted); }

.page { flex: 1; padding: 32px; max-width: 1360px; width: 100%; }

/* =========================================================
   인사 · 빠른 작업
   ========================================================= */
.hello {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 34px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
/* 회사 홈페이지와 같은 은은한 빛 번짐 */
.hello::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 203, 201, 0.22), transparent 65%);
  pointer-events: none;
}
.hello > * { position: relative; }
.hello__date { font-size: 13px; letter-spacing: 0.04em; color: var(--teal-light); margin-bottom: 6px; }
.hello h1 { font-size: 28px; color: #fff; margin-bottom: 8px; }
.hello__sub { color: rgba(255, 255, 255, 0.7); }
.hello__sub b { color: #fff; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.quick__btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); }
.quick__btn--primary { background: #fff; border-color: #fff; color: var(--navy); }
.quick__btn--primary:hover { background: var(--teal-light); border-color: var(--teal-light); }

/* =========================================================
   요약 숫자
   ========================================================= */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.kpi__label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.kpi__num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; }
.kpi__num small { margin-left: 3px; font-size: 14px; font-weight: 600; color: var(--muted); }
.kpi__meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.kpi__meta.up { color: var(--ok); }
.kpi--warn { border-color: #f6d3bd; background: linear-gradient(160deg, #fff 30%, var(--warn-bg)); }
.kpi--warn .kpi__num { color: var(--warn); }

/* =========================================================
   카드 그리드
   ========================================================= */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* 넓은 표가 칸을 밀어내 화면 밖으로 넘치지 않게 (표는 카드 안에서 가로 스크롤) */
.grid > *, .kpis > * { min-width: 0; }
.card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card--wide { grid-column: span 2; }
.card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card__head h2 { font-size: 16px; }
.card__more { font-size: 12.5px; font-weight: 600; color: var(--teal); }
.card__more::after { content: " →"; }
.card__more:hover { color: var(--navy); }
.card__note { margin-top: auto; padding-top: 12px; font-size: 12px; color: var(--muted); }

/* 일정 */
.sched li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.sched li:last-child { border-bottom: 0; }
.sched time { flex: none; width: 46px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.sched div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sched b { color: var(--ink); }
.sched span { font-size: 12.5px; color: var(--muted); }

.tag {
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}
.tag--demo { background: var(--navy-pale); color: var(--navy); }
.tag--as { background: var(--warn-bg); color: var(--warn); }
.tag--edu { background: var(--ok-bg); color: var(--ok); }
.tag--pin { background: var(--navy); color: #fff; margin-right: 8px; }

/* 재고 부족 */
.stock li {
  display: grid;
  grid-template-columns: 1fr 70px 30px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.stock li:last-child { border-bottom: 0; }
.stock__name { display: flex; flex-direction: column; min-width: 0; }
.stock__name b { color: var(--ink); font-size: 13.5px; }
.stock__name span { font-size: 12px; color: var(--muted); }
.stock__bar { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.stock__bar i { display: block; height: 100%; border-radius: 3px; background: var(--warn); }
.stock__qty { text-align: right; font-size: 17px; color: var(--warn); }

/* 데모 장비 */
.demo li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.demo li:last-child { border-bottom: 0; }
.demo__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--navy-pale); }
.demo__dot--late { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-bg); }
.demo div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.demo b { color: var(--ink); }
.demo span { font-size: 12.5px; color: var(--muted); }
.demo em { font-size: 12px; font-style: normal; font-weight: 700; color: var(--teal); }
.demo em.late { color: var(--warn); }

/* 입출고 표 */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; white-space: nowrap; }
.tbl th {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-alt); }
.io { padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.io--in { background: var(--ok-bg); color: var(--ok); }
.io--out { background: var(--navy-pale); color: var(--navy); }

/* 공지 */
.notice li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.notice li:last-child { border-bottom: 0; }
.notice a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.notice a:hover { color: var(--teal); }
.notice time { flex: none; font-size: 12px; color: var(--muted); }

.foot { padding: 20px 32px 28px; font-size: 12px; color: var(--muted); }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* 메뉴는 화면 밖에 숨겼다가 햄버거 버튼으로 열기 */
  .side { transform: translateX(-100%); }
  body.side-open .side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); }
  body.side-open .side-dim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(10, 14, 20, 0.45);
  }
  .main { margin-left: 0; }
  .top { padding: 0 16px; }
  .top__menu {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
  }
  .top__menu span,
  .top__menu span::before,
  .top__menu span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: var(--ink);
  }
  .top__menu span { position: relative; }
  .top__menu span::before,
  .top__menu span::after { content: ""; position: absolute; left: 0; }
  .top__menu span::before { top: -6px; }
  .top__menu span::after { top: 6px; }
  .top__name { display: none; }
  .page { padding: 20px 16px; }
  .hello { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .hello h1 { font-size: 23px; }
  .foot { padding: 16px; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card--wide { grid-column: auto; }
  .top__search { display: none; }
  .quick { width: 100%; }
  .quick__btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .kpi__num { font-size: 26px; }
}

/* =========================================================
   사업 구분 — 장비(EZ BIOTECH) / 의류(MARENA)
   ========================================================= */
.brandtabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.brandtabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.brandtabs button:hover { color: #fff; }
.brandtabs button.is-on { background: #fff; color: var(--navy); }

/* 사업 표시 점: 장비 = 네이비, 의류 = 민트 */
.bdot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.bdot--mr { background: var(--mint); }
.brandtabs .bdot { box-shadow: none; }
.brandtabs .bdot--ez { background: #8c93d6; }

/* 목록 안 사업 라벨 */
.btag {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 1px;
  background: var(--navy-pale);
  color: var(--navy);
}
.btag--mr { background: var(--mint-pale); color: var(--teal); }

/* 필터로 숨긴 항목 */
[data-brand].is-hidden { display: none !important; }

/* 사업별 요약 카드: 왼쪽 색 띠 */
.kpi--ez { border-left: 4px solid var(--navy); }
.kpi--mr { border-left: 4px solid var(--mint); }
.card__empty { padding: 18px 0; font-size: 13px; color: var(--muted); text-align: center; }

/* =========================================================
   추가 아이콘
   ========================================================= */
.ico--user   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.ico--users  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0M16 4a4 4 0 0 1 0 8M22 21a7 7 0 0 0-4-6.3'/%3E%3C/svg%3E"); }
.ico--logout { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }

/* =========================================================
   공통: 버튼 · 폼 · 알림 · 페이지 제목
   ========================================================= */
.muted { color: var(--muted); font-weight: 400; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-3); }
.btn--line { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--navy); }
.btn--danger { background: var(--surface); border-color: #f2c6c0; color: #b42318; }
.btn--danger:hover { background: #fdecea; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.form-actions { display: flex; justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field em { font-style: normal; color: var(--warn); }
.field small { font-size: 12px; color: var(--muted); }
.field input,
.field select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--mint-pale); }
.field input:disabled { background: var(--surface-alt); color: var(--muted); }

.alert { padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.alert--ok { background: var(--ok-bg); color: var(--ok); border-color: #cfe8db; }
.alert--warn { background: var(--warn-bg); color: var(--warn); border-color: #f6d3bd; }
.alert--error { background: #fdecea; color: #b42318; border-color: #f6cbc5; }

.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pagehead__kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px; }
.pagehead__kicker a:hover { text-decoration: underline; }
.pagehead h1 { font-size: 26px; }

.card + .card { margin-top: 16px; }
.grid .card + .card { margin-top: 0; }
.form-card { margin-top: 16px; }
.tbl tr.is-off td { color: var(--muted); }

/* =========================================================
   로그인
   ========================================================= */
.login-body {
  min-height: 100vh;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(98, 203, 201, 0.28), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(54, 63, 134, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.login__card {
  width: 100%;
  max-width: 420px;
  padding: 36px 34px 32px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.login__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login__brand img { width: 52px; height: 52px; }
.login__brand div { display: flex; flex-direction: column; line-height: 1.3; }
.login__brand b { font-size: 15px; font-weight: 800; color: var(--navy); }
.login__brand span { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.login h1 { font-size: 24px; margin-bottom: 6px; }
.login__sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.login .btn--block { margin-top: 6px; height: 48px; }
.login__foot { margin-top: 22px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* =========================================================
   내 정보
   ========================================================= */
.me-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.me-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.me-grid .card + .card { margin-top: 0; }
.me-side { display: flex; flex-direction: column; gap: 16px; }

.profile__top { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.profile__top > div { flex: 1; min-width: 0; }
.profile__top h2 { font-size: 22px; }
.profile__top p { color: var(--muted); }
.profile__avatar {
  flex: none;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  box-shadow: inset 0 -3px 0 var(--mint);
}
.info { margin: 0; }
.info div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.info div:last-child { border-bottom: 0; }
.info dt { font-size: 13px; color: var(--muted); }
.info dd { margin: 0; font-weight: 600; color: var(--ink); }
.info dd small { font-weight: 500; color: var(--muted); }

.leave__left { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.leave__left b { font-size: 34px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; margin-right: 2px; }
.leave__bar { height: 8px; border-radius: 4px; background: var(--mint-pale); overflow: hidden; }
.leave__bar i { display: block; height: 100%; border-radius: 4px; background: var(--mint); }
.leave__nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; text-align: center; }
.leave__nums div + div { border-left: 1px solid var(--line); }
.leave__nums dt { font-size: 12px; color: var(--muted); }
.leave__nums dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.leave__nums dd.strong { color: var(--teal); }
.cert .muted { margin-bottom: 14px; font-size: 13px; }

a.top__me { border-radius: 12px; padding: 2px 4px; }
a.top__me:hover .top__name { color: var(--navy-3); }

@media (max-width: 1024px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-grid, .me-grid--even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pagehead { flex-direction: column; align-items: flex-start; }
  .login__card { padding: 28px 22px 24px; }
}
