/**
 * jQuery UI Datepicker — WordPress admin-friendly styles.
 *
 * Loaded only on DMSILM admin pages that use .dmsilm-datepicker inputs.
 *
 * @package DMSILM
 * @since   2.0.0
 */

/* Container */
.ui-datepicker {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 8px;
    width: 280px;
    z-index: 100100 !important; /* Above WP admin bars & modals */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
}

/* Header (month/year nav) */
.ui-datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 8px;
    border-bottom: 1px solid #f0f0f1;
    margin-bottom: 8px;
}

.ui-datepicker-title {
    display: flex;
    gap: 4px;
    align-items: center;
}

.ui-datepicker-title select {
    font-size: 13px;
    padding: 2px 4px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    background: #fff;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    color: #2271b1;
    font-size: 0;
    line-height: 1;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: #f0f0f1;
}

.ui-datepicker-prev::after {
    content: "\2039";
    font-size: 18px;
}

.ui-datepicker-next::after {
    content: "\203A";
    font-size: 18px;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: none;
}

/* Calendar table */
.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ui-datepicker th {
    text-align: center;
    font-weight: 600;
    color: #50575e;
    padding: 4px;
    font-size: 12px;
}

.ui-datepicker td {
    text-align: center;
    padding: 1px;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: block;
    padding: 4px;
    border-radius: 3px;
    text-decoration: none;
    color: #1d2327;
    line-height: 1.4;
}

.ui-datepicker td a:hover {
    background: #f0f0f1;
    color: #2271b1;
}

/* Today */
.ui-datepicker .ui-datepicker-today a {
    background: #f0f0f1;
    font-weight: 600;
}

/* Selected/active */
.ui-datepicker .ui-datepicker-current-day a {
    background: #2271b1;
    color: #fff;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-current-day a:hover {
    background: #135e96;
    color: #fff;
}

/* Other month days */
.ui-datepicker .ui-datepicker-other-month span {
    color: #a7aaad;
}

/* Disabled state */
.ui-datepicker .ui-state-disabled span {
    color: #c3c4c7;
}
