:root {
  --app-primary: #2d3e6b;
  --app-primary-dark: #243356;
  --app-primary-soft: #e7e9fb;
  --app-black: #2d3e6b;
  --app-accent: #c45c4e;
  --app-accent-soft: #ffd1c9;
  --app-sun: #c17a3a;
  --app-sun-soft: #fee2c5;
  --app-bg: #fdf8f5;
  --app-surface: #ffffff;
  --app-text: #2a3348;
  --app-muted: #7a8499;
  --app-line: rgba(45, 62, 107, 0.08);
  --app-line-strong: rgba(45, 62, 107, 0.14);
  --app-border-w: 1px;
  --app-radius: 18px;
  --app-touch: 48px;
  --app-shadow: 0 2px 8px rgba(45, 62, 107, 0.05), 0 12px 28px rgba(45, 62, 107, 0.06);
  --font-display: "Nunito", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", "Nunito", sans-serif;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh: 1.55;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: auto;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--app-text);
  background-color: var(--app-bg);
  background-image: none;
  line-height: var(--lh);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--app-primary-dark);
}

.app-navbar {
  background: var(--app-black);
  backdrop-filter: none;
  border-bottom: 0;
  padding-top: max(0.35rem, env(safe-area-inset-top));
  box-shadow: none;
}

.app-navbar .navbar-brand {
  color: #fff;
}

.brand-org {
  color: #fff;
}

.brand-sub {
  color: rgba(255, 255, 255, 0.72);
}

.app-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
}

.app-navbar .nav-link.active,
.app-navbar .nav-link:hover {
  color: #fff;
  background: var(--app-primary);
}

.app-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.user-bar .user-meta {
  color: rgba(255, 255, 255, 0.88) !important;
}

.user-bar .user-meta strong {
  color: #fff;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.app-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--app-text);
  text-decoration: none;
  min-height: var(--app-touch);
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 30% 30%, #fef08a 0 0.35rem, transparent 0.4rem),
    linear-gradient(145deg, #60a5fa 0%, #2563eb 50%, #e11d48 120%);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28);
  flex-shrink: 0;
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 0.65rem;
}

.app-navbar .brand-logo {
  filter: none;
}

.brand-logo-on {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-display), "Nunito", "Noto Sans KR", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* 관리자 로그인: 연차 / ON 세로 스택 */
.brand-mark-stack {
  display: inline-grid;
  place-items: center;
  align-content: center;
  gap: 0.12rem;
  width: 4.75rem;
  height: 4.75rem;
  padding: 0.45rem;
  border-radius: 1.05rem;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-display), "Nunito", "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
  flex-shrink: 0;
}

.brand-mark-stack-ko {
  font-size: 1.05rem;
}

.brand-mark-stack-en {
  font-size: 1.2rem;
  color: #7dd3fc;
}

.login-brand .brand-mark-stack,
.login-brand-mark {
  margin: 0;
}

.login-brand-mark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0 auto 0.85rem;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 푸터: 가로 직사각형 연차 ON */
.brand-mark-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 5.6rem;
  height: 2.15rem;
  padding: 0 0.85rem;
  border-radius: 0.55rem;
  background: #2563eb;
  color: #fff;
  font-family: var(--font-display), "Nunito", "Noto Sans KR", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-org {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.app-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.55rem 1rem !important;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.app-navbar .nav-link.active,
.app-navbar .nav-link:hover {
  color: #fff;
  background: var(--app-primary);
}

.navbar-toggler {
  border: 0;
  padding: 0.5rem;
  min-width: var(--app-touch);
  min-height: var(--app-touch);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 1.35rem;
  height: 1.35rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .user-bar {
    border-top: 0;
    margin-top: 0;
    padding: 0;
  }
}

.user-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

a.user-meta:hover strong {
  color: #fff;
}

.user-meta strong {
  color: #fff;
  font-weight: 700;
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0 0.95rem;
  text-align: center;
  text-decoration: none;
}
  vertical-align: middle;
}

.btn-logout:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
  border-color: var(--app-primary);
}

.app-main {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .app-main {
    padding-top: 1.5rem;
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  }
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  body.has-mobile-nav .app-main {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  body.has-mobile-nav .app-footer {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }

  /* 로그인 후 개인정보 처리방침 등 인증형 페이지: app-main padding:0 이라 하단 네비에 가림 */
  body.has-mobile-nav.is-auth-page .login-page,
  body.has-mobile-nav.is-auth-page .privacy-page {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.25rem;
  min-height: 3.75rem;
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  background: var(--app-black);
  border-top: 0;
  box-shadow: 0 -4px 20px rgba(10, 10, 10, 0.15);
  backdrop-filter: none;
}

.mobile-bottom-link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3rem;
  padding: 0.35rem 0.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.65);
}

.mobile-bottom-link i {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-bottom-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--app-sun);
  color: #0a0a0a;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
}

.mobile-bottom-link.is-active,
.mobile-bottom-link:active {
  color: #fff;
  background: var(--app-primary);
}

.mobile-bottom-link:hover {
  color: #fff;
}

#apply {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 991.98px) {
  #apply {
    scroll-margin-bottom: 5rem;
  }
}

.page-hero {
  margin-bottom: 1.25rem;
  padding: 0.15rem 0 0.35rem;
}

.page-hero-main {
  display: flex;
  align-items: center;
  gap: 0.85rem 1rem;
}

.page-hero-main.is-greeting {
  gap: 0.4rem 0.5rem;
}

.page-hero-img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 1rem;
}

.is-greeting .page-hero-img {
  width: 5.75rem;
  height: 5.75rem;
}

.page-hero-text {
  min-width: 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  color: var(--app-black);
  margin: 0 0 0.35rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-hero p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 575.98px) {
  .page-hero-main.is-greeting {
    gap: 0.3rem 0.4rem;
  }

  .page-hero-img {
    width: 3.6rem;
    height: 3.6rem;
  }

  .is-greeting .page-hero-img {
    width: 4.75rem;
    height: 4.75rem;
  }
}

.leave-summary,
.leave-summary-gate {
  margin: 0 0 1.35rem;
}

.leave-summary-gate.is-access-locked {
  display: grid;
  grid-template-areas: "stack";
}

.leave-summary-gate.is-access-locked .leave-summary-gate-body {
  grid-area: stack;
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
  filter: grayscale(0.15);
}

.leave-summary-gate-overlay {
  display: none;
}

.leave-summary-gate.is-access-locked .leave-summary-gate-overlay {
  display: block;
  grid-area: stack;
  z-index: 1;
  align-self: start;
  width: 100%;
  padding: 0.55rem;
  border-radius: var(--app-radius);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 2px solid #eab308;
  box-shadow: 0 10px 36px rgba(234, 179, 8, 0.2);
}

.leave-summary-gate-overlay .payslip-gate-panel,
.leave-summary-gate-overlay .leave-promotion-gate-panel {
  margin-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.35rem 0.25rem 0.15rem;
}

.leave-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: var(--app-radius);
  background: #fff;
  border: var(--app-border-w) solid var(--app-line-strong);
  box-shadow: var(--app-shadow);
}

@media (min-width: 992px) {
  .leave-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0.5rem;
  }
}

.leave-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.2rem;
  min-height: 6.4rem;
  padding: 0.95rem 1rem 0.9rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(10, 10, 10, 0.12);
}

@media (min-width: 992px) {
  .leave-stat {
    min-height: 7.2rem;
    border-radius: 16px;
    margin: 0.2rem;
    padding: 1.05rem 1.05rem 0.95rem;
  }

  .leave-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18%;
    right: -0.2rem;
    width: 1px;
    height: 64%;
    background: rgba(10, 10, 10, 0.08);
  }
}

.leave-stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--app-muted);
}

.leave-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--app-primary);
  margin-top: 0.15rem;
}

.leave-stat-value.leave-stat-value-sm {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.leave-stat-meta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-muted);
  line-height: 1.35;
}

.leave-stat.tone-blue {
  box-shadow: inset 4px 0 0 var(--app-primary);
}

.leave-stat.tone-yellow {
  box-shadow: inset 4px 0 0 var(--app-sun);
}

.leave-stat.tone-yellow .leave-stat-value {
  color: #b8860b;
}

.leave-stat.tone-red,
.leave-stat-remain {
  background: #fff;
  border-color: rgba(255, 77, 46, 0.2);
  box-shadow: inset 4px 0 0 var(--app-accent);
}

.leave-stat-remain .leave-stat-value {
  color: var(--app-accent);
}

.leave-stat-usage {
  display: block;
  margin-top: 0.2rem;
  font-weight: 700;
  color: var(--app-accent);
}

.leave-stat-bar {
  margin-top: 0.45rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.12);
  overflow: hidden;
}

.leave-stat-bar-used {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15 0%, #e11d48 100%);
  min-width: 0;
}

@media (max-width: 991.98px) {
  .leave-stat-remain {
    grid-column: 1 / -1;
  }
}

/* 하위 호환: 기존 stat-card */
.stat-card {
  background: var(--app-surface);
  border: var(--app-border-w) solid var(--app-line-strong);
  border-radius: var(--app-radius);
  padding: 1.05rem 1.1rem;
  height: 100%;
  box-shadow: var(--app-shadow);
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--app-muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 800;
  color: var(--app-primary-dark);
  margin-top: 0.2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stat-card .small {
  font-size: 0.8rem !important;
  color: var(--app-muted) !important;
  font-weight: 500;
}

.stat-card.accent {
  border-color: rgba(225, 29, 72, 0.28);
  background: linear-gradient(165deg, #fff 0%, #fff1f2 100%);
}

.stat-card.accent .value {
  color: var(--app-accent);
}

.panel {
  background: var(--app-surface);
  border: var(--app-border-w) solid var(--app-line-strong);
  border-radius: var(--app-radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--app-shadow);
  margin-bottom: 1.15rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--app-black);
  letter-spacing: -0.03em;
  padding-bottom: 0.65rem;
  border-bottom: var(--app-border-w) solid var(--app-black);
}

.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--app-text);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  min-height: var(--app-touch);
  border-radius: 12px;
  border: 2px solid rgba(10, 10, 10, 0.12);
  font-size: 16px;
  padding: 0.65rem 0.95rem;
  color: var(--app-text);
  background: #fff;
}

.form-control::placeholder {
  color: #8b9bb0;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(0, 71, 255, 0.15);
}

textarea.form-control {
  min-height: 5.5rem;
}

.btn-hada {
  min-height: var(--app-touch);
  border-radius: 12px;
  border: 0;
  background: var(--app-primary);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  padding: 0.7rem 1.2rem;
  box-shadow: none;
  letter-spacing: -0.02em;
}

.btn-hada:hover,
.btn-hada:focus {
  color: #fff;
  background: var(--app-primary-dark);
}

.btn-outline-danger,
.btn-outline-primary,
.btn-success,
.btn-outline-danger.btn-sm,
.btn-outline-primary.btn-sm {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 600;
}

/* 승인·취소 등 처리 버튼 규격 */
:root {
  --btn-action-h: 40px;
  --btn-action-min-w: 5.75rem;
}

.action-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.4rem;
}

.action-btns-stack {
  flex-direction: column;
  min-width: 25rem;
}

.action-reject-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
}

.action-reject-row .reject-reason {
  flex: 1 1 auto;
  min-width: 16rem;
  min-height: calc(var(--btn-action-h) * 2);
  height: calc(var(--btn-action-h) * 2);
  border-radius: 10px;
  font-size: 0.85rem;
  resize: vertical;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.action-reject-row .btn-action {
  flex: 0 0 auto;
  min-width: 4.5rem;
  align-self: stretch;
  height: auto;
  min-height: calc(var(--btn-action-h) * 2);
}

.btn-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--btn-action-min-w);
  min-height: var(--btn-action-h);
  height: var(--btn-action-h);
  padding: 0 0.95rem;
  border-radius: 10px;
  border-width: 1.5px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.action-btns-stack > .btn-action {
  width: 100%;
}

.btn-action-approve {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--app-primary);
  --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--app-primary-dark);
  --bs-btn-hover-border-color: var(--app-primary-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--app-primary-dark);
  --bs-btn-active-border-color: var(--app-primary-dark);
  color: #fff !important;
  background-color: var(--app-primary) !important;
  border-color: var(--app-primary) !important;
  font-weight: 800;
}

.btn-action-approve:hover,
.btn-action-approve:focus {
  color: #fff !important;
  background-color: var(--app-primary-dark) !important;
  border-color: var(--app-primary-dark) !important;
}

.btn-action-primary {
  --bs-btn-color: var(--app-primary-dark);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-color: var(--app-primary-dark);
  --bs-btn-hover-bg: var(--app-primary-soft);
  --bs-btn-hover-border-color: var(--app-primary-dark);
  color: var(--app-primary-dark);
  background-color: transparent;
  border-color: var(--app-primary);
}

.btn-action-primary:hover,
.btn-action-primary:focus {
  color: var(--app-primary-dark);
  background-color: var(--app-primary-soft);
  border-color: var(--app-primary-dark);
}

.btn-action-reject,
.btn-action-danger,
.btn.cancel-btn,
.btn.force-cancel-btn {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c45c4e;
  --bs-btn-border-color: #c45c4e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #a84a3e;
  --bs-btn-hover-border-color: #a84a3e;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #8f3f35;
  --bs-btn-active-border-color: #8f3f35;
  color: #fff !important;
  background-color: #c45c4e !important;
  border-color: #c45c4e !important;
}

.btn-action-reject:hover,
.btn-action-reject:focus,
.btn-action-danger:hover,
.btn-action-danger:focus,
.btn.cancel-btn:hover,
.btn.cancel-btn:focus,
.btn.force-cancel-btn:hover,
.btn.force-cancel-btn:focus {
  color: #fff !important;
  background-color: #a84a3e !important;
  border-color: #a84a3e !important;
}

.btn-action-secondary {
  --bs-btn-color: #4a5f68;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #8aa0a8;
  --bs-btn-hover-color: #243842;
  --bs-btn-hover-bg: #eef3f5;
  --bs-btn-hover-border-color: #6a7f88;
  color: #4a5f68;
  background-color: #fff;
  border-color: #8aa0a8;
}

.btn-action-secondary:hover,
.btn-action-secondary:focus {
  color: #243842;
  background-color: #eef3f5;
  border-color: #6a7f88;
}

.btn-action-emphasis {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--app-black);
  --bs-btn-border-color: var(--app-black);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1f1f1f;
  --bs-btn-hover-border-color: #1f1f1f;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
  color: #fff !important;
  background-color: var(--app-black) !important;
  border-color: var(--app-black) !important;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(10, 10, 10, 0.18);
  gap: 0.35rem;
}

.btn-action-emphasis:hover,
.btn-action-emphasis:focus {
  color: #fff !important;
  background-color: #1f1f1f !important;
  border-color: #1f1f1f !important;
  box-shadow: 0 3px 8px rgba(10, 10, 10, 0.22);
}

.btn-action-emphasis i {
  font-size: 0.95em;
  line-height: 1;
}

.btn-action-warn {
  --bs-btn-color: #854d0e;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #eab308;
  --bs-btn-hover-color: #713f12;
  --bs-btn-hover-bg: #fef9c3;
  --bs-btn-hover-border-color: #ca8a04;
  color: #854d0e;
  background-color: #fff;
  border-color: #eab308;
}

.btn-action-warn:hover,
.btn-action-warn:focus {
  color: #713f12;
  background-color: #fef9c3;
  border-color: #ca8a04;
}

.payslip-gate-panel {
  border: 2px solid #eab308;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 58%);
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.14);
}

.payslip-receipt-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--app-line);
  border-radius: 14px;
  background: #fff;
}

.payslip-receipt-card.is-pending {
  border-color: #fcd34d;
  background: #fffdf5;
}

.payslip-gate-panel .payslip-receipt-card {
  border: none;
  background: transparent;
  padding: 0;
}

.contract-gate-panel .contract-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contract-gate-panel .contract-card {
  background: #fff;
  border: var(--app-border-w) solid var(--app-line-strong);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

.contract-gate-panel .contract-card.is-pending {
  border-left: 4px solid var(--app-sun);
}

.contract-gate-panel .contract-card.is-acked {
  border-left: 4px solid #16a34a;
}

.contract-gate-panel .contract-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.contract-gate-panel .contract-card-user {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contract-gate-panel .contract-card-user strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.contract-gate-panel .contract-card-user span {
  font-size: 0.78rem;
  color: var(--app-muted);
  font-weight: 600;
}

.contract-gate-panel .contract-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contract-gate-panel .contract-card-actions form {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}

.contract-gate-panel .contract-card-actions .btn-action {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}

.panel-access-gate.is-access-locked .panel-access-gate-body {
  pointer-events: none;
  user-select: none;
  opacity: 0.32;
  filter: grayscale(0.12);
  max-height: 14rem;
  overflow: hidden;
}

.access-lock-banner {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #854d0e;
}

.access-lock-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.payslip-status-board {
  border: 2px solid var(--app-black);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--app-shadow);
}

.payslip-status-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--app-black);
  background: #fff;
}

.payslip-status-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--app-black);
  letter-spacing: -0.02em;
}

.payslip-status-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.payslip-status-legend-item {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  border: 2px solid transparent;
}

.payslip-status-legend-item.is-acked {
  background: #15803d;
  color: #fff;
  border-color: #14532d;
}

.payslip-status-legend-item.is-pending {
  background: #eab308;
  color: #1c1917;
  border-color: #a16207;
}

.payslip-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.9rem;
  background: #f3f4f6;
}

.payslip-status-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  border: 2px solid transparent;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.08);
}

.payslip-status-name {
  display: block;
}

.payslip-status-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0.88;
  letter-spacing: 0;
}

.payslip-status-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.28rem;
  min-height: 1.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.payslip-status-cell.is-pending .payslip-status-pdf {
  border-color: rgba(28, 25, 23, 0.25);
  background: rgba(255, 255, 255, 0.72);
  color: #1c1917;
}

.payslip-status-cell.is-acked .payslip-status-pdf {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.payslip-status-pdf:hover,
.payslip-status-pdf:focus {
  background: #fff;
  color: #111827;
  border-color: #111827;
}

.payslip-status-cell.is-acked {
  background: #15803d;
  color: #fff;
  border-color: #14532d;
}

.payslip-status-cell.is-pending {
  background: #eab308;
  color: #1c1917;
  border-color: #a16207;
}

.payslip-status-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 2px solid var(--app-black);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--app-black);
}

.payslip-status-foot-pending {
  color: #92400e;
}

.payslip-status-foot-pending.is-zero {
  color: #64748b;
}

/* 연차 사용촉진 — 관리자 요약·교직원 카드 */
.leave-promotion-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.leave-promotion-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--app-line-strong);
  border-radius: 12px;
  background: #fff;
}

.leave-promotion-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--app-muted);
}

.leave-promotion-stat-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.02em;
}

.leave-promotion-stat.is-success {
  background: #ecfdf5;
  border-color: #86efac;
}

.leave-promotion-stat.is-success .leave-promotion-stat-value {
  color: #166534;
}

.leave-promotion-stat.is-warning {
  background: var(--app-sun-soft);
  border-color: #fde68a;
}

.leave-promotion-stat.is-warning .leave-promotion-stat-value {
  color: #92400e;
}

.leave-promotion-stat.is-accent {
  background: var(--app-primary-soft);
  border-color: #bfdbfe;
}

.leave-promotion-stat.is-accent .leave-promotion-stat-value {
  color: var(--app-primary-dark);
}

.leave-promotion-status-board {
  margin-top: 0.15rem;
}

.leave-promotion-guide {
  padding: 0.85rem 1rem;
  border: 1.5px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
}

.leave-promotion-admin-notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem 0.95rem;
  border: 1.5px solid var(--app-line-strong);
  border-left: 4px solid var(--app-primary);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(10, 10, 10, 0.05);
}

.leave-promotion-admin-notice-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-black);
  letter-spacing: -0.01em;
}

.leave-promotion-admin-notice-head i {
  font-size: 1rem;
  color: var(--app-primary);
  line-height: 1;
}

.leave-promotion-admin-notice-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--app-text);
  font-size: 0.84rem;
  line-height: 1.65;
}

.leave-promotion-admin-notice-list li {
  word-break: keep-all;
}

.leave-promotion-admin-notice-list li + li {
  margin-top: 0.45rem;
}

.leave-promotion-admin-notice-list a {
  font-weight: 700;
  color: var(--app-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leave-promotion-admin-notice-list a:hover,
.leave-promotion-admin-notice-list a:focus {
  color: var(--app-primary);
}

.leave-promotion-admin-notice-list strong {
  color: var(--app-black);
  font-weight: 800;
}

.leave-promotion-guide ul {
  margin-bottom: 0;
}

.leave-promotion-guide li {
  line-height: 1.55;
}

.leave-promotion-guide-section + .leave-promotion-guide-section {
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

.leave-promotion-guide-system {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #cbd5e1;
}

.leave-promotion-panel {
  border: 2px solid var(--app-line-strong);
}

.leave-promotion-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leave-promotion-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.leave-promotion-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.02em;
}

.leave-promotion-card-sub {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-muted);
}

.leave-promotion-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.leave-promotion-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.leave-promotion-badge.is-notice {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.leave-promotion-badge.is-acked {
  background: #dcfce7;
  color: #166534;
}

.leave-promotion-badge.is-pending {
  background: var(--app-sun-soft);
  color: #92400e;
}

.leave-promotion-leave-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.leave-promotion-leave-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.75rem;
  border: 1.5px solid var(--app-line);
  border-radius: 12px;
  background: #f8fafc;
}

.leave-promotion-leave-item strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--app-text);
}

.leave-promotion-leave-item.is-remain {
  background: #fff0ec;
  border-color: rgba(255, 77, 46, 0.35);
}

.leave-promotion-leave-item.is-remain strong {
  color: #be123c;
}

.leave-promotion-leave-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--app-muted);
}

.leave-promotion-schedule-title {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--app-primary-dark);
}

.leave-promotion-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.leave-promotion-schedule-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--app-line);
}

.leave-promotion-schedule-list li.is-deadline {
  border-color: rgba(255, 77, 46, 0.35);
  background: #fff8f6;
}

.leave-promotion-schedule-key {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-muted);
}

.leave-promotion-schedule-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--app-text);
}

.leave-promotion-dday {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--app-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.leave-promotion-notice-body {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed var(--app-line);
  line-height: 1.5;
}

.leave-promotion-card-foot {
  padding-top: 0.15rem;
  border-top: 1px solid var(--app-line);
}

.leave-promotion-legal {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .leave-promotion-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leave-promotion-leave-grid {
    grid-template-columns: 1fr;
  }
}

.holiday-admin-cal .holiday-pick-day.is-selected {
  box-shadow: 0 0 0 2px var(--app-primary);
  background: rgba(37, 99, 235, 0.12);
}

.admin-inline-msg {
  position: sticky;
  top: 0.75rem;
  z-index: 1020;
  margin-bottom: 1rem;
}


.holiday-add-panel .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}


.holiday-admin-cal .holiday-pick-day.is-weekend-hint {
  opacity: 0.85;
}

.holiday-admin-cal .holiday-pick-day.is-holiday-marked {
  background: rgba(225, 29, 72, 0.16);
  color: #9f1239 !important;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(225, 29, 72, 0.45);
}

.holiday-admin-cal .holiday-dot {
  display: block;
  width: 6px;
  height: 6px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: #e11d48;
  flex-shrink: 0;
}

.holiday-list-wrap {
  max-height: 420px;
  overflow: auto;
  border: var(--app-border-w) solid var(--app-line-strong);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  background: #fff;
}

.holiday-list .list-group-item {
  border-color: rgba(37, 99, 235, 0.1);
}

.holiday-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.holiday-list-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.holiday-list-date {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-text);
  line-height: 1.25;
}

.holiday-list-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--app-muted);
  line-height: 1.3;
  word-break: break-word;
}

.holiday-list-item .holiday-del-btn {
  flex-shrink: 0;
}

.attendance-admin-cal .holiday-pick-day.is-attendance-marked {
  background: rgba(37, 99, 235, 0.12);
  color: #1e40af !important;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.35);
}

.attendance-admin-cal .attendance-dot {
  display: block;
  width: 6px;
  height: 6px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

.attendance-list-main {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.45rem;
}

.attendance-list-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--app-text);
}

.attendance-list-note {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--app-muted);
}

.attendance-type-badge {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 0.28em 0.55em !important;
  border-radius: 999px !important;
  border: 0 !important;
}

.attendance-badge-absent {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.attendance-badge-late {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.attendance-badge-early {
  background: #dbeafe !important;
  color: #1e40af !important;
}

@media (max-width: 575.98px) {
  .holiday-admin-cal .holiday-pick-day {
    min-height: 46px;
  }
}


.staff-row-actions form {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.staff-list {
  --staff-field-h: 40px;
  --staff-field-fs: 0.92rem;
}

.staff-list .form-control-sm {
  min-height: var(--staff-field-h);
  height: var(--staff-field-h);
  font-size: var(--staff-field-fs);
  font-weight: 800;
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
}

.staff-cell-num {
  width: 4.5rem;
  max-width: 4.5rem;
}

.staff-num-input {
  width: 100%;
  min-width: 0;
  max-width: 4.5rem;
  height: var(--staff-field-h);
  min-height: var(--staff-field-h);
  text-align: center;
  font-size: var(--staff-field-fs);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.staff-num-input::-webkit-outer-spin-button,
.staff-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.staff-hire-date {
  height: var(--staff-field-h);
  min-height: var(--staff-field-h);
  font-size: var(--staff-field-fs);
  font-weight: 800;
  border-width: 2px !important;
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

.staff-hire-date:focus {
  border-color: #64748b !important;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2) !important;
}

.staff-hire-date.is-hire-saved {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
  font-weight: 800;
}

.staff-hire-date.is-hire-saved:focus {
  border-color: #15803d !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22) !important;
}

.staff-hire-date.is-hire-missing {
  border-color: #eab308 !important;
  background: #fff !important;
  color: var(--app-text) !important;
}

.staff-hire-date.is-hire-missing:focus {
  border-color: #ca8a04 !important;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.25) !important;
}

.staff-list thead .staff-col-statutory,
.staff-list thead .staff-col-remain {
  font-weight: 800;
}

.staff-list thead .staff-col-statutory {
  color: #1d4ed8;
}

.staff-list thead .staff-col-remain {
  color: #be123c;
}

.staff-cell-statutory,
.staff-cell-remain,
.staff-cell-entitled,
.staff-cell-num {
  text-align: center;
  vertical-align: middle !important;
}

/* 읽기 전용(법정·부여·잔여): 입력칸과 구분되는 텍스트 표기 */
.staff-leave-ro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--staff-field-h);
  padding: 0 0.15rem;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: text;
}

.staff-leave-chip-statutory {
  color: #1d4ed8;
}

.staff-leave-chip-entitled {
  color: #334155;
}

.staff-leave-chip-remain {
  color: #be123c;
}

.staff-cell-entitled {
  font-weight: 800;
  color: var(--app-text);
  min-width: 4.5rem;
}


.manage-actions-cell {
  vertical-align: top !important;
  white-space: nowrap;
}

.request-action-btns {
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: 100%;
  justify-content: stretch;
}

.request-action-btns .btn-action {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 0.85rem;
}

.request-manage-table thead th {
  font-size: 0.8rem;
  white-space: nowrap;
}

.request-manage-table tbody td {
  vertical-align: top;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.request-detail-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  min-height: 2.85rem;
  min-width: 10.5rem;
}

.request-detail-date {
  font-weight: 700;
  color: var(--app-text);
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: nowrap;
}

.request-detail-meta {
  font-weight: 600;
  color: var(--app-muted);
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.35;
}

.request-name-cell {
  white-space: nowrap;
  word-break: keep-all;
}

.request-reason-cell {
  min-width: 11rem;
  max-width: 22rem;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.request-status-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  min-height: 2.85rem;
  min-width: 5.5rem;
}

.request-status-date {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--app-muted);
  line-height: 1.35;
  white-space: nowrap;
}

.request-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.request-type-pending {
  background: #fee2c5;
  color: #c17a3a;
  border: 1px solid transparent;
}

.request-type-prebooked {
  background: #e7e9fb;
  color: #4a5580;
  border: 1px solid transparent;
}

.request-type-cancel_requested {
  background: #e7e9fb;
  color: #2d3e6b;
  border: 1px solid transparent;
}

.request-type-approved {
  background: #cbe8db;
  color: #2f6b55;
  border: 1px solid transparent;
}

.hist-reject-cell {
  min-width: 11rem;
  max-width: 16rem;
}

.hist-reject-edit .hist-reject-reason {
  min-height: 3.2rem;
  font-size: 0.85rem;
}

.hist-reject-edit .hist-reject-save-btn {
  min-width: 5rem;
  min-height: 34px;
  height: 34px;
}

.hist-period-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  min-height: 2.85rem;
  min-width: 10.5rem;
  white-space: nowrap;
}

.hist-period-cell .request-detail-meta {
  font-weight: 600;
  color: var(--app-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hist-period-cell .request-detail-date {
  font-weight: 700;
  color: var(--app-text);
  font-size: 0.88rem;
  line-height: 1.35;
}

.history-toolbar-actions {
  width: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.admin-panel-head-toolbar .history-toolbar-actions {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}

.history-tool-group,
.history-filter-form {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  min-width: 0;
}

.history-tool-label {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

.history-tool-group .form-select,
.history-filter-form .form-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 5.5rem;
  height: var(--btn-action-h);
  min-height: var(--btn-action-h);
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 10px;
  border-width: 1.5px;
}

.history-confirm-group #confirmYear {
  min-width: 5.5rem;
}

.history-confirm-group #confirmMonth {
  min-width: 4.5rem;
}

.history-toolbar-actions .btn-action {
  flex: 0 0 auto;
  white-space: nowrap;
  height: var(--btn-action-h);
  min-height: var(--btn-action-h);
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.history-month-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
}

.history-year-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.history-year-form .form-select {
  min-width: 6.5rem;
}

.history-month-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.history-month-btn {
  min-width: 2.6rem;
  min-height: 2.15rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-month-btn:hover,
.history-month-btn:focus {
  border-color: var(--app-primary);
  color: var(--app-primary-dark);
  background: var(--app-primary-soft);
}

.history-month-btn.is-active {
  border-color: var(--app-primary);
  background: var(--app-primary);
  color: #fff;
}

@media (max-width: 767.98px) {
  .history-month-btn {
    min-width: calc(25% - 0.3rem);
    flex: 1 1 calc(25% - 0.3rem);
  }
}

.org-info-panel {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
}

.org-info-panel-head {
  margin-bottom: 0.75rem;
}

.org-info-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #152238;
}

.org-info-desc {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #64748b;
}

.org-info-form .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.org-info-form.is-locked .org-info-field {
  background: #f1f5f9;
  color: #334155;
  cursor: default;
}

.org-info-form.is-editing .org-info-field {
  background: #fff;
  cursor: text;
}

.org-info-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.past-leave-panel {
  background: #f7faf7;
  border-color: #cfe3d4;
}

.leave-cap-panel {
  background: #f5f8ff;
  border-color: #c9d7f5;
}

.leave-cap-card-list {
  display: none;
}

/* 날짜 텍스트 입력(YYYY-MM-DD): 연도 4자리 고정 */
.admin-page input.date-ymd-input {
  min-width: 11.5rem;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@media (max-width: 767.98px) {
  .admin-page input.date-ymd-input {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
}

/* 날짜 입력: 연도 4자리가 잘리지 않도록 최소 너비 확보 */
.admin-page input[type="date"].date-ymd,
.admin-page input[type="date"].form-control {
  min-width: 11.5rem;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
  .admin-page input[type="date"].date-ymd,
  .admin-page input[type="date"].form-control {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
}

.contract-card-list {
  display: none;
}

.contract-list-mobile-foot {
  display: none;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.past-leave-history-note {
  display: none;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.past-leave-card-list {
  display: none;
}

.past-leave-row-actions {
  justify-content: flex-end;
}

.hist-name-cell {
  white-space: nowrap;
  word-break: keep-all;
}

.manage-section .table {
  --bs-table-bg: transparent;
}

.manage-section .table > :not(caption) > * > * {
  padding: 0.85rem 0.65rem;
}

.manage-section tbody tr {
  border-bottom: var(--app-border-w) solid var(--app-line);
}

.my-request-actions .btn-action {
  flex: 1 1 auto;
}


#calendar {
  min-height: 420px;
  height: auto !important;
  overflow: visible !important;
}

#calendar .fc,
#calendar .fc-view-harness,
#calendar .fc-view-harness-active,
#calendar .fc-view-harness-active > .fc-view,
#calendar .fc-scroller,
#calendar .fc-scroller-liquid,
#calendar .fc-scroller-liquid-absolute,
#calendar .fc-scroller-harness,
#calendar .fc-scroller-harness-liquid {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

#calendar .fc-scroller-liquid-absolute {
  position: relative !important;
  inset: auto !important;
}

.home-page-row {
  align-items: flex-start;
}

.home-page-row > [class*="col-"],
.home-page-row .panel {
  overflow: visible;
}

.month-leave-roster {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--app-line);
}

.month-leave-roster-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.85rem;
}

.month-leave-roster-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-text);
  letter-spacing: -0.02em;
}

.month-leave-section + .month-leave-section {
  margin-top: 1rem;
}

.month-leave-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--app-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.month-leave-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.month-leave-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--app-muted);
}

.month-leave-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.month-leave-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: #fff;
}

.month-leave-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--app-text);
  white-space: nowrap;
}

.month-leave-dept {
  font-size: 0.82rem;
  color: var(--app-muted);
  font-weight: 600;
  white-space: nowrap;
}

.month-leave-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--app-text);
  white-space: nowrap;
}

.month-leave-days {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--app-primary-dark);
  white-space: nowrap;
}

.month-leave-reason {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--app-muted);
  white-space: nowrap;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 768px) {
  .month-leave-item .month-leave-date {
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .month-leave-item {
    flex-wrap: nowrap;
    gap: 0.35rem 0.4rem;
    padding: 0.65rem 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .month-leave-item::-webkit-scrollbar {
    display: none;
  }

  .month-leave-name {
    flex-shrink: 0;
    font-size: 0.9rem;
  }

  .month-leave-dept {
    flex-shrink: 0;
    font-size: 0.78rem;
  }

  .month-leave-date {
    flex-shrink: 0;
    font-size: 0.76rem;
  }

  .month-leave-days {
    flex-shrink: 0;
    font-size: 0.76rem;
  }

  .month-leave-reason {
    flex-shrink: 1;
    min-width: 0;
    max-width: 7.5rem;
    font-size: 0.74rem;
  }

  .month-leave-item .badge {
    flex-shrink: 0;
    margin-left: auto;
  }
}

/* 신청: 시작·종료 동일 달력 선택 */
.apply-range-summary {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.apply-range-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 52px;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  color: var(--app-text);
}

.apply-range-chip .chip-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-muted);
}

.apply-range-chip .chip-value {
  font-size: 0.95rem;
  font-weight: 800;
}

.apply-range-chip.is-active {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #eff6ff;
}

.apply-range-chip.is-filled .chip-value {
  color: var(--app-primary-dark);
}

.apply-range-tilde {
  align-self: center;
  font-weight: 800;
  color: var(--app-muted);
}

.apply-range-hint {
  line-height: 1.4;
}

.apply-range-cal {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fcfd 0%, #ffffff 40%);
  padding: 0.65rem 0.55rem 0.75rem;
  user-select: none;
  -webkit-user-select: none;
}

.arc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.arc-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--app-primary-dark);
}

.arc-nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--app-primary-dark);
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

.arc-nav:active {
  background: rgba(37, 99, 235, 0.22);
}

.arc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-muted);
}

.arc-weekdays .is-sun { color: #e11d48; }
.arc-weekdays .is-sat { color: #2563eb; }

.arc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.arc-day {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--app-text);
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.arc-day.is-empty {
  pointer-events: none;
  visibility: hidden;
}

.arc-day.is-sun { color: #e11d48; font-weight: 800; }
.arc-day.is-sat { color: #2563eb; font-weight: 800; }

.arc-day.is-past,
.arc-day.is-weekend,
.arc-day.is-holiday {
  color: #b0bec6 !important;
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.arc-day.is-holiday:not(.is-past) {
  color: #be123c !important;
  opacity: 0.7;
  background: rgba(225, 29, 72, 0.08);
}

.fc .fc-day-past-disabled,
.fc .fc-daygrid-day.fc-day-past-disabled {
  background: rgba(0, 0, 0, 0.035);
}

.fc .fc-day-past-disabled:hover {
  background: rgba(0, 0, 0, 0.035);
  cursor: not-allowed;
}

/* 토요일: 파랑 */
.fc .fc-day-sat .fc-daygrid-day-number,
.fc .fc-col-header-cell.fc-day-sat .fc-col-header-cell-cushion {
  color: #2563eb !important;
  font-weight: 800 !important;
}

/* 일요일·공휴일·휴무일: 빨강 */
.fc .fc-day-sun .fc-daygrid-day-number,
.fc .fc-day-holiday .fc-daygrid-day-number,
.fc .fc-col-header-cell.fc-day-sun .fc-col-header-cell-cushion {
  color: #e11d48 !important;
  font-weight: 800 !important;
}

.fc .fc-day-holiday {
  background: rgba(225, 29, 72, 0.05);
}

.fc .fc-daygrid-day-top {
  display: flex !important;
  justify-content: center !important;
  padding: 2px 0 0 !important;
}

.fc .fc-daygrid-day-number {
  float: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  text-align: center !important;
  width: 100%;
}

.fc .fc-daygrid-day-frame {
  overflow: hidden;
}

.fc .fc-day-holiday .fc-daygrid-day-frame {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.fc-day-holiday-label {
  display: block;
  font-size: 0.68rem;
  color: #e11d48;
  font-weight: 800;
  line-height: 1.2;
  padding: 0 2px 3px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

/* 월 달력: 공휴일 이름은 칸 라벨만 사용 (이벤트 칩은 목록 뷰용) */
.fc .fc-daygrid-body .fc-event-holiday,
.fc .fc-daygrid-event.fc-event-holiday {
  display: none !important;
}

.fc-event-holiday {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
  background: #fff1f2 !important;
  border-color: #e11d48 !important;
  color: #e11d48 !important;
}

.fc-list-holiday,
.fc-list-event.fc-list-holiday {
  background: #fff1f2 !important;
}

.fc-list-holiday .fc-list-event-dot {
  border-color: #e11d48 !important;
  background: #e11d48 !important;
}

.fc-list-holiday .fc-list-event-title,
.fc-list-holiday-name {
  color: #e11d48 !important;
  font-weight: 800 !important;
}

.fc-list-holiday td {
  border-color: rgba(225, 29, 72, 0.18) !important;
}

.fc .fc-list-day-text,
.fc .fc-list-day-side-text,
.fc .fc-list-day-cushion,
.fc .fc-list-day a {
  text-decoration: none !important;
}

.fc-list-leave-reason {
  font-weight: 600;
  color: #64748b !important;
  font-size: 0.92em;
}

.fc .fc-daygrid-day.fc-day-today {
  background: rgba(255, 200, 87, 0.12);
}

.fc .fc-highlight,
.fc .fc-select-range,
.fc .fc-bg-event.fc-select-range {
  background: rgba(225, 29, 72, 0.28) !important;
  opacity: 1 !important;
}

.fc .fc-daygrid-day:hover {
  cursor: pointer;
  background: rgba(225, 29, 72, 0.08);
}

.fc .fc-day-nonwork:hover {
  cursor: not-allowed;
}


.arc-day.is-inrange {
  background: rgba(225, 29, 72, 0.14);
  border-radius: 0;
}

.arc-day.is-start,
.arc-day.is-end {
  background: #e11d48;
  color: #fff !important;
  border-radius: 10px;
}

.arc-day.is-start.is-end {
  background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
}

.arc-day:active:not(.is-empty) {
  transform: scale(0.96);
}

@media (max-width: 575.98px) {
  .arc-day {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .apply-range-chip {
    min-height: 56px;
  }
}


.fc .fc-toolbar {
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fc .fc-toolbar-title {
  font-family: var(--font-display);
  font-size: 1.05rem !important;
  font-weight: 800;
  color: var(--app-primary-dark);
}

.fc .fc-button-primary {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
  border-radius: 999px !important;
  text-transform: none;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background-color: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
}

.fc .fc-daygrid-day.fc-day-today {
  background: rgba(255, 200, 87, 0.12);
}

.fc .fc-highlight,
.fc .fc-select-range,
.fc .fc-bg-event.fc-select-range {
  background: rgba(225, 29, 72, 0.28) !important;
  opacity: 1 !important;
}

.fc .fc-daygrid-day:hover {
  cursor: pointer;
  background: rgba(225, 29, 72, 0.08);
}


.fc-event-half {
  opacity: 0.85;
  border-style: dashed !important;
}

/* 연차(이름) 이벤트: 글씨에 빨강 사용 금지 (공휴일·휴무일만 빨강) */
#calendar .fc-event:not(.fc-event-holiday),
#calendar .fc-daygrid-event:not(.fc-event-holiday),
#calendar .fc-list-event:not(.fc-event-holiday):not(.fc-list-holiday) {
  --fc-event-text-color: #152238;
}

#calendar .fc-event:not(.fc-event-holiday) .fc-event-main,
#calendar .fc-event:not(.fc-event-holiday) .fc-event-title,
#calendar .fc-daygrid-event:not(.fc-event-holiday) .fc-event-title,
#calendar .fc-list-event:not(.fc-event-holiday):not(.fc-list-holiday) .fc-list-event-title,
#calendar .fc-list-event:not(.fc-event-holiday):not(.fc-list-holiday) a {
  color: #152238 !important;
}

#calendar .fc-event:not(.fc-event-holiday):not(.fc-event-pending) .fc-event-main,
#calendar .fc-event:not(.fc-event-holiday):not(.fc-event-pending) .fc-event-title,
#calendar .fc-daygrid-event:not(.fc-event-holiday):not(.fc-event-pending) .fc-event-title {
  color: #ffffff !important;
}

.fc-event-pending,
.fc-daygrid-event.fc-event-pending,
.fc-list-event.fc-event-pending {
  background: transparent !important;
  background-color: transparent !important;
  border-top-width: 0 !important;
  border-right-width: 0 !important;
  border-bottom-width: 0 !important;
  border-left-width: 3px !important;
  border-style: solid !important;
  border-radius: 0 6px 6px 0 !important;
  box-shadow: none !important;
  opacity: 1;
  font-weight: 700;
  color: #152238 !important;
}

.fc-event-pending .fc-event-main,
.fc-daygrid-event.fc-event-pending .fc-event-main,
.fc-event-pending .fc-event-title,
.fc-daygrid-event.fc-event-pending .fc-event-title {
  background: transparent !important;
  color: #152238 !important;
  padding-left: 0.25rem;
}

/* 모바일: 선신청·승인대기 이벤트 앞쪽 여백 축소 → 이름 표시 공간 확보 */
@media (max-width: 767.98px) {
  #calendar .fc-daygrid-event.fc-event-pending,
  #calendar .fc-event.fc-event-pending {
    border-left-width: 2px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #calendar .fc-daygrid-event-harness:has(.fc-event-pending) {
    margin-left: 0;
    margin-right: 0;
  }

  #calendar .fc-daygrid-event.fc-event-pending .fc-event-main,
  #calendar .fc-daygrid-event.fc-event-pending .fc-event-title,
  #calendar .fc-event.fc-event-pending .fc-event-main,
  #calendar .fc-event.fc-event-pending .fc-event-title {
    padding-left: 0.1rem !important;
    padding-right: 0 !important;
    font-size: 0.78rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .month-leave-section.is-wait .month-leave-item {
    padding-left: 0.4rem;
    padding-right: 0.45rem;
    gap: 0.3rem 0.32rem;
  }

  .month-leave-section.is-wait .month-leave-name {
    font-size: 0.98rem;
    letter-spacing: -0.02em;
  }

  .month-leave-section.is-wait .month-leave-item .badge {
    padding-left: 0.45em !important;
    padding-right: 0.45em !important;
  }
}

.fc-event-prebooked {
  border-style: dashed !important;
}

.fc-event-cancel-req {
  opacity: 0.8;
  border-style: dotted !important;
  border-width: 2px !important;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0, 71, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(255, 77, 46, 0.1), transparent 50%),
    linear-gradient(180deg, #f3f6ff 0%, #eef2f8 48%, #f7f8fb 100%);
}

body.is-auth-page {
  background: #eef2f8;
}

body.is-auth-page .app-main {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}

.auth-page-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-page-top-inner {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.auth-back-link:hover,
.auth-back-link:focus-visible {
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}

.auth-back-link:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

.auth-back-icon {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #0d9488, #0f766e);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.auth-back-text {
  padding-right: 0.15rem;
}

body.is-admin-login .auth-page-top {
  background: rgba(244, 245, 251, 0.94);
}

body.is-admin-login .auth-back-icon {
  background: linear-gradient(145deg, #0047ff, #0038cc);
}

body.is-admin-login .auth-back-link:hover,
body.is-admin-login .auth-back-link:focus-visible {
  border-color: rgba(0, 71, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 71, 255, 0.12);
}

body.is-admin-login .auth-back-link:focus-visible {
  outline-color: rgba(0, 71, 255, 0.45);
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.4rem 1.5rem;
  box-shadow: 0 18px 40px rgba(21, 34, 56, 0.1);
  border: 1px solid rgba(21, 34, 56, 0.08);
  border-top: 5px solid var(--app-primary);
}

.login-card-admin {
  border-top-color: var(--app-primary);
  background: #fff;
  border-color: rgba(45, 62, 107, 0.1);
  box-shadow: 0 16px 40px rgba(45, 62, 107, 0.1);
  color: var(--app-text);
}

body.is-admin-login {
  background: #f4f5fb;
}

body.is-admin-login .app-main {
  background: transparent;
}

.login-page-admin {
  background:
    radial-gradient(ellipse 80% 55% at 10% -5%, rgba(231, 233, 251, 0.95), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(203, 232, 219, 0.45), transparent 50%),
    linear-gradient(180deg, #f4f5fb 0%, #eef0f8 55%, #f8f3ef 100%);
}

.login-page-admin .login-brand-org {
  color: var(--app-muted);
}

.login-page-admin .login-brand h1 {
  color: var(--app-ink);
}

.login-page-admin .login-brand-desc,
.login-page-admin .login-brand p {
  color: var(--app-muted);
}

.login-admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--app-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.login-page-admin .form-label {
  color: var(--app-ink);
}

.login-page-admin .login-input-wrap {
  background: transparent;
}

.login-page-admin .login-input-wrap:focus-within .form-control {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(45, 62, 107, 0.12);
}

.login-page-admin .login-input-wrap i {
  color: var(--app-primary);
}

.login-page-admin .login-input-wrap .form-control {
  background: #f8f9fd;
  color: var(--app-text);
  border: 1px solid rgba(45, 62, 107, 0.14);
  box-shadow: none;
}

.login-page-admin .login-input-wrap .form-control::placeholder {
  color: #8b93a7;
}

.login-page-admin .login-input-wrap .form-control:focus {
  background: #fff;
  color: var(--app-text);
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(45, 62, 107, 0.12);
}

.login-page-admin .btn-login-admin-submit,
.login-page-admin .btn-hada.login-submit-btn {
  background: var(--app-primary) !important;
  border-color: var(--app-primary) !important;
  color: #fff !important;
}

.login-page-admin .btn-login-admin-submit:hover,
.login-page-admin .btn-login-admin-submit:focus,
.login-page-admin .btn-hada.login-submit-btn:hover,
.login-page-admin .btn-hada.login-submit-btn:focus {
  background: var(--app-primary-dark) !important;
  border-color: var(--app-primary-dark) !important;
  color: #fff !important;
}

.login-page-admin .login-divider {
  color: var(--app-muted);
}

.login-page-admin .login-divider::before,
.login-page-admin .login-divider::after {
  background: rgba(45, 62, 107, 0.14);
}

.login-page-admin .btn-login-staff {
  border-color: rgba(45, 62, 107, 0.2);
  background: #fff;
  color: var(--app-ink);
}

.login-page-admin .btn-login-staff:hover,
.login-page-admin .btn-login-staff:focus {
  background: var(--app-primary-soft);
  border-color: transparent;
  color: var(--app-ink);
}

.login-page-admin .alert-warning {
  background: var(--app-sun-soft);
  border-color: rgba(193, 122, 58, 0.25);
  color: var(--app-sun);
}

.login-page-admin .login-renewal-notice {
  color: #7a4a12;
}

.login-page-admin .login-renewal-notice-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.login-page-admin .alert-danger {
  background: var(--app-accent-soft);
  border-color: rgba(196, 92, 78, 0.25);
  color: var(--app-accent);
}

@media (min-width: 576px) {
  .login-card {
    padding: 2.15rem 2rem 1.75rem;
  }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.35rem;
}

.login-brand .brand-mark {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.15rem;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.login-brand .login-brand-logo {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem;
  border-radius: 1.05rem;
}

.login-brand-org {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--app-primary-dark);
  letter-spacing: -0.02em;
}

.login-brand h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--app-black);
  margin: 0 0 0.3rem;
  letter-spacing: -0.04em;
}

.login-brand-desc,
.login-brand p {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.login-form .form-select {
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
}

.login-form .form-control[type="date"] {
  min-height: 48px;
  border-radius: 12px;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.05rem;
  pointer-events: none;
}

.login-input-wrap .form-control {
  padding-left: 2.55rem;
  min-height: 48px;
  border-radius: 12px;
  font-size: 1rem;
}

.login-submit-btn {
  min-height: 48px;
  border-radius: 12px;
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.login-register-link {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--app-muted);
}

.login-register-link a {
  font-weight: 700;
  color: var(--app-primary-dark);
  text-decoration: none;
}

.login-link-sep {
  margin: 0 0.35rem;
  color: #cbd5e1;
}

.login-register-link a:hover {
  text-decoration: underline;
}

.login-privacy-link {
  margin: 0.65rem 0 0;
  text-align: center;
}

.auth-privacy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.auth-privacy-btn:hover,
.auth-privacy-btn:focus {
  border-color: var(--app-primary, #1e3a8a);
  color: var(--app-primary-dark, #1e3a8a);
  background: #fff;
  text-decoration: none;
}

.privacy-agree-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.privacy-policy-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #152238;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(21, 34, 56, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.privacy-policy-btn:hover,
.privacy-policy-btn:focus {
  border-color: var(--app-primary, #1e3a8a);
  background: #f8fafc;
  color: #152238;
  text-decoration: none;
}

.privacy-policy-btn-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.privacy-policy-btn-desc {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--app-primary, #1e3a8a);
  white-space: nowrap;
}

.privacy-policy-btn-desc::after {
  content: " →";
}

.privacy-agree-box {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: keep-all;
}

.privacy-agree-box .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.privacy-agree-box .form-check-input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  float: none;
  position: static;
}

.privacy-agree-box .form-check-label {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  color: #334155;
}

.privacy-wrap {
  max-width: 720px;
}

.privacy-card {
  text-align: left;
}

.privacy-card .login-brand {
  text-align: center;
}

.privacy-body {
  font-size: 0.92rem;
  color: #334155;
  word-break: keep-all;
}

.privacy-body h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: #152238;
}

.privacy-body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.privacy-body li {
  margin: 0.2rem 0;
}

.privacy-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.privacy-actions {
  margin-top: 1.25rem;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.9rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.btn-login-admin,
.btn-login-staff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  font-family: var(--font-display);
  text-decoration: none;
  border: 2px solid #0f172a;
  background: #fff;
  color: #0f172a;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-login-admin:hover,
.btn-login-admin:focus,
.btn-login-staff:hover,
.btn-login-staff:focus {
  background: #0f172a;
  color: #fff;
}

.btn-login-staff {
  border-color: var(--app-primary);
  color: var(--app-primary-dark);
}

.btn-login-staff:hover,
.btn-login-staff:focus {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}

.login-pwa-add {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(45, 62, 107, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f6fb 100%);
  color: inherit;
  text-align: left;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.login-pwa-add:hover,
.login-pwa-add:focus-visible {
  border-color: rgba(45, 62, 107, 0.22);
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.login-pwa-add:active {
  transform: none;
}

.login-pwa-add:disabled {
  opacity: 0.72;
  transform: none;
  cursor: default;
}

.login-pwa-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(45, 62, 107, 0.08);
  color: var(--app-primary-dark, #2d3e6b);
  font-size: 1.05rem;
}

.login-pwa-add-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.login-pwa-add-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--app-ink, #152238);
  line-height: 1.25;
}

.login-pwa-add-desc {
  font-size: 0.76rem;
  color: var(--app-muted, #64748b);
  line-height: 1.35;
  word-break: keep-all;
}

.login-pwa-add-chevron {
  flex-shrink: 0;
  color: rgba(45, 62, 107, 0.35);
  font-size: 0.9rem;
}

.login-pwa-add.is-done .login-pwa-add-icon {
  background: rgba(34, 140, 92, 0.12);
  color: #1f7a52;
}

.login-pwa-add.is-done .login-pwa-add-chevron {
  display: none;
}

/* legacy tip (unused) */
.login-install-tip {
  display: none;
}

.table {
  --bs-table-color: var(--app-text);
  font-size: 0.95rem;
}

.table thead th {
  background: #eef2ff;
  font-weight: 800;
  white-space: nowrap;
  color: var(--app-primary-dark);
  border-bottom: var(--app-border-w) solid var(--app-line-strong) !important;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 0.75rem !important;
  vertical-align: middle;
}

.table > :not(caption) > * > * {
  padding: 0.9rem 0.75rem;
  vertical-align: middle;
  border-bottom: var(--app-border-w) solid var(--app-line);
}

.table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.table-sm > :not(caption) > * > * {
  padding: 0.75rem 0.65rem;
}

.alert {
  border-radius: 12px;
  border-width: 0 0 0 4px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-success {
  border-left-color: var(--app-primary);
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.alert-danger {
  border-left-color: var(--app-accent);
  background: var(--app-accent-soft);
  color: #9a2e18;
}

.alert-warning {
  border-left-color: var(--app-sun);
  background: var(--app-sun-soft);
  color: #7a5a00;
}

.overlap-warn {
  border-left: 4px solid var(--app-sun);
  background: #fef9c3;
  border-radius: 12px;
  color: #713f12;
}

.apply-guide {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.7rem 0.65rem;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(232, 240, 255, 0.95) 0%, rgba(247, 249, 252, 0.98) 55%, #fff 100%);
  border: 1px solid rgba(0, 71, 255, 0.14);
  border-left: 3px solid var(--app-primary);
}

.apply-guide-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--app-primary-dark);
}

.apply-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.apply-guide-list li {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(0, 71, 255, 0.1);
}

.apply-guide-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.apply-guide-key {
  flex: 0 0 4.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  margin-top: 0.05rem;
  padding: 0.15rem 0.35rem;
  border-radius: 7px;
  background: rgba(0, 71, 255, 0.12);
  color: var(--app-primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1.2;
}

.apply-guide-val {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: auto;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.apply-guide-val strong {
  color: var(--app-text);
  font-weight: 800;
}

.apply-guide-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 0.3rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--app-sun-soft);
  color: #7a5a00;
  font-size: 0.8rem;
  font-weight: 800;
  vertical-align: 0.05em;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .apply-guide {
    padding: 0.7rem 0.55rem 0.55rem;
  }

  .apply-guide-label {
    font-size: 0.84rem;
  }

  .apply-guide-list li {
    gap: 0.4rem;
    padding: 0.5rem 0;
  }

  .apply-guide-key {
    flex-basis: 4.2rem;
    font-size: 0.76rem;
    min-height: 1.45rem;
    padding: 0.12rem 0.28rem;
  }

  .apply-guide-val {
    font-size: 0.9rem;
  }

  .apply-guide-chip {
    font-size: 0.76rem;
    margin: 0.15rem 0 0;
  }
}

/* 이전 클래스 호환 */
.apply-limit-note {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--app-primary-soft);
  border: 1px solid rgba(0, 71, 255, 0.16);
  color: #1e3a5f;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.app-footer {
  border-top: 0;
  padding: 1.15rem 0 calc(1.15rem + env(safe-area-inset-bottom));
  background: var(--app-black);
}

.app-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 500;
}

.app-footer-logo {
  display: block;
  width: auto;
  height: 2.15rem;
  max-width: min(140px, 55vw);
  max-height: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: none;
  box-shadow: none;
  flex-shrink: 0;
}

.app-footer-privacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 0.35rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-footer-privacy:hover,
.app-footer-privacy:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  text-decoration: none;
}

.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 -8px 24px rgba(30, 80, 95, 0.12);
  backdrop-filter: blur(8px);
}

@media (max-width: 991.98px) {
  body.has-mobile-nav .pwa-install-banner {
    bottom: calc(3.75rem + env(safe-area-inset-bottom));
    padding-bottom: 0.75rem;
  }
}

.pwa-install-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

.pwa-install-inner img {
  border-radius: 10px;
}

.pwa-install-text {
  flex: 1 1 10rem;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.pwa-install-text strong {
  font-size: 0.92rem;
  color: var(--app-primary-dark);
}

.pwa-install-text span {
  font-size: 0.78rem;
  color: var(--app-muted);
}

.pwa-install-close {
  color: var(--app-muted) !important;
  text-decoration: none !important;
}

.admin-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
  border-bottom: 0;
  background: #fff;
}

.admin-tab-lazy {
  min-height: 12rem;
}
.admin-tab-lazy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tabs-wrap {
  position: relative;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 2px solid var(--app-black);
  border-radius: var(--app-radius);
  background: #fff;
  box-shadow: var(--app-shadow);
  overflow: hidden;
}

.admin-tabs-wrap::before,
.admin-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5rem;
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.admin-tabs-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fff 35%, rgba(255, 255, 255, 0));
}

.admin-tabs-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fff 35%, rgba(255, 255, 255, 0));
}

.admin-tabs-wrap.is-at-start::before,
.admin-tabs-wrap.is-at-end::after {
  opacity: 0;
}

.admin-tab-label-short {
  display: none;
}

.admin-tab-icon {
  display: none;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.admin-tabs-mobile-head {
  display: none;
}

.navbar-top-actions,
.admin-top-actions {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.navbar-top-role,
.admin-top-role {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar-top-name {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-top-actions .btn-logout,
.admin-top-actions .btn-logout {
  min-height: 36px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-page .page-hero-compact {
  margin-bottom: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--app-radius);
  background: var(--app-black);
}

.admin-page .page-hero-compact h1 {
  font-size: 1.55rem;
  color: #fff;
  margin: 0;
  letter-spacing: -0.04em;
}

.admin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.admin-panel-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  min-width: 0;
}

.admin-panel-head-toolbar {
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.admin-panel-head-toolbar .history-toolbar-actions {
  min-width: 0;
  max-width: 100%;
}

.admin-panel-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: #8b97a8;
  white-space: nowrap;
}

.is-resigned-row {
  opacity: 0.78;
}

.is-resigned-row strong {
  color: #64748b;
}

.admin-panel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.request-manage-stats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.request-manage-stat {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.35em 0.75em !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 999px !important;
  border: 0 !important;
}

.history-export-label-short {
  display: none;
}

.admin-page .alert {
  font-size: 0.92rem;
}

.admin-page #tab-staff .alert {
  text-align: left;
}

.admin-tabs .nav-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.admin-tabs .nav-link {
  position: relative;
  white-space: nowrap;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--app-muted);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  min-height: 50px;
  padding: 0.72rem 1.2rem;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-tabs .nav-link:hover {
  color: var(--app-black);
  background: #f5f6f8 !important;
}

.admin-tabs .nav-link.active {
  background: var(--app-primary) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: none;
}

@media (min-width: 768px) {
  .admin-tabs .nav-item:first-child .nav-link {
    border-top-left-radius: calc(var(--app-radius) - 2px) !important;
    border-bottom-left-radius: calc(var(--app-radius) - 2px) !important;
  }

  .admin-tabs .nav-item:last-child .nav-link {
    border-top-right-radius: calc(var(--app-radius) - 2px) !important;
    border-bottom-right-radius: calc(var(--app-radius) - 2px) !important;
  }
}

.admin-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--app-accent);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.admin-tab-count.is-muted {
  background: #e8edf5;
  color: #5a6b82 !important;
}

.admin-tab-count.is-warning {
  background: var(--app-accent);
  color: #fff !important;
}

.admin-tabs .nav-link.active .admin-tab-count.is-muted {
  background: #1e3a5f;
  color: #fff !important;
}

/* Expense Claims 스타일 데이터 테이블 */
.data-table-shell {
  border: var(--app-border-w) solid var(--app-line-strong);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.data-table-shell .table-responsive {
  margin: 0;
}

.data-table-shell .table {
  margin: 0;
  --bs-table-bg: #fff;
  --bs-table-hover-bg: #f8fafc;
  font-size: 0.92rem;
}

.data-table-shell .table thead th {
  background: #f3f5f8 !important;
  color: #6b7a90 !important;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  border-bottom: var(--app-border-w) solid var(--app-line-strong) !important;
  padding: 0.85rem 1rem !important;
  white-space: nowrap;
}

.data-table-shell .table > :not(caption) > * > * {
  border-bottom: 0;
  padding: 0.95rem 1rem;
}

.data-table-shell .table tbody tr {
  border-bottom: var(--app-border-w) solid var(--app-line);
}

.data-table-shell .table tbody tr:last-child {
  border-bottom: 0;
}

.data-table-shell .table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table-shell .table tbody tr:hover {
  background: #f8fafc;
}

.data-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-top: var(--app-border-w) solid var(--app-line-strong);
  background: #fcfdff;
  color: #8b97a8;
  font-size: 0.82rem;
}

.panel.admin-panel {
  border: var(--app-border-w) solid var(--app-line-strong);
  box-shadow: var(--app-shadow);
  padding: 1.15rem 1.2rem 1.25rem;
}

.panel.admin-panel .panel-title {
  border-bottom: var(--app-border-w) solid var(--app-black);
  padding-bottom: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--app-black);
}

/* 나의 연차 신청 현황 */
.my-request-empty {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--app-muted);
}

.my-request-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.my-request-card {
  background: #fff;
  border: 1px solid var(--app-line);
  border-left: 5px solid #9eb4bc;
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 1px 2px rgba(20, 50, 60, 0.03);
}

.my-request-card.status-pending {
  border-left-color: #eab308;
  background: linear-gradient(90deg, #fefce8 0%, #ffffff 48%);
}

.my-request-card.status-prebooked {
  border-left-color: #7c3aed;
  background: linear-gradient(90deg, #f5f3ff 0%, #ffffff 48%);
}

.my-request-card.status-approved {
  border-left-color: #2563eb;
  background: linear-gradient(90deg, #eff6ff 0%, #ffffff 48%);
}

.my-request-card.status-cancel_requested {
  border-left-color: #1d4ed8;
  background: linear-gradient(90deg, #dbeafe 0%, #ffffff 48%);
}

.my-request-card.status-rejected {
  border-left-color: #e11d48;
  background: linear-gradient(90deg, #fff1f2 0%, #ffffff 48%);
}

.my-request-card.status-used {
  border-left-color: #94a3b8;
  background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 48%);
}

.my-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.my-request-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.my-request-aside .cancel-btn,
.my-request-aside .btn-action-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #c45c4e;
  --bs-btn-border-color: #c45c4e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #a84a3e;
  --bs-btn-hover-border-color: #a84a3e;
  min-width: auto;
  min-height: 34px;
  height: 34px;
  padding: 0 0.75rem;
  font-size: 0.82rem;
  color: #fff !important;
  background-color: #c45c4e !important;
  border-color: #c45c4e !important;
}

.my-request-aside .cancel-btn:hover,
.my-request-aside .cancel-btn:focus,
.my-request-aside .btn-action-danger:hover,
.my-request-aside .btn-action-danger:focus {
  color: #fff !important;
  background-color: #a84a3e !important;
  border-color: #a84a3e !important;
}

.my-request-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
  flex: 1;
  font-size: 0.86rem;
  color: var(--app-muted);
}

.my-request-date {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--app-text);
  line-height: 1.35;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.my-request-reason {
  margin: 0;
  font-size: 0.86rem;
  color: var(--app-text);
  line-height: 1.4;
  word-break: break-word;
}

.my-request-reason::before {
  content: '·';
  margin-right: 0.35rem;
  color: var(--app-muted);
  font-weight: 600;
}

.my-request-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.my-request-chip.chip-full {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.my-request-chip.chip-half {
  background: var(--app-accent-soft);
  color: #be123c;
}

.my-request-chip.chip-quarter {
  background: #e0f2fe;
  color: #0369a1;
}

.my-request-days {
  font-weight: 700;
  color: var(--app-text);
  white-space: nowrap;
}

.my-request-applied {
  white-space: nowrap;
}

.my-request-note {
  margin: 0.4rem 0 0;
  font-size: 0.84rem;
  color: #1d4ed8;
  font-weight: 700;
}

.my-request-note.is-reject {
  color: #be123c;
}

.my-request-actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.4rem;
}

.my-request-actions .btn {
  min-height: 38px;
  font-weight: 700;
}


/* 상태 배지: soft pill (Expense Claims 스타일) */
.badge-status-pending {
  background: #fee2c5 !important;
  color: #c17a3a !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.45em 0.85em !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
  border: 0 !important;
}

.badge-status-prebooked {
  background: #e7e9fb !important;
  color: #4a5580 !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.45em 0.85em !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
  border: 0 !important;
}

.badge-status-cancel {
  background: #e7e9fb !important;
  color: #2d3e6b !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.45em 0.85em !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
  border: 0 !important;
}

.badge-status-approved {
  background: #cbe8db !important;
  background-color: #cbe8db !important;
  color: #2f6b55 !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.45em 0.85em !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
  border: 0 !important;
}

.badge-status-used {
  background: #efeae4 !important;
  color: #6b7280 !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.45em 0.85em !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
  border: 0 !important;
}

.request-manage-stat.badge-status-approved {
  background: #cbe8db !important;
  background-color: #cbe8db !important;
  color: #2f6b55 !important;
}

.badge-status-rejected {
  background: #ffd1c9 !important;
  color: #c45c4e !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.45em 0.85em !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
  border: 0 !important;
}

.badge-status-cancelled {
  background: #efeae4 !important;
  color: #6b7280 !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.45em 0.85em !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
  border: 0 !important;
}

.staff-role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  padding: 0.4em 0.75em !important;
}

.staff-name-row {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
}

.staff-name-row strong {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-calendar-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  padding: 0.14rem 0.48rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
}

.staff-calendar-chip.is-hidden {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #92400e;
}

.staff-calendar-chip:hover:not(:disabled) {
  border-color: var(--app-primary);
  color: var(--app-primary-dark);
}

.staff-calendar-chip:disabled {
  opacity: 0.65;
  cursor: wait;
}

.staff-role-badge.is-admin {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.staff-role-badge.is-staff {
  background: #e5e7eb !important;
  color: #4b5563 !important;
}

.request-action-btns .btn-action {
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.staff-row-actions .btn-action {
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.staff-row-actions {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 10.5rem;
}

.staff-row-actions-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
}

.staff-row-actions-row form {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.staff-row-actions-row .btn-action {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.past-leave-row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 10.5rem;
}

.past-leave-row-actions form {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.past-leave-row-actions .btn-action {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.82rem;
}

.manage-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border-left: 5px solid transparent;
}

.manage-heading h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.manage-label {
  font-weight: 800;
}

.manage-hint {
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.4;
}

.manage-heading-pending {
  background: #fefce8;
  border-left-color: #eab308;
  color: #713f12;
}

.manage-heading-pending .manage-label {
  color: #854d0e;
}

.manage-heading-cancel {
  background: #dbeafe;
  border-left-color: #1d4ed8;
  color: #1e3a8a;
}

.manage-heading-cancel .manage-label {
  color: #1e40af;
}

.manage-heading-approved {
  background: #eff6ff;
  border-left-color: #2563eb;
  color: #1e3a8a;
}

.manage-heading-approved .manage-label {
  color: #1e40af;
}

.text-muted {
  color: var(--app-muted) !important;
}

.small {
  font-size: var(--fs-small) !important;
}

.apply-range-cal,
.holiday-admin-cal {
  border: var(--app-border-w) solid var(--app-line-strong) !important;
  box-shadow: none;
}

.holiday-side-panel {
  border: var(--app-border-w) solid var(--app-line-strong);
  border-radius: 14px;
  padding: 1.05rem 1.1rem;
  background: #fff;
  box-shadow: var(--app-shadow);
}

.manage-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  margin-right: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  vertical-align: 0.12em;
}

.manage-section-badge-holiday {
  background: #ffe4e6;
  color: #9f1239;
}

.manage-section-badge-attendance {
  background: #ccfbf1;
  color: #0f766e;
}

/* 공휴일·휴무일: 로즈/빨강 계열 */
.holiday-manage-panel {
  border-color: #fecdd3;
  background:
    linear-gradient(180deg, #fff7f8 0%, #ffffff 42%);
}

.holiday-manage-panel .panel-title {
  color: #9f1239;
}

.holiday-manage-side {
  border-color: #fda4af;
  background: #fff1f2;
  box-shadow: none;
}

.holiday-manage-side .holiday-add-panel {
  padding: 0.85rem 0.85rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fecdd3;
}

.holiday-manage-panel #holidayAddBtn {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #fff !important;
}

.holiday-manage-panel #holidayAddBtn:hover,
.holiday-manage-panel #holidayAddBtn:focus {
  background: #be123c !important;
  border-color: #be123c !important;
}

.holiday-manage-panel .holiday-admin-cal {
  border: 2px solid #fda4af;
  border-radius: 14px;
  background: #fff;
}

/* 근태: 청록 계열 */
.attendance-manage-panel {
  border-color: #99f6e4;
  background:
    linear-gradient(180deg, #f0fdfa 0%, #ffffff 42%);
}

.attendance-manage-panel .panel-title {
  color: #0f766e;
}

.attendance-manage-side {
  border-color: #5eead4;
  background: #ecfdf5;
  box-shadow: none;
}

.attendance-manage-side .attendance-add-panel,
.attendance-manage-side .holiday-add-panel {
  padding: 0.85rem 0.85rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #99f6e4;
}

.attendance-manage-panel #attendanceAddBtn {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #fff !important;
}

.attendance-manage-panel #attendanceAddBtn:hover,
.attendance-manage-panel #attendanceAddBtn:focus {
  background: #0f766e !important;
  border-color: #0f766e !important;
}

.attendance-manage-panel .attendance-admin-cal {
  border: 2px solid #5eead4;
  border-radius: 14px;
  background: #fff;
}

.attendance-manage-panel .attendance-rule-notice {
  background: #f0fdfa;
  border: 1.5px solid #99f6e4;
  border-left: 4px solid #0d9488;
}

.attendance-admin-cal .attendance-dot {
  display: block;
  width: 5px;
  height: 5px;
  margin: 0.12rem auto 0;
  border-radius: 50%;
  background: var(--app-accent);
}

.attendance-admin-cal .arc-day.is-attendance-marked {
  font-weight: 800;
}

.attendance-list-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.attendance-list-name {
  font-weight: 700;
  color: var(--app-text);
}

.attendance-list-note,
.attendance-list-hours,
.attendance-list-leave-note {
  font-size: 0.82rem;
  color: var(--app-muted);
}

.attendance-list-leave-note {
  color: #1d4ed8;
  font-weight: 700;
}

.attendance-type-badge {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  padding: 0.35em 0.65em !important;
  border-radius: 999px !important;
  border: 0 !important;
}

.attendance-badge-absent {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.attendance-badge-late {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.attendance-badge-early {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

.attendance-badge-outing {
  background: #dbeafe !important;
  color: #1e40af !important;
}

.attendance-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.attendance-list-item .attendance-del-btn {
  flex-shrink: 0;
}

.attendance-rule-notice {
  margin-top: 0.15rem;
  padding: 0.85rem 0.95rem;
  border: var(--app-border-w) solid #99f6e4;
  border-left: 4px solid #0d9488;
  border-radius: 12px;
  background: #f0fdfa;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.attendance-rule-heading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f766e;
}

.attendance-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #334155;
}

.attendance-rule-flag {
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: #0d9488;
}

.attendance-rule-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.attendance-rule-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: -0.02em;
}

.attendance-rule-text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: #475569;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.attendance-rule-item strong {
  color: #0f766e;
}

.payslip-receipt-card {
  border: var(--app-border-w) solid var(--app-line-strong);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  background: #fff;
}

.payslip-receipt-card.is-pending {
  border-left: 4px solid #eab308;
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 48%);
}

.payslip-receipt-card.is-acked {
  border-left: 4px solid #16a34a;
}

.arc-title {
  font-size: 1.05rem !important;
  letter-spacing: -0.02em;
}

.fc .fc-toolbar-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--app-text) !important;
  letter-spacing: -0.02em;
}

.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number {
  color: var(--app-text);
  font-weight: 700;
  text-decoration: none !important;
}

.fc .fc-col-header-cell-cushion {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.fc .fc-button {
  font-weight: 700 !important;
  border-radius: 10px !important;
}

/* 모바일: 신청 카드를 위에, 달력은 아래 */
@media (max-width: 991.98px) {
  .mobile-order-apply {
    order: -1;
  }

  #calendar {
    min-height: 360px;
  }

  .fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0.75rem;
  }

  .fc .fc-button {
    font-size: 0.78rem;
  }

  .panel {
    padding: 1rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-top-actions,
  .admin-top-actions {
    display: inline-flex !important;
  }
}

@media (max-width: 767.98px) {
  .admin-tabs-wrap {
    position: sticky;
    top: calc(3.35rem + env(safe-area-inset-top, 0px));
    z-index: 1015;
    margin: 0 0 0.9rem;
    padding: 0;
    border: var(--app-border-w) solid var(--app-black);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--app-shadow);
    max-width: 100%;
  }

  .admin-tabs-wrap::before,
  .admin-tabs-wrap::after {
    display: block;
    top: auto;
    bottom: 0;
    height: 3.15rem;
    width: 1.35rem;
    z-index: 3;
  }

  .admin-tabs-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #fff 20%, rgba(255, 255, 255, 0));
  }

  .admin-tabs-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #fff 20%, rgba(255, 255, 255, 0));
  }

  .admin-tabs-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem 0.35rem;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    background: #f8f9fb;
  }

  .admin-tabs-mobile-head strong {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.02em;
  }

  .admin-tabs-mobile-current {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--app-black);
    letter-spacing: -0.02em;
    text-align: right;
    min-width: 0;
  }

  .admin-tab-label-full {
    display: none;
  }

  .admin-tab-label-short {
    display: inline;
  }

  .admin-tab-icon {
    display: inline-flex;
  }

  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.7rem;
    width: 100%;
    overscroll-behavior-x: contain;
  }

  .admin-tabs .nav-item {
    width: auto;
    min-width: 0;
    border: 0;
    scroll-snap-align: center;
  }

  .admin-tabs .nav-item:nth-child(2n),
  .admin-tabs .nav-item:nth-child(n + 3) {
    border: 0;
  }

  .admin-tabs .nav-link {
    width: auto;
    justify-content: center;
    flex-direction: column;
    font-size: 0.72rem;
    min-height: 3.15rem;
    min-width: 3.55rem;
    padding: 0.35rem 0.55rem;
    border-radius: 12px !important;
    background: #f3f4f6 !important;
    color: #334155;
    gap: 0.18rem;
    white-space: nowrap;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }

  .admin-tabs .nav-link:hover {
    background: #e8eaee !important;
    color: var(--app-black);
  }

  .admin-tabs .nav-link.active {
    background: var(--app-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(10, 10, 10, 0.18);
  }

  .admin-tabs .nav-link .admin-tab-count {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.22rem;
    font-size: 0.62rem;
  }

  .admin-tab-count {
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.28rem;
    font-size: 0.68rem;
  }

  .admin-page .page-hero-compact {
    margin-bottom: 0.55rem;
  }

  .admin-page .page-hero-compact h1 {
    font-size: 1.28rem;
  }

  .admin-panel-head-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-panel-head-toolbar .history-toolbar-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: stretch;
  }

  .admin-panel-head-toolbar .history-tool-group,
  .admin-panel-head-toolbar .history-filter-form,
  .admin-panel-head-toolbar .history-confirm-group {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .admin-panel-head-toolbar .history-confirm-group .history-tool-label {
    flex: 1 1 100%;
  }

  .admin-panel-head-toolbar .history-confirm-group .form-select {
    flex: 1 1 calc(50% - 0.25rem);
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .admin-panel-head-toolbar .history-confirm-group .history-confirm-btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }

  .admin-panel-head-toolbar .history-export-btn {
    width: 100%;
    justify-content: center;
  }

  .history-export-label-full {
    display: none;
  }

  .history-export-label-short {
    display: inline;
  }

  .admin-panel-meta {
    display: none;
  }

  .admin-holiday-layout .holiday-side-panel {
    margin-bottom: 0.15rem;
  }

  .admin-holiday-layout .holiday-add-panel .form-control {
    min-height: 44px;
    font-size: 16px;
  }

  .admin-holiday-layout .holiday-add-panel #holidayAddBtn {
    min-height: 46px;
  }

  .admin-holiday-layout .holiday-list-wrap {
    max-height: none;
  }

  .attendance-manage-panel .attendance-rule-notice {
    margin-top: 0.55rem;
    margin-bottom: 0.15rem;
    padding: 0.7rem 0.75rem;
    gap: 0.55rem;
    border-radius: 10px;
  }

  .attendance-rule-heading {
    font-size: 0.74rem;
  }

  .attendance-rule-item {
    gap: 0.4rem;
  }

  .attendance-rule-flag {
    width: 0.38rem;
    height: 0.38rem;
    margin-top: 0.38rem;
  }

  .attendance-rule-title {
    font-size: 0.82rem;
  }

  .attendance-rule-text {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .admin-page .data-table-shell + .admin-desc-desktop {
    margin-top: 0.85rem !important;
    font-size: 0.82rem;
  }

  .admin-desc-desktop {
    display: none !important;
  }

  .admin-desc-mobile {
    display: block !important;
    margin-bottom: 0.85rem !important;
  }

  .admin-panel {
    padding: 0.95rem 0.85rem 1.05rem;
  }

  .admin-panel .panel-title {
    font-size: 1.05rem;
  }

  #tab-staff .form-label {
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
  }

  #tab-staff #memberDeptFilter {
    min-height: 44px;
    font-size: 16px;
  }

  .data-table-shell {
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .data-table-shell .table-responsive {
    overflow: visible;
    margin: 0;
  }

  .data-table-footer {
    display: none;
  }

  .request-manage-table thead,
  .staff-list thead {
    display: none;
  }

  .request-manage-table,
  .staff-list,
  .request-manage-table tbody,
  .staff-list tbody {
    display: block;
    width: 100%;
  }

  .request-manage-table tbody tr,
  .staff-list tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.65rem;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 1rem 0.95rem;
    background: #fff;
    border: var(--app-border-w) solid var(--app-line-strong);
    border-radius: 12px;
    box-shadow: none;
  }

  .request-manage-table tbody tr:last-child,
  .staff-list tbody tr:last-child {
    margin-bottom: 0;
  }

  .request-manage-table tbody td,
  .staff-list tbody td {
    border: 0 !important;
    padding: 0 !important;
    min-width: 0;
    background: transparent !important;
  }

  /* —— 요청 관리 카드 —— */
  /* 1종류 2신청자 3담당반 4요청사항 5사유 6상태 7관리 */
  .request-manage-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .request-manage-table tbody td:nth-child(6) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    text-align: right;
  }

  .request-manage-table tbody td.request-status-cell:nth-child(6) {
    align-items: flex-end;
  }

  .request-manage-table tbody td:nth-child(6) .request-status-date {
    margin-top: 0;
  }

  .request-manage-table tbody td:nth-child(2),
  .request-manage-table tbody td:nth-child(3) {
    grid-row: 2;
    align-self: center;
  }

  .request-manage-table tbody td:nth-child(2) {
    grid-column: 1;
  }

  .request-manage-table tbody td:nth-child(3) {
    grid-column: 2;
    justify-self: end;
    font-size: 0.85rem;
    color: var(--app-muted);
    text-align: right;
  }

  .request-manage-table tbody td:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 0.55rem 0.7rem !important;
    background: #f8fafc !important;
    border-radius: 10px;
  }

  .request-manage-table .request-detail-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .request-manage-table .request-detail-date {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--app-text);
  }

  .request-manage-table .request-detail-meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a6b82;
  }

  .request-manage-table tbody td:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 4;
    font-size: 0.88rem;
    color: #5a6b82;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .request-manage-table tbody td:nth-child(5)::before {
    content: "사유";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8b97a8;
    margin-bottom: 0.15rem;
  }

  .request-manage-table tbody td:nth-child(7) {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 0.15rem;
  }

  .request-manage-table .request-type-chip {
    min-height: 2rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }

  .request-manage-table .request-action-btns {
    width: 100%;
    display: flex;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
  }

  .request-manage-table .request-action-btns .btn-action {
    flex: 1 1 0 !important;
    width: auto;
    min-height: 44px;
    height: 44px;
    min-width: 0 !important;
    font-size: 0.9rem;
  }

  .request-manage-table .manage-actions-cell {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .request-reason-cell {
    max-width: none;
  }

  /* —— 전체 내역 카드 —— */
  /* 1신청일 2이름 3담당반 4기간 5상태 6신청사유 7거절사유 8삭제 */
  .history-toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }

  .history-toolbar-actions {
    width: 100%;
    align-items: center;
  }

  .history-export-btn {
    display: none !important;
  }

  /* —— 과거 연차 등록 이력 (모바일 카드) —— */
  .past-leave-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .past-leave-card {
    background: #fff;
    border: var(--app-border-w) solid var(--app-line-strong);
    border-left: 4px solid #64748b;
    border-radius: 12px;
    padding: 0.95rem 0.9rem;
  }

  .past-leave-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .past-leave-card-user {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
  }

  .past-leave-card-user strong {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .past-leave-card-user span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
  }

  .past-leave-card-type {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .past-leave-card-body {
    margin-bottom: 0.75rem;
  }

  .past-leave-card-dates {
    padding: 0.55rem 0.7rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.02em;
  }

  .past-leave-card-reason {
    margin-top: 0.5rem;
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.45;
    word-break: break-word;
  }

  .past-leave-card-created {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #8b97a8;
    font-weight: 600;
  }

  .past-leave-card-actions {
    display: flex;
    gap: 0.4rem;
  }

  .past-leave-card-actions form {
    margin: 0;
    flex: 1 1 0;
  }

  .past-leave-card-actions .btn-action {
    flex: 1 1 0;
    width: 100%;
    min-height: 42px;
    height: 42px;
    justify-content: center;
  }

  .past-leave-history-shell .data-table-footer {
    display: none;
  }

  .past-leave-history-note {
    display: block;
  }

  /* —— 특별기간 목록 (모바일 카드) —— */
  .leave-cap-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .leave-cap-panel {
    padding: 0.95rem 0.85rem;
  }

  .leave-cap-panel .org-info-panel-head {
    margin-bottom: 0.85rem;
  }

  .leave-cap-form .form-control,
  .leave-cap-form .form-select {
    min-height: 44px;
    font-size: 16px;
  }

  .leave-cap-actions {
    margin-top: 0.95rem;
  }

  .leave-cap-actions .btn-action {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .leave-cap-card {
    background: #fff;
    border: var(--app-border-w) solid var(--app-line-strong);
    border-left: 4px solid #64748b;
    border-radius: 12px;
    padding: 0.9rem 0.85rem;
  }

  .leave-cap-card.is-upcoming {
    border-left-color: var(--app-primary);
  }

  .leave-cap-card.is-active {
    border-left-color: #16a34a;
  }

  .leave-cap-card.is-ended {
    border-left-color: #94a3b8;
  }

  .leave-cap-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
  }

  .leave-cap-card-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .leave-cap-card-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--app-text);
  }

  .leave-cap-card-dates {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    background: #f1f5f9;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.02em;
    word-break: keep-all;
  }

  .leave-cap-card-status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .leave-cap-card.is-upcoming .leave-cap-card-status {
    background: var(--app-primary-soft);
    color: var(--app-primary-dark);
  }

  .leave-cap-card.is-active .leave-cap-card-status {
    background: #dcfce7;
    color: #166534;
  }

  .leave-cap-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
  }

  .leave-cap-card-quota {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
  }

  .leave-cap-card-quota strong {
    color: var(--app-text);
    font-weight: 800;
  }

  .leave-cap-card-foot form {
    margin: 0;
  }

  .leave-cap-card-foot .btn-action {
    min-width: auto;
    min-height: 32px;
    height: 32px;
    padding: 0 0.7rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
  }

  .leave-cap-card-foot .btn-action-danger {
    color: #be123c !important;
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
  }

  .leave-cap-card-foot .btn-action-danger:hover,
  .leave-cap-card-foot .btn-action-danger:focus {
    color: #fff !important;
    background: #e11d48 !important;
    border-color: #e11d48 !important;
  }

  .contract-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .contract-card {
    background: #fff;
    border: var(--app-border-w) solid var(--app-line-strong);
    border-radius: 12px;
    padding: 0.95rem 0.9rem;
  }

  .contract-card.is-pending {
    border-left: 4px solid #eab308;
  }

  .contract-card.is-acked {
    border-left: 4px solid #16a34a;
  }

  .contract-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .contract-card-user {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
  }

  .contract-card-user strong {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  .contract-card-user span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
  }

  .contract-card-top .badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.4em 0.65em;
  }

  .contract-card-body {
    margin-bottom: 0.75rem;
  }

  .contract-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--app-black);
    letter-spacing: -0.02em;
  }

  .contract-card-file {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #64748b;
    word-break: break-all;
    line-height: 1.35;
  }

  .contract-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.65rem;
    margin: 0.7rem 0 0;
    padding: 0.55rem 0.65rem;
    background: #f8fafc;
    border-radius: 10px;
  }

  .contract-card-meta > div {
    min-width: 0;
  }

  .contract-card-meta dt {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
  }

  .contract-card-meta dd {
    margin: 0.1rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
  }

  .contract-card-actions {
    display: flex;
    gap: 0.4rem;
  }

  .contract-card-actions form {
    margin: 0;
    flex: 1 1 0;
  }

  .contract-card-actions .btn-action {
    flex: 1 1 0;
    width: 100%;
    min-height: 42px;
    height: 42px;
    justify-content: center;
  }

  .contract-list-shell .data-table-footer {
    display: none;
  }

  .contract-list-mobile-foot {
    display: block;
  }

  .admin-panel-head-actions {
    width: 100%;
  }

  .admin-panel-head-actions .btn-action {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .history-tool-group,
  .history-filter-form {
    flex: 1 1 auto;
    min-width: 0;
  }

  .history-tool-group .form-select,
  .history-filter-form .form-select {
    flex: 1 1 auto;
    min-width: 4.5rem;
    height: 42px;
    min-height: 42px;
    font-size: 16px;
  }

  .history-toolbar-actions .btn-action {
    flex: 0 0 auto;
    height: 42px;
    min-height: 42px;
  }

  .history-table thead {
    display: none;
  }

  .history-table,
  .history-table tbody {
    display: block;
    width: 100%;
  }

  .history-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 0.65rem;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 1rem 0.95rem;
    background: #fff;
    border: var(--app-border-w) solid var(--app-line-strong);
    border-radius: 12px;
    box-shadow: none;
  }

  .history-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .history-table tbody td {
    border: 0 !important;
    padding: 0 !important;
    min-width: 0;
    background: transparent !important;
  }

  .history-table tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    white-space: nowrap;
    word-break: keep-all;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .history-table tbody td:nth-child(5) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    text-align: right;
    white-space: nowrap;
  }

  .history-table tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    font-size: 0.85rem;
    color: var(--app-muted);
    align-self: center;
  }

  .history-table tbody td:nth-child(1) {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    text-align: right;
    font-size: 0.8rem;
    color: #8b97a8;
  }

  .history-table tbody td:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 0.55rem 0.7rem !important;
    background: #f8fafc !important;
    border-radius: 10px;
  }

  .history-table .hist-period-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    min-height: 2.75rem;
    width: 100%;
    white-space: nowrap;
  }

  .history-table .request-detail-meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--app-muted);
    line-height: 1.2;
  }

  .history-table .request-detail-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--app-text);
    line-height: 1.25;
    text-align: left;
    min-width: 0;
  }

  .history-table tbody td:nth-child(6) {
    grid-column: 1 / -1;
    grid-row: 4;
    font-size: 0.88rem;
    color: #5a6b82;
    word-break: break-word;
  }

  .history-table tbody td:nth-child(6)::before {
    content: "신청 사유";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8b97a8;
    margin-bottom: 0.15rem;
  }

  .history-table tbody td:nth-child(7) {
    grid-column: 1 / -1;
    grid-row: 5;
    font-size: 0.88rem;
    word-break: break-word;
  }

  .history-table tbody td:nth-child(7)::before {
    content: "거절 사유";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8b97a8;
    margin-bottom: 0.15rem;
  }

  .history-table .hist-reject-cell {
    min-width: 0;
    max-width: none;
  }

  .history-table .hist-reject-edit .hist-reject-reason {
    min-height: 4rem;
    font-size: 16px;
  }

  .history-table .hist-reject-edit .hist-reject-save-btn {
    width: 100%;
    min-height: 42px;
    height: 42px;
  }

  .history-table tbody td:nth-child(8) {
    grid-column: 1 / -1;
    grid-row: 6;
    margin-top: 0.15rem;
  }

  .history-table .hist-delete-btn {
    width: 100%;
    min-height: 44px;
    height: 44px;
  }

  /* —— 교직원 명단 카드 (요청 관리와 동일 톤) —— */
  /* 1이름 2부서 3구분 4입사일 5법정 6조정 7부여 8사용 9잔여 10관리 */
  .staff-list tbody tr {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem 0.5rem;
  }

  .staff-list tbody td:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: center;
  }

  .staff-list tbody td:nth-child(1) strong {
    font-size: 1rem;
  }

  .staff-list tbody td:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .staff-list tbody td:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.85rem;
    color: var(--app-muted);
  }

  /* 입사일 | 잔여 — 요청사항과 같은 회색 패널 */
  .staff-list tbody td:nth-child(4),
  .staff-list tbody td:nth-child(9) {
    grid-row: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.65rem 0.6rem !important;
    background: #f8fafc !important;
  }

  .staff-list tbody td:nth-child(4) {
    grid-column: 1 / 3;
    border-radius: 10px 0 0 10px;
    padding-left: 0.75rem !important;
  }

  .staff-list tbody td:nth-child(9) {
    grid-column: 3 / 5;
    border-radius: 0 10px 10px 0;
    padding-right: 0.75rem !important;
  }

  /* 법정 | 조정 | 부여 | 사용 — 사유 영역 톤의 패널 */
  .staff-list tbody td:nth-child(5),
  .staff-list tbody td:nth-child(6),
  .staff-list tbody td:nth-child(7),
  .staff-list tbody td:nth-child(8) {
    grid-row: 4;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.65rem 0.35rem !important;
    background: #f8fafc !important;
    text-align: center;
  }

  .staff-list tbody td:nth-child(5) {
    grid-column: 1;
    border-radius: 10px 0 0 10px;
    padding-left: 0.65rem !important;
  }

  .staff-list tbody td:nth-child(6) {
    grid-column: 2;
  }

  .staff-list tbody td:nth-child(7) {
    grid-column: 3;
  }

  .staff-list tbody td:nth-child(8) {
    grid-column: 4;
    border-radius: 0 10px 10px 0;
    padding-right: 0.65rem !important;
  }

  .staff-list tbody td:nth-child(10) {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 0.15rem;
  }

  .staff-list tbody td:nth-child(4)::before,
  .staff-list tbody td:nth-child(5)::before,
  .staff-list tbody td:nth-child(6)::before,
  .staff-list tbody td:nth-child(7)::before,
  .staff-list tbody td:nth-child(8)::before,
  .staff-list tbody td:nth-child(9)::before {
    display: block;
    width: 100%;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8b97a8;
    line-height: 1.2;
    text-align: left;
  }

  .staff-list tbody td:nth-child(5)::before,
  .staff-list tbody td:nth-child(6)::before,
  .staff-list tbody td:nth-child(7)::before,
  .staff-list tbody td:nth-child(8)::before {
    text-align: center;
  }

  .staff-list tbody td:nth-child(4)::before { content: "입사일"; }
  .staff-list tbody td:nth-child(5)::before { content: "법정"; }
  .staff-list tbody td:nth-child(6)::before { content: "조정"; }
  .staff-list tbody td:nth-child(7)::before { content: "부여"; }
  .staff-list tbody td:nth-child(8)::before { content: "사용"; }
  .staff-list tbody td:nth-child(9)::before { content: "잔여"; }

  .staff-list {
    --staff-field-h: 42px;
    --staff-field-fs: 0.92rem;
  }

  .staff-list .form-control-sm,
  .staff-list .staff-hire-date,
  .staff-list .staff-num-input {
    width: 100%;
    max-width: 100%;
    height: var(--staff-field-h);
    min-height: var(--staff-field-h);
    font-size: var(--staff-field-fs);
    border-radius: 8px;
  }

  .staff-list .staff-num-input {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    text-align: center;
  }

  .staff-list .staff-leave-ro {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: var(--staff-field-h);
    min-height: var(--staff-field-h);
    margin: 0;
    font-size: 1.05rem;
    text-align: left;
  }

  .staff-list tbody td:nth-child(5) .staff-leave-ro,
  .staff-list tbody td:nth-child(7) .staff-leave-ro,
  .staff-list tbody td:nth-child(9) .staff-leave-ro {
    justify-content: center;
    text-align: center;
  }

  .staff-cell-num,
  .staff-cell-entitled,
  .staff-cell-statutory,
  .staff-cell-remain {
    width: auto;
    max-width: none;
    min-width: 0;
  }

  .staff-list .staff-role-badge {
    min-height: 2rem;
    padding: 0.35rem 0.7rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
  }

  .staff-row-actions {
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .staff-row-actions-row {
    display: flex;
    gap: 0.45rem;
    width: 100%;
  }

  .staff-row-actions-row form {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }

  .staff-row-actions-row .btn-action {
    width: 100%;
    flex: 1 1 0;
    min-height: 44px;
    height: 44px;
    min-width: 0;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .staff-list tbody td[style] {
    width: auto !important;
    min-width: 0 !important;
  }

  .manage-actions-col,
  .manage-actions-cell {
    min-width: 0;
  }

  .action-btns:not(.action-btns-stack) {
    width: 100%;
  }

  .action-btns:not(.action-btns-stack):not(.request-action-btns) .btn-action {
    flex: 1 1 calc(50% - 0.2rem);
  }

  .action-btns.request-action-btns .btn-action {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}

@media (min-width: 768px) {
  .admin-desc-mobile {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .member-list thead {
    display: none;
  }

  .member-list tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.65rem;
    padding: 0.95rem 0.2rem;
    border-bottom: var(--app-border-w) solid var(--app-line-strong);
  }

  .member-list tbody td {
    border: 0;
    padding: 0;
    min-width: 0;
  }

  .member-list tbody td:nth-child(1) {
    grid-column: 1;
  }

  .member-list tbody td:nth-child(2),
  .member-list tbody td:nth-child(3),
  .member-list tbody td:nth-child(5),
  .member-list tbody td:nth-child(6) {
    grid-column: 1;
    font-size: 0.85rem;
    color: var(--app-muted);
  }

  .member-list tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
  }

  .member-list tbody td:nth-child(7) {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
  }

  .my-request-actions .btn,
  .my-request-actions .btn-action {
    width: 100%;
    flex: 1 1 100%;
  }

  .action-btns-stack {
    min-width: 0;
    width: 100%;
  }

  .action-reject-row .reject-reason {
    min-width: 0;
  }

  .pending-mobile .approve-actions {
    min-width: 0;
  }

  .page-hero h1 {
    font-size: 1.35rem;
  }

  .fc-day-holiday-label {
    font-size: 0.55rem;
    padding: 0 1px 2px;
    letter-spacing: -0.03em;
  }

  .fc .fc-daygrid-day-number {
    padding: 2px 0 !important;
    font-size: 0.85rem;
  }
}

/* —— 모바일 최적화 (인증·동의·주요 UI) —— */
@media (max-width: 575.98px) {
  .login-page {
    align-items: flex-start;
    min-height: 100dvh;
    padding:
      max(0.85rem, env(safe-area-inset-top))
      max(0.85rem, env(safe-area-inset-right))
      max(1.25rem, env(safe-area-inset-bottom))
      max(0.85rem, env(safe-area-inset-left));
  }

  body.has-mobile-nav.is-auth-page .login-page,
  body.has-mobile-nav.is-auth-page .privacy-page {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
  }

  .login-wrap,
  .privacy-wrap {
    max-width: 100%;
  }

  .login-card,
  .privacy-card {
    padding: 1.25rem 1rem 1.15rem;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(21, 34, 56, 0.08);
  }

  .login-brand {
    margin-bottom: 1rem;
  }

  .login-brand .login-brand-logo {
    width: 3.75rem;
    height: 3.75rem;
    margin-bottom: 0.55rem;
  }

  .login-brand-org {
    font-size: 0.86rem;
  }

  .login-brand h1 {
    font-size: 1.28rem;
  }

  .login-brand-desc,
  .login-brand p {
    font-size: 0.86rem;
  }

  /* iOS 입력 확대 방지 */
  body.is-auth-page .form-control,
  body.is-auth-page .form-select {
    font-size: 16px;
    min-height: 46px;
  }

  .login-input-wrap .form-control {
    min-height: 46px;
    font-size: 16px;
  }

  .login-submit-btn,
  body.is-auth-page .btn-hada,
  body.is-auth-page .btn-login-admin,
  body.is-auth-page .btn-login-staff {
    min-height: 48px;
    font-size: 1rem;
  }

  .privacy-policy-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    min-height: 52px;
  }

  .privacy-policy-btn-title {
    font-size: 0.98rem;
  }

  .privacy-policy-btn-desc {
    font-size: 0.78rem;
  }

  .privacy-agree-box {
    padding: 0.9rem 0.95rem;
  }

  .privacy-agree-box .form-check {
    gap: 0.7rem;
  }

  .privacy-agree-box .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
  }

  .privacy-agree-box .form-check-label {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .auth-privacy-btn {
    width: 100%;
    min-height: 44px;
  }

  .privacy-body {
    font-size: 0.9rem;
  }

  .privacy-body h2 {
    font-size: 0.98rem;
    margin-top: 1.1rem;
  }

  .login-pwa-add {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    gap: 0.65rem;
  }

  .login-pwa-add-icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 11px;
  }

  .login-install-tip {
    display: none;
  }

  .login-install-tip img {
    display: none;
  }

  .my-request-top {
    flex-direction: column;
    align-items: stretch;
  }

  .my-request-aside {
    justify-content: flex-start;
    width: 100%;
  }

  .my-request-aside .cancel-btn,
  .my-request-aside .btn-action-danger,
  .my-request-aside .btn-action {
    flex: 1 1 auto;
    min-height: 42px;
    height: 42px;
  }

  .staff-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    width: 100%;
  }

  .staff-row-actions .btn-action,
  .staff-row-actions form,
  .staff-row-actions form .btn-action {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: calc(50% - 0.2rem);
    justify-content: center;
  }

  .staff-row-actions .btn-action {
    min-height: 40px;
    height: 40px;
  }

  .pick-list {
    grid-template-columns: 1fr;
    max-height: 260px;
  }

  .pick-item {
    padding: 0.55rem 0.65rem;
    min-height: 48px;
    align-items: center;
  }

  .app-footer-privacy {
    width: min(100%, 240px);
    min-height: 40px;
  }

  .history-tool-group,
  .history-confirm-group {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }

  .history-tool-group .form-select,
  .history-confirm-group .form-select {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    width: auto;
    height: 42px;
    min-height: 42px;
    font-size: 16px;
  }

  .history-confirm-group .history-confirm-btn,
  .history-toolbar-actions .btn-action {
    height: 42px;
    min-height: 42px;
  }

  .history-confirm-group .history-confirm-btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }

  .admin-tabs .nav-link {
    min-height: 3.15rem;
    padding: 0.35rem 0.55rem;
  }

  .panel {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  /* 앱 화면 iOS 입력 확대 방지·터치 영역 */
  .app-main .form-control,
  .app-main .form-select {
    font-size: 16px;
  }

  .app-main .btn:not(.btn-sm):not(.btn-action) {
    min-height: 44px;
  }

  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .modal-content {
    border-radius: 14px;
  }

  .modal-footer {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .modal-footer .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .container,
  .container-fluid {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .page-hero {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .leave-summary-grid {
    gap: 0.5rem;
    padding: 0.55rem;
  }

  .leave-stat {
    min-height: 5.6rem;
    padding: 0.8rem 0.85rem;
  }

  .payslip-status-grid {
    gap: 0.4rem;
    padding: 0.7rem;
  }

  .payslip-status-cell {
    min-height: 2.65rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.84rem;
    border-radius: 8px;
  }

  .payslip-status-legend-item {
    font-size: 0.72rem;
  }

  .payslip-status-board-head,
  .payslip-status-foot {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 379.98px) {
  .login-brand h1 {
    font-size: 1.18rem;
  }

  .staff-row-actions .btn-action,
  .staff-row-actions form,
  .staff-row-actions form .btn-action {
    flex: 1 1 100%;
    min-width: 100%;
  }
}

/* SaaS signup (DEST-only) */
.signup-org-wrap {
  max-width: 520px;
}

.signup-org-card .login-brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 0.55rem;
}

.signup-org-card .login-brand-top .login-brand-logo {
  margin: 0 !important;
}

.signup-org-card .login-brand-top .login-admin-badge {
  margin: 0 !important;
}

.signup-org-card .login-brand-top h1 {
  margin: 0 !important;
}

.signup-org-card .login-brand-desc {
  max-width: none;
  margin-top: 0.35rem;
}
