/* ===== Flatpickr ICICI overrides (CSP-safe: external stylesheet) ===== */

/* Input wrapper */
.flatpickr-wrapper {
    width: 100%;
    display: block;
}

/* The visible text input (altInput) */
.flatpickr-input.flatpickr-input--has-value,
.flatpickr-input:not([type="hidden"]) {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 40px 8px 12px; /* right padding for the icon */
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: text;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.flatpickr-input:not([type="hidden"]):focus {
    outline: none;
    border-color: #e87722;
    box-shadow: 0 0 0 2px rgba(232, 119, 34, 0.15);
}

/* Hide the hidden ISO input that flatpickr uses internally */
.flatpickr-input[type="hidden"] {
    display: none !important;
}

/* Calendar popup */
.flatpickr-calendar {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    border: 1px solid #ddd;
    font-family: inherit;
    margin-top: 4px;
}

/* Month header */
.flatpickr-months {
    background: #fff;
    border-radius: 10px 10px 0 0;
    padding: 4px 0;
}
.flatpickr-month {
    background: #fff;
    color: #333;
}
.flatpickr-current-month {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 600;
    color: #333;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #555;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: #e87722;
}

/* Day-of-week headers */
.flatpickr-weekdays {
    background: #fff;
}
span.flatpickr-weekday {
    background: #fff;
    color: #999;
    font-weight: 600;
    font-size: 11px;
}

/* Day cells */
.flatpickr-days {
    border-left: none;
    border-right: none;
}
.dayContainer {
    padding: 0 4px 8px;
}
.flatpickr-day {
    border-radius: 50%;
    color: #333;
    font-size: 13px;
}
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #fdecd8;
    border-color: #fdecd8;
    color: #333;
}
.flatpickr-day.today {
    border-color: #e87722;
    color: #e87722;
    font-weight: 600;
}
.flatpickr-day.today:hover {
    background: #fdecd8;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #e87722;
    border-color: #e87722;
    color: #fff;
}
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #ddd;
    cursor: not-allowed;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #ccc;
}

