/* date-entry (date-entry.ejs). Every selector starts with .date-entry; keyframes are named date-entry-*.
   The input keeps the page's own field look; this only makes room for the calendar icon and places it. */
/* The [class]/[type] bumps outrank a page's own `.form span` / `.page input[type=text]` rules on the parts this owns
   (the wrapper's spacing, the room for the icon), so the text never runs under it. */
.date-entry[class] { position: relative; display: block; margin: 0; }
.date-entry input[type].date-entry-input { width: 100%; padding-right: 40px; }
.date-entry .date-entry-btn {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: #6c757d; cursor: pointer;
    transition: color .12s ease, background-color .12s ease;
}
.date-entry .date-entry-btn::before {
    content: ''; display: block; width: 18px; height: 18px; margin: auto; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.date-entry .date-entry-btn:hover { color: var(--theme-primary); background-color: rgba(var(--theme-primary-rgb), .08); }
.date-entry .date-entry-btn:focus-visible { outline: 0; box-shadow: 0 0 0 .25rem rgba(var(--theme-primary-rgb), .15); }
.date-entry .date-entry-btn:disabled { display: none; }
/* The browser's own picker anchors to this: kept at the field's bottom edge, never seen or clicked. */
.date-entry input[type].date-entry-native {
    position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; min-height: 0;
    margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .date-entry .date-entry-btn { transition: none; } }
