/* Actureva 3.0.9: shared neutral theme; numerical values, geometry and interactions unchanged. */
.avdp-field { position: relative; display: block; width: 100%; } /* Keep the calendar action beside its original submitted input. */
.avdp-field > input[data-day-first] { width: 100%; padding-right: 52px !important; box-sizing: border-box; } /* Reserve room for the date-picker icon without shrinking the text. */
.avdp-trigger { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 7px; border: 0; border-radius: 8px; background: #f3f2f0; color: #47433e; cursor: pointer; display: grid; place-items: center; } /* Give the existing date field a clear calendar affordance. */
.avdp-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; } /* Render a crisp local calendar icon. */
.avdp-dialog { width: min(392px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 0; border: 1px solid #e1dcd7; border-radius: 20px; background: #fff; color: #252320; box-shadow: 0 24px 80px #2927243b; font: 15px/1.4 'Segoe UI', Arial, sans-serif; } /* Present a readable modal calendar at desktop and mobile sizes. */
.avdp-dialog::backdrop { background: #23211f55; backdrop-filter: blur(2px); } /* Separate the picker from the current form without navigating away. */
.avdp-panel { padding: 22px; } /* Keep day targets away from the popup boundary. */
.avdp-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; } /* Pair the field-specific title with a close action. */
.avdp-heading h2 { font: 600 18px/1.35 'Segoe UI', Arial, sans-serif; margin: 0; } /* Avoid inheriting oversized page headings. */
.avdp-dialog button { font: inherit; cursor: pointer; } /* Use native focus and button interaction. */
.avdp-close { width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 50%; background: #f5f3f1; font-size: 24px !important; color: #5d5346; } /* Supply a clear close target. */
.avdp-navigation { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 22px 0 16px; } /* Keep the displayed month prominent. */
.avdp-navigation button { width: 36px; height: 36px; border: 1px solid #e5e1dc; border-radius: 8px; background: #fff; color: #4e4944; font-size: 25px; line-height: 1; } /* Provide generous month-navigation targets. */
.avdp-month-title { font-size: 18px; font-weight: 600; } /* Expose the visible month independently of dropdown values. */
.avdp-jump { display: grid; grid-template-columns: 1fr 105px; gap: 12px; margin-bottom: 18px; } /* Make historical dates quick to select. */
.avdp-jump label { display: block; font-size: 12px; font-weight: 600; color: #736756; } /* Keep month and year controls explicitly labelled. */
.avdp-jump select, .avdp-jump input { display: block; width: 100%; margin-top: 5px; border: 1px solid #d9d4cd; border-radius: 7px; padding: 8px 10px; background: #fff; color: #34312d; font: 14px 'Segoe UI', Arial, sans-serif; min-height: 38px; } /* Override large form-control styles only inside the picker. */
.avdp-grid { table-layout: fixed; width: 100%; border-collapse: collapse; margin: 0; } /* Align calendar columns across every month. */
.avdp-grid th, .avdp-grid td { border: 0; padding: 2px; text-align: center; vertical-align: middle; background: transparent; } /* Remove business-table padding from the date grid. */
.avdp-grid th { font: 600 11px 'Segoe UI', Arial, sans-serif; color: #837563; height: 30px; } /* Keep weekdays compact and unambiguous. */
.avdp-grid button { display: block; width: 100%; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #2e2b28; background: transparent; font: 14px 'Segoe UI', Arial, sans-serif; } /* Offer large day targets with stable geometry. */
.avdp-grid button:hover { background: #f3f2ef; } /* Make the pointed-to day visible. */
.avdp-grid .avdp-other-month { color: #9c8e7b; } /* Distinguish neighbouring months while keeping their dates readable. */
.avdp-grid button[aria-current=date] { border-color: #857764; } /* Outline today without changing the selected date. */
.avdp-grid .avdp-selected, .avdp-grid .avdp-selected:hover { color: #fff; background: #5b564f; border-color: #5b564f; font-weight: 600; } /* Mark the actual field value clearly. */
.avdp-note { font-size: 12px; color: #726656; margin: 14px 2px; min-height: 34px; } /* Explain the current field state below the grid. */
.avdp-footer { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid #ece9e5; } /* Separate optional date shortcuts from navigation. */
.avdp-footer button { border: 0; border-radius: 7px; background: #f5f3f1; color: #57524b; padding: 8px 13px; font-size: 13px; } /* Keep Today and Clear explicit actions. */
.avdp-dialog button:disabled { opacity: .35; cursor: default; } /* Show unavailable dates and navigation states. */
.avdp-dialog :focus-visible, .avdp-trigger:focus-visible { outline: 3px solid #b38636; outline-offset: 2px; } /* Preserve visible keyboard focus throughout the calendar. */
@media print { .avdp-trigger, .avdp-dialog { display: none; } } /* Keep interactive controls out of printed reports. */
