.nw-timepicker-wrap {
  position: relative;
  display: inline-block;
}

.nw-timepicker-wrap-block {
  display: block;
  width: 100%;
}

.nw-timepicker-wrap-block .form-control {
  width: 100%;
}

.nw-timepicker-popover {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  display: none;
  overflow: hidden;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 220px;
  z-index: 1065;
}

.nw-timepicker-popover.open {
  display: block;
}

.nw-timepicker-popover-detached {
  position: fixed;
}

.nw-timepicker-header {
  align-items: stretch;
  background: #f8fafc;
  border-bottom: 1px solid #d8e0ea;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px;
}

.nw-timepicker-fields {
  align-items: center;
  display: flex;
  gap: 6px;
}

.nw-timepicker-number-wrap {
  background: #ffffff;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  display: grid;
  grid-template-columns: 42px 18px;
  height: 42px;
  overflow: hidden;
  width: 62px;
}

.nw-timepicker-number {
  background: transparent;
  border: 0;
  caret-color: auto;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  height: 40px;
  line-height: 40px;
  padding: 0 2px;
  text-align: center;
  width: 42px;
}

.nw-timepicker-spin-buttons {
  border-left: 1px solid #d8e0ea;
  display: grid;
  grid-template-rows: 1fr 1fr;
}

.nw-timepicker-spin {
  align-items: center;
  background: #eef4fb;
  border: 0;
  color: #64748b;
  cursor: pointer;
  display: flex;
  font-size: 9px;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.nw-timepicker-spin + .nw-timepicker-spin {
  border-top: 1px solid #d8e0ea;
}

.nw-timepicker-spin:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.nw-timepicker-separator {
  color: #111827;
  font-size: 22px;
  font-weight: 700;
  line-height: 42px;
}

.nw-timepicker-period {
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  width: 52px;
}

.nw-timepicker-period-btn {
  background: #ffffff;
  border: 0;
  color: #475569;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.nw-timepicker-period-btn + .nw-timepicker-period-btn {
  border-top: 1px solid #cfd8e6;
}

.nw-timepicker-period-btn.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.nw-timepicker-clock {
  height: 176px;
  position: relative;
}

.nw-timepicker-slider {
  padding: 12px;
}

.nw-timepicker-slider-rows {
  display: grid;
  gap: 0px;
}

.nw-timepicker-slider-row {
  align-items: center;
  display: grid;
  gap: 0px;
  grid-template-columns: 50px 1fr;
}

.nw-timepicker-slider-label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.nw-timepicker-slider input[type="range"] {
  width: 145px;
}

.nw-timepicker-face {
  background: #eeeeee;
  border-radius: 50%;
  cursor: grab;
  height: 156px;
  left: 50%;
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  width: 156px;
}

.nw-timepicker-face:active {
  cursor: grabbing;
}

.nw-timepicker-hand {
  background: #2778d4;
  bottom: 78px;
  height: 58px;
  left: 50%;
  position: absolute;
  transform-origin: bottom center;
  width: 2px;
}

.nw-timepicker-hand-dot {
  background: #2778d4;
  border-radius: 50%;
  height: 6px;
  left: calc(50% - 3px);
  position: absolute;
  top: 75px;
  width: 6px;
  
}

.nw-timepicker-tick {
  align-items: center;
  border-radius: 50%;
  color: #111827;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  position: absolute;
  user-select: none;
  width: 30px;
  border: none;
}

.nw-timepicker-tick.dense {
  font-size: 11px;
  height: 22px;
  width: 22px;
}

.nw-timepicker-fine-active {
  pointer-events: none;
  z-index: 2;
}

.nw-timepicker-tick:hover {
  background: #d8dee6;
}

.nw-timepicker-tick.active {
  background: #2778d4;
  color: #ffffff;
}

.nw-timepicker-footer {
  border-top: 1px solid #d8e0ea;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.nw-timepicker-footer button {
  background: #f8fafc;
  border: 0;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  height: 32px;
  padding: 0;
}

.nw-timepicker-footer button + button {
  border-left: 1px solid #d8e0ea;
}

.nw-timepicker-footer .primary {
  background: #2778d4;
  color: #ffffff;
}

.nw-timepicker-footer button:hover {
  filter: brightness(0.96);
}

.nw-timepicker-number:focus-visible,
.nw-timepicker-spin:focus-visible,
.nw-timepicker-period-btn:focus-visible,
.nw-timepicker-footer button:focus-visible,
.nw-timepicker-tick:focus-visible {
  outline: none;
 
}
