.month-picker-caret {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 15px;
  transition: transform .16s ease;
}

.month-picker-button[aria-expanded="true"] .month-picker-caret { transform: rotate(180deg); }

.month-picker-panel {
  position: absolute;
  z-index: 18;
  top: calc(100% + 8px);
  left: 50%;
  width: 310px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 46px rgba(20, 55, 54, .18);
  transform: translateX(-50%);
}

.month-picker-year {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 10px;
}

.month-picker-year strong {
  text-align: center;
  font-size: 13px;
}

.month-picker-year button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  background: white;
}

.month-picker-year button:hover { border-color: #9eb8c8; background: #f2f7fa; }

.month-picker-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.month-picker-month {
  min-height: 38px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: #f6f9f9;
  font-size: 11px;
  text-transform: capitalize;
}

.month-picker-month:hover { border-color: #a9c5d5; background: #edf5f9; }
.month-picker-month.selected { border-color: #79abc8; color: #164f74; background: #e3f1f9; font-weight: 800; }
.month-picker-month.current:not(.selected) { box-shadow: inset 0 0 0 1px #b9cdc9; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-calendar-filter {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-height: 72px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.admin-filter-title {
  flex: 0 0 170px;
  padding-top: 7px;
}

.admin-filter-title strong,
.admin-filter-title small {
  display: block;
}

.admin-filter-title strong { font-size: 12px; }
.admin-filter-title small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }

.admin-filter-main {
  display: flex;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  gap: 10px;
}

.admin-filter-search {
  position: relative;
  flex: 0 0 300px;
  margin: 0;
}

.admin-filter-search input {
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.admin-filter-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 5px);
  left: 0;
  width: min(420px, 85vw);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 15px 36px rgba(20, 55, 54, .16);
}

.admin-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #edf2f1;
  cursor: pointer;
  background: white;
  text-align: left;
}

.admin-filter-option:last-child { border-bottom: 0; }
.admin-filter-option:hover, .admin-filter-option.active { background: #eef6fa; }
.admin-filter-option strong, .admin-filter-option small { display: block; }
.admin-filter-option strong { font-size: 11px; }
.admin-filter-option small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.admin-filter-option > span:last-child { color: var(--brand); }

.admin-filter-selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 40px;
  gap: 6px;
}

.admin-filter-empty { color: var(--muted); font-size: 10px; }

.admin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #bcd7e7;
  border-radius: 9px;
  cursor: pointer;
  color: #245d80;
  background: #eaf4fa;
  font-size: 10px;
  font-weight: 700;
}

.admin-filter-chip span { color: #5f8298; font-size: 14px; line-height: 1; }
.admin-filter-chip:hover { border-color: #7eaec9; background: #e1f0f8; }

.admin-filter-clear {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  color: #52768c;
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.selection-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 46px;
  padding: 10px 20px;
  border-bottom: 1px solid #bcded4;
  color: var(--brand-dark);
  background: #e6f5ef;
  font-size: 12px;
}

.selection-hint button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  color: var(--brand);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.day.weekend:not(.has-own-vacation):not(.selection-preview) {
  background: #fbf7f1;
}

.day.weekend .day-number {
  color: #a56454;
}

.day.holiday:not(.has-own-vacation):not(.selection-preview) {
  background: #fff3ef;
}

.holiday-label {
  display: block;
  margin: -5px 0 7px;
  overflow: hidden;
  color: #b06153;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day.has-own-vacation {
  background: #eef9f5;
}

.day.has-own-vacation:hover {
  background: #e7f6f0;
}

.day.selection-preview {
  z-index: 2;
  background: #ddf3e9 !important;
  box-shadow: inset 0 2px 0 #72b9a4, inset 0 -2px 0 #72b9a4;
}

.day.selection-start,
.day.selection-end {
  background: #c9eadf !important;
  box-shadow: inset 0 0 0 2px var(--brand);
}

.day.selection-start .day-number,
.day.selection-end .day-number {
  color: white;
  background: var(--brand);
}

.personal-card {
  margin-top: 34px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 36px rgba(20, 55, 54, .06);
}

.personal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.personal-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.7px;
}

.year-metrics {
  display: flex;
  gap: 10px;
}

.year-metrics > div {
  min-width: 148px;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--canvas);
}

.year-metrics small,
.year-metrics strong {
  display: block;
}

.year-metrics small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.year-metrics strong {
  font-size: 14px;
}

.vacation-progress {
  display: flex;
  height: 7px;
  margin: 22px 0 25px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf2f1;
}

.vacation-progress span {
  width: 0;
  transition: width .3s ease;
}

#used-progress { background: #9cb0ad; }
#planned-progress { background: var(--brand); }

.upcoming-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.upcoming-heading strong { font-size: 13px; }
.upcoming-heading small { color: var(--muted); font-size: 10px; }

.upcoming-vacations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.upcoming-vacation {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #cde4dd;
  border-radius: 12px;
  cursor: pointer;
  background: #f2faf7;
  text-align: left;
}

.upcoming-vacation:hover {
  border-color: #88bbae;
  transform: translateY(-1px);
}

.upcoming-date {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  border-radius: 11px;
  color: white;
  background: var(--brand);
}

.upcoming-date strong,
.upcoming-date small { display: block; text-align: center; }
.upcoming-date strong { font-size: 17px; line-height: 1; }
.upcoming-date small { margin-top: 3px; font-size: 8px; text-transform: uppercase; }
.upcoming-copy { min-width: 0; }
.upcoming-copy strong,
.upcoming-copy small { display: block; }
.upcoming-copy strong { margin-bottom: 5px; font-size: 12px; }
.upcoming-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-arrow { margin-left: auto; color: var(--brand); }
.upcoming-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 700px) {
  .month-picker-panel { position: fixed; top: 76px; left: 50vw; transform: translateX(-50%); }
  .admin-calendar-filter { position: sticky; left: 0; width: 100%; min-width: 920px; }
  .admin-filter-title { display: none; }
  .admin-filter-main { flex-direction: column; }
  .admin-filter-search { flex-basis: auto; width: 260px; }
  .admin-filter-selected { min-height: 30px; }
  .personal-card { margin-top: 24px; padding: 18px; }
  .personal-heading { display: block; }
  .year-metrics { margin-top: 18px; }
  .year-metrics > div { flex: 1; min-width: 0; padding: 10px; }
  .selection-hint { position: sticky; left: 0; width: 100%; min-width: 920px; }
}

