@charset "UTF-8";

/* iOS 7 Date Picker Styles - Completely Scoped */

/* Container */
.ios-datepicker-calendar {
    position: relative;
    display: block;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* The Popup View */
.ios-datepicker-calendar .ios-dp-view {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10000;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 16px;
    width: 280px;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Header with Month/Year */
.ios-datepicker-calendar .ios-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    height: 32px;
}

.ios-datepicker-calendar .ios-dp-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    text-align: center;
    flex: 1;
}

/* Navigation Buttons */
.ios-datepicker-calendar .ios-dp-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #007aff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.ios-datepicker-calendar .ios-dp-nav-btn:hover {
    background-color: rgba(0, 122, 255, 0.1);
}

/* Weekday Header Row */
.ios-datepicker-calendar .ios-dp-weekdays {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.ios-datepicker-calendar .ios-dp-weekday {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #8e8e93;
    font-size: 12px;
}

/* Days Grid Container */
.ios-datepicker-calendar .ios-dp-days {
    position: relative;
    width: 100%;
    /* Check render loop for dynamic rows */
    overflow: hidden;
}

.ios-datepicker-calendar .ios-dp-days-inner {
    position: relative;
    /* Changed from absolute to relative to push height */
    width: 100%;
}

/* Day Row */
.ios-datepicker-calendar .ios-dp-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* Day Cell */
.ios-datepicker-calendar .ios-dp-day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    color: #000;
    transition: background-color 0.1s;
}

.ios-datepicker-calendar .ios-dp-day:hover {
    background-color: #f2f2f7;
}

.ios-datepicker-calendar .ios-dp-day.other-month {
    color: #c7c7cc;
    visibility: hidden;
    /* Hide other month days as requested */
    pointer-events: none;
}

.ios-datepicker-calendar .ios-dp-day.today {
    color: #007aff;
    font-weight: 600;
}

.ios-datepicker-calendar .ios-dp-day.selected {
    background-color: #007aff;
    color: #fff;
    font-weight: 500;
}

.ios-datepicker-calendar .ios-dp-day.selected.today {
    color: #fff;
}