/* Time picker — field + spinner popover (hour : minute) */
.jtp-field {
  position: relative;
  display: block;
  width: 100%;
}

.jtp-field .jtp-input,
.jtp-field input {
  width: 100%;
  box-sizing: border-box;
  padding-left: 2.4rem !important;
}

.jtp-trigger {
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0;
  font-size: 0.95rem;
}

.jtp-trigger:hover,
.jtp-trigger:focus-visible {
  color: var(--float-accent, #0f766e);
  outline: none;
  background: color-mix(in srgb, var(--float-accent, #0f766e) 12%, transparent);
}

.jtp-popover {
  position: fixed;
  z-index: 10050;
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e8eef4;
  padding: 0.65rem 0.7rem 0.8rem;
  direction: rtl;
  font-family: inherit;
  color: #0f172a;
}

.jtp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.jtp-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.jtp-preview {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--float-accent, #0f766e);
  font-size: 1.05rem;
}

.jtp-bound-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin: -0.25rem 0 0.55rem;
  font-variant-numeric: tabular-nums;
}

.jtp-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.25rem 0 0.75rem;
  user-select: none;
}

.jtp-spin-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 4.25rem;
}

.jtp-spin-btn {
  width: 100%;
  border: 1px solid #e8eef4;
  background: #f8fafc;
  color: #334155;
  border-radius: 8px;
  padding: 0.35rem 0;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.jtp-spin-btn:hover,
.jtp-spin-btn:focus-visible {
  background: color-mix(in srgb, var(--float-accent, #0f766e) 14%, #fff);
  border-color: var(--float-accent, #0f766e);
  color: var(--float-accent, #0f766e);
  outline: none;
}

.jtp-spin-val {
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.65rem;
  line-height: 1.35;
  color: #0f172a;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  padding: 0.35rem 0.25rem;
  background: #fff;
}

.jtp-spin-colon {
  font-size: 1.75rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 0 0.15rem 1.35rem;
  line-height: 1;
  align-self: center;
}

.jtp-spin-label {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.jtp-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.jtp-confirm {
  border: none;
  background: var(--float-accent, #0f766e);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.jtp-confirm:hover {
  filter: brightness(1.05);
}

.jtp-clear {
  border: 1px solid #e8eef4;
  background: #fff;
  color: #64748b;
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.jtp-clear:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.jtp-field input[readonly].jtp-input,
.jtp-field input[readonly][data-time-hm] {
  cursor: pointer;
  background-color: #fff;
}
