.hx-date-field {
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 142px;
}

.hx-date-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hx-date-display {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hx-date-display:hover {
  border-color: #78bde5;
}

.hx-date-display:focus-visible {
  border-color: #0077c8;
  outline: 3px solid rgba(0, 119, 200, 0.14);
}

.hx-date-display.is-placeholder {
  color: #94a3b8;
}

.hx-date-display:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.hx-date-display svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #638096;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-date-popover {
  position: fixed;
  z-index: 14000;
  width: 320px;
  padding: 14px;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  pointer-events: auto;
}

.hx-date-popover[hidden] {
  display: none;
}

.hx-date-header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hx-date-icon-button,
.hx-date-month-label,
.hx-date-text-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.hx-date-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #e1e8ef;
  border-radius: 9px;
  color: #3e5d73;
}

.hx-date-icon-button:hover {
  border-color: #b6d7ea;
  background: #f3faff;
}

.hx-date-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-date-month-label {
  color: #16283a;
  font-size: 15px;
  font-weight: 750;
}

.hx-date-week,
.hx-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.hx-date-week {
  margin-bottom: 5px;
}

.hx-date-week span {
  color: #8290a2;
  font-size: 11px;
  font-weight: 650;
  line-height: 28px;
  text-align: center;
}

.hx-date-day {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
}

.hx-date-day:not(:disabled):hover {
  border-color: #a8d4ec;
  background: #f0f9ff;
}

.hx-date-day.is-today {
  color: #0077c8;
  font-weight: 800;
}

.hx-date-day.is-selected {
  border-color: #0077c8;
  background: #0077c8;
  color: #fff;
  font-weight: 800;
}

.hx-date-day:disabled:not(.is-empty) {
  color: #cbd5e1;
  cursor: not-allowed;
}

.hx-date-day.is-empty {
  visibility: hidden;
}

.hx-date-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf1f5;
}

.hx-date-text-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: #526477;
  font-size: 12px;
  font-weight: 700;
}

.hx-date-text-button:hover {
  background: #f1f5f9;
}

#spaceTable .hx-date-field {
  min-width: 126px;
}

#spaceTable .hx-date-display {
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
}
