/* Shadcn Base Nova proportions: 28px cells, 8px padding and restrained surfaces. */
.date-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #f4f4f5;
  color: var(--tx);
  font: inherit;
  font-weight: 400;
  text-align: start;
}
.date-trigger:hover {
  background: #ededee;
  border-color: #d4d4d8;
}
.date-trigger[data-empty='true'] {
  color: var(--muted);
}
.date-trigger .lucide-icon {
  width: 16px;
  height: 16px;
  color: #71717a;
}
.date-popover {
  position: fixed;
  z-index: 900;
  width: 214px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding: 8px;
  background: #fff;
  color: #18181b;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  box-shadow: 0 2px 6px #18181b12;
  font:
    14px/1.4 'IBM Plex Sans Arabic',
    Tahoma,
    sans-serif;
  animation: calendar-in 0.12s ease-out;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  gap: 4px;
  margin-bottom: 16px;
}
.calendar-caption {
  flex: 1;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  font-size: 14px;
}
.date-popover .calendar-nav {
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}
.calendar-nav .lucide-icon {
  width: 16px;
  height: 16px;
}
.date-popover button:hover {
  background: #f4f4f5;
}
.calendar-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 4px;
}
.calendar-grid th {
  width: 28px;
  height: 24px;
  padding: 0 0 4px;
  color: #71717a;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
}
.calendar-grid td {
  padding: 0;
  height: 28px;
  text-align: center;
}
.date-popover .calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}
.date-popover .calendar-day[data-outside='true'] {
  color: #a1a1aa;
}
.date-popover .calendar-day[data-today='true'] {
  background: #f4f4f5;
}
.date-popover [aria-selected='true'] .calendar-day {
  background: var(--g);
  color: #fff;
}
.date-popover button:focus-visible {
  outline: 2px solid #a1a1aa;
  outline-offset: 1px;
}
.date-popover button:disabled {
  opacity: 0.35;
}
@keyframes calendar-in {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .date-popover {
    animation: none;
  }
}
@media print {
  .date-popover {
    display: none !important;
  }
}
