
.datepicker-container {
    background-color: #ffffff;
    direction: ltr;
    font-family: "Salesforce Sans", "Arial", sans-serif;
    font-size: 0.875rem;
    left: 0;
    line-height: 1.5;
    position: fixed;
    -webkit-tap-highlight-color: transparent;
    top: 0;
    -ms-touch-action: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 300px;
    z-index: 2000!important;
    animation: datepicker-in 0.15s ease-out;
    color: #080707;
}

@keyframes datepicker-in {
    0% {
        opacity: 0;
        transform: translateY(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.datepicker-container::before,
.datepicker-container::after {
    border: 5px solid transparent;
    content: " ";
    display: block;
    height: 0;
    position: absolute;
    width: 0;
}

.datepicker-dropdown {
    border: 1px solid #dddbda;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    position: absolute;
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    padding: 0 0 6px 0;
}

.datepicker-dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0176d3;
    z-index: 2;
}

.datepicker-dropdown::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    background-color: transparent;
    z-index: 1;
}

.datepicker-inline {
    position: static;
}

.datepicker-top-left,
.datepicker-top-right {
    border-top-color: #dddbda;
}

.datepicker-top-left::before,
.datepicker-top-left::after,
.datepicker-top-right::before,
.datepicker-top-right::after {
    border-top: 0;
    left: 10px;
    top: -5px;
}

.datepicker-top-left::before,
.datepicker-top-right::before {
    border-bottom-color: #dddbda;
}

.datepicker-top-left::after,
.datepicker-top-right::after {
    border-bottom-color: #fff;
    top: -4px;
}

.datepicker-bottom-left,
.datepicker-bottom-right {
    border-bottom-color: #dddbda;
}

.datepicker-bottom-left::before,
.datepicker-bottom-left::after,
.datepicker-bottom-right::before,
.datepicker-bottom-right::after {
    border-bottom: 0;
    bottom: -5px;
    left: 10px;
}

.datepicker-bottom-left::before,
.datepicker-bottom-right::before {
    border-top-color: #dddbda;
}

.datepicker-bottom-left::after,
.datepicker-bottom-right::after {
    border-top-color: #fff;
    bottom: -4px;
}

.datepicker-top-right::before,
.datepicker-top-right::after,
.datepicker-bottom-right::before,
.datepicker-bottom-right::after {
    left: auto;
    right: 10px;
}

.datepicker-panel {
    position: relative;
    padding: 10px 0 6px;
}

.datepicker-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    background-color: transparent;
    z-index: 2;
}

.datepicker-panel > ul {
    margin: 0;
    padding: 0;
    width: 102%;
}

.datepicker-panel > ul::before,
.datepicker-panel > ul::after {
    content: " ";
    display: table;
}

.datepicker-panel > ul::after {
    clear: both;
}

.datepicker-panel > ul > li {
    background-color: #fff;
    cursor: pointer;
    float: left;
    height: 39px;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 39px;
    border-radius: 4px;
    transition: all 0.15s ease;
    position: relative;
    line-height: 39px;
    margin: 1.5px;
    font-size: 0.875rem;
}

.datepicker-panel > ul > li:hover {
    background-color: #f3f8fe;
    transform: none;
    box-shadow: none;
}

.datepicker-panel > ul > li:active {
    transform: none;
    box-shadow: none;
    background-color: #ecf3fb;
}

.datepicker-panel > ul > li.muted,
.datepicker-panel > ul > li.muted:hover {
    color: #c9c7c5;
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

.datepicker-panel > ul > li.highlighted {
    background-color: #f3f2f2;
    font-weight: 600;
}

.datepicker-panel > ul > li.highlighted:hover {
    background-color: #ecebea;
}

.datepicker-panel > ul > li.picked,
.datepicker-panel > ul > li.picked:hover {
    color: #fff;
    background-color: #0176d3;
    box-shadow: none;
    font-weight: 600;
}

.datepicker-panel > ul > li.disabled,
.datepicker-panel > ul > li.disabled:hover {
    background-color: #fff;
    color: #dddbda;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.datepicker-panel > ul > li.disabled.highlighted,
.datepicker-panel > ul > li.disabled:hover.highlighted {
    background-color: #fafaf9;
}

.datepicker-panel > ul > li[data-view="years prev"],
.datepicker-panel > ul > li[data-view="year prev"],
.datepicker-panel > ul > li[data-view="month prev"],
.datepicker-panel > ul > li[data-view="years next"],
.datepicker-panel > ul > li[data-view="year next"],
.datepicker-panel > ul > li[data-view="month next"],
.datepicker-panel > ul > li[data-view="next"] {
    font-size: 1.25rem;
    color: #0176d3;
    font-weight: 600;
}

.datepicker-panel > ul > li[data-view="years current"],
.datepicker-panel > ul > li[data-view="year current"],
.datepicker-panel > ul > li[data-view="month current"] {
    width: 170px;
    font-weight: 700;
    font-family: "Salesforce Sans", "Arial", sans-serif;
    position: relative;
    font-size: 0.9375rem;
    color: #080707;
    padding: 0 6px;
}

.datepicker-panel > ul > li[data-view="years current"]::after,
.datepicker-panel > ul > li[data-view="year current"]::after,
.datepicker-panel > ul > li[data-view="month current"]::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 0;
    background-color: transparent;
    transform: translateX(-50%);
}

.datepicker-panel > ul[data-view="years"] > li,
.datepicker-panel > ul[data-view="months"] > li {
    height: 58px;
    line-height: 58px;
    width: 58px;
    font-size: 0.9375rem;
    margin: 3px 2px;
}

.datepicker-panel > ul[data-view="week"] {
    padding: 4px 0;
    margin-bottom: 6px;
}

.datepicker-panel > ul[data-view="week"] > li,
.datepicker-panel > ul[data-view="week"] > li:hover {
    background-color: #f3f2f2;
    color: #706e6b;
    cursor: default;
    font-weight: 600;
    font-size: 0.8125rem;
    transform: none;
    box-shadow: none;
    height: 30px;
    line-height: 30px;
}

/* Header row with days of week */
.datepicker-panel > ul[data-view="week"] {
    background-color: #f3f2f2;
    border-bottom: 1px solid #ecebea;
    margin-bottom: 6px;
}

/* Today's date style */
.datepicker-panel > ul > li.picked.highlighted {
    background-color: #0176d3;
    color: #fff;
}

.datepicker-hide {
    display: none;
}

/* Input field styling */
input.datepicker-input {
    padding: 10px 14px;
    border: 1px solid #dddbda;
    border-radius: 4px;
    font-family: "Salesforce Sans", "Arial", sans-serif;
    font-size: 0.875rem;
    color: #080707;
    background-color: #fff;
    box-shadow: none;
    outline: none;
    transition: all 0.15s ease;
    background-image: 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='%230176d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
    height: 40px;
    line-height: 1.5;
}

input.datepicker-input:focus {
    border-color: #0176d3;
    box-shadow: 0 0 3px #0176d3;
    background-color: #fff;
}

input.datepicker-input:hover {
    box-shadow: none;
    border-color: #c9c7c5;
}

input.datepicker-input::placeholder {
    color: #706e6b;
}

/* Month selector styling */
.datepicker-panel > ul[data-view="months"] {
    padding: 6px 0;
}

/* Year selector styling */
.datepicker-panel > ul[data-view="years"] {
    padding: 6px 0;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .datepicker-container {
        width: 290px;
        font-size: 0.875rem;
    }

    .datepicker-panel > ul > li {
        height: 36px;
        width: 36px;
        line-height: 36px;
        font-size: 0.875rem;
    }

    input.datepicker-input {
        padding: 8px 12px;
        font-size: 0.875rem;
        padding-right: 34px;
        background-size: 16px;
        background-position: right 8px center;
        height: 38px;
    }
}

/* Additional Salesforce-specific enhancements */
.datepicker-panel > ul > li.picked:focus {
    outline: 2px solid #0176d3;
    outline-offset: 2px;
}

.datepicker-container.datepicker-inline {
    border: 1px solid #dddbda;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Ensure proper spacing */
.datepicker-panel > ul[data-view="days"] {
    padding: 0 4px;
}

/* Range selection styling (if applicable) */
.datepicker-panel > ul > li.in-range {
    background-color: #ecf3fb;
    color: #0176d3;
}

.datepicker-panel > ul > li.in-range:hover {
    background-color: #d8e6f3;
}

/* Disabled dates that are in range */
.datepicker-panel > ul > li.disabled.in-range {
    background-color: #fafaf9;
    color: #dddbda;
}

/* Weekend styling (optional enhancement) */
.datepicker-panel > ul > li[data-view]:nth-child(7n),
.datepicker-panel > ul > li[data-view]:nth-child(7n+1) {
    /* Styling for weekend days if needed */
}

/* Loading state */
.datepicker-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error state for input */
input.datepicker-input.error {
    border-color: #c23934;
}

input.datepicker-input.error:focus {
    box-shadow: 0 0 3px #c23934;
}

/* Success state for input */
input.datepicker-input.success {
    border-color: #027e46;
}

input.datepicker-input.success:focus {
    box-shadow: 0 0 3px #027e46;
}