/*! papilooDatepicker - version 1.5.3 */
.bd-hide {
    display: none
}

.bd-main {
    background-color: #fff;
    border: 1px solid #000;
    padding: 5px;
    position: absolute !important;
    z-index: 99999 !important;
    width: auto !important;
    margin: 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .2), 0 6px 20px 0 rgba(0, 0, 0, .19)
}

.bd-calendar {
    width: 250px;
    padding: 0;
    margin: 0
}

.bd-calendar table {
    border: none;
    width: 250px
}

.bd-title {
    width: 240px;
    padding: 0;
    margin: 0 0 5px 0;
}

.bd-controls-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.bd-month-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.bd-year-input-container {
    display: flex;
    align-items: center;
}

.bd-dropdown {
    flex: 1;
    text-align: center;
}

.bd-dropdown select {
    width: 100%;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;
    padding: 0 5px;
    font-size: 11px;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

.bd-dropdown select:focus {
    outline: none;
    border-color: #007bff;
}

.bd-prev, .bd-next {
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.bd-prev:hover, .bd-next:hover {
    background: #e0e0e0;
}

.bd-prev:focus, .bd-next:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

.bd-year-controls {
    display: flex;
    align-items: center;
}

.bd-year-input {
    width: 70px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    font-size: 13px;
    padding: 0 8px;
    font-family: Tahoma, Arial, sans-serif;
}

.bd-year-input:focus {
    outline: none;
    border-color: #007bff;
}

/* حذف استایل‌های دکمه‌های سال */
/*
.bd-year-buttons {
    display: flex;
    flex-direction: column;
}

.bd-year-up, .bd-year-down {
    width: 20px;
    height: 14px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bd-year-up:hover, .bd-year-down:hover {
    background: #e0e0e0;
}

.bd-year-up:focus, .bd-year-down:focus {
    outline: 1px solid #007bff;
}
*/

.bd-table thead {
    background-color: #555;
    color: #fff
}

.bd-table thead tr {
    height: 30px;
    cursor: context-menu
}

.bd-table thead tr th {
    text-align: center;
    font-size: 11px;
    font-weight: normal;
}

.bd-table tbody tr td {
    border: none
}

.bd-empty-cell,
.bd-table-days button {
    width: 30px;
    height: 30px
}

.bd-table-days button {
    background-color: #f8f8f8;
    border: 0;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
}

.bd-table-days button:hover:enabled {
    color: red;
    font-weight: 700;
    background-color: #e7e7e7;
}

.bd-table-days button:disabled {
    background-color: #eee;
    cursor: not-allowed;
}

.bd-table-days button:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

.bd-today {
    background-color: #dff0d8 !important;
    color: green;
    font-weight: bold;
}

.bd-holiday {
    background-color: #fde8e8 !important;
    color: #d9534f;
}

.bd-selected-day {
    color: red;
    font-weight: 700;
    background-color: #fff0f0 !important;
    border: 2px solid red !important;
}

.bd-goto-today {
    width: 250px;
    height: 30px;
    color: #fff;
    background-color: #555555;
    cursor: pointer;
    text-align: center;
    margin-top: 5px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 30px;
    transition: background-color 0.3s;
    font-family: Tahoma, Arial, sans-serif;
}

.bd-goto-today:hover {
    background-color: #666666;
}

.bd-goto-today:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

.bd-clear {
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-top: 5px;
    width: 100%;
    border-radius: 3px;
    font-size: 11px;
    transition: background-color 0.3s;
    font-family: Tahoma, Arial, sans-serif;
}

.bd-clear:hover {
    background-color: #cc0000;
}

.bd-clear:focus {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 480px) {
    .bd-calendar {
        width: 220px;
    }

    .bd-calendar table {
        width: 220px;
    }

    .bd-title {
        width: 210px;
    }

    .bd-controls-container {
        gap: 5px;
    }

    .bd-year-input {
        width: 60px;
        font-size: 12px;
    }

    .bd-goto-today {
        width: 220px;
    }
}

/* استایل برای حالت‌های مختلف */
.bd-table {
    border-collapse: collapse;
    border-spacing: 0;
}

.bd-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.bd-table tbody tr:last-child {
    border-bottom: none;
}

/* استایل برای روزهای آخر هفته */
.bd-table thead tr th:first-child,
.bd-table thead tr th:last-child {
    background-color: #444;
}
