﻿/* 確保 jQuery UI Datepicker 面板層級夠高，不會被其他元素蓋掉 */
.ui-datepicker {
    z-index: 9999 !important;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ccc;
}
    .ui-datepicker th {
        min-width: 0px !important;
    }
/* 標題欄（年、月與上下月按鈕） */
.ui-datepicker .ui-datepicker-title {
    font-weight: bold;
}

    /* 上一個月、下一個月按鈕確保顯示 */
    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker .ui-datepicker-next {
        display: block !important;
        cursor: pointer;
    }

    /* 日期按鈕樣式 */
    .ui-datepicker td a,
    .ui-datepicker td span {
        text-align: center;
        display: block;
        padding: 6px 0;
        text-decoration: none;
        color: #000 !important;
        border-radius: 4px;
        transition: background 0.2s, color 0.2s;
    }

        /* Hover 效果 */
        .ui-datepicker td a:hover {
            background: #007bff;
            color: #fff !important;
        }

    /* 今日日期高亮 */
    .ui-datepicker td.ui-datepicker-today a {
        background: #f0f8ff;
        font-weight: bold;
        border: 1px solid #007bff;
    }

    /* 選中日期高亮 */
    .ui-datepicker td a.ui-state-active {
        background: #007bff;
        color: #fff !important;
    }

    /* 禁用日期 */
    .ui-datepicker td.ui-state-disabled span {
        color: #ccc !important;
        background: none;
    }
