input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
input[type="date"]:not(:disabled):not([readonly]) { cursor: pointer; }

.lims-dp {
    position: fixed;
    z-index: 3000;
    width: 19.5rem;
    padding: 0 0 0.6rem;
    border: 1px solid #b9e4ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 76, 92, 0.22), 0 2px 6px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    font-family: inherit;
    font-size: 0.92rem;
    color: #0f2f3a;
    animation: lims-dp-in 0.14s ease-out;
}
.lims-dp[hidden] { display: none; }
@keyframes lims-dp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.lims-dp-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.6rem;
    background: linear-gradient(135deg, #0f9fb5 0%, #4f46e5 100%);
    color: #fff;
}
.lims-dp-nav,
.lims-dp-title {
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.12s ease;
}
.lims-dp-nav { width: 2.2rem; height: 2.2rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.lims-dp-title { flex: 1 1 auto; height: 2.2rem; font-size: 1rem; }
.lims-dp-title i { font-size: 0.75rem; opacity: 0.85; }
.lims-dp-nav:hover,
.lims-dp-title:hover { background: rgba(255, 255, 255, 0.3); }

.lims-dp-week,
.lims-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    padding: 0 0.6rem;
}
.lims-dp-week { padding-top: 0.55rem; padding-bottom: 0.25rem; }
.lims-dp-week span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #4f46e5;
    padding: 0.25rem 0;
    border-radius: 8px;
    background: #eef2ff;
}
.lims-dp-week span.is-weekend { color: #be123c; background: #fff1f2; }

.lims-dp-day {
    height: 2.25rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #0f2f3a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease, border-color 0.1s ease;
}
.lims-dp-day:hover:not(:disabled) { background: #e0f7fa; border-color: #99dbe6; }
.lims-dp-day.is-other { color: #94a3b8; font-weight: 500; }
.lims-dp-day.is-weekend:not(.is-selected) { color: #be123c; }
.lims-dp-day.is-weekend.is-other:not(.is-selected) { color: #fda4af; }
.lims-dp-day.is-today { border-color: #0f9fb5; box-shadow: inset 0 0 0 1px #0f9fb5; color: #0e7490; font-weight: 900; }
.lims-dp-day.is-focus:not(.is-selected) { background: #eef2ff; border-color: #a5b4fc; }
.lims-dp-day.is-selected {
    background: linear-gradient(145deg, #0f9fb5 0%, #4f46e5 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
}
.lims-dp-day:disabled { color: #cbd5e1; background: #f8fafc; cursor: not-allowed; text-decoration: line-through; }

.lims-dp-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding: 0.7rem 0.6rem 0.2rem;
}
.lims-dp-month {
    height: 2.6rem;
    border: 1px solid #d7ebf0;
    border-radius: 12px;
    background: #f8fdfe;
    color: #0f3b46;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.lims-dp-month:hover { background: #e0f7fa; border-color: #99dbe6; }
.lims-dp-month.is-today { border-color: #0f9fb5; }
.lims-dp-month.is-selected { background: linear-gradient(145deg, #0f9fb5 0%, #4f46e5 100%); color: #fff; border-color: transparent; }

.lims-dp-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin: 0.55rem 0.6rem 0;
    padding-top: 0.55rem;
    border-top: 1px dashed #cfe8ee;
}
.lims-dp-value { font-weight: 900; color: #0e7490; font-size: 0.95rem; }
.lims-dp-value em { font-style: normal; font-weight: 600; font-size: 0.78rem; color: #94a3b8; }
.lims-dp-actions { display: inline-flex; gap: 0.35rem; }
.lims-dp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 2rem;
    padding: 0 0.65rem;
    border-radius: 10px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}
.lims-dp-btn.is-today { border: 1px solid #5eead4; background: linear-gradient(145deg, #ccfbf1, #99f6e4); color: #115e59; }
.lims-dp-btn.is-clear { border: 1px solid #fda4af; background: linear-gradient(145deg, #ffe4e6, #fecdd3); color: #9f1239; }
.lims-dp-btn:hover { filter: brightness(1.04); }

@media (prefers-reduced-motion: reduce) { .lims-dp { animation: none; } }
