input.dtp-managed-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: none;
}

input.dtp-managed-input::-webkit-clear-button,
input.dtp-managed-input::-webkit-inner-spin-button {
  display: none;
}

input.dtp-managed-input {
  padding-right: 46px;
  background:
    rgba(255, 255, 255, 0.88)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237b88a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>")
    no-repeat right 14px center / 18px 18px;
}

.dtp-host {
  position: relative;
  display: block;
  width: 100%;
}

.dtp-wrapper {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(338px, calc(100vw - 24px));
  padding: 10px 10px 12px;
  border: 1px solid rgba(63, 84, 120, 0.14);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 24px 48px rgba(37, 52, 77, 0.18);
}

.dtp-wrapper.dtp-adaptive {
  left: 8px;
  right: 8px;
  width: auto;
  transform: none;
  margin: 0 auto;
}

.dtp-date {
  display: grid;
  gap: 10px;
}

.dtp-month-and-year-header,
.dtp-select-pane,
.dtp-time-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dtp-month-and-year-header {
  gap: 6px;
}

.dtp-month-and-year-header .month,
.dtp-month-and-year-header .year {
  padding: 4px 6px;
  border-radius: 8px;
  color: #25344d;
  font-weight: 700;
  text-decoration: none;
}

.dtp-month-and-year-header .month:hover,
.dtp-month-and-year-header .year:hover {
  background: #f4f6fb;
}

.dtp-time,
.dtp-year-range,
.dtp-calender thead th,
.dtp-selected-date {
  color: #6f7d93;
}

.dtp-time,
.dtp-selected-date,
.dtp-year-range {
  font-size: 13px;
  font-weight: 700;
}

.dtp-month-switcher,
.dtp-year-picker-nav {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
}

.dtp-icon,
.dtp-btn,
.dtp-month-item,
.dtp-year-item {
  border: 1px solid rgba(63, 84, 120, 0.14);
  background: #fff;
  color: #25344d;
}

.dtp-icon,
.dtp-btn {
  cursor: pointer;
}

.dtp-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 9px;
}

.dtp-icon:hover,
.dtp-btn:hover,
.dtp-month-item:hover,
.dtp-year-item:hover {
  border-color: rgba(63, 84, 120, 0.28);
  background: #f7f9fd;
}

.dtp-calender table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

.dtp-calender thead th {
  padding: 5px 0 6px;
  font-size: 12px;
  text-align: center;
}

.dtp-calender tbody td {
  height: 34px;
  border-radius: 8px;
  color: #25344d;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.dtp-calender tbody td.current:hover,
.dtp-calender tbody td.dtp-focused:not(.active) {
  background: #eff4ff;
}

.dtp-calender tbody td.today,
.dtp-month-item.active,
.dtp-year-item.active {
  background: #dbe6ff;
  color: #32507f;
}

.dtp-calender tbody td.active {
  background: #eef5d9;
}

.dtp-calender tbody td.disable,
.dtp-calender tbody td.disabled {
  color: #c3cada;
  cursor: not-allowed;
}

.dtp-calender tbody td.disabled {
  background: #f9fafb;
  opacity: 0.7;
}

.dtp-calender tbody td.dtp-focused {
  position: relative;
  z-index: 1;
  outline: 2px solid #ffd95d;
  outline-offset: -2px;
}

.dtp-month-picker-section,
.dtp-year-picker-section {
  padding: 4px 0 2px;
}

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

.dtp-month-item,
.dtp-year-item {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.dtp-wrapper.dtp-no-time .dtp-time-section,
.dtp-wrapper.dtp-no-time .dtp-time {
  display: none !important;
}

.dtp-time-section input[type="time"] {
  min-width: 134px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(63, 84, 120, 0.14);
  border-radius: 10px;
}

.dtp-bottom-part {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dtp-btn {
  min-width: 76px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.dtp-ok-btn {
  border-color: #ffd95d;
  background: linear-gradient(180deg, #ffe889 0%, #ffd95d 100%);
  color: #243244;
}

@media (max-width: 720px) {
  .dtp-wrapper {
    max-width: calc(100vw - 24px);
  }
}
