/* Unified navy header */
.sidebar-logo,
.topbar {
  color: #fff;
  background: linear-gradient(110deg, var(--sidebar-bg, #032b5d) 0%, #042f62 62%, #063d7a 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-logo {
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.06);
}

.topbar {
  box-shadow: 0 5px 18px rgba(3, 43, 93, 0.13);
}

.topbar h1,
.topbar .account-box strong,
.topbar .icon-button {
  color: #fff;
}

.topbar .account-box span {
  color: rgba(220, 236, 255, 0.78);
}

.topbar .notification-button,
.topbar .logout-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.topbar .notification-button:hover,
.topbar .notification-button[aria-expanded="true"],
.topbar .logout-button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.16);
}

.topbar .avatar {
  box-shadow: 0 0 0 3px rgba(180, 214, 255, 0.28);
}

.topbar .notification-panel {
  color: #102846;
}

/* My page sidebar */
body.mypage-mode .sidebar {
  background: linear-gradient(180deg, #032b5d 0%, #05274e 55%, #061f3c 100%);
}

body.mypage-mode .menu-list {
  padding: 18px 12px 34px;
}

.mypage-menu-heading {
  display: grid;
  gap: 4px;
  padding: 5px 12px 16px;
  color: #fff;
}

.mypage-menu-heading small {
  color: #78b9ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.mypage-menu-heading strong {
  font-size: 19px;
  letter-spacing: 0.5px;
}

.mypage-menu-home,
.mypage-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  color: rgba(238, 246, 255, 0.92);
  border: 0;
  cursor: pointer;
}

.mypage-menu-home {
  position: relative;
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(130, 189, 255, 0.22);
  border-radius: 10px;
  text-align: left;
  background: linear-gradient(135deg, rgba(25, 112, 216, 0.34), rgba(255, 255, 255, 0.05));
}

.mypage-menu-home > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: rgba(61, 143, 238, 0.45);
}

.mypage-menu-home svg,
.mypage-menu-item svg {
  width: 18px;
  height: 18px;
}

.mypage-menu-home b {
  align-self: end;
  font-size: 14px;
}

.mypage-menu-home small {
  color: rgba(210, 230, 251, 0.68);
  font-size: 9px;
}

.mypage-menu-home:hover {
  border-color: rgba(133, 197, 255, 0.48);
  background: linear-gradient(135deg, rgba(30, 126, 239, 0.52), rgba(255, 255, 255, 0.08));
}

.mypage-menu-divider {
  margin: 19px 2px 7px;
  padding: 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mypage-menu-divider span {
  position: relative;
  top: -8px;
  padding-right: 7px;
  color: rgba(171, 203, 238, 0.68);
  background: #05284f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.mypage-menu-item {
  min-height: 43px;
  gap: 11px;
  margin: 3px 0;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.mypage-menu-item > span {
  width: 24px;
  display: grid;
  place-items: center;
  color: #9cc8f7;
}

.mypage-menu-item b {
  font-size: 13px;
}

.mypage-menu-item em {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #ef5b62;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.mypage-menu-item:hover,
.mypage-menu-item.active {
  color: #fff;
  background: linear-gradient(135deg, #0d57c8, #1c70dd);
  box-shadow: 0 7px 16px rgba(0, 33, 78, 0.22);
}

.mypage-menu-item:hover > span,
.mypage-menu-item.active > span {
  color: #fff;
}

/* My page content */
.mypage-shell {
  display: grid;
  gap: 14px;
  color: #102846;
}

.mypage-content-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mypage-content-head small {
  display: block;
  margin-bottom: 4px;
  color: #1769d5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.mypage-content-head h2 {
  margin: 0;
  color: #092448;
  font-size: 25px;
  letter-spacing: -0.8px;
}

.mypage-content-head p {
  margin: 5px 0 0;
  color: #71849b;
  font-size: 12px;
  font-weight: 700;
}

.mypage-hero {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 25px 30px;
  border: 1px solid rgba(73, 157, 255, 0.3);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(69, 164, 255, 0.32), transparent 31%),
    linear-gradient(120deg, #032953 0%, #06457f 58%, #096ab8 100%);
  box-shadow: 0 14px 30px rgba(3, 43, 93, 0.16);
}

.mypage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: linear-gradient(rgba(139, 207, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 207, 255, 0.22) 1px, transparent 1px);
  background-size: 36px 36px;
}

.mypage-hero > * {
  position: relative;
  z-index: 1;
}

.mypage-hero small {
  color: #7ec7ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.mypage-hero h3 {
  margin: 8px 0 6px;
  font-size: 24px;
  letter-spacing: -0.6px;
}

.mypage-hero h3 strong {
  margin-left: 8px;
  color: #9fddff;
  font-size: 31px;
}

.mypage-hero p {
  margin: 0;
  color: rgba(230, 242, 255, 0.82);
  font-size: 12px;
}

.mypage-hero-actions {
  display: flex;
  gap: 9px;
}

.mypage-hero-actions button,
.leave-primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.mypage-hero-actions button:first-child,
.leave-primary-button {
  border-color: #237be2;
  background: linear-gradient(135deg, #0d57c8, #2578dd);
  box-shadow: 0 8px 18px rgba(13, 87, 200, 0.2);
}

.mypage-hero-actions svg,
.leave-primary-button svg {
  width: 17px;
  height: 17px;
}

.leave-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.leave-summary-grid article {
  position: relative;
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid #d8e3f0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 17px rgba(14, 46, 84, 0.045);
}

.leave-summary-grid article::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -20px;
  top: -22px;
  border-radius: 50%;
  background: #edf3fa;
}

.leave-summary-grid article.is-blue::after { background: #e4f0ff; }
.leave-summary-grid article.is-green::after { background: #e2f7ec; }
.leave-summary-grid article.is-amber::after { background: #fff1da; }
.leave-summary-grid article > * { position: relative; z-index: 1; }
.leave-summary-grid span { color: #61768f; font-size: 11px; font-weight: 900; }
.leave-summary-grid strong { color: #12365e; font-size: 24px; letter-spacing: -0.5px; }
.leave-summary-grid article.is-blue strong { color: #1769d5; }
.leave-summary-grid article.is-green strong { color: #159a5e; }
.leave-summary-grid article.is-amber strong { color: #db7f19; }
.leave-summary-grid small { color: #91a0b2; font-size: 10px; }

.mypage-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.mypage-overview-grid.is-manager {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

.leave-panel {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #d8e3f0;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(14, 46, 84, 0.045);
}

.leave-panel > header {
  min-height: 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e6edf5;
}

.leave-panel > header h3 {
  margin: 0;
  color: #0c2f59;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.leave-panel > header p {
  margin: 4px 0 0;
  color: #8797aa;
  font-size: 10px;
  font-weight: 700;
}

.leave-panel > header > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  color: #1769d5;
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.leave-panel > header > button svg {
  width: 14px;
  height: 14px;
}

.leave-request-list {
  display: grid;
}

.leave-request-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) 70px minmax(120px, 1fr) 120px minmax(92px, max-content);
  align-items: center;
  gap: 10px;
  min-height: 61px;
  border-bottom: 1px solid #edf2f7;
  color: #38516e;
  font-size: 11px;
}

.leave-request-row:last-child { border-bottom: 0; }
.leave-request-type { min-width: 0; display: flex; align-items: center; gap: 10px; }
.leave-request-type i { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #1769d5; background: #eaf3ff; font-style: normal; font-weight: 900; }
.leave-request-type span { min-width: 0; display: grid; gap: 4px; }
.leave-request-type strong { color: #163958; font-size: 12px; }
.leave-request-type small { overflow: hidden; color: #8293a6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.leave-request-days { color: #1769d5; font-weight: 900; }
.leave-request-reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leave-request-status-cell { display: grid; justify-items: start; gap: 4px; }
.leave-cancel-audit { display: grid; gap: 2px; color: #728398; font-size: 9px; font-weight: 800; white-space: nowrap; }
.leave-cancel-audit span:last-child:not(:first-child) { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.leave-reviewer { color: #8b9aac; text-align: right; }

.leave-status {
  min-width: 62px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #a36311;
  background: #fff0d5;
  font-size: 10px;
  font-weight: 900;
}

.leave-status.is-approved { color: #087443; background: #daf5e7; }
.leave-status.is-rejected { color: #c33c43; background: #ffe3e4; }
.leave-status.is-cancelled { color: #687b91; background: #edf1f5; }

.leave-small-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d7e1ed;
  border-radius: 7px;
  color: #415c78;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.leave-small-button.danger { color: #c7454b; border-color: #f0c8cb; background: #fff9f9; }
.leave-small-button.danger.solid { color: #fff; border-color: #c7454b; background: #c7454b; }
.leave-row-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.leave-action-locked { justify-self: end; color: #8a98a8; font-size: 10px; font-weight: 900; cursor: help; }

.leave-empty {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8b9bad;
  text-align: center;
}

.leave-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #58a0eb; background: #edf6ff; }
.leave-empty svg { width: 20px; height: 20px; }
.leave-empty strong { font-size: 12px; }

.leave-approval-count {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 10px;
}

.leave-approval-count strong { color: #1769d5; font-size: 32px; }
.leave-approval-count span { color: #637890; font-size: 11px; font-weight: 800; line-height: 1.45; }

.leave-month-controls,
.leave-year-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leave-month-controls button,
.leave-year-control button {
  width: 30px;
  height: 30px;
  border: 1px solid #d8e3ef;
  border-radius: 7px;
  color: #24547d;
  background: #fff;
  font-size: 19px;
  cursor: pointer;
}

.leave-month-controls strong,
.leave-year-control strong { min-width: 90px; color: #173d63; font-size: 12px; text-align: center; }

.leave-calendar-panel { padding-bottom: 20px; }
.leave-calendar-panel [data-leave-calendar-body] { transition: opacity 0.16s ease; }
.leave-calendar-panel.is-refreshing [data-leave-calendar-body] { opacity: 0.48; pointer-events: none; }
.leave-calendar-panel.is-refreshing .leave-month-controls button { cursor: wait; opacity: 0.55; }
.leave-calendar-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 13px; color: #4d6680; font-size: 10px; font-weight: 900; }
.leave-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.leave-calendar-legend i { width: 10px; height: 10px; border-radius: 3px; }
.leave-calendar-legend i.is-annual { background: #43b77a; }
.leave-calendar-legend i.is-half { background: #f59b32; }
.leave-calendar-legend small { margin-left: auto; color: #7d90a4; font-size: 10px; }
.leave-calendar-week,
.leave-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.leave-calendar-week { margin-top: 14px; border: 1px solid #dfe8f2; border-bottom: 0; border-radius: 9px 9px 0 0; background: #f5f8fc; }
.leave-calendar-week span { padding: 9px 4px; color: #60758d; font-size: 10px; font-weight: 900; text-align: center; }
.leave-calendar-week span:first-child { color: #e2595e; }
.leave-calendar-week span:last-child { color: #2672cf; }
.leave-calendar-grid { overflow: hidden; border-top: 1px solid #dfe8f2; border-left: 1px solid #dfe8f2; border-radius: 0 0 9px 9px; }
.leave-calendar-cell { min-width: 0; min-height: 96px; padding: 8px; border-right: 1px solid #dfe8f2; border-bottom: 1px solid #dfe8f2; background: #fff; }
.leave-calendar-cell.muted { color: #bac4cf; background: #fafbfd; }
.leave-calendar-cell.today { box-shadow: inset 0 0 0 2px #6aabf0; }
.leave-calendar-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.leave-calendar-cell-head > span { color: #36516e; font-size: 11px; font-weight: 900; }
.leave-calendar-quick-add { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 1px solid #bfd4eb; border-radius: 5px; color: #1769d5; background: #f4f9ff; font-size: 15px; font-weight: 900; line-height: 1; cursor: pointer; }
.leave-calendar-quick-add:hover { color: #fff; border-color: #1769d5; background: #1769d5; }
.leave-calendar-events { display: grid; gap: 3px; margin-top: 6px; }
.leave-calendar-event,
.leave-calendar-more { width: 100%; display: block; overflow: hidden; padding: 4px 5px; border: 0; border-radius: 5px; font-size: 9px; font-weight: 900; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.leave-calendar-event.is-annual { color: #087443; background: #e3f7ed; }
.leave-calendar-event.is-half { color: #a95000; background: #fff0d6; box-shadow: inset 0 0 0 1px #ffd598; }
.leave-calendar-event:hover { filter: brightness(0.96); transform: translateY(-1px); }
.leave-calendar-event:focus-visible,
.leave-calendar-more:focus-visible,
.leave-calendar-quick-add:focus-visible { outline: 2px solid #1769d5; outline-offset: 1px; }
.leave-calendar-more { color: #54708b; background: #eef3f8; text-align: center; }

.record-dialog.leave-calendar-detail-dialog:not(.lot-dialog):not(.community-dialog) { width: min(660px, calc(100vw - 32px)); max-width: min(660px, calc(100vw - 32px)); }
.leave-calendar-detail-dialog form,
.leave-calendar-day-dialog form { min-width: 0; overflow-y: auto; }
.leave-calendar-detail-dialog .dialog-head > div { display: grid; gap: 5px; }
.leave-calendar-detail-dialog .dialog-head p,
.leave-calendar-day-dialog .dialog-head p { margin: 0; color: #7a8fa5; font-size: 11px; font-weight: 800; }
.leave-calendar-detail-type { width: fit-content; min-height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.leave-calendar-detail-type.is-annual { color: #087443; background: #e3f7ed; }
.leave-calendar-detail-type.is-half { color: #a95000; background: #fff0d6; }
.leave-calendar-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.leave-calendar-detail-grid > div { min-width: 0; display: grid; gap: 6px; padding: 12px; border: 1px solid #e0e8f1; border-radius: 9px; background: #f8fbff; }
.leave-calendar-detail-grid > div.wide { grid-column: 1 / -1; }
.leave-calendar-detail-grid dt { color: #75899e; font-size: 10px; font-weight: 900; }
.leave-calendar-detail-grid dd { min-width: 0; margin: 0; color: #173d63; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.leave-calendar-detail-actions { align-items: center; }
.leave-calendar-detail-actions .leave-action-locked { justify-self: end; }
.record-dialog.leave-calendar-day-dialog:not(.lot-dialog):not(.community-dialog) { width: min(560px, calc(100vw - 32px)); max-width: min(560px, calc(100vw - 32px)); }
.leave-calendar-day-list { display: grid; gap: 7px; margin-top: 16px; }
.leave-calendar-day-list > button { min-height: 54px; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #dce6f0; border-radius: 9px; color: #284c6e; background: #fff; text-align: left; cursor: pointer; }
.leave-calendar-day-list > button:hover { border-color: #9fc0e4; background: #f5faff; }
.leave-calendar-day-list i { width: 10px; height: 32px; border-radius: 5px; }
.leave-calendar-day-list i.is-annual { background: #43b77a; }
.leave-calendar-day-list i.is-half { background: #f59b32; }
.leave-calendar-day-list span { min-width: 0; display: grid; gap: 3px; }
.leave-calendar-day-list strong { overflow: hidden; color: #173d63; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.leave-calendar-day-list small { color: #7b8fa4; font-size: 10px; font-weight: 800; }
.leave-calendar-day-list em { color: #1769d5; font-size: 11px; font-style: normal; font-weight: 900; }

.leave-employee-table { display: grid; margin-top: 10px; }
.leave-employee-head,
.leave-employee-table > button { min-width: 860px; display: grid; grid-template-columns: 1.1fr 1.5fr repeat(4, 0.7fr) 0.8fr; align-items: center; gap: 8px; text-align: left; }
.leave-employee-head { min-height: 38px; padding: 0 12px; color: #6c8096; background: #f4f7fb; border-radius: 7px; font-size: 10px; font-weight: 900; }
.leave-employee-table > button { min-height: 52px; padding: 0 12px; border: 0; border-bottom: 1px solid #edf2f7; color: #38516e; background: #fff; font-size: 11px; cursor: pointer; }
.leave-employee-table > button:hover { background: #f7fbff; }
.leave-employee-table > button strong { color: #123b61; }
.leave-employee-table > button .is-remaining { color: #11985b; font-weight: 900; }
.leave-employee-table > button span:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 3px; color: #1769d5; font-weight: 900; }
.leave-employee-table svg { width: 13px; height: 13px; }


/* Leave change history */
.leave-history-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) repeat(3, minmax(145px, 0.8fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce6f1;
  border-radius: 11px;
  background: #f7faff;
}

.leave-history-filter label { display: grid; gap: 6px; }
.leave-history-filter label > span { color: #60758d; font-size: 10px; font-weight: 900; }
.leave-history-filter input,
.leave-history-filter select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #cfdbe8; border-radius: 7px; color: #183b60; background: #fff; font: inherit; font-size: 11px; font-weight: 800; }
.leave-history-filter-actions { display: flex; gap: 7px; }
.leave-history-filter-actions button,
.leave-history-export { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 13px; border: 1px solid #b8cce2; border-radius: 7px; color: #315b82; background: #fff; font-size: 10px; font-weight: 900; cursor: pointer; }
.leave-history-filter-actions button[type="submit"],
.leave-history-export { color: #fff; border-color: #0d57c8; background: linear-gradient(135deg, #0d57c8, #1769d5); }
.leave-history-export svg { width: 15px; height: 15px; }
.leave-history-result-head { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.leave-history-result-head > div { display: flex; align-items: baseline; gap: 8px; }
.leave-history-result-head strong { color: #0d57c8; font-size: 18px; }
.leave-history-result-head span,
.leave-history-result-head small { color: #7c8fa4; font-size: 10px; font-weight: 800; }
.leave-history-table { overflow-x: auto; border: 1px solid #dce5ef; border-radius: 9px; }
.leave-history-head,
.leave-history-row { min-width: 1080px; display: grid; grid-template-columns: 120px 130px 90px 180px minmax(260px, 1fr) 110px 70px; align-items: center; gap: 10px; padding: 0 13px; }
.leave-history-head { min-height: 40px; color: #fff; background: #032b5d; font-size: 10px; font-weight: 900; }
.leave-history-head.can-delete,
.leave-history-row.can-delete { min-width: 1160px; grid-template-columns: 120px 130px 90px 180px minmax(260px, 1fr) 110px 70px 64px; }
.leave-history-row { min-height: 62px; border-bottom: 1px solid #edf2f7; color: #38516e; background: #fff; font-size: 10px; }
.leave-history-row:last-child { border-bottom: 0; }
.leave-history-row:hover { background: #f8fbff; }
.leave-history-row.is-deleted { background: #fffbfb; }
.leave-history-employee,
.leave-history-period { min-width: 0; display: grid; gap: 4px; }
.leave-history-employee strong,
.leave-history-period strong { overflow: hidden; color: #153c61; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.leave-history-employee small,
.leave-history-period small { overflow: hidden; color: #8394a7; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.leave-history-action { min-width: 62px; min-height: 25px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 999px; color: #1769d5; background: #e8f2ff; font-size: 9px; font-style: normal; font-weight: 900; }
.leave-history-action.is-approved { color: #087443; background: #daf5e7; }
.leave-history-action.is-rejected,
.leave-history-action.is-delete { color: #c33c43; background: #ffe3e4; }
.leave-history-action.is-cancel { color: #687b91; background: #edf1f5; }
.leave-history-action.is-balance { color: #7355b7; background: #eee8ff; }
.leave-history-detail { overflow: hidden; color: #536b84; text-overflow: ellipsis; white-space: nowrap; }
.leave-history-actor { color: #183f66; font-weight: 900; }
.leave-history-target { color: #8a9bad; font-family: Consolas, monospace; text-align: right; }
.leave-history-delete-cell { display: flex; justify-content: flex-end; }
.leave-history-delete-cell button { min-height: 28px; padding: 0 9px; border: 1px solid #efb6ba; border-radius: 6px; color: #b9252e; background: #fff4f4; font-size: 9px; font-weight: 900; cursor: pointer; }
.leave-history-delete-cell button:hover { color: #fff; border-color: #c9363f; background: #c9363f; }
.leave-history-delete-cell button:disabled { opacity: .55; cursor: wait; }

.leave-approval-summary {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border: 1px solid #cfe1f6;
  border-radius: 13px;
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
}
.leave-approval-summary > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #1769d5; background: #fff; }
.leave-approval-summary svg { width: 21px; height: 21px; }
.leave-approval-summary div { display: grid; gap: 3px; }
.leave-approval-summary small { color: #617a95; font-size: 10px; font-weight: 900; }
.leave-approval-summary strong { color: #0d57c8; font-size: 23px; }
.leave-approval-summary p { margin: 0 0 0 auto; color: #6f8298; font-size: 11px; font-weight: 700; }
.leave-approval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 12px; }
.leave-approval-card { padding: 17px; border: 1px solid #d9e4ef; border-radius: 12px; background: #fff; box-shadow: 0 6px 17px rgba(14, 46, 84, 0.045); }
.leave-approval-card header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #edf2f7; }
.leave-approval-card header div { display: grid; gap: 4px; }
.leave-approval-card header strong { color: #123b61; font-size: 15px; }
.leave-approval-card header div span { color: #7f91a5; font-size: 10px; }
.leave-approval-card dl { display: grid; grid-template-columns: 78px minmax(0, 1fr); margin: 10px 0; }
.leave-approval-card dt,
.leave-approval-card dd { min-height: 34px; display: flex; align-items: center; margin: 0; border-bottom: 1px solid #f0f3f7; font-size: 11px; }
.leave-approval-card dt { color: #6c8198; font-weight: 900; }
.leave-approval-card dd { color: #213f5d; font-weight: 800; }
.leave-approval-card > div:last-child { display: flex; justify-content: flex-end; gap: 7px; }
.leave-reject-button,
.leave-approve-button { min-width: 78px; min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 7px; font-size: 11px; font-weight: 900; cursor: pointer; }
.leave-reject-button { color: #c33e45; border: 1px solid #efc9cc; background: #fff8f8; }
.leave-approve-button { color: #fff; border: 1px solid #14965b; background: #159c5f; }
.leave-approve-button svg { width: 14px; height: 14px; }
.leave-approval-empty { grid-column: 1 / -1; min-height: 280px; border: 1px solid #dbe6ef; border-radius: 13px; background: #fff; }

.mypage-profile-hero { min-height: 125px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 19px; padding: 20px 24px; border: 1px solid #cfdef0; border-radius: 14px; background: linear-gradient(135deg, #edf6ff, #fff); }
.mypage-profile-hero .profile-photo-circle { width: 78px; height: 78px; }
.mypage-profile-hero h3 { margin: 0; color: #0b315d; font-size: 23px; }
.mypage-profile-hero p { margin: 5px 0; color: #55718f; font-size: 12px; font-weight: 800; }
.mypage-profile-hero div > span { color: #8b9bae; font-size: 10px; }
.mypage-profile-grid { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 0.75fr) minmax(390px, 1.2fr); gap: 14px; }
.mypage-profile-list { display: grid; grid-template-columns: 100px minmax(0, 1fr); margin: 8px 0 0; }
.mypage-profile-list dt,
.mypage-profile-list dd { min-height: 41px; display: flex; align-items: center; margin: 0; border-bottom: 1px solid #edf2f7; font-size: 11px; }
.mypage-profile-list dt { color: #627991; font-weight: 900; }
.mypage-profile-list dd { color: #173a5e; font-weight: 800; overflow-wrap: anywhere; }
.mypage-password-form { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 13px; }
.mypage-password-form label { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 9px; }
.mypage-password-form label > span { color: #526b84; font-size: 11px; font-weight: 900; }
.mypage-password-form input { min-height: 39px; border: 1px solid #d5e0ec; border-radius: 7px; background: #fbfdff; }
.mypage-password-form button { min-height: 41px; margin-top: 3px; }

.mypage-profile-hero-premium {
  overflow: hidden;
  border-color: #c6dbf2;
  background:
    radial-gradient(circle at 84% 18%, rgba(89, 169, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #eaf5ff 0%, #f8fbff 56%, #ffffff 100%);
  box-shadow: 0 10px 26px rgba(13, 64, 116, 0.07);
}

.mypage-profile-identity small {
  color: #1d70d1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.mypage-profile-identity > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mypage-profile-identity > div span {
  color: #7890aa;
  font-size: 10px;
  font-weight: 800;
}

.mypage-profile-identity > div em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #087443;
  background: #dcf5e8;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.mypage-profile-grid-integrated {
  grid-template-columns: minmax(310px, 1fr) minmax(270px, 0.78fr) minmax(390px, 1.16fr);
}

.mypage-info-panel,
.mypage-account-panel,
.mypage-security-panel {
  min-height: 100%;
}

.mypage-security-note {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid #dbe9f7;
  border-radius: 9px;
  color: #2368aa;
  background: #f2f8ff;
}

.mypage-security-note > svg {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
}

.mypage-security-note > span {
  display: grid;
  gap: 3px;
}

.mypage-security-note strong {
  color: #27577f;
  font-size: 10px;
}

.mypage-security-note small {
  color: #7890a8;
  font-size: 9px;
}

.mypage-leave-section {
  display: grid;
  gap: 14px;
  margin-top: 5px;
  padding: 22px;
  border: 1px solid #d5e2ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6faff 0%, #f9fbfd 100%);
}

.mypage-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mypage-section-heading small {
  color: #1870d6;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.mypage-section-heading h3 {
  margin: 4px 0;
  color: #10365d;
  font-size: 19px;
}

.mypage-section-heading p {
  margin: 0;
  color: #788da3;
  font-size: 10px;
  font-weight: 700;
}

.mypage-leave-heading-actions {
  display: flex;
  gap: 8px;
}

.mypage-leave-heading-actions button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #aac8e8;
  border-radius: 8px;
  color: #1c5d9b;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.mypage-leave-heading-actions button:first-child {
  color: #fff;
  border-color: #1769d5;
  background: linear-gradient(135deg, #0e59c9, #2478df);
  box-shadow: 0 7px 16px rgba(23, 105, 213, 0.18);
}

.mypage-leave-heading-actions svg {
  width: 14px;
  height: 14px;
}

.mypage-loading { min-height: 360px; display: flex; align-items: center; justify-content: center; gap: 11px; color: #617790; }
.mypage-loading > span { width: 22px; height: 22px; border: 3px solid #d7e8fb; border-top-color: #1769d5; border-radius: 50%; animation: leave-spin 0.8s linear infinite; }
.mypage-loading.is-error { flex-direction: column; color: #c13c44; }
.mypage-loading button { min-height: 34px; padding: 0 13px; border: 1px solid #d6e1ed; border-radius: 7px; background: #fff; }
@keyframes leave-spin { to { transform: rotate(360deg); } }

/* Dialogs */
.leave-request-dialog { width: min(720px, calc(100vw - 32px)); }
.leave-request-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.leave-request-form label { display: grid; gap: 7px; }
.leave-request-form label > span { color: #294b6b; font-size: 11px; font-weight: 900; }
.leave-request-form label > span small { color: #91a0b1; font-size: 9px; }
.leave-request-form input,
.leave-request-form select,
.leave-request-form textarea { width: 100%; min-width: 0; border: 1px solid #d4dfec; border-radius: 8px; background: #fbfdff; }
.leave-request-form input,
.leave-request-form select { min-height: 42px; }
.leave-request-form textarea { padding: 11px; resize: vertical; }
.leave-request-form .wide { grid-column: 1 / -1; }
.leave-request-guide { grid-column: 1 / -1; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 9px; color: #335879; background: #f0f7ff; }
.leave-request-guide > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #1769d5; background: #fff; }
.leave-request-guide svg { width: 18px; height: 18px; }
.leave-request-guide div { display: grid; gap: 4px; }
.leave-request-guide strong { font-size: 12px; }
.leave-request-guide small { color: #7e92a7; font-size: 9px; }
.record-dialog.leave-employee-dialog:not(.lot-dialog):not(.community-dialog) {
  width: min(1280px, calc(100vw - 32px));
  max-width: min(1280px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow: auto;
}
.leave-employee-dialog .leave-panel { overflow-x: auto; }
.leave-employee-dialog .leave-summary-grid { margin: 14px 0; }
.leave-balance-edit { display: flex; justify-content: flex-end; margin: -4px 0 10px; }
.leave-balance-edit button { min-height: 34px; padding: 0 12px; border: 1px solid #aac8e9; border-radius: 7px; color: #1769d5; background: #f5faff; font-size: 10px; font-weight: 900; }

@media (max-width: 1180px) {
  .mypage-overview-grid.is-manager,
  .mypage-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .leave-employee-table { overflow-x: auto; }
  .leave-history-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-history-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 820px) {
  .topbar { padding-left: 14px; padding-right: 10px; }
  .topbar h1 { font-size: 19px; }
  body.mypage-mode .menu-list { padding-top: 14px; }
  .mypage-content-head { align-items: flex-start; flex-direction: column; }
  .mypage-content-head > div:last-child { width: 100%; }
  .mypage-content-head .leave-primary-button { width: 100%; }
  .mypage-content-head h2 { font-size: 22px; }
  .mypage-hero { min-height: 0; align-items: stretch; flex-direction: column; padding: 21px; }
  .mypage-hero h3 { font-size: 20px; }
  .mypage-hero h3 strong { display: block; margin: 5px 0 0; font-size: 28px; }
  .mypage-hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .leave-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leave-summary-grid article { min-height: 96px; padding: 14px; }
  .leave-summary-grid strong { font-size: 21px; }
  .leave-panel { padding: 15px; }
  .leave-panel > header { align-items: flex-start; flex-direction: column; }
  .leave-request-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 11px 0; }
  .leave-request-type { grid-column: 1 / -1; }
  .leave-request-reason { grid-column: 1 / -1; white-space: normal; }
  .leave-request-row > span:nth-of-type(3) { justify-self: end; }
  .leave-request-status-cell { justify-items: end; }
  .leave-cancel-audit { max-width: 100%; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  .leave-cancel-audit span:last-child:not(:first-child) { max-width: 100%; white-space: normal; }
  .leave-history-filter { grid-template-columns: minmax(0, 1fr); }
  .leave-history-filter-actions { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
  .leave-history-result-head { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .leave-history-result-head > div { flex-wrap: wrap; }
  .leave-row-actions { justify-self: end; }
  .leave-reviewer,
  .leave-small-button,
  .leave-action-locked { justify-self: end; }
  .leave-calendar-week,
  .leave-calendar-grid { min-width: 650px; }
  .leave-calendar-panel { overflow-x: auto; }
  .leave-calendar-cell { min-height: 82px; padding: 6px; }
  .leave-approval-summary { align-items: flex-start; flex-wrap: wrap; }
  .leave-approval-summary p { width: 100%; margin: 0; }
  .leave-approval-grid { grid-template-columns: minmax(0, 1fr); }
  .mypage-profile-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .mypage-profile-hero label { grid-column: 1 / -1; width: 100%; }
  .mypage-profile-hero .profile-photo-circle { width: 66px; height: 66px; }
  .mypage-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .mypage-password-form label { grid-template-columns: 1fr; }
  .mypage-leave-section { padding: 15px; border-radius: 13px; }
  .mypage-section-heading { align-items: stretch; flex-direction: column; }
  .mypage-leave-heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mypage-leave-heading-actions button { min-height: 42px; }
  .leave-request-dialog { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); }
  .leave-request-form { grid-template-columns: 1fr; }
  .leave-request-form .wide,
  .leave-request-guide { grid-column: auto; }
  .record-dialog.leave-employee-dialog:not(.lot-dialog):not(.community-dialog) { width: calc(100vw - 18px); max-width: calc(100vw - 18px); max-height: calc(100dvh - 18px); padding: 14px; }
  .leave-employee-dialog .leave-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 460px) {
  .leave-summary-grid { gap: 8px; }
  .leave-summary-grid article { min-height: 91px; }
  .leave-summary-grid span { font-size: 10px; }
  .leave-summary-grid strong { font-size: 19px; }
  .leave-summary-grid small { font-size: 8px; }
  .mypage-hero-actions { grid-template-columns: 1fr; }
  .mypage-leave-heading-actions { grid-template-columns: 1fr; }
  .mypage-profile-hero-premium { grid-template-columns: 1fr; text-align: center; }
  .mypage-profile-hero-premium .profile-photo-circle { margin: 0 auto; }
  .mypage-profile-identity > div { justify-content: center; }
  .leave-calendar-week,
  .leave-calendar-grid { min-width: 600px; }
}

/* LEAVE APPROVAL DELAY STATUS START */
.leave-approval-card.is-delayed {
  border-color: #f0bd76;
  box-shadow: 0 7px 20px rgba(190, 111, 21, 0.09);
}

.leave-approval-state {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 5px;
}

.leave-approval-waiting {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf3f9;
  color: #647a92;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.leave-approval-waiting.is-delayed {
  background: #fff1df;
  color: #bd6414;
}

@media (max-width: 760px) {
  .leave-approval-card header {
    gap: 10px;
  }

  .leave-approval-state {
    justify-items: start;
  }
}
/* LEAVE APPROVAL DELAY STATUS END */



/* 2026-08-24: 직원 연차 대리등록·변경이력 다중선택 */
.leave-summary-grid article.is-green.is-negative { background: #fff7f5; }
.leave-summary-grid article.is-green.is-negative::after { background: #fee8e3; }
.leave-summary-grid article.is-green.is-negative strong { color: #c43d2a; }
.leave-history-select-head,
.leave-history-date { display: flex; align-items: center; gap: 7px; }
.leave-history-select-head input,
.leave-history-date input { width: 15px; height: 15px; accent-color: #1769d5; cursor: pointer; }
.leave-history-bulk-actions { display: flex !important; align-items: center !important; gap: 8px !important; }
.leave-history-bulk-actions button { min-height: 31px; padding: 0 11px; border: 1px solid #e3a5aa; border-radius: 6px; color: #b82932; background: #fff5f5; font-size: 10px; font-weight: 900; cursor: pointer; }
.leave-history-bulk-actions button:hover:not(:disabled) { color: #fff; border-color: #c9363f; background: #c9363f; }
.leave-history-bulk-actions button:disabled { opacity: .45; cursor: not-allowed; }
.leave-history-action.is-record { color: #0b6b56; background: #dcf5ec; }
.leave-proxy-dialog { width: min(650px, calc(100vw - 24px)); }
.leave-proxy-dialog .leave-request-guide { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .leave-history-bulk-actions { width: 100%; justify-content: space-between; }
  .leave-history-bulk-actions button { min-height: 36px; }
}

/* 2026-08-24: 마이페이지 가독성·잔여연차 단계 색상 */
.leave-employee-table > button .is-remaining {
  width: fit-content;
  min-width: 48px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #118252;
  background: #e7f7ef;
}
.leave-employee-table > button .is-remaining.is-warning {
  color: #b65d08;
  background: #fff0d6;
}
.leave-employee-table > button .is-remaining.is-critical {
  color: #bd2d36;
  background: #ffe3e5;
}
.mypage-menu-heading small,
.mypage-menu-home small,
.mypage-menu-divider span { font-size: 10px; }
.mypage-menu-item b { font-size: 14px; }
.mypage-content-head small { font-size: 10px; }
.mypage-content-head p,
.mypage-hero p { font-size: 13px; }
.mypage-hero small { font-size: 11px; }
.mypage-hero-actions button,
.leave-primary-button { font-size: 13px; }
.leave-summary-grid span { font-size: 12px; }
.leave-summary-grid small { font-size: 11px; }
.leave-panel > header p,
.leave-panel > header > button { font-size: 12px; }
.leave-request-row,
.leave-approval-card dt,
.leave-approval-card dd { font-size: 12px; }
.leave-request-type strong { font-size: 13px; }
.leave-request-type small,
.leave-status,
.leave-small-button,
.leave-action-locked,
.leave-calendar-week span,
.leave-calendar-event,
.leave-calendar-more,
.leave-history-filter label > span,
.leave-history-filter-actions button,
.leave-history-export,
.leave-history-head,
.leave-history-row,
.leave-history-action,
.leave-history-delete-cell button,
.leave-approval-card header div span,
.mypage-profile-hero div > span,
.mypage-section-heading p,
.mypage-leave-heading-actions button,
.leave-request-guide small,
.leave-balance-edit button { font-size: 11px; }
.leave-cancel-audit,
.leave-history-employee small,
.leave-history-period small { font-size: 10px; }
.leave-calendar-cell-head > span,
.leave-employee-table > button,
.leave-history-filter input,
.leave-history-filter select,
.leave-history-employee strong,
.leave-history-period strong,
.mypage-profile-list dt,
.mypage-profile-list dd,
.mypage-password-form label > span,
.leave-request-form label > span,
.leave-request-guide strong { font-size: 12px; }
.leave-employee-head { font-size: 11px; }
.mypage-profile-identity small,
.mypage-section-heading small { font-size: 9px; }
.mypage-security-note strong,
.mypage-section-heading p { font-size: 11px; }
.mypage-security-note small { font-size: 10px; }

