.tanggal-lelang {
  width: 100%;
  height: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  display: inline-flex;

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: start;
  }

  &-date {
    color: black;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word;
  }
}

.jadwal-lelang-container {
  @media (max-width: 768px) {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}

.title-slide-lelang {
  margin-bottom: 1rem !important;
  color: var(--Text-Black, #0b0e21) !important;
  font-feature-settings: "liga" off, "clig" off;
  font-size: 32px !important;
  font-style: normal;
  font-weight: 600 !important;
  line-height: 44px !important;

  @media (max-width: 768px) {
    font-size: 24px;
    line-height: 32px;
  }
}

.tanggal-lelang-date {
  color: #000;
  font-feature-settings: "liga" off, "clig" off;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.list-property-count {
  font-feature-settings: "liga" off, "clig" off;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  word-wrap: break-word;
  padding-bottom: 24px;

  @media (max-width: 768px) {
    padding-top: 8px;
  }
}

.date-picker-container {
  margin: 0;
  max-width: 300px;

  @media (max-width: 768px) {
    max-width: 100%;
    width: 100% !important;
  }
}

.date-range-input {
  width: 100%;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  transition: border-color 0.15s ease-in-out;
  
  &.is-active {
    border-color: #254993;
  }
  
  &:has(.flatpickr-input.active) {
    border-color: #254993;
  }
}

.flatpickr-calendar.open + .date-range-input {
  border-color: #254993;
}

.date-input-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.date-icon {
  color: #6c757d;
  margin-right: 8px;
}

.form-control {
  &.date-start,
  &.date-end {
    border: none;
    background: transparent;
    padding: 2px 0;
    width: calc(50% - 20px);
    cursor: pointer;
    font-size: 14px;
    padding-left: 12px;
    color: var(--Mandiri-Neutral-1, #848b99);
    font-feature-settings: "liga" off, "clig" off;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    transition: color 0.15s ease-in-out;
    
    &:not([placeholder="Dari"]),
    &:not([placeholder="Sampai"]) {
      color: #0B0E21;
    }
    
    &:focus {
      outline: none;
      box-shadow: none;
    }
  }
}

/* Flatpickr custom styles */
.flatpickr-calendar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 3px 13px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  width: 310px !important;

  &:before,
  &:after {
    border: none !important;
  }
  
  &.static {
    margin-top: 0.8rem;
  }

  .flatpickr-months {
    .flatpickr-month {
      background: #fff;
    }

    .flatpickr-prev-month,
    .flatpickr-next-month {
      fill: #254993;
    }
  }

  .flatpickr-current-month {
    font-size: 1rem;
    color: #254993;
    width: 100px;
    left: 15% !important;
    
    .numInputWrapper {
      display: none !important;
    }
    
    span.cur-month {
      margin-right: 10px;
      width: 85px;
      font-size: 0.75em;
      top: 0px;
      padding-top: 10px;
      padding-right: 2px;
      position: absolute;
      left: 0px;
      font-weight: 600;
      text-align: right;
    }
    
    .flatpickr-monthDropdown-months {
      padding: 0 !important;
    }
  }

  .flatpickr-weekday {
    font-weight: bold;
    color: #495057;
  }

  .flatpickr-day {
    &.today {
      border-color: #254993;
    }

    &.selected,
    &.startRange,
    &.endRange,
    &.selected.inRange,
    &.startRange.inRange,
    &.endRange.inRange,
    &.selected:focus,
    &.startRange:focus,
    &.endRange:focus,
    &.selected:hover,
    &.startRange:hover,
    &.endRange:hover,
    &.selected.prevMonthDay,
    &.startRange.prevMonthDay,
    &.endRange.prevMonthDay,
    &.selected.nextMonthDay,
    &.startRange.nextMonthDay,
    &.endRange.nextMonthDay {
      background: #254993;
      border-color: #254993;
      color: #fff !important;
    }

    &.inRange,
    &.prevMonthDay.inRange,
    &.nextMonthDay.inRange,
    &.today.inRange,
    &.prevMonthDay.today.inRange,
    &.nextMonthDay.today.inRange,
    &:hover,
    &.prevMonthDay:hover,
    &.nextMonthDay:hover,
    &:focus,
    &.prevMonthDay:focus,
    &.nextMonthDay:focus {
      background: #e8edf7;
      border-color: #e8edf7;
      color: #254993;
    }
  }
}

.flatpickr-time {
  display: none !important;
}

.flatpickr-wrapper {
  display: flex !important;
}

.flatpickr-year-select {
  background-color: white !important;
  z-index: 100;
  position: absolute;
  top: 5px;
  right: 3rem !important;
  width: 100px;
  
  select {
    width: 100%;
    height: 24px;
    font-weight: 600;
    outline: 0;
    overflow: hidden;
    background: #ffffff;
    color: #254993 !important;
    border: #ffffff;
    padding: 0;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 6px;
  }
}

.custom-flatpickr-buttons {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;

  button {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
  }

  .btn-reset {
    background: #fff;
    color: #254993;
    border-color: #ced4da !important;
  }

  .btn-apply {
    background: #254993;
    color: white;
  }
}

select {
  background-image: none !important;
} 