:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #6b7785;
  --line: #dce2e8;
  --accent: #0f7f77;
  --accent-weak: #e0f2ef;
  --danger: #b84545;
  --danger-weak: #feeaea;
  --warn: #946200;
  --warn-weak: #fff6dc;
  --success: #1d784f;
  --success-weak: #e8f7ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Pretendard", "SUIT", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, #e9eef5 0%, transparent 34%),
    radial-gradient(circle at 100% 0%, #edf4f2 0%, transparent 28%),
    var(--bg);
}

.page-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.page-header {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.page-header h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.tabs {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.tab-link {
  text-decoration: none;
  color: #77818f;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
}

.tab-link.active {
  color: #2a333c;
  border-color: #2a333c;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: #e9eef4;
  font-size: 13px;
  font-weight: 600;
}

.top-button {
  border: 1px solid #c9d3dd;
  background: #fff;
  color: #2a3440;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.top-button:hover {
  border-color: #a8b5c2;
}

.top-button.danger {
  border-color: #e8b7b7;
  color: #943636;
  background: #fff8f8;
}

.password-change-dropdown {
  position: relative;
}

.password-change-dropdown summary {
  list-style: none;
}

.password-change-dropdown summary::-webkit-details-marker {
  display: none;
}

.password-change-dropdown[open] summary {
  border-color: #a8b5c2;
}

.password-change-form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(27, 39, 53, 0.16);
}

.password-change-form label {
  font-size: 12px;
}

.password-change-form input {
  padding: 8px 10px;
}

.password-change-form button {
  justify-self: end;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
  font-size: 14px;
}

.notice-success {
  background: var(--success-weak);
  color: var(--success);
  border-color: #bfe5d1;
}

.notice-error {
  background: var(--danger-weak);
  color: var(--danger);
  border-color: #f3bcbc;
}

.notice-warn {
  background: var(--warn-weak);
  color: var(--warn);
  border-color: #f1d793;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  padding: 20px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.panel h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stats-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafbfd;
}

.stat-card.emphasis {
  border-color: #b6e3dd;
  background: var(--accent-weak);
}

.stat-title {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.leave-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.leave-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  background: #f9fbfd;
  cursor: pointer;
}

.leave-card:hover {
  border-color: #b5c5d5;
}

.leave-card.active {
  border-color: #9fcbc6;
  background: #f0fbf9;
  box-shadow: 0 0 0 1px #b9dfdb inset;
}

.leave-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.leave-card-value {
  color: var(--muted);
  font-size: 14px;
}

.request-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #3f4a56;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ced8e2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7cbdb6;
  box-shadow: 0 0 0 3px rgba(15, 127, 119, 0.12);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.form-footer small {
  color: var(--muted);
}

button {
  cursor: pointer;
}

.request-form button {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.leave-range-row {
  border: 1px solid #cfdae6;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fbfdff;
}

.leave-range-label {
  font-size: 12px;
  color: #6a7786;
  margin-bottom: 4px;
}

.leave-range-value {
  font-size: 14px;
  font-weight: 700;
  color: #2d3b4a;
  letter-spacing: -0.01em;
}

.leave-range-value.placeholder {
  color: #8a97a7;
  font-weight: 600;
}

.request-form .open-calendar-btn {
  border: 1px solid #b9cbdf;
  background: #f7fafc;
  color: #2d4a66;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.leave-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 0;
}

.leave-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 44, 0.52);
}

.leave-modal-panel {
  width: min(896px, calc(100vw - 24px));
  max-height: calc(100vh - 12px);
  overflow: auto;
  position: relative;
  border-radius: 24px;
  background: #f7f8fa;
  border: 1px solid #e1e7ee;
  box-shadow: 0 30px 60px rgba(20, 31, 44, 0.24);
  padding: clamp(18px, 3.4vw, 43px) clamp(18px, 4.3vw, 48px) clamp(14px, 2.4vw, 24px);
}

.leave-modal-close {
  position: absolute;
  right: clamp(12px, 1.7vw, 22px);
  top: clamp(10px, 1.7vw, 20px);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #e4e6ea;
  color: #8f98a4;
  font-size: 15px;
  font-weight: 700;
}

.leave-modal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #808892;
  font-size: clamp(10px, 1.08vw, 12px);
  margin-bottom: 10px;
}

.leave-modal-meta strong {
  color: #3f4953;
  font-size: inherit;
  font-weight: 700;
}

.leave-modal-title {
  margin: 8px 0 0;
  color: #39434d;
  font-size: clamp(24px, 2.9vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.leave-modal-sub {
  margin: clamp(6px, 1.2vw, 10px) 0 0;
  color: #7b848f;
  font-size: clamp(12px, 1.7vw, 16px);
  font-weight: 600;
}

.leave-modal-nav {
  margin-top: clamp(14px, 2.2vw, 27px);
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: clamp(6px, 1.1vw, 11px);
}

.leave-modal-nav-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #7a848f;
  font-size: 27px;
  line-height: 1;
  padding: 0;
}

.leave-modal-nav-btn:hover {
  background: #e9edf1;
}

.leave-modal-months-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(11px, 1.8vw, 24px);
  text-align: center;
}

.leave-modal-month-label {
  color: #404a54;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.leave-modal-months {
  margin-top: clamp(8px, 1.4vw, 14px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(11px, 1.8vw, 24px);
}

.leave-month-grid {
  min-width: 0;
}

.leave-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-bottom: clamp(8px, 1vw, 10px);
}

.leave-weekdays span {
  text-align: center;
  color: #c1c5cb;
  font-size: clamp(10px, 1.08vw, 11px);
  font-weight: 700;
}

.leave-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.leave-day-btn {
  border: none;
  border-radius: 10px;
  min-height: clamp(30px, 4.4vw, 45px);
  font-size: clamp(14px, 1.8vw, 19px);
  font-weight: 700;
  color: #404952;
  background: transparent;
}

.leave-day-btn:hover:not(:disabled) {
  background: #eaf5ee;
}

.leave-day-btn.outside {
  color: #c7ccd3;
}

.leave-day-btn.weekend:not(.outside) {
  color: #8f98a4;
}

.leave-day-btn.today {
  color: #16af2f;
}

.leave-day-btn.in-range {
  background: #cce8d3;
}

.leave-day-btn.range-start,
.leave-day-btn.range-end,
.leave-day-btn.range-single {
  background: #10b625;
  color: #fff;
}

.leave-day-btn:disabled {
  cursor: default;
  opacity: 0.75;
}

.leave-modal-summary {
  margin-top: clamp(11px, 1.6vw, 14px);
  border: 1px solid #d9e7dd;
  background: #ecf8ee;
  border-radius: 14px;
  padding: 10px 11px;
}

.leave-summary-title {
  color: #2f3944;
  font-size: 14px;
  font-weight: 700;
}

.leave-summary-days {
  color: #4c5c6e;
  margin-top: 4px;
  font-size: 12px;
}

.leave-modal-actions {
  margin-top: clamp(11px, 1.6vw, 14px);
}

.leave-apply-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  min-height: clamp(38px, 5vw, 46px);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #0ac300 0%, #0dca8c 55%, #22b8c5 100%);
}

.leave-apply-btn:disabled {
  background: #cfd8de;
  color: #6a7581;
}

.modal-open {
  overflow: hidden;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.member-sort-head h3 {
  margin: 0;
}

.member-sort-form {
  margin: 0;
  display: inline-flex;
  align-items: end;
  gap: 8px;
}

.member-sort-form label {
  gap: 4px;
  font-size: 12px;
}

.member-sort-form select {
  min-width: 132px;
  min-height: 36px;
}

.member-sort-form button {
  border: 1px solid #c6d2de;
  background: #f7fafc;
  color: #33485f;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.history-summary {
  color: var(--muted);
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid #e5eaef;
  text-align: left;
  padding: 11px 12px;
  font-size: 14px;
  vertical-align: top;
}

th {
  background: #f7f9fb;
  color: #43515f;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: none;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.status-pending {
  background: #fff5dd;
  color: #a47000;
}

.status-approved {
  background: #e8f8ee;
  color: #1f8a59;
}

.status-rejected {
  background: #fde8e8;
  color: #a53a3a;
}

.status-cancelled {
  background: #eef2f7;
  color: #5f6f82;
}

.missing-time {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #b12e2e;
  background: #ffe9e9;
  border: 1px solid #f2b7b7;
}

.admin-attendance-work-date {
  display: grid;
  gap: 4px;
}

.admin-attendance-leave-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #9d3b3b;
  background: #fdeaea;
  border: 1px solid #efc2c2;
  width: fit-content;
}

.review-form {
  display: grid;
  gap: 8px;
}

.review-form input {
  min-width: 180px;
}

.review-buttons {
  display: flex;
  gap: 6px;
}

.review-buttons button {
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
}

.review-buttons .approve {
  background: #d8f2e6;
  color: #1e7a4f;
}

.review-buttons .reject {
  background: #fde4e4;
  color: #ab4040;
}

.attendance-edit-btn {
  border: 1px solid #b9c8d8;
  border-radius: 8px;
  background: #f7fbff;
  color: #31536f;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.attendance-edit-btn:hover {
  border-color: #95acc5;
  background: #eef5fc;
}

.attendance-edit-meta {
  margin-top: -2px;
  margin-bottom: 8px;
}

.attendance-edit-panel {
  width: min(480px, calc(100vw - 24px));
}

.login-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 24px;
}

.login-card h1 {
  margin: 0;
  font-size: 32px;
}

.login-help {
  color: var(--muted);
  margin: 8px 0 16px;
  font-size: 12px;
}

.login-help strong {
  color: var(--text);
  font-weight: 800;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form button {
  border: none;
  border-radius: 10px;
  padding: 11px;
  background: #1c3f72;
  color: #fff;
  font-weight: 700;
  margin-top: 4px;
}

.login-logo-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.login-logo-image {
  width: min(220px, 100%);
  height: auto;
  display: block;
}

.login-footer-note {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #6b7785;
  line-height: 1.5;
}

.account-hint {
  margin-top: 14px;
  font-size: 13px;
  color: #5f6e7b;
  display: grid;
  gap: 4px;
  background: #f6f8fc;
  border: 1px solid #dde4ef;
  border-radius: 10px;
  padding: 10px 12px;
}

@media (max-width: 960px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .stats-grid,
  .leave-cards,
  .form-row {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }

  .panel h2 {
    font-size: 22px;
  }
}

.meta-line {
  margin-bottom: 12px;
  color: #5f6e7c;
  font-size: 14px;
}

.leave-cards-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.leave-cards-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.leave-cards-8 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-row {
  border: 1px dashed #b7c9d8;
  background: #f7fbff;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.comp-subtype-row {
  border: 1px solid #c9d8e8;
  background: #f7fbff;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.comp-subtype-label {
  font-size: 13px;
  font-weight: 700;
  color: #2f4660;
}

.comp-subtype-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.request-form .comp-subtype-btn {
  border: 1px solid #dbe4ef;
  background: #f4f7fb;
  color: #90a0b2;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.request-form .comp-subtype-btn.active {
  border-color: #0f7f77;
  background: #0f7f77;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 127, 119, 0.2) inset;
}

.request-form .comp-subtype-btn:hover {
  border-color: #becddd;
}

.request-form .comp-subtype-btn.active:hover {
  border-color: #0a6f68;
  background: #0a6f68;
}

.proof-row.hidden {
  display: none;
}

.proof-hint {
  font-size: 13px;
  color: #5f6e7b;
}

.proof-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d4dee8;
  background: #fff;
}

.proof-link {
  display: inline-flex;
}

.admin-tabs-panel {
  padding: 10px;
}

.admin-grant-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
}

.admin-grant-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 30, 43, 0.5);
}

.admin-grant-panel {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  border: 1px solid #d8e0e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 26px 46px rgba(25, 38, 52, 0.24);
  padding: 18px 16px 16px;
}

.admin-grant-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #edf2f7;
  color: #7f8a97;
  font-size: 15px;
  font-weight: 700;
}

.admin-grant-panel h3 {
  margin: 0 0 12px;
}

.admin-grant-form {
  display: grid;
  gap: 10px;
}

.admin-grant-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-grant-submit {
  border: none;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  background: #14576f;
  color: #fff;
  font-weight: 700;
}

.leave-admin-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leave-admin-action-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  background: #fafbfd;
  text-decoration: none;
  color: inherit;
}

.leave-admin-action-card .stat-value {
  font-size: 21px;
}

.leave-admin-action-card:hover {
  border-color: #aebccc;
  background: #f5f9fd;
}

.admin-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 225;
  display: grid;
  place-items: center;
}

.admin-calendar-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 30, 43, 0.55);
}

.admin-calendar-panel {
  position: relative;
  width: min(1240px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  border-radius: 18px;
  background: #f6f8fb;
  border: 1px solid #d9e2eb;
  box-shadow: 0 30px 54px rgba(18, 32, 49, 0.26);
  padding: 16px 12px 12px;
}

.admin-calendar-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #e8edf4;
  color: #7b8796;
  font-size: 15px;
  font-weight: 700;
}

.admin-calendar-panel .admin-leave-calendar-block {
  margin: 0;
  padding-top: 28px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
}

.member-leave-subtabs {
  gap: 8px;
}

.attendance-subtabs {
  margin: 18px 0 12px;
}

.annual-detail-head {
  margin-bottom: 12px;
}

.annual-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dce3eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 10px;
}

.annual-summary-card {
  padding: 12px 14px;
  border-right: 1px solid #e5ebf2;
}

.annual-summary-card:last-child {
  border-right: none;
}

.annual-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #5b6878;
  margin-bottom: 8px;
}

.annual-summary-title-plus {
  color: #187a4d;
}

.annual-summary-title-expire {
  color: #b56200;
}

.annual-summary-title-use {
  color: #b84545;
}

.annual-summary-title-adjust {
  color: #6c45b5;
}

.annual-summary-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.annual-empty {
  font-size: 24px;
  color: #9aa5b2;
  font-weight: 600;
}

.leave-year-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leave-year-form {
  margin: 0;
}

.leave-year-form select {
  min-width: 116px;
}

.annual-detail-stats .stat-value {
  font-size: 28px;
}

.annual-plus {
  color: #187a4d;
  font-weight: 700;
}

.annual-minus {
  color: #b84545;
  font-weight: 700;
}

.annual-expire {
  color: #b56200;
  font-weight: 700;
}

.annual-detail-meta {
  margin-bottom: 10px;
}

.annual-detail-wrap {
  background: #fff;
}

.annual-detail-table {
  min-width: 980px;
}

.annual-month-cell {
  font-weight: 700;
  color: #2e3a47;
}

.annual-month-current {
  color: #1a994e;
}

.annual-hire-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1d6f3c;
  background: #e7f6ed;
  border: 1px solid #bfe3cc;
}

.annual-cell-muted {
  color: #9aa5b2;
}

.annual-cell-balance {
  font-weight: 700;
  color: #2f3a46;
}

.layout-split-block {
  border: 1px solid #d9e3ed;
  border-radius: 14px;
  background: #f7fafd;
  padding: 14px;
  margin-bottom: 12px;
}

.layout-split-block:last-child {
  margin-bottom: 0;
}

.layout-split-block .history-summary {
  margin-top: 2px;
  margin-bottom: 8px;
}

.layout-split-block .table-wrap {
  background: #fff;
}

.admin-tab-link {
  border: 1px solid #c6d2df;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 700;
  color: #36414d;
  text-decoration: none;
  background: #f7fafc;
}

.admin-tab-link.active {
  background: #163f72;
  border-color: #163f72;
  color: #fff;
}

.grant-form,
.attendance-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.attendance-filter {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}

.attendance-filter button {
  border: 1px solid #c6d2de;
  background: #f7fafc;
  color: #33485f;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
}

.grant-history-toggle {
  margin: 12px 0 14px;
  border: 1px solid #d9e3ed;
  border-radius: 14px;
  background: #f7fafd;
  overflow: hidden;
}

.grant-history-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #2f3a46;
}

.grant-history-toggle summary::-webkit-details-marker {
  display: none;
}

.grant-history-toggle[open] summary {
  border-bottom: 1px solid #d9e3ed;
}

.grant-history-toggle .table-wrap {
  margin: 0;
  border: 0;
}

.decided-history-head {
  align-items: center;
  gap: 10px;
}

.decided-history-filter {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.decided-history-filter .select_view {
  display: inline-flex;
  gap: 8px;
  align-items: end;
}

.decided-history-filter .select_view select {
  width: auto;
  min-width: 88px;
}

.decided-history-filter .select_view input[type="month"] {
  width: auto;
  min-width: 150px;
}

.decided-history-filter button {
  border: 1px solid #c6d2de;
  background: #f7fafc;
  color: #33485f;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.developing-banner-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.developing-banner-text {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  color: #b84545;
  letter-spacing: 0.04em;
}

.business-trip-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c6d2de;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 10px;
  background: #f7fafc;
  color: #33485f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.business-trip-edit-link:hover {
  background: #edf3f9;
  border-color: #aebdcd;
}

.trip-mode-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

#adminTripModeSwitch {
  margin: 6px 0 12px;
}

#adminTripFilterForm.attendance-filter {
  margin: 10px 0 14px;
}

.trip-mode-btn {
  border: 1px solid #c6d2de;
  border-radius: 10px;
  min-height: 38px;
  padding: 0 14px;
  background: #f7fafc;
  color: #33485f;
  font-size: 13px;
  font-weight: 700;
}

.trip-mode-btn.active {
  background: #163f72;
  border-color: #163f72;
  color: #fff;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  color: #425a70;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.member-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.member-import-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.member-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-leave-calendar-block {
  margin: 10px 0 18px;
}

.leave-calendar-filter {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.leave-calendar-filter label {
  font-size: 12px;
  color: #4d5a68;
}

.leave-calendar-filter select,
.leave-calendar-filter input[type="month"] {
  min-width: 160px;
}

.leave-calendar-filter button {
  border: 1px solid #c6d2de;
  background: #f7fafc;
  color: #33485f;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
}

.leave-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.leave-nav-btn {
  text-decoration: none;
  border: 1px solid #c9d4e0;
  border-radius: 10px;
  color: #2f3e4d;
  background: #f8fbfd;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.leave-nav-btn:hover {
  border-color: #aebdcd;
}

.leave-calendar-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.leave-legend {
  display: flex;
  gap: 6px;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}

.leave-admin-wrap {
  margin-top: 8px;
}

.admin-leave-day {
  min-height: 118px;
}

.leave-items {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.leave-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.leave-legend .leave-chip {
  width: fit-content;
}

.leave-items .leave-chip {
  width: 100%;
  border-radius: 9px;
  justify-content: flex-start;
  white-space: normal;
  word-break: keep-all;
}

.leave-chip-approved {
  color: #1f7f55;
  background: #e6f5ed;
  border: 1px solid #b9e3cf;
}

.leave-chip-pending {
  color: #915e00;
  background: #fff5df;
  border: 1px solid #f2d79f;
  border-style: dashed;
}

.leave-chip.leave-member-color-1 {
  color: #17426f;
  background: #e7f2ff;
  border-color: #b9d7fb;
}

.leave-chip.leave-member-color-2 {
  color: #684411;
  background: #fff3df;
  border-color: #f0d7ad;
}

.leave-chip.leave-member-color-3 {
  color: #165737;
  background: #e6f8ed;
  border-color: #b9e4ca;
}

.leave-chip.leave-member-color-4 {
  color: #5a2d66;
  background: #f6eafe;
  border-color: #dcc1ee;
}

.leave-chip.leave-member-color-5 {
  color: #694015;
  background: #ffefe5;
  border-color: #f1d0b9;
}

.leave-chip.leave-member-color-6 {
  color: #174b4b;
  background: #e7f7f7;
  border-color: #bee4e3;
}

.leave-chip.leave-member-color-7 {
  color: #5d3131;
  background: #fbeaea;
  border-color: #e8c4c4;
}

.leave-chip.leave-member-color-8 {
  color: #3e3e17;
  background: #f7f7e5;
  border-color: #e2e1b9;
}

.leave-empty .leave-items {
  color: #b1bac5;
  font-size: 12px;
}

.grant-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grant-form button,
.attendance-form button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  justify-self: start;
  background: #14576f;
  color: #fff;
  font-weight: 700;
}

.member-form button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  justify-self: start;
  background: #14576f;
  color: #fff;
  font-weight: 700;
}

.member-import-form button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  justify-self: start;
  background: #14576f;
  color: #fff;
  font-weight: 700;
}

.member-annual-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.member-annual-form input[type="number"] {
  width: 90px;
  min-height: 34px;
  padding: 6px 8px;
}

.member-annual-btn {
  border: 1px solid #b8c8df;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: #f3f8ff;
  color: #2f4f7a;
  font-size: 12px;
  font-weight: 700;
}

.member-annual-btn:hover {
  border-color: #9eb5d2;
  background: #eaf2ff;
}

.member-delete-form {
  margin: 0;
}

.member-promote-form {
  margin: 0;
}

.member-edit-btn {
  border: 1px solid #b8c8df;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: #f3f8ff;
  color: #2f4f7a;
  font-size: 12px;
  font-weight: 700;
}

.member-edit-btn:hover {
  border-color: #9eb5d2;
  background: #eaf2ff;
}

.member-promote-btn {
  border: 1px solid #b8c8df;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: #f3f8ff;
  color: #2f4f7a;
  font-size: 12px;
  font-weight: 700;
}

.member-promote-btn:hover {
  border-color: #9eb5d2;
  background: #eaf2ff;
}

.member-revoke-form {
  margin: 0;
}

.member-revoke-btn {
  border: 1px solid #e2c095;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: #fff7ea;
  color: #8f5a1e;
  font-size: 12px;
  font-weight: 700;
}

.member-revoke-btn:hover {
  border-color: #d2a66d;
  background: #ffefd6;
}

.leave-grant-revoke-form {
  margin: 0;
}

.leave-grant-revoke-btn {
  border: 1px solid #e2c095;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 10px;
  background: #fff7ea;
  color: #8f5a1e;
  font-size: 12px;
  font-weight: 700;
}

.leave-grant-revoke-btn:hover {
  border-color: #d2a66d;
  background: #ffefd6;
}

.member-delete-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e4b7b7;
  border-radius: 9px;
  background: #fff6f6;
  color: #a73d3d;
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-delete-btn:hover {
  border-color: #d79a9a;
  background: #ffecec;
}

.member-delete-btn-text {
  border: 1px solid #e4b7b7;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: #fff6f6;
  color: #a73d3d;
  font-size: 12px;
  font-weight: 700;
}

.member-delete-btn-text:hover {
  border-color: #d79a9a;
  background: #ffecec;
}

.member-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 245;
  display: grid;
  place-items: center;
}

.member-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 44, 0.5);
}

.member-edit-panel {
  position: relative;
  width: min(560px, calc(100vw - 22px));
  max-height: calc(100vh - 22px);
  overflow: auto;
  border: 1px solid #d8e2eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 46px rgba(20, 31, 44, 0.24);
  padding: 18px 16px 14px;
}

.member-edit-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #ecf1f7;
  color: #7f8a98;
  font-size: 15px;
  font-weight: 700;
}

.member-edit-panel h3 {
  margin: 0 0 8px;
}

.member-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.member-edit-actions {
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.member-edit-save-btn {
  border: none;
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  background: #14576f;
  color: #fff;
  font-weight: 700;
}

.member-edit-secondary-actions {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #e3e9f0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.leave-cancel-form {
  margin: 0;
}

.military-proof-notice {
  margin-top: -2px;
}

.military-proof-form {
  margin: 0;
  display: grid;
  gap: 6px;
}

.military-proof-form .military-proof-file {
  min-width: 180px;
  padding: 7px 9px;
  font-size: 12px;
}

.leave-cancel-btn {
  border: 1px solid #e2c095;
  border-radius: 8px;
  min-height: 30px;
  padding: 0 10px;
  background: #fff7ea;
  color: #8f5a1e;
  font-size: 12px;
  font-weight: 700;
}

.leave-cancel-btn:hover {
  border-color: #d2a66d;
  background: #ffefd6;
}

.attendance-summary .stat-value {
  font-size: 26px;
}

.hidden {
  display: none !important;
}

.calendar-switcher-wrap {
  position: relative;
  margin: 4px 0 14px;
}

.calendar-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.calendar-nav {
  border: 1px solid #c9d4e0;
  border-radius: 6px;
  color: #2f3e4d;
  background: #f8fbfd;
  text-decoration: none;
  padding: 4px 6px;
  font-size: 7px;
  font-weight: 700;
}

.calendar-nav.icon-only {
  width: 20px;
  height: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  line-height: 1;
  padding: 0;
}

.calendar-nav:hover {
  border-color: #aebdcd;
}

.month-range-button {
  border: 1px solid #c9d4e0;
  background: #fff;
  border-radius: 6px;
  min-height: 26px;
  min-width: 138px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2f3a46;
  text-align: center;
}

.month-range-button:hover {
  border-color: #aebdcd;
}

.calendar-today-link {
  color: #7f8692;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 2px;
}

.month-picker-popup {
  position: absolute;
  top: calc(100% + 5px);
  left: 26px;
  width: min(312px, calc(100vw - 38px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 7px 14px rgba(35, 56, 72, 0.12);
  padding: 8px;
  z-index: 12;
}

.month-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.month-picker-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.month-picker-nav {
  display: inline-flex;
  gap: 5px;
}

.month-picker-nav button {
  border: 1px solid #cfd8e4;
  background: #f8fbfd;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  font-size: 12px;
  color: #3b4b5c;
}

.month-picker-select-row {
  display: flex;
  gap: 4px;
  align-items: end;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.month-picker-select-row label {
  font-size: 7px;
}

.month-picker-select-row select {
  min-width: 60px;
  padding: 5px 7px;
  font-size: 12px;
  border-radius: 7px;
}

.month-picker-select-row button {
  border: 1px solid #cfd8e4;
  background: #f8fbfd;
  color: #2d465e;
  border-radius: 5px;
  min-height: 22px;
  padding: 0 6px;
  font-weight: 700;
  font-size: 7px;
}

.month-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  color: #9ea7b4;
  font-weight: 700;
  font-size: 8px;
  text-align: center;
  margin-bottom: 4px;
}

.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.picker-day {
  border: none;
  background: #dff0e5;
  color: #394451;
  border-radius: 5px;
  min-height: 25px;
  font-size: 13px;
  font-weight: 700;
}

.picker-day:hover {
  background: #d4ebdd;
}

.picker-day.outside {
  color: #afb7c2;
  background: transparent;
}

.picker-day.today {
  color: #19984c;
}

.calendar-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  background: #fff;
}

.calendar-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.calendar-grid th {
  background: #f4f7fb;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.calendar-grid th:first-child {
  color: #a74747;
}

.calendar-grid th:last-child {
  color: #2f5f89;
}

.calendar-grid td {
  width: calc(100% / 7);
  vertical-align: top;
  border-right: 1px solid #e5ebf2;
  border-bottom: 1px solid #e5ebf2;
  padding: 8px;
}

.calendar-grid tr td:last-child,
.calendar-grid tr th:last-child {
  border-right: none;
}

.calendar-grid tbody tr:last-child td {
  border-bottom: none;
}

.cal-empty {
  background: #fbfcfe;
}

.cal-day {
  min-height: 136px;
  background: #fff;
}

.attendance-day-cell-btn {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  text-align: left;
  padding: 4px;
  min-height: 122px;
}

.attendance-day-cell-btn:hover {
  border-color: #b7c8d9;
  background: #f7fbff;
}

.attendance-day-cell-btn:focus-visible {
  outline: none;
  border-color: #78a9d4;
  box-shadow: 0 0 0 3px rgba(91, 152, 204, 0.2);
}

.cal-weekend {
  background: #fbfdff;
}

.cal-date {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  color: #334255;
}

.cal-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.cal-date-row .cal-date {
  margin-bottom: 0;
}

.cal-leave-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 124px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #efc2c2;
  background: #fdeaea;
  color: #9d3b3b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-weekend .cal-date {
  color: #346a8d;
}

.cal-time {
  font-size: 13px;
  color: #4c5d6f;
  line-height: 1.45;
}

.cal-work {
  margin-top: 8px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  color: #196351;
  background: #e8f7f0;
  border: 1px solid #b8e3ce;
  border-radius: 999px;
  padding: 3px 8px;
}

.cal-note {
  margin-top: 8px;
  font-size: 12px;
  color: #5d6f84;
  background: #f6f9fd;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  padding: 6px 7px;
}

.cal-adjust {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}

.cal-adjust-pending {
  color: #916000;
  background: #fff2d9;
  border: 1px solid #eacb8f;
}

.cal-adjust-approved {
  color: #1f7d53;
  background: #e9f7ef;
  border: 1px solid #bce4ce;
}

.cal-adjust-rejected {
  color: #9d3b3b;
  background: #fdeaea;
  border: 1px solid #efc2c2;
}

.attendance-adjust-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
}

.attendance-adjust-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 31, 44, 0.5);
}

.attendance-adjust-panel {
  position: relative;
  width: min(560px, calc(100vw - 22px));
  max-height: calc(100vh - 22px);
  overflow: auto;
  border: 1px solid #d8e2eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 46px rgba(20, 31, 44, 0.24);
  padding: 18px 16px 14px;
}

.attendance-adjust-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: #ecf1f7;
  color: #7f8a98;
  font-size: 15px;
  font-weight: 700;
}

.attendance-adjust-panel h3 {
  margin: 0 0 8px;
}

.attendance-adjust-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 1200px) {
  .leave-cards-5,
  .leave-cards-6,
  .leave-cards-8,
  .grant-grid,
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .leave-cards-5,
  .leave-cards-6,
  .leave-cards-8,
  .grant-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    width: 100%;
    flex-wrap: wrap;
  }

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

  .annual-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grant-panel {
    width: min(500px, calc(100vw - 16px));
    border-radius: 14px;
    padding: 14px 12px 12px;
  }

  .admin-calendar-panel {
    width: calc(100vw - 10px);
    max-height: calc(100vh - 10px);
    border-radius: 14px;
    padding: 12px 8px 8px;
  }

  .leave-calendar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .leave-calendar-title {
    font-size: 18px;
    text-align: left;
  }

  .calendar-switcher {
    gap: 5px;
  }

  .month-range-button {
    min-width: 0;
    width: calc(100% - 58px);
    min-height: 24px;
    font-size: 12px;
  }

  .calendar-today-link {
    margin-left: 0;
    font-size: 10px;
  }

  .month-picker-popup {
    left: 0;
    width: 100%;
    padding: 7px;
  }

  .month-picker-title {
    font-size: 12px;
  }

  .month-picker-weekdays {
    font-size: 7px;
  }

  .picker-day {
    min-height: 22px;
    font-size: 11px;
  }

  .leave-range-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .request-form .open-calendar-btn {
    width: 100%;
  }

  .leave-modal-panel {
    width: min(608px, calc(100vw - 12px));
    max-height: calc(100vh - 8px);
    border-radius: 14px;
    padding: 11px 10px 10px;
  }

  .leave-modal-close {
    width: 26px;
    height: 26px;
    font-size: 12px;
    right: 8px;
    top: 8px;
  }

  .leave-modal-meta {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .leave-modal-meta strong {
    font-size: 10px;
  }

  .leave-modal-title {
    font-size: 19px;
  }

  .leave-modal-sub {
    font-size: 11px;
    margin-top: 5px;
  }

  .leave-modal-nav {
    margin-top: 10px;
  }

  .leave-modal-months-head,
  .leave-modal-months {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .leave-modal-month-label {
    font-size: 16px;
  }

  .leave-weekdays span {
    font-size: 10px;
  }

  .leave-day-btn {
    min-height: 27px;
    font-size: 13px;
    border-radius: 8px;
  }

  .leave-summary-title {
    font-size: 11px;
  }

  .leave-summary-days {
    font-size: 10px;
  }

  .leave-apply-btn {
    min-height: 34px;
    font-size: 13px;
  }

  .attendance-day-cell-btn {
    min-height: 106px;
  }

  .cal-leave-badge {
    max-width: 100px;
    padding: 3px 8px;
    font-size: 12px;
  }

  .attendance-adjust-panel {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    border-radius: 14px;
    padding: 14px 12px 12px;
  }
}
