/* Primo Noel — date picker (pt-BR) */

.pn-date {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 42px;
  padding: 0.375rem 0.85rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  background: #fff;
  direction: ltr;
  unicode-bidi: isolate;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pn-date:hover {
  border-color: #b7bfc8;
}

.pn-date:focus-within {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.pn-date__text {
  flex: 1 1 auto;
  min-width: 0;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
  user-select: none;
}

.pn-date__text.is-placeholder {
  color: #6c757d;
  font-weight: 500;
}

.pn-date__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  color: #495057;
  background: #f1f3f5;
  pointer-events: none;
  z-index: 1;
}

.pn-date__icon .bi {
  font-size: 1rem;
  line-height: 1;
}

.pn-date__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: inherit;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  background: transparent !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.pn-date__native:focus {
  outline: none;
  box-shadow: none !important;
}

/* Hide native UI chrome; the invisible input still opens the picker */
.pn-date__native::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
}

.pn-date__native::-webkit-datetime-edit,
.pn-date__native::-webkit-datetime-edit-fields-wrapper,
.pn-date__native::-webkit-datetime-edit-text,
.pn-date__native::-webkit-datetime-edit-month-field,
.pn-date__native::-webkit-datetime-edit-day-field,
.pn-date__native::-webkit-datetime-edit-year-field,
.pn-date__native::-webkit-datetime-edit-hour-field,
.pn-date__native::-webkit-datetime-edit-minute-field,
.pn-date__native::-webkit-datetime-edit-ampm-field,
.pn-date__native::-webkit-inner-spin-button,
.pn-date__native::-webkit-clear-button {
  display: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.pn-date.is-invalid {
  border-color: #dc3545;
}

.pn-date.is-invalid:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}

/* Admin forms: keep same control, slightly tighter */
.admin-form-card .pn-date,
.admin-content .pn-date {
  min-height: 38px;
  border-radius: 0.375rem;
}
