﻿/* =========================================================
   OLI EJ2 DATE PICKER – CLEAN OVIALAND STYLE
   Removes all pink / default Syncfusion styles
========================================================= */

/* ------------------------------
   BASE INPUT WRAPPER
------------------------------ */
.oli-datepicker.e-control-wrapper,
.oli-datepicker.e-control-wrapper.e-input-group {
    border-radius: 14px;
    border: 1.5px solid #dcefe4;
    background-color: #ffffff;
    padding: 4px 12px;
    height: 44px;
    font-family: "Poppins", sans-serif;
    transition: all .25s ease;
}

/* Input text */
.oli-datepicker input.e-input {
    background-color: transparent !important;
    font-size: 14px;
    font-weight: 500;
    color: #1f2933;
    border: none !important;
    outline: none !important;
}

/* ------------------------------
   REMOVE DEFAULT PINK / RED
------------------------------ */

/* Remove red/pink border & underline */
.e-control-wrapper.e-input-group.e-error,
.e-control-wrapper.e-input-group.e-input-focus,
.e-control-wrapper.e-input-group.e-focused {
    border-color: #dcefe4 !important;
    box-shadow: none !important;
}

/* Kill underline (::after) */
.e-input-group.e-error::after,
.e-input-group.e-input-focus::after,
.e-input-group.e-focused::after {
    background: transparent !important;
    height: 0 !important;
}

/* Remove active background on input */
.e-input-group input:focus,
.e-input-group input:active {
    background-color: #ffffff !important;
}

/* Remove active background on icon */
.e-input-group-icon,
.e-input-group-icon.e-active {
    background: transparent !important;
}

/* ------------------------------
   OLI FOCUS STATE (GREEN)
------------------------------ */
.oli-datepicker.e-input-focus,
.oli-datepicker.e-focused {
    border-color: #32893b !important;
    box-shadow: 0 0 0 4px rgba(50, 137, 59, 0.15) !important;
}

/* Calendar icon */
.oli-datepicker .e-input-group-icon {
    color: #32893b !important;
    font-size: 16px;
}

/* ------------------------------
   DISABLE RED ERROR TEXT COLOR
------------------------------ */
.e-error .e-input {
    color: #1f2933 !important;
}

/* ------------------------------
   DATEPICKER POPUP (CALENDAR)
------------------------------ */
.e-datepicker.e-popup {
    border-radius: 18px;
    border: none;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    font-family: "Poppins", sans-serif;
}

/* Header */
.e-datepicker .e-header {
    background: linear-gradient(135deg, #32893b, #4fb66a);
    color: #ffffff;
    padding: 14px;
}

/* Header text */
.e-datepicker .e-title {
    font-weight: 600;
    font-size: 15px;
}

/* Weekdays */
.e-datepicker th {
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
}

/* Date cells */
.e-datepicker td span.e-day {
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    transition: all .2s ease;
}

    /* Hover */
    .e-datepicker td span.e-day:hover {
        background-color: #e6f4ec;
        color: #32893b;
    }

/* Selected */
.e-datepicker td.e-selected span.e-day {
    background: linear-gradient(135deg, #32893b, #4fb66a);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(50,137,59,.35);
}

/* Today */
.e-datepicker td.e-today span.e-day {
    border: 2px solid #32893b;
    color: #32893b;
    font-weight: 600;
}

/* Footer */
.e-datepicker .e-footer-container {
    background: #f9fafb;
    padding: 12px;
}

/* Today button */
.e-datepicker .e-btn.e-flat.e-primary {
    background-color: #32893b;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 500;
    padding: 6px 16px;
}
