/* Adela date fields: shared calendar for every native date, datetime-local and month input. */
:root {
  --adt-accent: #2563eb;
  --adt-accent-hover: #1d4ed8;
  --adt-accent-soft: #eff6ff;
  --adt-range: #dbeafe;
  --adt-text: #0f172a;
  --adt-muted: #64748b;
  --adt-faint: #94a3b8;
  --adt-line: #e2e8f0;
  --adt-holiday: #e11d48;
  --adt-surface: #ffffff;
}

/* The native input stays in the form for its value, name and validation. */
.adt-native {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important;
  opacity: 0 !important; pointer-events: none !important; white-space: nowrap !important;
}

.adt-display {
  cursor: pointer;
  min-width: 9.5rem;
  padding-right: 2.5rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M16 2.75v3.5M8 2.75v3.5M3 9.5h18'/%3E%3Cpath d='M8 13.5h.01M12 13.5h.01M16 13.5h.01M8 17h.01M12 17h.01'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .75rem center !important;
  background-size: 18px 18px !important;
  font-variant-numeric: tabular-nums;
}
.adt-display[data-kind="datetime-local"] { min-width: 12.5rem; }
.adt-display[data-kind="month"] { min-width: 10rem; }
[dir="rtl"] .adt-display { padding-right: .75rem !important; padding-left: 2.5rem !important; background-position: left .75rem center !important; }
.adt-display:disabled, .adt-display[readonly] { cursor: default; }
.adt-display[aria-expanded="true"] { border-color: var(--adt-accent) !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15) !important; }
.adt-display.adt-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important; }

/* Popup */
.adt-pop {
  position: fixed; z-index: 10060; top: 0; left: 0;
  background: var(--adt-surface); color: var(--adt-text);
  border: 1px solid var(--adt-line); border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .28), 0 4px 12px rgba(15, 23, 42, .08);
  font-size: 14px; line-height: 1.25; font-family: inherit;
  animation: adt-in .14s ease-out;
}
.adt-pop[hidden], .adt-backdrop[hidden] { display: none !important; }
@keyframes adt-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.adt-pop *, .adt-pop *::before, .adt-pop *::after { box-sizing: border-box; }
.adt-pop button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }
.adt-pop button:disabled, .adt-pop button[aria-disabled="true"] { cursor: default; }
.adt-pop button:focus-visible, .adt-pop select:focus-visible { outline: 2px solid var(--adt-accent); outline-offset: 2px; }

.adt-inner { display: flex; }
.adt-main { width: 304px; padding: 12px; }
.adt-sheet-grip { display: none; }

.adt-head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.adt-nav { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--adt-muted) !important; }
.adt-nav:hover:not(:disabled) { background: #f1f5f9 !important; color: var(--adt-text) !important; }
.adt-nav:disabled { opacity: .3; }
.adt-title { flex: 1; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 15px; }
.adt-title:hover:not(:disabled) { background: #f1f5f9 !important; }
.adt-title svg { width: 16px; height: 16px; color: var(--adt-muted); }

.adt-grid { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.adt-grid th { padding: 6px 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--adt-muted); text-align: center; }
.adt-grid th.is-weekend { color: var(--adt-faint); }
.adt-grid td { padding: 0; text-align: center; }
.adt-day { position: relative; width: 100%; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.adt-day span { position: relative; z-index: 1; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; transition: background-color .12s, color .12s; }
.adt-day:hover:not(.is-disabled):not(.is-selected) span { background: #f1f5f9; }
.adt-day.is-weekend { color: #475569; }
.adt-day.is-outside { color: var(--adt-faint); }
.adt-day.is-today span { box-shadow: inset 0 0 0 1.5px var(--adt-accent); color: var(--adt-accent); font-weight: 700; }
.adt-day.in-range, .adt-day.in-preview { background: var(--adt-range); }
.adt-day.range-start { border-radius: 10px 0 0 10px; }
.adt-day.range-end { border-radius: 0 10px 10px 0; }
.adt-day.range-start.range-end { border-radius: 10px; }
[dir="rtl"] .adt-day.range-start { border-radius: 0 10px 10px 0; }
[dir="rtl"] .adt-day.range-end { border-radius: 10px 0 0 10px; }
.adt-day.range-start span, .adt-day.range-end span { background: var(--adt-accent-soft); color: var(--adt-accent); font-weight: 700; }
.adt-day.is-selected span { background: var(--adt-accent) !important; color: #fff !important; font-weight: 700; box-shadow: 0 4px 10px -2px rgba(37, 99, 235, .45); }
.adt-day.is-disabled { color: #cbd5e1; }
.adt-day.is-disabled span { text-decoration: line-through; text-decoration-color: #cbd5e1; }
.adt-day.is-holiday::after { content: ""; position: absolute; z-index: 2; bottom: 4px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--adt-holiday); }
.adt-day.is-holiday:not(.is-selected) span { color: var(--adt-holiday); }

.adt-cells-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0; }
.adt-cell { width: 100%; height: 48px; border-radius: 12px; font-weight: 600; }
.adt-cell:hover:not(.is-disabled):not(.is-selected) { background: #f1f5f9 !important; }
.adt-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--adt-accent); color: var(--adt-accent) !important; }
.adt-cell.is-selected { background: var(--adt-accent) !important; color: #fff !important; }
.adt-cell.is-disabled { color: #cbd5e1 !important; }

.adt-holidays { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ffe4e6; font-size: 12px; }
.adt-holidays p { margin: 0 0 4px; font-weight: 700; color: var(--adt-holiday); }
.adt-holidays ul { margin: 0; padding: 0; list-style: none; max-height: 72px; overflow-y: auto; }
.adt-holidays li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #475569; }
.adt-holidays strong { display: inline-block; min-width: 1.5em; color: var(--adt-holiday); }

.adt-time { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: #f8fafc; }
.adt-time-label { margin-right: auto; font-size: 13px; font-weight: 600; color: var(--adt-muted); }
.adt-time select { height: 34px; min-width: 62px; padding: 0 8px; border: 1px solid var(--adt-line); border-radius: 8px; background: #fff; font: inherit; font-variant-numeric: tabular-nums; color: var(--adt-text); }

.adt-foot { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--adt-line); }
.adt-spacer { flex: 1; }
.adt-link { height: 34px; padding: 0 10px; border-radius: 9px; font-weight: 600; color: var(--adt-accent) !important; }
.adt-link:hover:not(:disabled) { background: var(--adt-accent-soft) !important; }
.adt-link:disabled { opacity: .35; }
.adt-link--muted { color: var(--adt-muted) !important; }
.adt-link--muted:hover { background: #f1f5f9 !important; color: var(--adt-text) !important; }
.adt-primary { height: 34px; padding: 0 16px; border-radius: 9px; font-weight: 700; background: var(--adt-accent) !important; color: #fff !important; }
.adt-primary:hover { background: var(--adt-accent-hover) !important; }

.adt-presets { width: 150px; padding: 12px 8px 12px 12px; border-right: 1px solid var(--adt-line); display: flex; flex-direction: column; gap: 2px; }
[dir="rtl"] .adt-presets { border-right: 0; border-left: 1px solid var(--adt-line); padding: 12px 12px 12px 8px; }
.adt-presets p { margin: 2px 4px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--adt-muted); }
.adt-preset { text-align: start; padding: 7px 10px; border-radius: 9px; font-weight: 500; color: #334155 !important; }
.adt-preset:hover:not(:disabled) { background: #f1f5f9 !important; }
.adt-preset.is-active { background: var(--adt-accent-soft) !important; color: var(--adt-accent) !important; font-weight: 700; }
.adt-preset:disabled { opacity: .35; }

/* Phones: a bottom sheet with large touch targets. */
.adt-backdrop { position: fixed; inset: 0; z-index: 10059; background: rgba(15, 23, 42, .45); animation: adt-fade .15s ease-out; }
@keyframes adt-fade { from { opacity: 0; } to { opacity: 1; } }
.adt-pop.is-sheet {
  top: auto !important; left: 0 !important; right: 0; bottom: 0; border-radius: 20px 20px 0 0; border-bottom: 0;
  max-height: 92vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); animation: adt-up .18s ease-out;
}
@keyframes adt-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.adt-pop.is-sheet .adt-sheet-grip { display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: #cbd5e1; }
.adt-pop.is-sheet .adt-inner { flex-direction: column; }
.adt-pop.is-sheet .adt-main { width: auto; padding: 12px 16px 16px; }
.adt-pop.is-sheet .adt-day { height: 46px; }
.adt-pop.is-sheet .adt-day span { width: 42px; height: 42px; font-size: 15px; }
.adt-pop.is-sheet .adt-presets { width: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 12px 16px 0; border: 0; scrollbar-width: none; }
.adt-pop.is-sheet .adt-presets::-webkit-scrollbar { display: none; }
.adt-pop.is-sheet .adt-presets p { display: none; }
.adt-pop.is-sheet .adt-preset { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--adt-line); border-radius: 999px; padding: 7px 12px; }
.adt-pop.is-sheet .adt-foot button { height: 42px; }

@media (prefers-reduced-motion: reduce) {
  .adt-pop, .adt-pop.is-sheet, .adt-backdrop { animation: none; }
}
@media print { .adt-pop, .adt-backdrop { display: none !important; } }

/*
 * The older jQuery picker (.dp start-date fields, visa and cruise dates) uses the same
 * size and look as the calendar above, so two date fields in one form open identical
 * calendars: 304px wide, 36px day cells, the same weekday row, radius and shadow.
 */
.datepicker.bg-white {
  width: 304px; padding: 12px !important;
  border-radius: 16px !important; border: 1px solid #e2e8f0 !important;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .28), 0 4px 12px rgba(15, 23, 42, .08) !important;
  font-size: 14px; line-height: 1.25;
}
.datepicker.bg-white table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 2px; }
.datepicker.bg-white thead { background: transparent !important; }
.datepicker.bg-white thead th.prev, .datepicker.bg-white thead th.next { width: 36px; padding: 0 !important; height: 36px; border-radius: 10px; }
.datepicker.bg-white thead th.switch { padding: 6px 0 !important; font-size: 15px !important; font-weight: 700; border-radius: 10px; }
.datepicker.bg-white thead tr + tr th, .datepicker.bg-white .datepicker-days th:not(.prev):not(.next):not(.switch) {
  padding: 6px 0 !important; font-size: 11px !important; font-weight: 700; letter-spacing: .02em; color: #64748b !important; white-space: nowrap; overflow: hidden;
}
.datepicker.bg-white td > .day { width: 36px !important; height: 36px !important; border-radius: 10px !important; font-size: 14px; position: relative; }
.datepicker.bg-white .month, .datepicker.bg-white .year { height: 44px !important; border-radius: 10px !important; }
@media (max-width: 768px) {
  .datepicker.bg-white { width: 90vw; max-width: 400px; }
}
