/* ปฏิทินเลือกวันที่ของ assets/js/at-datepicker.js
   แทน scripts/datepicker_th/css/jquery-ui-1.8.10.custom.css ที่ถอดออกไปพร้อม jQuery UI */

.atdp {
    position: absolute;
    z-index: 1080;
    width: 258px;
    padding: 8px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    font-size: 14px;
    line-height: 1.4;
    color: #222;
}

.atdp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.atdp-label {
    font-weight: 600;
}

.atdp-nav {
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
    color: #222;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.atdp-nav:hover:not(:disabled) {
    background: #f2f2f2;
    border-color: #e0e0e0;
}

.atdp-nav:disabled {
    opacity: .3;
    cursor: default;
}

.atdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.atdp-dow {
    padding: 4px 0;
    font-size: 12px;
    text-align: center;
    color: #888;
}

.atdp-blank {
    display: block;
}

.atdp-day {
    padding: 6px 0;
    font-size: 13px;
    text-align: center;
    color: #222;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.atdp-day:hover:not(:disabled) {
    background: #f2f2f2;
}

.atdp-day:disabled {
    color: #ccc;
    cursor: default;
}

.atdp-day.is-today {
    border-color: #ff7f26;
}

.atdp-day.is-picked {
    color: #fff;
    background: #ff7f26;
    border-color: #ff7f26;
}
