.mini-calendar {
    min-height: auto;
    font-family: 'Sarabun', sans-serif;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-header-cell {
    padding: 3px 2px;
    text-align: center;
    font-weight: bold;
    font-size: 0.7rem;
    color: #555;
}

.calendar-body-rows {
    display: flex;
    flex-direction: column;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #f0f0f0;
}

.calendar-row:last-child {
    border-bottom: none;
}

.calendar-cell {
    min-height: 26px;
    height: 26px;
    padding: 1px;
    border-right: 1px solid #f0f0f0;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell:last-child {
    border-right: none;
}

.calendar-cell:hover {
    background-color: #f0f4ff;
}

.calendar-cell.empty {
    background-color: #fafafa;
    cursor: default;
}

.day-number {
    font-size: 0.72rem;
    font-weight: 600;
    color: #333;
    display: block;
    text-align: center;
    width: 100%;
    line-height: 1;
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-end;
}

.calendar-cell.status-approved {
    background-color: #71dd37;
    color: white;
}

.calendar-cell.status-approved .day-number {
    color: white;
}

.calendar-cell.status-pending {
    background-color: #ffab00;
    color: white;
}

.calendar-cell.status-pending .day-number {
    color: white;
}

.calendar-cell.status-rejected {
    background-color: #ff3e1d;
    color: white;
}

.calendar-cell.status-rejected .day-number {
    color: white;
}

.calendar-cell.status-approved:hover {
    background-color: #5ec52a;
}

.calendar-cell.status-pending:hover {
    background-color: #e69a00;
}

.calendar-cell.status-rejected:hover {
    background-color: #e6381a;
}

.mini-calendar-header {
    margin-bottom: 0.5rem;
}

.booking-details-panel {
    padding: 0.65rem 0.8rem;
    border: 1px solid #e9eaf5;
    border-radius: 0.65rem;
    background: #f8f9ff;
}

.booking-detail-row {
    display: grid;
    grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
    gap: 0.6rem;
    padding: 0.48rem 0;
    border-bottom: 1px solid #e9eaf2;
    font-size: 0.82rem;
    line-height: 1.5;
}

.booking-detail-row:last-child {
    border-bottom: 0;
}

.booking-detail-row span {
    color: #7a8296;
}

.booking-detail-row strong {
    color: #34384b;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-cell {
        min-height: 28px;
        height: 28px;
    }
    .day-number {
        font-size: 0.72rem;
    }
    .event-dot {
        width: 5px;
        height: 5px;
    }
    .booking-detail-row {
        grid-template-columns: minmax(88px, 0.72fr) minmax(0, 1.28fr);
        gap: 0.45rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 576px) {
    .swal2-container .swal2-popup {
        width: calc(100vw - 1rem) !important;
        max-width: 430px !important;
        max-height: calc(100dvh - 1rem) !important;
        padding: 0.9rem 0.75rem !important;
        overflow: hidden !important;
        border-radius: 18px !important;
    }

    .swal2-container .swal2-title {
        margin: 0.35rem 0 0.5rem !important;
        font-size: 1.12rem !important;
        line-height: 1.35 !important;
    }

    .swal2-container .swal2-html-container {
        width: 100% !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 220px) !important;
        margin: 0.5rem 0 !important;
        padding: 0 0.15rem !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .swal2-container .swal2-actions {
        margin-top: 0.35rem !important;
    }
}
