/* Date + time picker — lịch trái, giờ phải, nút xác nhận full-width phía dưới */
.dtp-wrap {
  position: relative;
  width: 100%;
}

.dtp-input {
  width: 100%;
  cursor: pointer;
  caret-color: transparent;
}

.dtp-popup {
  display: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  width: 340px;
  max-width: calc(100vw - 24px);
  z-index: 10050;
}

.dtp-popup.open {
  display: block;
}

.dtp-popup-portal {
  position: fixed;
}

.dtp-popup-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  grid-template-rows: auto auto;
  width: 100%;
}

.dtp-cal {
  grid-column: 1;
  grid-row: 1;
  padding: 12px 14px 10px;
  border-right: 1px solid #eee;
  min-width: 0;
}

.dtp-cal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.dtp-cal-hdr button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size:18px;
  line-height: 1;
}

.dtp-cal-hdr button:hover {
  background: #f5f5f5;
  color: #111;
}

.dtp-month {
  font-family: 'Oswald', sans-serif;
  font-size:18px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.dtp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}

.dtp-weekdays span {
  text-align: center;
  font-size:16px;
  font-weight: 700;
  color: #999;
  padding: 4px 0;
}

.dtp-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dtp-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size:17px;
  color: #333;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  min-height: 34px;
  min-width: 0;
}

.dtp-day:hover:not(:disabled) {
  background: #f0f0f0;
}

.dtp-day.other {
  color: #ccc;
}

.dtp-day.today {
  font-weight: 700;
  color: #00bcd4;
}

.dtp-day.selected {
  background: #16a34a !important;
  color: #fff !important;
  font-weight: 700;
}

.dtp-day:disabled {
  color: #ddd;
  cursor: not-allowed;
}

.dtp-time {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  min-height: 260px;
  border-left: 1px solid #eee;
}

.dtp-time-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: 240px;
  scroll-behavior: smooth;
}

.dtp-time-scroll::-webkit-scrollbar {
  width: 4px;
}

.dtp-time-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.dtp-time-btn {
  display: block;
  width: 100%;
  padding: 8px 4px;
  border: none;
  background: none;
  font-size:17px;
  color: #444;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.dtp-time-btn:hover {
  background: #eee;
}

.dtp-time-btn.selected {
  background: #16a34a;
  color: #fff;
  font-weight: 700;
}

.dtp-time-nav {
  border: none;
  background: #f0f0f0;
  padding: 6px;
  cursor: pointer;
  color: #666;
  font-size:15px;
  flex-shrink: 0;
}

.dtp-time-nav:hover {
  background: #e5e5e5;
}

.dtp-actions {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eee;
  background: #fff;
}

.dtp-btn-ok {
  flex: 1;
  padding: 11px 16px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size:17px;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
}

.dtp-btn-ok:hover {
  background: #15803d;
}

.dtp-btn-clear {
  padding: 11px 16px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size:17px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.dtp-btn-clear:hover {
  background: #eee;
}

@media (max-width: 400px) {
  .dtp-popup {
    width: min(340px, calc(100vw - 16px));
  }

  .dtp-popup-inner {
    grid-template-columns: minmax(0, 1fr) 68px;
  }
}
