.perfect-datetimepicker {
  position: relative;
  width: 240px;
  margin: 2px 0 0;
  padding: 0;
  font-size: 100%;
  color: #e0e0e0;
  border-radius: 4px;
  line-height: 0;
  overflow: hidden;
}

.perfect-datetimepicker * {
  box-sizing: border-box;
}

.perfect-datetimepicker table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 2px;
  background-color: #333;
  /* 25% darker background for tables */
  padding: 3px;
}

.perfect-datetimepicker table td {
  border: 0;
  text-align: center;
  padding: 2px;
  width: 34px;
  height: 27px;
  cursor: pointer;
  vertical-align: middle;
  border-radius: 3px;
  color: #e0e0e0;
  /* Light text for dark mode (slightly dimmed) */
}

.perfect-datetimepicker table td.weekend {
  color: #ff5555;
  /* Brighter red for weekends */
}

.perfect-datetimepicker table.mt tbody td {
  width: 58px;
  height: 38px;
}

.perfect-datetimepicker td.day {
  width: 14.28571429%;
}

.perfect-datetimepicker td.name {
  font-weight: 500;
  padding: 10px 1px;
}

.perfect-datetimepicker td.oday {
  color: #666;
  /* Dimmed color for out-of-range days */
  cursor: auto;
}

.perfect-datetimepicker td.disabled {
  color: #777;
  /* Dimmed color for disabled days */
  cursor: auto;
}

.perfect-datetimepicker td i {
  font-size: 100%;
  font-weight: 500;
}

.perfect-datetimepicker td table.tt {
  border: 0;
  padding: 0;
}

.perfect-datetimepicker table.tt {
  padding: 5px;
}

.perfect-datetimepicker table.tt td.hover {
  border: 0;
}

.perfect-datetimepicker table.tt td.common {
  width: 5px;
}

.perfect-datetimepicker table.tt tbody td {
  width: 40px;
}

.perfect-datetimepicker table.tt input {
  outline: 0;
  border: 1px solid #444;
  /* Darker border for inputs */
  margin: 0 auto;
  padding: 0 !important;
  width: 38px;
  height: 24px;
  text-align: center;
  font-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 3px;
  transition: border-color ease-in-out 0.2s, box-shadow ease-in-out 0.2s;
  background-color: #333;
  /* 25% darker background for inputs */
  color: #e0e0e0;
  /* Light text for inputs */
}

.perfect-datetimepicker table.tt input:focus {
  border-color: #66afe9;
  box-shadow: 0 0 6px rgba(102, 175, 233, 0.6);
}

.perfect-datetimepicker table.tt input[type="number"]::-webkit-inner-spin-button,
.perfect-datetimepicker table.tt input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.perfect-datetimepicker table.tt input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.perfect-datetimepicker .buttonpane {
  border-top: 1px solid #444;
  margin-top: 5px;
  padding-top: 7px;
}

.perfect-datetimepicker tbody td.hover {
  background-color: #444;
  /* 25% darker hover background */
  padding: 1px;
  border: 1px solid #666;
  /* Darker hover border */
}

.perfect-datetimepicker tbody td.today {
  font-weight: 500;
  color: #66afe9;
  /* Brighter blue for today */
}

.perfect-datetimepicker tbody td.selected {
  font-weight: 500;
  padding: 1px;
  color: #fff;
  border: 1px solid #66afe9;
  /* Brighter blue for selected */
  background-color: #66afe9;
  /* Brighter blue for selected */
}

.perfect-datetimepicker tfoot td.hover {
  background-color: #444;
  /* 25% darker hover background */
  padding: 1px;
  border: 1px solid #666;
  /* Darker hover border */
}

.perfect-datetimepicker thead td.hover {
  background-color: #444;
  /* 25% darker hover background */
  padding: 1px;
  border: 1px solid #666;
  /* Darker hover border */
}

.perfect-datetimepicker thead td.title {
  font-weight: 500;
  text-align: center;
  padding: 2px;
}

i {
  font-family: finex;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: finex;
  src: url(fonts/iconfont.eot);
  src: url(fonts/iconfont.eot?#iefix) format('embedded-opentype'),
    url(fonts/iconfont.woff) format('woff'),
    url(fonts/iconfont.ttf) format('truetype'),
    url(fonts/iconfont.svg#svgFontName) format('svg');
}

i.icon-datepicker-minus:before {
  content: '\e601';
}

i.icon-datepicker-plus:before {
  content: '\e603';
}

i.icon-datepicker-prev:before {
  content: '\e602';
}

i.icon-datepicker-next:before {
  content: '\e600';
}

form.perfect-datetimepicker {
  height: fit-content;
  width: fit-content;
  transform: scale(0.88);
  z-index: 1060;
}

table.buttonpane tr {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}

tfoot.buttonpane td, table.buttonpane td {
  width: fit-content;
  padding: 3px 10px;
}

table.buttonpane td {
  color: #262626;
}
