/* Date picker styles for proper layering */ .rdp { position: relative; z-index: 9999 !important; } .date-picker-wrapper { position: relative; z-index: 999; background: var(--popover); color: var(--popover-foreground); border-radius: var(--radius); } /* Make the calendar container itself clickable */ .rdp-months { pointer-events: auto !important; } /* Fix for calendar popup position */ [data-radix-popper-content-wrapper] { z-index: 9999 !important; pointer-events: auto !important; } /* Fix popover portal position */ [data-radix-portal] { z-index: 9999 !important; pointer-events: auto !important; } /* Ensure buttons in calendar are clickable */ .rdp-button { pointer-events: auto !important; } /* Force calendar to be visible and interactive */ .rdp-table { pointer-events: auto !important; position: relative; z-index: 10; } /* Style the calendar day cells */ .rdp-cell { pointer-events: auto !important; } /* For additional visibility in various contexts */ .rdp-day { position: relative; z-index: 50; } /* Override Radix UI Portal styles */ [data-radix-popper-content-wrapper] > div { pointer-events: auto !important; } /* Ensure calendar is visible above other elements */ .rdp.rdp-root { background-color: var(--popover); border-radius: var(--radius); } /* Fix for Firefox */ @-moz-document url-prefix() { .date-picker-wrapper { transform: translateZ(0); } .rdp-months { transform: translateZ(0); } } /* Fix for Safari */ @media not all and (min-resolution:.001dpcm) { @supports (-webkit-appearance:none) { .date-picker-wrapper { transform: translateZ(0); } .rdp-months { transform: translateZ(0); } } } /* Fixed positioning for popover content */ .date-picker-wrapper { transform-origin: var(--radix-popover-content-transform-origin); animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1); } @keyframes contentShow { from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }