
/* =========================================================
   Custom datepicker v2
   ========================================================= */
.dp {
    position: relative;
}

.dp-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    width: 250px;
}

.dp-popup.hidden {
    display: none;
}

.dp-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    font-size:11px;
    background: var(--eagle-darkblue);
    border-bottom: 1px solid var(--border);

}

.dp-selects {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.dp-select {
    height: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    padding: 0 8px;
    max-width: 120px;
}

.dp-select:focus {
    outline: none;

    border-color: var(--primary);
}

.dp-nav {
    width: 30px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.dp-nav:hover:not(:disabled) {
    background: var(--surface-2);
}

.dp-nav:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 6px 6px 0;
}

.dp-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted);
    padding: 6px 0;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 6px;
}

.dp-day {
    height: 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
}

.dp-day:hover:not(:disabled) {
    background: var(--btndefault);
    border-color: var(--eagle-darkblue);
    color: var(--surface);
}

.dp-day.is-muted {
    color: #b2b8c2;
}

.dp-day.is-today {
    background-color: var(--eagle-darkblue)!important;
    border-color: var(--eagle-darkblue);
    color: #ffffff;
    font-weight: var(--font-weight-normal);
}



.dp-day.is-disabled,
.dp-day:disabled {
    color: #c5cad3;
    background: #f9fafb;
    cursor: not-allowed;
    opacity: .75;
}

.dp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--border);
    background: #fff;
    gap: 8px;
}

.dp-footer-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-normal);
    cursor: pointer;
}

.dp-footer-btn:hover:not(:disabled) {
    background: var(--surface-2);
}

.dp-footer-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dp-today {
    background: var(--btndefault);
    border-color: var(--btndefault);
    color: var(--surface);
}

/* =========================================================
   Eagle DateLite v3 - compact square calendar styling
   ========================================================= */
.dp-popup {
    width: 270px;
    z-index: 1100;
}
.dp-card {
    border-radius: 0;
    box-shadow: 0 8px 22px rgba(0,0,0,.14);
}
.dp-header {
    padding: 9px 10px;
}
.dp-select, .dp-nav, .dp-day, .dp-footer-btn {
    border-radius: 0;
}
.dp-nav {
    height: 20px;
    width: 20px;
}
.dp-select {
    height: 20px;
    max-width: 125px;
}
.dp-grid {
    gap: 3px;
    padding: 7px;
}
.dp-day {
    height: 29px;
    min-width: 0;
}
.dp-day:focus-visible, .dp-nav:focus-visible,
.dp-select:focus-visible, .dp-footer-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}
.dp-footer {
    padding: 8px 10px;
}
@media (max-width: 360px) {
    .dp-popup {
        width: min(270px, calc(100vw - 24px));
    }
}
/* Eagle DateLite - Compact Calendar */

.dl-calendar {
    width: 260px;
    max-width: 260px;
    padding: 8px;
    border-radius: 0;
    font-size: 12px;
}

.dl-calendar button {
    border-radius: 0;
}

.dl-calendar .dl-day {
    width: 32px;
    height: 30px;
    font-size: 12px;
    padding: 0;
}

.dl-calendar .dl-weekday {
    font-size: 11px;
    font-weight: 600;
}

.dl-calendar .dl-header {
    padding: 4px 0 8px;
}

.dl-calendar .dl-footer {
    padding: 8px 4px 2px;
    font-size: 11px;
}
/* Eagle DateLite - Compact Styling */

.dp-popup {
    width: 245px !important;
    min-width: 245px;
    max-width: 245px;
    padding: 6px;
    border-radius: 0;
    font-size: 12px;
}

.dp-popup button,
.dp-popup select {
    border-radius: 0;
}

.dp-popup .dp-day {
    width: 29px;
    height: 28px;
    padding: 0;
    font-size: 11px;
}
/* Eagle DateLite - Compact Calendar */

.dp-popup {
    width: 245px !important;
    min-width: 245px;
    max-width: 245px;
    padding: 6px;
    border-radius: 0;
    box-sizing: border-box;
}

/* Calendar Header */
.dp-header {
    padding: 4px 2px !important;
    margin-bottom: 5px !important;
    min-height: 30px;
}

/* Weekday Headings */
.dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 3px;
    background-color: var(--eagle-darkblue);
    color: #ffffff;
}

.dp-weekday {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 3px 0;
}

/* Date Grid */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}

/* Date Buttons */
.dp-popup .dp-day {
    width: 100%;
    height: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 11px;
    border-radius: 0;
    background-color:  #ffffff;
}

/* Footer */
.dp-footer {
    margin-top: 5px;
    padding: 5px 2px 2px;
    font-size: 11px;
}

/* Square Corners */
.dp-popup button,
.dp-popup select {
    border-radius: 0;
}