/* EMII v5.9 Source CSS — Datepicker */
.emii-datepicker-field {
  position: relative;
}

.emii-date-input {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--emii-soft-shadow);
  padding: 0 12px;
}

.emii-date-input input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--emii-text);
  font-size: 14px;
  cursor: pointer;
}

.emii-date-input button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(120,120,128,.14);
  color: #3a3a3c;
  display: grid;
  place-items: center;
}

.emii-jdp-popover {
  display: none;
  position: fixed;
  top: var(--emii-layer-top, 0px);
  left: var(--emii-layer-left, 0px);
  width: var(--emii-layer-width, min(360px, calc(100vw - 24px)));
  max-width: calc(100vw - 24px);
  max-height: var(--emii-layer-max-height, min(460px, 62vh));
  z-index: 9020;
  margin: 0;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  overflow: auto;
  overscroll-behavior: contain;
}

.emii-datepicker-field.is-open {
  z-index: 70;
}

.emii-jdp-popover.is-open {
  display: block;
}

.emii-jdp-top {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--emii-line);
}

.emii-jdp-nav {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: rgba(120,120,128,.14);
  color: #3a3a3c;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.emii-jdp-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.emii-jdp-title select {
  height: 38px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: rgba(242,242,247,.95);
  padding: 0 10px;
  color: var(--emii-text);
  font-size: 13px;
  font-weight: 900;
}

.emii-jdp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 10px 12px 5px;
}

.emii-jdp-weekdays span {
  text-align: center;
  color: var(--emii-muted);
  font-size: 11px;
  font-weight: 950;
}

.emii-jdp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 6px 12px 12px;
}

.emii-jdp-day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--emii-text);
  font-size: 13px;
  font-weight: 900;
  position: relative;
}

.emii-jdp-day:hover {
  background: rgba(0,122,255,.09);
  color: var(--emii-blue);
}

.emii-jdp-day.is-muted {
  color: #c7c7cc;
  font-weight: 750;
}

.emii-jdp-day.is-today {
  color: var(--emii-orange);
  background: rgba(255,149,0,.10);
}

.emii-jdp-day.is-selected {
  background: linear-gradient(135deg, var(--emii-blue), #5856d6);
  color: white;
  box-shadow: 0 10px 20px rgba(0,122,255,.22);
}

.emii-jdp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px 12px;
  border-top: 1px solid var(--emii-line);
  background: rgba(242,242,247,.45);
}
