/* Site-wide calendar enhancement for every <input type="date">. Applied automatically by
   nice-datepicker.js - no per-page markup needed. Matches the site's --eps-accent / --eps-accent-2
   palette (see site.css). */

.nice-date-wrap {
    position: relative;
    display: inline-flex;
    width: 100%;
}

input.nice-date-input {
    padding-right: 2.25rem !important;
    background-color: #fff;
    cursor: pointer;
    caret-color: transparent;
}

/* Hide the native picker indicator (Chrome/Edge) so our icon is the only one shown. */
input.nice-date-input::-webkit-calendar-picker-indicator {
    display: none;
}

input.nice-date-input.nice-date-active {
    border-color: var(--eps-accent-2, #153355);
    box-shadow: 0 0 0 0.18rem rgba(21, 51, 85, 0.18);
}

.nice-date-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--eps-accent-2, #153355);
    opacity: 0.7;
    padding: 0.15rem 0.3rem;
    line-height: 1;
    cursor: pointer;
}

.nice-date-icon:hover {
    opacity: 1;
}

.nice-date-panel {
    width: 280px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 0.85rem;
    z-index: 3000;
    font-size: 0.9rem;
    user-select: none;
}

.nice-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.nice-date-nav {
    border: none;
    background: rgba(21, 51, 85, 0.08);
    color: var(--eps-accent-2, #153355);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.nice-date-nav:hover {
    background: rgba(21, 51, 85, 0.16);
}

.nice-date-title {
    display: flex;
    gap: 0.3rem;
    flex: 1 1 auto;
    justify-content: center;
}

.nice-date-month-select,
.nice-date-year-select {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 0.15rem 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
}

.nice-date-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.nice-date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.nice-date-day {
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: #1e293b;
    cursor: pointer;
    text-align: center;
}

.nice-date-day:hover:not(:disabled) {
    background: rgba(211, 47, 47, 0.12);
}

.nice-date-day-muted {
    color: #cbd5e1;
}

.nice-date-day-today {
    box-shadow: inset 0 0 0 1px var(--eps-accent-2, #153355);
    font-weight: 700;
}

.nice-date-day-selected {
    background: var(--eps-accent-2, #153355) !important;
    color: #fff !important;
    font-weight: 700;
}

.nice-date-day-disabled {
    color: #e2e8f0;
    cursor: not-allowed;
}

.nice-date-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.6rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.nice-date-footer-btn {
    border: none;
    background: transparent;
    color: var(--eps-accent-2, #153355);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}

.nice-date-footer-btn:hover {
    text-decoration: underline;
}

.nice-date-footer-btn-muted {
    color: #94a3b8;
}
