/* Jennifer Soft 스타일 참고 — 다크 LNB · 콘텐츠 최대화 · 직관적 대시보드
   폐쇄망: 외부 폰트/@apply 미사용 */

:root {
  --jui-sidebar: #1b2431;
  --jui-sidebar-2: #151c27;
  --jui-sidebar-hover: #243044;
  --jui-accent: #2f7cf6;
  --jui-accent-2: #1f6ae0;
  --jui-accent-soft: rgba(47, 124, 246, 0.16);
  --jui-ok: #22c55e;
  --jui-warn: #f59e0b;
  --jui-danger: #ef4444;
  --jui-bg: #eef1f6;
  --jui-surface: #ffffff;
  --jui-ink: #1a2332;
  --jui-muted: #6b778a;
  --jui-line: #d8dee8;
  --jui-radius: 8px;
  --jui-shadow: 0 1px 2px rgba(27, 36, 49, 0.04), 0 6px 18px rgba(27, 36, 49, 0.06);
  --jui-focus: 0 0 0 3px rgba(47, 124, 246, 0.22);
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* 하위 호환 별칭 */
  --gh-brand: var(--jui-accent);
  --gh-brand-600: var(--jui-accent-2);
  --gh-brand-700: #1854c0;
  --gh-brand-50: #eef4ff;
  --gh-brand-100: #dbe8ff;
  --gh-brand-200: #b7d0ff;
  --gh-ink: var(--jui-ink);
  --gh-muted: var(--jui-muted);
  --gh-line: var(--jui-line);
  --gh-bg: var(--jui-bg);
  --gh-surface: var(--jui-surface);
  --gh-radius: var(--jui-radius);
  --gh-radius-sm: 6px;
  --gh-shadow: var(--jui-shadow);
  --gh-focus: var(--jui-focus);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-size: 17px; /* 기본 글자 확대 (16px → 17px, rem 일괄 반영) */
}
body.jui-body, body {
  margin: 0;
  font-family: var(--font);
  color: var(--jui-ink);
  background: var(--jui-bg);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--jui-accent); }
a:hover { color: var(--jui-accent-2); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  padding: 0.55rem 0.85rem; background: #151c27; color: #fff;
  border-radius: 6px; font-size: 0.85rem; font-weight: 700;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.skip-link:focus, .skip-link:focus-visible {
  left: 8px; top: 8px; outline: 3px solid #2f7cf6; outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--jui-accent);
  outline-offset: 2px;
}
.jui-navlink:focus-visible {
  outline: 2px solid rgba(47,124,246,0.85);
  outline-offset: 1px;
}
.jui-footer__privacy {
  margin: 0.35rem 0 0; font-size: 0.72rem; color: #94a3b8; line-height: 1.4;
}
.print-cover__privacy {
  margin: 0.4rem 0 0; font-size: 0.72rem; color: #64748b; line-height: 1.45;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
table caption.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* —— App shell (Jennifer-like) —— */
.jui-app {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}
.jui-sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--jui-sidebar) 0%, var(--jui-sidebar-2) 100%);
  color: #d7deea;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.jui-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0.9rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.jui-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.jui-brand:hover { color: #fff; text-decoration: none; }
.jui-brand img {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
.jui-brand strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.jui-brand small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #8b97ab;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jui-sidebar__close {
  border: 0; background: transparent; color: #9aa6b8;
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem;
}
.jui-sidebar__account {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.jui-sidebar__account .jui-user {
  margin: 0;
  padding: 0.15rem 0;
}
.jui-sidebar__account .jui-user__greet {
  display: block;
  color: #c4cddc;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: keep-all;
}
.jui-sidebar__account .jui-user__greet strong {
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}
.jui-sidebar__account .jui-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
}
.jui-sidebar__search { padding: 0.75rem 0.85rem 0.35rem; }
.jui-sidebar__search input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.22);
  color: #e8eef8;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
}
.jui-sidebar__search input::placeholder { color: #7f8ba0; }
.jui-sidebar__search input:focus {
  outline: none;
  border-color: rgba(47,124,246,0.55);
  box-shadow: 0 0 0 2px rgba(47,124,246,0.2);
}
.jui-sidebar__nav {
  flex: 1;
  overflow: auto;
  padding: 0.45rem 0.55rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: #4b5568 #0a0e14;
}
.jui-sidebar__nav::-webkit-scrollbar {
  width: 8px;
}
.jui-sidebar__nav::-webkit-scrollbar-track {
  background: #0a0e14;
  border-radius: 0;
}
.jui-sidebar__nav::-webkit-scrollbar-thumb {
  background: #4b5568;
  border-radius: 999px;
  border: 2px solid #0a0e14;
}
.jui-sidebar__nav::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
.jui-navgroup {
  margin-top: 0.35rem;
  border-radius: 0.65rem;
  overflow: hidden;
}
.jui-navgroup__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.75rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e8eef8;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.jui-navgroup__toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.jui-navgroup.is-open > .jui-navgroup__toggle {
  background: rgba(47, 124, 246, 0.18);
  color: #fff;
}
.jui-navgroup__title-text {
  min-width: 0;
}
.jui-navgroup__chev {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #9aa6b8;
  border-bottom: 2px solid #9aa6b8;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
  margin-right: 0.15rem;
}
.jui-navgroup.is-open .jui-navgroup__chev {
  transform: rotate(45deg);
  border-color: #c7d2fe;
}
.jui-navgroup__items {
  padding: 0.25rem 0 0.35rem 0.15rem;
}
.jui-navgroup__items[hidden] {
  display: none !important;
}
.jui-navgroup__items .jui-navlink {
  padding-left: 1.05rem;
  font-size: 0.84rem;
}
.jui-navlink {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.1rem 0;
  padding: 0.52rem 0.7rem;
  border-radius: 6px;
  color: #c4cddc;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background .12s, color .12s;
}
.jui-navlink--top {
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.jui-navlink:hover {
  background: var(--jui-sidebar-hover);
  color: #fff;
  text-decoration: none;
}
.jui-navlink.is-active {
  background: var(--jui-accent-soft);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 3px 0 0 0 var(--jui-accent);
}
.jui-navlink__ico {
  width: 1.1rem;
  text-align: center;
  opacity: 0.75;
  font-size: 0.85rem;
}
.jui-navlink__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #5d6b82; flex-shrink: 0;
}
.jui-navlink.is-active .jui-navlink__dot { background: var(--jui-accent); }
.jui-sidebar__foot {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem;
  background: rgba(0,0,0,0.15);
}
.jui-user {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem;
  text-decoration: none; border-radius: 8px; padding: 0.35rem 0.4rem;
  margin-left: -0.4rem; margin-right: -0.4rem;
}
a.jui-user:hover { background: rgba(255,255,255,0.06); }
.info-list {
  display: grid; gap: 0.65rem; margin: 0; padding: 0;
}
.info-list > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem 0.85rem;
  align-items: baseline; padding-bottom: 0.55rem;
  border-bottom: 1px solid #eef1f6;
}
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt {
  margin: 0; font-size: 0.8rem; font-weight: 700; color: #5b6b7c;
}
.info-list dd { margin: 0; font-size: 0.9rem; color: var(--jui-ink); font-weight: 600; }
.pw-field {
  display: flex; align-items: center; gap: 0.45rem;
}
.pw-field input { flex: 1; }
.jui-user__avatar {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--jui-accent); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.jui-user__meta strong {
  display: block; color: #fff; font-size: 0.82rem; font-weight: 700; line-height: 1.2;
}
.jui-user__meta small {
  display: block; color: #8b97ab; font-size: 0.7rem; margin-top: 0.1rem;
}
.jui-logout {
  display: block;
  text-align: center;
  padding: 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #c4cddc;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 650;
}
.jui-logout:hover { background: var(--jui-sidebar-hover); color: #fff; text-decoration: none; }

.jui-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}
.jui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.35rem;
  min-height: 4.25rem;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--jui-line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.jui-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 1;
}
.jui-topbar__heading {
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--jui-accent);
}
.jui-topbar__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 780;
  letter-spacing: -0.025em;
  color: var(--jui-ink);
  line-height: 1.3;
  word-break: keep-all;
}
.jui-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  min-width: 0;
}
.work-target {
  flex-shrink: 0;
  min-width: 10.5rem;
  max-width: min(20rem, 40vw);
  padding: 0.4rem 0.7rem 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid #93c5fd;
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 42%, #fff 100%);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255,255,255,0.85);
  text-align: left;
}
.jui-topbar__right .work-target {
  margin-left: 0.15rem;
}
.work-target__head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.1rem;
}
.work-target__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.45rem;
  outline: none;
  transition: background 0.12s ease;
}
.work-target__link--static {
  cursor: default;
}
.work-target--switchable .work-target__link:hover,
.work-target--switchable .work-target__link:focus-visible {
  background: rgba(255, 255, 255, 0.55);
}
.work-target--switchable:hover,
.work-target--switchable:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(37, 99, 235, 0.1);
}
.work-target__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1d4ed8;
  line-height: 1.2;
}
.work-target__name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-target__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  font-size: 0.72rem;
  color: #475569;
}
.work-target__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.3;
}
.work-target__badge--school {
  background: #dcfce7;
  color: #166534;
}
.work-target__badge--office {
  background: #e0f2fe;
  color: #075985;
}
.work-target__badge--admin {
  background: #ede9fe;
  color: #5b21b6;
}
.work-target--admin {
  border-color: #c4b5fd;
  background: linear-gradient(145deg, #ede9fe 0%, #f5f3ff 42%, #fff 100%);
}
.work-target__region {
  font-weight: 650;
}
.work-target__change {
  margin-left: auto;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}
.jui-iconbtn {
  border: 1px solid var(--jui-line);
  background: #fff;
  border-radius: 6px;
  width: 2.2rem; height: 2.2rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: #334155;
}
.jui-content {
  flex: 1;
  padding: 1rem 1.25rem 1.5rem;
}
.jui-footer {
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--jui-line);
  background: #fff;
  color: var(--jui-muted);
  font-size: 0.75rem;
  text-align: center;
}
.jui-footer p { margin: 0; }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 20, 30, 0.45);
}

/* —— Buttons / cards / forms (shared) —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  min-height: 2.25rem; border-radius: 6px; padding: 0.4rem 0.9rem;
  font: inherit; font-size: 0.84rem; font-weight: 700;
  background: var(--jui-accent); color: #fff; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--jui-accent-2); color: #fff; text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--jui-focus); }
.btn--ghost {
  background: #fff; color: var(--jui-accent-2); border-color: #c7d8f8;
}
.btn--ghost:hover { background: #eef4ff; color: #0f172a; }
.btn--secondary {
  background: #fff; color: #334155; border-color: var(--jui-line);
}
.btn--secondary:hover { background: #f7f9fc; color: #0f172a; }
.btn--danger {
  background: #fff; color: var(--jui-danger); border-color: #fecaca;
}
.btn--danger:hover { background: #fef2f2; color: #0f172a; }
.btn--tab {
  background: transparent; color: var(--jui-muted); border-color: transparent; font-weight: 600;
}
.btn--tab:hover { background: #fff; color: #0f172a; }
.btn--tab.is-active {
  background: #fff; color: var(--jui-ink); border-color: var(--jui-line); font-weight: 750;
}

.card {
  margin-bottom: 0.9rem;
  border-radius: var(--jui-radius);
  border: 1px solid var(--jui-line);
  background: var(--jui-surface);
  padding: 1rem 1.1rem;
  box-shadow: var(--jui-shadow);
}
.card__title {
  margin: 0; font-size: 0.95rem; font-weight: 750; color: var(--jui-ink);
}
.panel-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.65rem; margin-bottom: 0.85rem; padding-bottom: 0.7rem;
  border-bottom: 1px solid #eef1f6;
}
.panel-head__meta { margin: 0; font-size: 0.78rem; color: var(--jui-muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-bottom: 0.85rem; }
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 0.15rem;
  border-radius: 8px; border: 1px solid var(--jui-line); background: #f3f5f9; padding: 0.2rem;
}
.media-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.media-card {
  position: relative;
  margin: 0; border: 1px solid var(--jui-line); border-radius: 8px; overflow: hidden; background: #fff;
  cursor: grab;
  transition: box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.media-card:active { cursor: grabbing; }
.media-card.is-dragging {
  opacity: 0.45;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.media-card.is-drag-over {
  outline: 2px solid #0b5cab;
  outline-offset: -2px;
}
.media-card__ord {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35rem;
  text-align: center;
  pointer-events: none;
}
.media-card__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #eef2f7;
  cursor: zoom-in;
}
.media-card img {
  display: block; width: 100%; height: 140px; object-fit: cover; background: #eef2f7;
  pointer-events: none;
}
.media-card__empty {
  display: flex; align-items: center; justify-content: center; height: 140px;
  color: var(--jui-muted); font-size: 0.8rem; background: #f3f5f9;
}
.media-card figcaption {
  display: grid; gap: 0.25rem; padding: 0.65rem 0.7rem 0.75rem; font-size: 0.78rem;
}
.media-card figcaption strong { color: var(--jui-ink); }
.media-card figcaption span { color: var(--jui-muted); word-break: break-word; }
.media-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
}
.media-card__actions form { margin: 0; }

/* 전경사진 확대 보기 */
.photo-lightbox[hidden] { display: none !important; }
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}
.photo-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #0f172a;
  border-radius: 12px;
  padding: 0.75rem 0.75rem 0.9rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.photo-lightbox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: move;
  user-select: none;
  touch-action: none;
}
.photo-lightbox__caption {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1 1 auto;
  min-width: 0;
  cursor: move;
}
.photo-lightbox__close {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.photo-lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }
.photo-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 4.5rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: #020617;
}
.attach-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-start;
}
.attach-preview {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  max-width: 100%;
}
.attach-preview__thumb {
  display: block;
  padding: 0;
  border: 1px solid var(--jui-line);
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f7;
  cursor: zoom-in;
  line-height: 0;
}
.attach-preview__thumb:hover {
  border-color: #0b5cab;
  box-shadow: 0 0 0 2px rgba(11, 92, 171, 0.18);
}
.attach-preview__thumb img {
  display: block;
  object-fit: cover;
  background: #eef2f7;
}
.attach-preview--sm .attach-preview__thumb img {
  width: 56px;
  height: 56px;
}
.attach-preview--md .attach-preview__thumb img {
  width: 96px;
  height: 72px;
}
.attach-preview--lg .attach-preview__thumb img {
  width: 140px;
  height: 100px;
}
.attach-preview__dl {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-paste {
  width: 100%;
  min-height: 14rem;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1.5px dashed #94a3b8;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem 0.85rem;
  resize: vertical;
  box-sizing: border-box;
}
.timeline-paste:focus {
  outline: none;
  border-color: #0b5cab;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}
.timeline-paste-preview {
  max-height: 280px;
  margin-bottom: 0.5rem;
}
.timeline-paste-preview[hidden] { display: none !important; }

/* ---------- 붙여넣기 일괄등록: 공통 ---------- */
/*
  1) 박스구분형: 가로 스크롤로 해결하지 말고 팝업 폭을 칸 수에 맞게 확보
  2) 미리보기: 목록용 min-width/width:100%가 특정 칸만 늘리지 않게 차단
*/
.gh-modal--paste .gh-modal__dialog--wide,
.gh-modal--staff-paste .gh-modal__dialog--wide {
  width: min(96vw, 920px);
}
.gh-modal--grad-paste .gh-modal__dialog--wide {
  width: min(96vw, 820px);
}
#modal-land-paste .gh-modal__dialog--wide,
#modal-building-paste .gh-modal__dialog--wide {
  width: min(96vw, 980px);
}
#modal-research-paste .gh-modal__dialog--wide,
#modal-sponsor-paste .gh-modal__dialog--wide,
#modal-support-paste .gh-modal__dialog--wide,
[id^="modal-award-"][id$="-paste"] .gh-modal__dialog--wide {
  width: min(96vw, 900px);
}
/* 후원단체 붙여넣기: 후원명칭 ↓ · 주요 업적 ↑ (합은 동일) */
#modal-sponsor-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_spo_name"]) {
  flex: 0.85 1 0;
  min-width: 0;
}
#modal-sponsor-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_spo_ach"]) {
  flex: 2.05 1 0;
  min-width: 0;
}
#modal-sponsor-paste .timeline-paste-preview th:nth-child(2),
#modal-sponsor-paste .timeline-paste-preview td:nth-child(2) {
  width: 14%;
  max-width: 9rem;
}
#modal-sponsor-paste .timeline-paste-preview th:nth-child(4),
#modal-sponsor-paste .timeline-paste-preview td:nth-child(4) {
  width: 34%;
}
/* 지원활동 붙여넣기: 년월일 고정, 품명·규격·성명 px 범위 */
#modal-support-paste .timeline-paste-boxes--staff {
  gap: 10px;
}
#modal-support-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_sup_date"]) {
  flex: 0 0 6.5rem;
  width: 6.5rem;
  min-width: 6.5rem;
  max-width: 6.5rem;
}
#modal-support-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_sup_item"]) {
  flex: 0 0 120px;
  width: 120px;
  min-width: 110px;
  max-width: 130px;
}
#modal-support-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_sup_spec"]) {
  flex: 0 0 108px;
  width: 108px;
  min-width: 100px;
  max-width: 115px;
}
#modal-support-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_sup_qty"]) {
  flex: 0.7 1 0;
  min-width: 0;
}
#modal-support-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_sup_person"]) {
  flex: 0 0 190px;
  width: 190px;
  min-width: 170px;
  max-width: 210px;
}
/* 미리보기: 동일 폭 가이드 */
#modal-support-paste .timeline-paste-preview table {
  table-layout: fixed !important;
  width: 100% !important;
}
#modal-support-paste .timeline-paste-preview th,
#modal-support-paste .timeline-paste-preview td {
  width: auto !important;
  max-width: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#modal-support-paste .timeline-paste-preview th:nth-child(1),
#modal-support-paste .timeline-paste-preview td:nth-child(1) {
  width: 6.5rem !important;
}
#modal-support-paste .timeline-paste-preview th:nth-child(2),
#modal-support-paste .timeline-paste-preview td:nth-child(2) {
  width: 120px !important;
  min-width: 110px;
  max-width: 130px;
}
#modal-support-paste .timeline-paste-preview th:nth-child(3),
#modal-support-paste .timeline-paste-preview td:nth-child(3) {
  width: 108px !important;
  min-width: 100px;
  max-width: 115px;
}
#modal-support-paste .timeline-paste-preview th:nth-child(7),
#modal-support-paste .timeline-paste-preview td:nth-child(7) {
  width: 190px !important;
  min-width: 170px;
  max-width: 210px;
}
.gh-modal--leader-paste .gh-modal__dialog--wide {
  width: min(96vw, 900px);
}

/* 표형식 textarea — 세로만 축소 */
.gh-modal--paste form > div:not([hidden]) > .timeline-paste,
.gh-modal--staff-paste form > div:not([hidden]) > .timeline-paste,
.gh-modal--leader-paste form > div:not([hidden]) > .timeline-paste {
  min-height: 8rem;
}

/* 미리보기 표 — 폭 100%, 칸은 내용 비율로 분배(좌측 몰림·특정 칸 여백 금지) */
.gh-modal--paste .timeline-paste-preview,
.gh-modal--staff-paste .timeline-paste-preview,
.gh-modal--leader-paste .timeline-paste-preview,
.gh-modal--grad-paste .timeline-paste-preview {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}
.gh-modal--paste .timeline-paste-preview table,
.gh-modal--staff-paste .timeline-paste-preview table,
.gh-modal--leader-paste .timeline-paste-preview table,
.gh-modal--grad-paste .timeline-paste-preview table {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: auto !important;
  font-size: 0.78rem;
}
.gh-modal--paste .timeline-paste-preview th,
.gh-modal--paste .timeline-paste-preview td,
.gh-modal--staff-paste .timeline-paste-preview th,
.gh-modal--staff-paste .timeline-paste-preview td,
.gh-modal--leader-paste .timeline-paste-preview th,
.gh-modal--leader-paste .timeline-paste-preview td,
.gh-modal--grad-paste .timeline-paste-preview th,
.gh-modal--grad-paste .timeline-paste-preview td {
  min-width: 0 !important;
  max-width: none !important;
  white-space: nowrap;
  padding: 0.28rem 0.45rem;
  text-align: center;
  vertical-align: middle;
}
.gh-modal--paste .timeline-paste-preview th:first-child,
.gh-modal--paste .timeline-paste-preview td:first-child,
.gh-modal--staff-paste .timeline-paste-preview th:first-child,
.gh-modal--staff-paste .timeline-paste-preview td:first-child,
.gh-modal--leader-paste .timeline-paste-preview th:first-child,
.gh-modal--leader-paste .timeline-paste-preview td:first-child,
.gh-modal--grad-paste .timeline-paste-preview th:first-child,
.gh-modal--grad-paste .timeline-paste-preview td:first-child {
  text-align: left;
}
/* 교육목표 붙여넣기 미리보기: 학년도 가운데 · 교육목표 왼쪽·줄바꿈 허용 */
#modal-goal-paste .timeline-paste-preview th:first-child,
#modal-goal-paste .timeline-paste-preview td:first-child {
  text-align: center !important;
  white-space: nowrap;
}
#modal-goal-paste .timeline-paste-preview th:nth-child(2),
#modal-goal-paste .timeline-paste-preview td:nth-child(2),
#modal-goal-paste .timeline-paste-preview td.text-left {
  text-align: left !important;
  white-space: normal;
  vertical-align: top;
}
#goal-table td.text-left {
  text-align: left;
  vertical-align: top;
}
/* 행사기록 붙여넣기 미리보기 */
#modal-event-record-paste .timeline-paste-preview th:nth-child(2),
#modal-event-record-paste .timeline-paste-preview td:nth-child(2),
#modal-event-record-paste .timeline-paste-preview th:nth-child(3),
#modal-event-record-paste .timeline-paste-preview td:nth-child(3),
#modal-event-record-paste .timeline-paste-preview td.text-left {
  text-align: left !important;
  white-space: normal;
  vertical-align: top;
}
#event-table td.text-left {
  text-align: left;
  vertical-align: top;
}
/* 행사기록 붙여넣기 — 년월일 박스 +20px */
@media (min-width: 640px) {
  #modal-event-record-paste .timeline-paste-boxes {
    grid-template-columns: minmax(calc(5.5rem + 20px), calc(6.5rem + 20px)) minmax(0, 1.5fr) minmax(5rem, 6.5rem);
  }
}
/* 목록용 .data--grad-compact nth-child(2) min-width:10rem 이 붙여넣기에서 「남」칸만 벌어지던 문제 */
.gh-modal--paste .timeline-paste-preview .data--grad-compact th:nth-child(2),
.gh-modal--paste .timeline-paste-preview .data--grad-compact td:nth-child(2),
.gh-modal--grad-paste .timeline-paste-preview .data--grad-compact th:nth-child(2),
.gh-modal--grad-paste .timeline-paste-preview .data--grad-compact td:nth-child(2) {
  min-width: 0 !important;
  text-align: center;
}
.gh-modal--paste .timeline-paste-preview .data--grad-compact th:first-child,
.gh-modal--paste .timeline-paste-preview .data--grad-compact td:first-child,
.gh-modal--grad-paste .timeline-paste-preview .data--grad-compact th:first-child,
.gh-modal--grad-paste .timeline-paste-preview .data--grad-compact td:first-child {
  text-align: left;
}
.gh-modal--paste .timeline-paste-preview .staff-col-year,
.gh-modal--staff-paste .timeline-paste-preview .staff-col-year {
  min-width: 0 !important;
}

.timeline-paste-boxes {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .timeline-paste-boxes {
    grid-template-columns: minmax(5.5rem, 6.5rem) minmax(0, 1.5fr) minmax(5rem, 6.5rem);
  }
  /* 교육목표: 학년도 | 교육목표 */
  .timeline-paste-boxes--goal {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    grid-template-columns: none;
  }
  .timeline-paste-boxes--goal > .timeline-paste-col:first-child {
    flex: 0 0 7.5rem;
    min-width: 7.5rem;
    max-width: 9rem;
  }
  .timeline-paste-boxes--goal > .timeline-paste-col:last-child {
    flex: 1 1 0;
    min-width: 0;
  }
  /* 대수 | 성명 | 부임 | 이임 | 재임 | 이동사항 — 팝업 폭 안에서 분배, 가로 스크롤 지양 */
  .timeline-paste-boxes--leader {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    grid-template-columns: none;
  }
  .timeline-paste-boxes--leader > div,
  .timeline-paste-boxes--leader > .timeline-paste-col {
    flex: 0.7 1 0;
    min-width: 0;
    width: auto;
  }
  .timeline-paste-boxes--leader > div:nth-child(2),
  .timeline-paste-boxes--leader > .timeline-paste-col:nth-child(2) {
    flex: 0.9 1 0;
  }
  .timeline-paste-boxes--leader > div:nth-child(5),
  .timeline-paste-boxes--leader > .timeline-paste-col:nth-child(5) {
    flex: 1 1 0;
  }
  .timeline-paste-boxes--leader > div:nth-child(6),
  .timeline-paste-boxes--leader > .timeline-paste-col:nth-child(6),
  .timeline-paste-boxes--leader > div:last-child:nth-child(n+6),
  .timeline-paste-boxes--leader > .timeline-paste-col:last-child:nth-child(n+6) {
    flex: 1.6 1 0;
  }
}
.timeline-paste-boxes label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d4d63;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
/* 박스 textarea — 낮은 기본 높이 */
.timeline-paste-boxes .timeline-paste {
  min-height: 5.5rem;
  height: 5.5rem;
  padding: 0.3rem 0.28rem;
  font-size: 0.74rem;
  resize: vertical;
}

[data-timeline-paste-panel][hidden] { display: none !important; }
[data-staff-paste-panel][hidden],
[data-committee-paste-panel][hidden],
[data-leader-paste-panel][hidden],
[data-grad-paste-panel][hidden],
[data-land-paste-panel][hidden] { display: none !important; }
[data-bld-paste-panel][hidden] { display: none !important; }
[data-res-paste-panel][hidden] { display: none !important; }
[data-awd-paste-panel][hidden],
[data-sawd-paste-panel][hidden] { display: none !important; }
[data-spo-paste-panel][hidden] { display: none !important; }
[data-sup-paste-panel][hidden] { display: none !important; }

/* 졸업생 등록·수정 — 2행 매트릭스 */
.gh-modal--grad-form .gh-modal__dialog--wide {
  width: min(96vw, 900px);
}

/* 박스구분형 — 팝업 폭에 맞춰 분배(가로 스크롤 제거) */
.timeline-paste-boxes--staff {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.32rem;
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
  padding-bottom: 0;
  box-sizing: border-box;
  justify-content: flex-start;
}
.timeline-paste-boxes--staff .timeline-paste-col {
  flex: 0.55 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
}
/* 날짜·짧은 중간 */
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="date"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="person"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="rep"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="type"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="lot"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="category"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="qty"]) {
  flex: 0.85 1 0;
}
/* 긴 텍스트 */
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="year"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="round"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="location"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="address"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="remark"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="content"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="merit"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="ach"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="host"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="name"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="item"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="spec"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="addr"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="field"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="designation"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="structure"]),
.timeline-paste-boxes--staff .timeline-paste-col:has(label[for*="usage"]) {
  flex: 1.45 1 0;
}
/* 졸업생 — 숫자 좁게, 졸업회수 넓게 */
.timeline-paste-boxes--grad .timeline-paste-col {
  flex: 0.45 1 0;
}
.timeline-paste-boxes--grad .timeline-paste-col:has(label[for="paste_grad_round"]) {
  flex: 1.7 1 0;
}
.timeline-paste-boxes--grad .timeline-paste-col:has(label[for="paste_grad_date"]) {
  flex: 0.95 1 0;
}
.timeline-paste-boxes--grad .timeline-paste-col:has(label[for="paste_grad_rate"]),
.timeline-paste-boxes--grad .timeline-paste-col:has(label[for="paste_grad_cum"]),
.timeline-paste-boxes--grad .timeline-paste-col:has(label[for="paste_grad_advance"]) {
  flex: 0.5 1 0;
}
.timeline-paste-boxes--staff .timeline-paste {
  width: 100%;
  min-height: 5.5rem;
  height: 5.5rem;
  font-size: 0.74rem;
  padding: 0.3rem 0.22rem;
  box-sizing: border-box;
  resize: vertical;
}

/* 교직원: 박스는 1행·숫자 4자리. 팝업 폭은 JS가 박스 행 실측으로 맞춤 */
#modal-staff-paste .gh-modal__dialog--wide {
  width: auto;
  max-width: 98vw;
  min-width: 0;
}
#modal-staff-paste .gh-modal__body,
#modal-staff-paste .gh-modal__body > form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#modal-staff-paste [data-staff-paste-panel="boxes"] {
  width: 100%;
  overflow: visible;
}
#modal-staff-paste [data-staff-paste-panel="boxes"] > p.muted {
  margin-bottom: 0.5rem;
}
#modal-staff-paste .timeline-paste-boxes--staff {
  display: flex;
  flex-wrap: nowrap !important;
  width: max-content;
  max-width: none;
  overflow-x: visible;
  gap: 10px;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}
#modal-staff-paste .timeline-paste-boxes--staff .timeline-paste-col {
  flex: 0 0 4.275rem;
  width: 4.275rem;
  min-width: 4.275rem;
  max-width: 4.275rem;
}
#modal-staff-paste .timeline-paste-boxes--staff .timeline-paste-col:has(label[for="paste_staff_year"]) {
  flex: 0 0 6rem;
  width: 6rem;
  min-width: 6rem;
  max-width: 6rem;
}
#modal-staff-paste .timeline-paste-boxes--staff label {
  font-size: 0.68rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
  white-space: normal;
  word-break: keep-all;
  overflow: visible;
  text-overflow: clip;
  min-height: 2.15em;
  padding: 0;
}
#modal-staff-paste .timeline-paste-boxes--staff .timeline-paste {
  min-width: 0;
  width: 100%;
  min-height: 8.25rem;
  height: 8.25rem;
  font-size: 0.72rem;
  padding: 0.28rem 0.12rem;
  text-align: center;
  resize: vertical;
}
#modal-staff-paste [data-staff-paste-panel="table"]:not([hidden]) {
  width: 100%;
}
#modal-staff-paste .timeline-paste-preview {
  width: 100%;
  overflow-x: auto;
}
#modal-staff-paste .timeline-paste-preview table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}
#modal-staff-paste .timeline-paste-preview th,
#modal-staff-paste .timeline-paste-preview td {
  padding: 0.16rem 0.06rem;
  font-size: 0.64rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
#modal-staff-paste .timeline-paste-preview .staff-col-year,
#modal-staff-paste .timeline-paste-preview th.staff-col-year,
#modal-staff-paste .timeline-paste-preview td.staff-col-year,
#modal-staff-paste .timeline-paste-preview th:first-child,
#modal-staff-paste .timeline-paste-preview td:first-child {
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  max-width: 2.9rem !important;
  text-align: center !important;
  white-space: nowrap;
}
#modal-staff-paste .timeline-paste-preview .staff-col-num {
  width: auto;
  white-space: nowrap;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 뷰포트가 좁을 때만 본문 가로 스크롤 */
@media (max-width: 1100px) {
  .gh-modal--paste .gh-modal__body,
  .gh-modal--staff-paste .gh-modal__body,
  .gh-modal--leader-paste .gh-modal__body {
    overflow-x: auto;
  }
}

.excel-panel__body { max-width: 46rem; }
.excel-panel .mb-3 { margin-bottom: 0.75rem; }

.form-grid {
  display: grid; max-width: 46rem; grid-template-columns: 1fr; gap: 0.65rem 0.9rem; align-items: start;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 120px 1fr; } }
.form-grid label {
  padding-top: 0.5rem; font-size: 0.82rem; font-weight: 700; color: #3d4d63;
}
.form-grid input, .form-grid select, .form-grid textarea,
.table-search, .login-shell__form input, .jui-login-card input {
  width: 100%; border-radius: 6px; border: 1px solid #c7d0dc; background: #fff;
  padding: 0.55rem 0.7rem; font: inherit; font-size: 0.86rem; color: var(--jui-ink);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus,
.table-search:focus, .login-shell__form input:focus, .jui-login-card input:focus {
  outline: none; border-color: var(--jui-accent); box-shadow: var(--jui-focus);
}
.form-grid textarea { min-height: 5.2rem; resize: vertical; }

/* 기타항목 — 내용 입력 (최대 800×600 고정) */
.misc-content-form { margin: 0; }
.misc-content-field {
  display: block;
  width: 100%;
  max-width: 800px;
  height: 600px;
  max-height: 600px;
  min-height: 600px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--jui-line);
  border-radius: 0.65rem;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.65;
  resize: none;
  box-sizing: border-box;
  overflow: auto;
}
.misc-content-field:focus {
  outline: none;
  border-color: var(--jui-accent);
  box-shadow: var(--jui-focus);
}
/* PDF 저장용 — A4 문서 레이아웃 (화면 UI 복제 금지) */
.gh-pdf-export-host {
  position: fixed;
  left: 0;
  top: 0;
  width: 794px;
  margin: 0;
  padding: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}
.gh-pdf-doc {
  width: 794px;
  box-sizing: border-box;
  margin: 0;
  padding: 40px 48px 48px;
  background: #fff;
  color: #111827;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  text-align: left;
}
.gh-pdf-doc__org {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
}
.gh-pdf-doc__title {
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 2px solid #1b2431;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.gh-pdf-doc__body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  border: 0;
  background: transparent;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 12.5px;
  line-height: 1.8;
  color: #111827;
  text-align: left;
}
.gh-pdf-doc__table-wrap {
  margin: 0 0 1rem;
  width: 100%;
  overflow: visible;
}
.gh-pdf-doc__table-wrap table {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 11px;
}
.gh-pdf-doc__table-wrap th,
.gh-pdf-doc__table-wrap td {
  border: 1px solid #94a3b8;
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
}

/* (구) 전체 화면 PDF 모드 — 남겨두되 사용 안 함 */
body.is-pdf-export .misc-content-field {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}
body.is-pdf-export .table-wrap,
body.is-pdf-export .jui-content {
  max-height: none !important;
  overflow: visible !important;
}
body.is-pdf-export .print-preview-bar {
  display: none !important;
}
.tabs .btn--tab { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.misc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 1rem;
  padding: 0.15rem 0;
}
.misc-toolbar__desc {
  flex: 1 1 12rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.misc-toolbar .form-actions {
  margin: 0.35rem 0;
}
.misc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
}
.misc-tab {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border-radius: 0.45rem;
  background: #f1f5f9;
}
.misc-tab.is-active {
  background: #e0edff;
}
.misc-tab .btn--tab {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  max-width: 12rem;
}
.misc-tab__del {
  display: inline-flex;
  margin: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}
.misc-tab__del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  padding: 0 0.35rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-top-right-radius: 0.45rem;
  border-bottom-right-radius: 0.45rem;
}
.misc-tab__del-btn:hover {
  color: #b91c1c;
  background: #fee2e2;
}
.misc-content-actions {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}
.misc-action-form {
  display: inline-flex;
  margin: 0;
}

/* 기타항목 웹에디터 */
.gh-editor {
  border: 1px solid var(--jui-line, #c7d0dc);
  border-radius: 0.65rem;
  background: #fff;
  overflow: hidden;
}
.gh-editor__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.gh-editor__btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  border-radius: 0.35rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}
.gh-editor__btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.gh-editor__sep {
  width: 1px;
  height: 1.1rem;
  background: #cbd5e1;
  margin: 0 0.15rem;
}
.gh-editor__body {
  min-height: 360px;
  max-height: 640px;
  overflow: auto;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  outline: none;
}
.gh-editor__body.is-empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}
.gh-editor__body img,
.gh-editor__body video,
.gh-editor__body iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0;
  border-radius: 0.35rem;
}
.gh-editor__body iframe {
  min-height: 280px;
  width: 100%;
  border: 0;
  background: #0f172a;
}
body.is-print-preview .gh-editor__bar,
body.is-print-preview .misc-tab__del {
  display: none !important;
}
.gh-pdf-doc__body--html {
  white-space: normal;
}
.gh-pdf-doc__body--html img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0;
}
.gh-pdf-doc__media-note {
  margin: 0.5rem 0;
  padding: 0.45rem 0.65rem;
  border: 1px dashed #94a3b8;
  border-radius: 0.35rem;
  color: #64748b;
  font-size: 12px;
}

/* 파일 선택 + 드래그앤드롭 */
.file-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px dashed #94a3b8;
  border-radius: 0.75rem;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  isolation: isolate;
  z-index: 0;
}
.file-drop:hover,
.file-drop--active {
  border-color: #0b5cab;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.12);
}
.file-drop--has-file {
  border-style: solid;
  border-color: #64748b;
  background: #fff;
}
.file-drop input[type="file"] {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  cursor: pointer;
  margin: 0;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.4;
}
.file-drop__hint {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  order: -1;
}
.file-drop__name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}
.form-grid .file-drop {
  width: 100%;
}

/* 우편번호 + 주소검색 */
.postcode-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  min-width: 0;
}
.postcode-fields input {
  flex: 1 1 8rem;
  min-width: 0;
}
.postcode-fields .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  min-width: 0;
}
.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.radio-pill input {
  width: auto;
  margin: 0;
}
.radio-row__other {
  flex: 1 1 10rem;
  min-width: 8rem;
}
.swal2-container {
  z-index: 10000 !important;
}
/* 확인/알림(차단형)만 모달 숨김 — 토스트(swal2-toast-shown)는 모달 유지 */
body.swal2-shown:not(.swal2-toast-shown) .gh-modal,
body.swal2-height-auto:not(.swal2-toast-shown) .gh-modal[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.swal2-popup.gh-swal .file-drop {
  display: none !important;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.form-actions .list-sort {
  margin-right: 0.15rem;
  padding-right: 0.35rem;
  border-right: 1px solid #e2e8f0;
}

.table-wrap {
  overflow: auto; max-height: min(62vh, 680px);
  border-radius: 8px; border: 1px solid var(--jui-line);
}
table.data {
  width: 100%; border-collapse: collapse; background: #fff; font-size: 0.84rem;
}
table.data th, table.data td {
  border-bottom: 1px solid #e8edf4; padding: 0.62rem 0.75rem; text-align: center; vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
table.data thead th {
  background: #f5f7fb; font-weight: 750; color: #314056; white-space: nowrap;
}
.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.th-sort::after {
  content: "↕";
  font-size: 0.72em;
  color: #94a3b8;
}
.th-sort[aria-sort="ascending"]::after { content: "↑"; color: #2563eb; }
.th-sort[aria-sort="descending"]::after { content: "↓"; color: #2563eb; }
.table-wrap table.data thead th {
  position: sticky; top: 0; z-index: 1; background: #f5f7fb;
}
table.data tbody tr:hover { background: #f7f9fd; }
/* 행 제목·긴 텍스트는 왼쪽 */
table.data th[scope="row"],
table.data .text-left,
table.data td.text-left {
  text-align: left;
}
/* 기본정보 등 라벨·값 표: date-cell도 왼쪽 */
table.data td.text-left.date-cell {
  text-align: left;
}
/* 학급·학생 일괄표 「구분」열은 가운데 */
table.data.status-batch-grid th[scope="row"],
table.data.class-bulk-table th[scope="row"] {
  text-align: center;
}
.table-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;
  gap: 0.55rem 0.75rem; margin-bottom: 0.65rem;
}
.table-search { max-width: 18rem; flex: 0 1 18rem; }
.level-filter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.level-filter__region {
  min-width: 7.5rem;
  max-width: 10rem;
  height: 2.05rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--jui-line);
  border-radius: 8px;
  background: #fff;
  color: var(--jui-ink);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}
.level-filter__region:focus {
  outline: none;
  border-color: var(--jui-accent);
  box-shadow: 0 0 0 3px var(--jui-accent-soft);
}
.level-filter .btn--level {
  padding: 0.34rem 0.78rem;
  font-size: 0.8rem;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid #d7dee8;
  background: #f1f4f8;
  color: #64748b;
  font-weight: 650;
}
.level-filter .btn--level:hover {
  background: #e8eef6;
  color: #334155;
  border-color: #c5d0de;
}
.level-filter .btn--level.is-active {
  background: var(--jui-accent);
  border-color: var(--jui-accent);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 1px 2px rgba(31, 106, 224, 0.28);
}
.level-filter .btn--level.is-active:hover {
  background: var(--jui-accent-2);
  border-color: var(--jui-accent-2);
  color: #fff;
}
.list-sort {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.list-sort__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #314056;
  margin-right: 0.15rem;
}
.list-sort__hint {
  font-size: 0.72rem;
  margin-left: 0.15rem;
}
.list-sort .btn--tab {
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
}
.date-cell { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.num-cell { text-align: center; font-variant-numeric: tabular-nums; }

/* 시스템 공통: 숫자 입력 가운데 */
input[type="number"] {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
input[type="number"].text-left {
  text-align: left;
}
form.inline { display: inline; }

.flash { margin-bottom: 0.85rem; border-radius: 6px; padding: 0.65rem 0.8rem; font-size: 0.84rem; }
.flash--ok { border: 1px solid #86efac; background: #f0fdf4; color: #166534; }
.flash--error { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.muted { font-size: 0.84rem; color: var(--jui-muted); }
.badge {
  display: inline-flex; align-items: center; border-radius: 4px;
  padding: 0.12rem 0.42rem; font-size: 0.7rem; font-weight: 750;
}
.badge--admin { background: #eef4ff; color: #1854c0; }
.badge--subadmin { background: #f3e8ff; color: #6b21a8; }
.scope-tree {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #f8fafc;
  overflow: hidden;
}
.scope-tree__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.scope-tree__search {
  flex: 1;
  min-width: 0;
  height: 2rem;
  padding: 0 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.scope-tree__count {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1854c0;
  background: #eef4ff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.scope-tree__body {
  max-height: 260px;
  overflow: auto;
  padding: 0.25rem 0;
}
.scope-tree__region {
  border-bottom: 1px solid #eef2f7;
}
.scope-tree__region:last-child { border-bottom: 0; }
.scope-tree__region.is-hidden { display: none; }
.scope-tree__region-head {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.4rem 0.15rem 0.25rem;
}
.scope-tree__toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0.4rem 0.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  border-radius: 0.35rem;
}
.scope-tree__toggle:hover { background: #eef2ff; }
.scope-tree__chev {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  margin-left: 0.15rem;
}
.scope-tree__region.is-open > .scope-tree__region-head .scope-tree__chev {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}
.scope-tree__region-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scope-tree__region-meta {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 650;
  color: #64748b;
  flex-shrink: 0;
}
.scope-tree__region-all {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.35rem;
  cursor: pointer;
}
.scope-tree__schools {
  padding: 0 0.5rem 0.45rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.scope-tree__school {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.28rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.84rem;
  font-weight: 500 !important;
  line-height: 1.35;
  color: #0f172a !important;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.scope-tree__school:hover { background: #fff; }
.scope-tree__school.is-hidden { display: none !important; }
.scope-tree__school > span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
/* form-grid의 input width:100% 등이 체크박스를 망가뜨리지 않도록 */
.form-grid .scope-tree input[type="checkbox"],
.scope-tree input[type="checkbox"] {
  width: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  height: 1rem;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 1rem;
  border: none !important;
  border-radius: 0.2rem !important;
  box-shadow: none !important;
  background: transparent !important;
  accent-color: #1854c0;
  cursor: pointer;
}
.form-grid .scope-tree__school,
.form-grid .scope-tree__region-all {
  padding-top: 0.28rem !important;
}
.form-grid .scope-tree__region-all {
  font-weight: 500;
  color: inherit;
}
.scope-tree__region-all input[type="checkbox"] {
  width: 1rem !important;
  min-width: 1rem !important;
  max-width: 1rem !important;
  height: 1rem;
  margin: 0 !important;
  padding: 0 !important;
}
.scope-tree__empty {
  padding: 0.85rem 0.75rem;
  font-size: 0.84rem;
}
.scope-field.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.badge--ready { background: #ecfdf5; color: #15803d; }
.badge--soon { background: #fff7ed; color: #c2410c; }
.badge--office { background: #eef6fb; color: #0b4f7a; }
.badge--school { background: #edf7f1; color: #166534; }

/* —— Dashboard (home) —— */
.dash-fade {
  animation: dash-in .45s ease-out both;
}
@keyframes dash-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.dash-bar {
  transform-origin: left center;
  animation: bar-grow-x .75s ease-out both;
}
.dash-bar-v {
  transform-origin: bottom center;
  animation: bar-grow-y .75s ease-out both;
}
@keyframes bar-grow-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes bar-grow-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.jui-content:has(.dash) {
  max-width: 1280px;
}

.home-hero {
  position: relative; overflow: hidden; margin-bottom: 0.9rem;
  border-radius: var(--jui-radius);
  border: 1px solid #c9d7ef;
  background: linear-gradient(120deg, #1b2431 0%, #243956 48%, #2f7cf6 160%);
  padding: 1.2rem 1.25rem; color: #fff;
}
.home-hero__kicker {
  margin: 0; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
}
.home-hero__title {
  margin: 0.35rem 0 0; font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 750; letter-spacing: -0.02em; line-height: 1.3;
}
.home-hero__desc {
  margin: 0.45rem 0 0; max-width: 36rem; font-size: 0.86rem;
  line-height: 1.55; color: rgba(255,255,255,0.82);
}
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.home-hero__actions .btn {
  background: #fff; color: #1f6ae0; border: 0;
}
.home-hero__actions .btn:hover { background: #eef4ff; color: #1854c0; }

.stat-row {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.65rem; margin-bottom: 0.9rem;
}
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat-chip {
  border-radius: var(--jui-radius); border: 1px solid var(--jui-line);
  background: #fff; padding: 0.85rem 0.95rem; box-shadow: var(--jui-shadow);
}
.stat-chip__label {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--jui-muted); text-transform: uppercase;
}
.stat-chip__value {
  margin-top: 0.25rem; font-size: 1.4rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--jui-ink); line-height: 1.15;
}
.stat-chip__value.is-accent { color: var(--jui-accent); }

.section-label {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem;
}
.section-label__bar {
  width: 3px; height: 0.95rem; border-radius: 2px; background: var(--jui-accent);
}
.section-label__text {
  margin: 0; font-size: 0.92rem; font-weight: 800; color: var(--jui-ink);
}

.home-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.55rem;
}
@media (min-width: 640px) { .home-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1100px) { .home-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.home-tile {
  position: relative; display: flex; flex-direction: column; gap: 0.4rem;
  min-height: 84px; border-radius: 8px; border: 1px solid var(--jui-line);
  background: #fff; padding: 0.9rem 2.2rem 0.9rem 0.95rem;
  color: var(--jui-ink); text-decoration: none;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.home-tile:hover {
  border-color: #9db8ef; background: #f7faff; box-shadow: var(--jui-shadow);
  text-decoration: none; color: var(--jui-ink);
}
.home-tile strong { font-size: 0.92rem; font-weight: 750; }
.home-tile:hover strong { color: #1854c0; }
.home-tile__meta { display: flex; align-items: center; gap: 0.35rem; margin-top: auto; }
.home-tile::after {
  content: ''; position: absolute; right: 0.9rem; top: 50%;
  width: 0.4rem; height: 0.4rem;
  border-right: 2px solid #b0bac8; border-bottom: 2px solid #b0bac8;
  transform: translateY(-60%) rotate(-45deg);
}
.home-tile:hover::after { border-color: var(--jui-accent); transform: translate(2px,-60%) rotate(-45deg); }

.empty-state {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem;
  border-radius: 8px; border: 1px dashed #c5ced8; background: #f7f9fc; padding: 1.4rem 1rem;
}
.page-enter { animation: jui-fade .24s ease-out both; }
@keyframes jui-fade {
  /* transform 사용 금지: fixed 모달의 containing block이 깨져 하단으로 밀림 */
  from { opacity: 0; }
  to { opacity: 1; }
}

.details-card > summary { list-style: none; cursor: pointer; }
.details-card > summary::-webkit-details-marker { display: none; }
.details-card__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.details-card__hint { font-size: 0.75rem; font-weight: 750; color: var(--jui-accent); }

/* 레이어 팝업 (드래그 가능) — 뷰포트 정중앙 */
.gh-modal[hidden] { display: none !important; }
.gh-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
}
.gh-modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(1px);
}
.gh-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-width: calc(100vw - 2.5rem);
  max-height: calc(100vh - 2.5rem);
  margin: auto; /* overflow 스크롤 시에도 중앙 유지 */
  height: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--jui-line);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  overflow-x: visible;
  overflow-y: auto;
  box-sizing: border-box;
}
.gh-modal__dialog--wide { width: min(100%, 880px); }
.gh-modal__dialog--xl {
  width: min(96vw, 1100px);
  max-height: calc(100vh - 2.5rem);
  min-height: 0;
}
.gh-modal__dialog--xl .gh-modal__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gh-modal__dialog--xl .gh-modal__body > form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gh-modal__dialog--xl .gh-modal__body .form-grid {
  flex: 1 1 auto;
}
.gh-modal__dialog--xl .gh-modal__body .form-grid textarea {
  min-height: 16rem;
  height: min(42vh, 22rem);
}
.gh-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(180deg, #1b2431 0%, #151c27 100%);
  color: #fff;
  cursor: move;
  user-select: none;
  touch-action: none;
  flex: 0 0 auto;
}
.gh-modal__title {
  margin: 0; font-size: 0.95rem; font-weight: 750; letter-spacing: -0.01em;
}
.gh-modal__close {
  width: 2rem; height: 2rem; border: 0; border-radius: 6px;
  background: rgba(255,255,255,0.08); color: #fff;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.gh-modal__close:hover { background: rgba(255,255,255,0.16); }
.gh-modal__body {
  padding: 0.85rem 1rem 1rem;
  overflow: visible;
  flex: 0 1 auto;
}
.gh-modal__body .form-grid { max-width: none; }
.gh-modal__body .form-grid textarea {
  min-height: 4.6rem;
}
.gh-modal__foot {
  display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end;
  margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid #eef1f6;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.bulk-col {
  width: 2.25rem;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap;
}
.bulk-check {
  width: 1rem !important;
  height: 1rem;
  margin: 0;
  cursor: pointer;
  accent-color: #0b5cab;
}

table[data-row-sortable] tbody tr[data-row-id] {
  cursor: grab;
}
table[data-row-sortable] tbody tr[data-row-id].is-dragging {
  cursor: grabbing;
  opacity: 0.55;
  background: #f0f7ff !important;
}
table[data-row-sortable] tbody tr[data-row-id].is-drag-over {
  box-shadow: inset 0 2px 0 #0b5cab;
}

.gh-modal__foot [data-timeline-paste-reset] {
  margin-right: auto;
}
.btn-tip {
  position: relative;
}
/* 오른쪽 버튼 기준으로 박스를 왼쪽으로 펼침 (팝업 우측 잘림 방지) */
.btn-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: auto;
  right: 0;
  bottom: calc(100% + 0.55rem);
  transform: translateY(4px);
  width: max-content;
  max-width: min(16rem, calc(100vw - 3rem));
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  direction: ltr;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  z-index: 40;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}
.btn-tip::before {
  content: '';
  position: absolute;
  left: auto;
  right: 1.1rem;
  bottom: calc(100% + 0.25rem);
  transform: none;
  border: 6px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  z-index: 41;
}
.btn-tip:hover::after,
.btn-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.btn-tip:hover::before,
.btn-tip:focus-visible::before {
  opacity: 1;
  visibility: visible;
}
body.gh-modal-open { overflow: hidden; }
.panel-head .form-actions { margin: 0; }
.table-actions { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; }

.field-password { position: relative; }
.field-password input { padding-right: 3.8rem; }
.field-password__toggle {
  position: absolute; top: 50%; right: 0.35rem; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--jui-muted);
  font: inherit; font-size: 0.72rem; font-weight: 750;
  padding: 0.3rem 0.45rem; border-radius: 5px; cursor: pointer;
}
.field-password__toggle:hover { background: #eef2f7; color: var(--jui-accent); }

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--jui-accent, #2563eb);
  cursor: pointer;
}

/* —— Login —— */
.jui-login-body {
  min-height: 100vh; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(700px 360px at 15% 10%, rgba(47,124,246,0.28), transparent 55%),
    linear-gradient(145deg, #151c27 0%, #1b2431 45%, #243956 100%);
  font-family: var(--font);
}
.login-shell {
  width: min(880px, 100%);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden; border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: jui-fade .35s ease-out both;
}
.login-shell__brand {
  padding: 2rem 1.7rem; color: #fff;
  background: linear-gradient(165deg, #1f2a3d 0%, #1b2431 100%);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.login-shell__title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.login-shell__form, .jui-login-card {
  background: #fff; padding: 2rem 1.7rem;
}
.jui-login-foot {
  margin: 1rem 0 0; color: rgba(255,255,255,0.55); font-size: 0.75rem; text-align: center;
}

.swal2-popup.gh-swal { font-family: var(--font); border-radius: 10px; }
.swal2-confirm.gh-swal-confirm {
  background: var(--jui-accent) !important; border-radius: 6px !important; font-weight: 750 !important;
}

/* legacy helpers used by older markup */
.bg-app-canvas, .bg-login-canvas { display: none; }
.app-header, .app-shell, .app-nav, .page-main, .page-head, .site-footer,
.lnb__link, .lnb__group, .user-chip, .brand-link { /* superseded by jui-* */ }

@media (max-width: 767px) {
  .jui-app { grid-template-columns: 1fr; }
  .jui-sidebar {
    position: fixed; top: 0; left: 0; z-index: 50;
    width: min(86vw, 300px); transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 8px 0 28px rgba(0,0,0,0.28);
  }
  body.nav-open .jui-sidebar { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .jui-content { padding: 0.9rem 0.9rem 1.25rem; }
  .jui-topbar { padding: 0.75rem 0.9rem; }
}
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-shell__brand { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

@media (prefers-reduced-motion: reduce) {
  .page-enter, .login-shell, .jui-sidebar { animation: none !important; transition: none !important; }
}

/* 인쇄 표지·결재란 */
.print-cover {
  display: none;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #1b2431;
}
.print-cover__meta { margin-bottom: 0.75rem; }
.print-cover__kicker {
  margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; color: #5b6b7c; text-transform: uppercase;
}
.print-cover__org {
  margin: 0; font-size: 1.05rem; font-weight: 800; color: #151c27;
}
.print-cover__title {
  margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 800; color: #151c27;
}
.print-cover__date {
  margin: 0.35rem 0 0; font-size: 0.8rem; color: #5b6b7c;
}
.approval-box { display: flex; justify-content: flex-end; }
.approval-table {
  border-collapse: collapse; width: auto; min-width: 14rem;
  font-size: 0.78rem; background: #fff;
}
.approval-table th,
.approval-table td {
  border: 1.5px solid #1b2431;
  text-align: center;
  vertical-align: middle;
}
.approval-table th {
  width: 4.6rem; padding: 0.35rem 0.4rem;
  font-weight: 750; background: #f3f5f9;
}
.approval-table__sign td { height: 3.4rem; padding: 0.25rem; }
.approval-table__day td { height: 1.7rem; padding: 0.15rem; }
.approval-table__hint {
  display: block; font-size: 0.68rem; color: #94a3b8; font-weight: 500;
}

/* 화면 미리보기 모드 */
body.is-print-preview .jui-sidebar,
body.is-print-preview .jui-topbar,
body.is-print-preview .jui-footer,
body.is-print-preview .toolbar,
body.is-print-preview .tabs,
body.is-print-preview .details-card,
body.is-print-preview .excel-panel,
body.is-print-preview .gh-modal,
body.is-print-preview .table-tools,
body.is-print-preview .nav-backdrop,
body.is-print-preview .skip-link,
body.is-print-preview .btn--danger,
body.is-print-preview form.inline,
body.is-print-preview .panel-head .form-actions,
body.is-print-preview .list-sort,
body.is-print-preview .table-actions,
body.is-print-preview .bulk-col,
body.is-print-preview .bulk-check,
body.is-print-preview .status-yearbar,
body.is-print-preview .status-batch-check,
body.is-print-preview .misc-content-actions,
body.is-print-preview .misc-action-form,
body.is-print-preview .page-head .form-actions {
  display: none !important;
}
/* 미리보기: 본문 버튼·체크박스 숨김 (상단 미리보기 바 버튼만 유지) */
body.is-print-preview .jui-content .btn,
body.is-print-preview .jui-content button,
body.is-print-preview .jui-content input[type="checkbox"],
body.is-print-preview .jui-content input[type="radio"] {
  display: none !important;
}
body.is-print-preview .jui-content table.data td:has(.table-actions),
body.is-print-preview .jui-content table.data:has(td .table-actions) thead th:last-child,
body.is-print-preview .jui-content table.data thead th.bulk-col,
body.is-print-preview .jui-content table.data tbody td.bulk-col {
  display: none !important;
}
body.is-print-preview {
  background: #e8ecf1 !important;
}
body.is-print-preview .jui-app { display: block; }
body.is-print-preview .jui-main { min-height: 100vh; }
body.is-print-preview .jui-content {
  max-width: 210mm; margin: 1.25rem auto; padding: 14mm 12mm;
  background: #fff; box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}
body.is-print-preview .print-cover { display: block; }
body.is-print-preview .print-preview-bar { display: flex !important; }
body.is-print-preview .print-preview-bar .btn,
body.is-print-preview .print-preview-bar button {
  display: inline-flex !important;
}

.print-preview-bar {
  display: none; position: sticky; top: 0; z-index: 40;
  align-items: center; justify-content: space-between; gap: 0.75rem;
  margin: -14mm -12mm 1rem; padding: 0.65rem 0.9rem;
  background: #1b2431; color: #fff;
}
.print-preview-bar p { margin: 0; font-size: 0.82rem; }
.print-preview-bar .btn { background: #2f7cf6; color: #fff; border-color: #2f7cf6; }
.print-preview-bar .btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.35);
}
.print-preview-bar .btn--ghost:hover {
  background: rgba(255,255,255,0.12); color: #fff;
}
.print-preview-bar .btn[data-print-pdf][disabled],
.jui-topbar .btn[data-print-pdf][disabled] {
  opacity: 0.55;
  cursor: wait;
}

/* 학교현황 학급·학생 — 다른 목록 카드와 동일 톤, 선택 학년도만 은은한 배경 */
.card--status-current {
  background: #f7f9fc;
  border-color: var(--jui-line);
}
.status-yearbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
  margin: 0 0 1rem; padding: 0.55rem 0.75rem;
  border: 1px solid #e8edf4; border-radius: 8px; background: #fff;
}
.status-yearbar__select {
  min-width: 9rem; padding: 0.4rem 0.65rem; border-radius: 0.5rem;
  border: 1px solid #cbd5e1; background: #fff; font-weight: 700;
}
.status-batch-block {
  margin-top: 0.35rem;
}
.status-batch-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}
.status-batch-block__year {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--jui-ink);
}
.status-batch-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--jui-ink);
}
.status-batch-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--jui-accent);
  cursor: pointer;
}
.status-batch-check__text {
  font-size: 0.88rem;
  font-weight: 750;
}
.status-batch-check--all {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #f3f5f9;
  border: 1px solid #e8edf4;
}
.status-batch-year {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eef1f6;
}
.status-batch-year:first-of-type {
  margin-top: 0.25rem;
  padding-top: 0;
  border-top: 0;
}
.status-grid__total th,
.status-grid__total td {
  font-weight: 800; background: #f5f8fc; border-top: 1px solid #e2e8f0;
}
.status-grade-list {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none;
}
.status-grade-list li {
  padding: 0.2rem 0.55rem; border-radius: 999px; background: #eef4ff;
  color: #1854c0; font-size: 0.75rem; font-weight: 700;
}

.gh-modal--class-bulk .gh-modal__dialog--wide {
  width: min(100%, 860px);
}

/* 교직원 목록 — 가로 전체 사용 · 열 균등 분배 */
.table-wrap--staff {
  max-height: min(70vh, 720px);
  width: 100%;
}
table.data--staff-compact {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  font-size: 0.76rem;
  border-collapse: collapse;
}
table.data--staff-compact th,
table.data--staff-compact td {
  padding: 0.35rem 0.2rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data--staff-compact thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 0.4rem 0.12rem;
  vertical-align: bottom;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.15;
}
table.data--staff-compact .staff-col-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
table.data--staff-compact .staff-col-year,
table.data--staff-compact td.staff-col-year,
table.data--staff-compact th.staff-col-year {
  width: 3.4rem;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}
table.data--staff-compact .staff-col-actions {
  width: 6.8rem;
  padding-left: 0.25rem;
  padding-right: 0.3rem;
  white-space: nowrap;
}
table.data--staff-compact .bulk-col,
table.data--staff-compact th.bulk-col,
table.data--staff-compact td.bulk-col {
  width: 1.5rem !important;
  min-width: 1.5rem !important;
  max-width: 1.6rem !important;
  padding: 0.28rem 0.08rem !important;
  box-sizing: border-box;
}
table.data--staff-compact .bulk-check {
  width: 0.9rem !important;
  height: 0.9rem;
  margin: 0;
}
.timeline-paste-preview table.data--staff-compact th,
.timeline-paste-preview table.data--staff-compact td {
  padding: 0.28rem 0.12rem;
}

/* 교직원 등록·수정 — 라벨 1행 / 입력 1행 */
.gh-modal--staff-form .gh-modal__dialog--wide {
  width: min(98vw, 1180px);
}
.staff-matrix-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 0.25rem;
  border: 1px solid #e8edf4;
  border-radius: 8px;
  background: #fafbfd;
}
.staff-matrix-wrap .staff-matrix {
  border-bottom: 1px solid #e8edf4;
}
.staff-matrix-wrap .staff-matrix:last-child {
  border-bottom: 0;
}
.staff-matrix {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.74rem;
}
.staff-matrix th,
.staff-matrix td {
  padding: 0.4rem 0.28rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #eef1f6;
}
.staff-matrix thead th {
  font-weight: 700;
  color: #3d4d63;
  background: #f3f6fb;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.staff-matrix thead th label {
  display: block;
  margin: 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
/* 연구시범 — 지정연월일·분야·지정구분 축소, 적요에 나머지 폭 */
.staff-matrix--research th:nth-child(1),
.staff-matrix--research td:nth-child(1) { width: 8.25rem; }
.staff-matrix--research th:nth-child(2),
.staff-matrix--research td:nth-child(2) { width: 6.75rem; }
.staff-matrix--research th:nth-child(3),
.staff-matrix--research td:nth-child(3) { width: 6.75rem; }
.staff-matrix--research th:nth-child(4),
.staff-matrix--research td:nth-child(4),
.staff-matrix--research .staff-matrix__remark {
  width: auto;
}
.staff-matrix tbody td {
  background: #fff;
}
.staff-matrix input[type="number"],
.staff-matrix input[type="text"],
.staff-matrix input:not([type]) {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0.4rem 0.2rem;
  text-align: center;
  font: inherit;
  font-variant-numeric: tabular-nums;
  border: 1px solid #d5dde8;
  border-radius: 5px;
  background: #fff;
}
.staff-matrix--research .staff-matrix__remark input[type="text"],
.staff-matrix--research .staff-matrix__remark input:not([type]) {
  text-align: left;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
/* 제적학생 — 년도·학년칸 축소, 비고 확장 */
.gh-modal--dropout-form .gh-modal__dialog--wide {
  width: min(98vw, 1100px);
}
.staff-matrix--dropout th:first-child,
.staff-matrix--dropout td:first-child {
  width: 5.5rem;
}
.staff-matrix--dropout th:not(:first-child):not(:last-child),
.staff-matrix--dropout td:not(:first-child):not(:last-child) {
  width: 3.6rem;
}
.staff-matrix--dropout th:last-child,
.staff-matrix--dropout td:last-child,
.staff-matrix--dropout .staff-matrix__remark {
  width: auto;
  min-width: 8rem;
}
.staff-matrix--dropout .staff-matrix__remark input[type="text"] {
  text-align: left;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}
table.data--dropout th,
table.data--dropout td {
  text-align: center;
  white-space: nowrap;
}
table.data--dropout td.text-left {
  text-align: left;
  white-space: normal;
  min-width: 4rem;
}
.table-wrap--dropout {
  max-height: min(70vh, 720px);
}
.staff-matrix input[type="number"]:focus,
.staff-matrix input[type="text"]:focus,
.staff-matrix input:not([type]):focus {
  outline: none;
  border-color: #2f7cf6;
  box-shadow: 0 0 0 2px rgba(47, 124, 246, 0.18);
}
.staff-matrix input[type="date"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0.35rem 0.2rem;
  font: inherit;
  border: 1px solid #d5dde8;
  border-radius: 5px;
  background: #fff;
}
.table-wrap--grad {
  width: 100%;
}
.data--grad-compact {
  width: 100%;
  table-layout: fixed;
  font-size: 0.875rem;
}
.data--grad-compact th,
.data--grad-compact td {
  padding: 0.4rem 0.35rem;
  text-align: center;
  vertical-align: middle;
}
.data--grad-compact th:nth-child(2),
.data--grad-compact td:nth-child(2) {
  text-align: left;
  white-space: nowrap;
  min-width: 10rem;
}
.form-grid--class-year {
  grid-template-columns: 6rem 1fr;
  max-width: 16rem;
}
.form-grid--class-year input[type="number"] {
  text-align: left;
}
.class-bulk-table input[type="number"] {
  width: 100%;
  min-width: 3.25rem;
  max-width: 5.5rem;
  margin: 0 auto;
  display: block;
  padding: 0.4rem 0.35rem;
  text-align: center;
}
.class-bulk-table th[scope="row"] {
  white-space: nowrap;
  font-weight: 700;
  background: #f8fafc;
  width: 6.5rem;
  text-align: center;
}
.class-bulk-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.class-bulk-help,
.work-target__help,
.gh-help-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}
.class-bulk-help:hover,
.class-bulk-help:focus-visible,
.work-target__help:hover,
.work-target__help:focus-visible,
.gh-help-tip:hover,
.gh-help-tip:focus-visible {
  background: #dbeafe;
  border-color: #3b82f6;
  outline: none;
}
/* body 고정 풍선말 — overflow/모달에 잘리지 않음 */
.gh-help-tip-float {
  position: fixed;
  z-index: 12000;
  max-width: 16rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.15rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.gh-help-tip-float.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gh-help-tip-float[hidden] {
  display: none !important;
}
.class-bulk-table .class-bulk-sum {
  display: inline-block;
  min-width: 2rem;
  font-weight: 800;
  text-align: center;
}
.class-bulk-table.status-batch-grid thead th {
  background: #f8fafc;
  text-align: center;
}
.class-bulk-table.status-batch-grid th[scope="row"] {
  text-align: center !important;
}


/* 학급·학생 연혁지형 일괄 표시 */
.status-batch-grid th[scope="row"] {
  white-space: nowrap;
  font-weight: 700;
  background: #f8fafc;
  width: 5.5rem;
  text-align: center !important;
}
.status-batch-grid th[scope="col"] {
  text-align: center;
  white-space: nowrap;
}
.status-batch-actions {
  justify-content: flex-end;
  gap: 0.5rem;
}
.status-batch-year__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.status-batch-year__title a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 750;
}
.status-batch-year__title a:hover {
  color: var(--jui-accent);
  text-decoration: underline;
}

/* 기구표 제작·미리보기 */
.orgchart-tree { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.orgchart-node { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.orgchart-node__box {
  min-width: 7.5rem; max-width: 12rem; padding: 0.55rem 0.75rem; text-align: center;
  border: 1px solid #93c5fd; border-radius: 0.65rem; background: linear-gradient(180deg, #eff6ff, #fff);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.orgchart-node__box strong { display: block; font-size: 0.86rem; color: #0f172a; }
.orgchart-node__box span { display: block; margin-top: 0.2rem; font-size: 0.72rem; color: #64748b; }
.orgchart-node__kids {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  padding-top: 0.55rem; border-top: 2px solid #bfdbfe;
}
.orgchart-preview__body {
  padding: 0.75rem; border: 1px dashed #cbd5e1; border-radius: 0.75rem; background: #fff;
  min-height: 4rem;
}
.orgchart-thumb {
  display: inline-block; margin-top: 0.35rem; border-radius: 0.5rem; overflow: hidden;
  border: 1px solid #e2e8f0; max-width: 120px;
}
.orgchart-thumb img { display: block; width: 120px; height: 72px; object-fit: cover; }
.orgchart-inline summary { list-style: none; }
.orgchart-inline summary::-webkit-details-marker { display: none; }

.policy-atts { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.policy-atts__img {
  display: inline-block; width: 52px; height: 52px; border-radius: 0.45rem; overflow: hidden;
  border: 1px solid #e2e8f0;
}
.policy-atts__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.policy-table th { width: 28%; background: #f8fafc; }

/* 위원회 위원 행추가 */
.gh-rows {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #f8fafc;
}
.gh-rows__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.gh-rows__head strong { font-size: 0.92rem; color: #0f172a; }
.gh-rows__table input,
.gh-rows__table select {
  width: 100%;
  min-width: 0;
}
.gh-rows .table-wrap { border-radius: 0.65rem; background: #fff; }

@media print {
  .print\:hidden, .jui-sidebar, .jui-topbar, .jui-footer, .toolbar, .tabs,
  .skip-link, .table-tools, .nav-backdrop, .details-card, .excel-panel,
  .print-preview-bar, .btn--danger, form.inline, .home-hero, .kpi-grid,
  .panel-head .form-actions, .list-sort, .table-actions, .bulk-col, .bulk-check,
  .status-yearbar, .status-batch-check, .misc-content-actions, .misc-action-form,
  .page-head .form-actions {
    display: none !important;
  }
  .jui-content .btn,
  .jui-content button,
  .jui-content input[type="checkbox"],
  .jui-content input[type="radio"],
  table.data td:has(.table-actions),
  table.data:has(td .table-actions) thead th:last-child {
    display: none !important;
  }
  body, .jui-body, body.is-print-preview {
    background: #fff !important;
  }
  .jui-app { display: block; }
  .jui-content, body.is-print-preview .jui-content {
    max-width: none; margin: 0; padding: 0 !important;
    box-shadow: none !important; background: #fff !important;
  }
  .print-cover { display: block !important; }
  .card {
    box-shadow: none !important; border: 0 !important;
    padding: 0 !important; margin: 0 0 0.8rem !important;
  }
  .panel-head { border-bottom-color: #bbb; }
  .table-wrap { max-height: none; overflow: visible; border: 0; }
  table.data th, table.data td { font-size: 11pt; }
  a[href]::after { content: none !important; }
  @page { size: A4; margin: 12mm; }
}
