.ms-datepicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 148px;
    flex: 0 0 148px;
}

.ms-datepicker input {
    width: 100%;
    padding-right: 2.15rem !important;
    cursor: pointer;
    background: #fff;
}

.ms-dp-icon {
    position: absolute;
    right: 0.7rem;
    color: #64748b;
    pointer-events: none;
    font-size: 0.86rem;
}

.ms-dp-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 90;
    width: 268px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.ms-dp-panel[hidden] {
    display: none;
}

.ms-dp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.ms-dp-head strong {
    font-size: 0.82rem;
    color: #0f172a;
}

.ms-dp-nav {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.ms-dp-nav:hover {
    background: #e2e8f0;
}

.ms-dp-week,
.ms-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.ms-dp-week span {
    padding: 0.2rem 0;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
}

.ms-dp-day {
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.ms-dp-day:hover {
    background: #eef2ff;
}

.ms-dp-day.is-today {
    box-shadow: inset 0 0 0 1px #2c449c;
}

.ms-dp-day.is-selected {
    background: #2c449c;
    color: #fff;
}

.ms-dp-empty {
    height: 30px;
}

.ms-dp-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
}

.ms-dp-foot button {
    border: 0;
    background: transparent;
    color: #2c449c;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0;
}

.ms-dp-foot .ms-dp-clear {
    color: #64748b;
    font-weight: 600;
}

.ms-dp-noclear .ms-dp-clear {
    visibility: hidden;
}

.ms-datepicker.ms-datepicker--block {
    display: flex;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
}

.ms-dp-panel {
    z-index: 1200;
}

.ms-dp-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.ms-dp-month {
    height: 38px;
}
