/**
 * assets/datepicker.css
 * สไตล์ของ assets/datepicker.js (BoDatepicker) — แยกออกมาจาก assets/backoffice.css ให้ใช้ร่วมกันได้ทั้ง
 * backoffice (theme มืด) และเว็บหลักฝั่งลูกค้า (theme สว่าง เช่น reservation/index.php) เพราะ panel ปฏิทิน
 * ลอยเป็น popup แยกจากพื้นหลังของหน้า (ธีมมืดของ panel เข้ากับทั้ง 2 ฝั่งเหมือน widget ลอยทั่วไป)
 * ต้อง <link> ไฟล์นี้ทุกหน้าที่เรียก BoDatepicker.attach()
 */
.bo-dp-panel {
    position: absolute;
    z-index: 20000;
    width: 268px;
    background: #18191f;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    font-size: 13px;
    color: #e7e8ec;
    box-sizing: border-box;
}

.bo-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
}

.bo-dp-nav {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.bo-dp-nav:hover {
    background: rgba(197, 25, 39, .3);
}

.bo-dp-title {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.bo-dp-month-select,
.bo-dp-year-select {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    border-radius: 6px;
    padding: 4px 5px;
    font-size: 12px;
    min-width: 0;
}

.bo-dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: #8d8f99;
    font-size: 11px;
    margin-bottom: 4px;
}

.bo-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.bo-dp-day {
    background: transparent;
    border: none;
    color: #e7e8ec;
    border-radius: 6px;
    padding: 7px 0;
    cursor: pointer;
    font-size: 12.5px;
    font-family: inherit;
}

.bo-dp-day:hover {
    background: rgba(255, 255, 255, .1);
}

.bo-dp-day.is-today {
    box-shadow: inset 0 0 0 1px rgba(197, 25, 39, .6);
}

.bo-dp-day.is-selected {
    background: linear-gradient(135deg, #C51927, #9c141f);
    color: #fff;
    font-weight: 700;
}

.bo-dp-day.is-disabled {
    color: #4d4f57;
    cursor: not-allowed;
}

.bo-dp-day.is-disabled:hover {
    background: transparent;
}

.bo-dp-day-empty {
    visibility: hidden;
    cursor: default;
}
