/* Premium dd/mm/yyyy date picker — platform-wide (Admin, B2B, B2C) */

.pdp-native-hidden {
    position: absolute !important;
    width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important;
    border: 0 !important; opacity: 0 !important;
}

.pdp-display {
    display: inline-flex; align-items: center; gap: 8px;
    width: 100%; height: 100%; min-height: 34px;
    padding: 0 12px; box-sizing: border-box;
    cursor: pointer; user-select: none;
    font-size: inherit; color: inherit;
}
.pdp-display:focus { outline: 2px solid #0D1B5E; outline-offset: 1px; border-radius: 4px; }
.pdp-icon { color: #0D1B5E; font-size: .9em; flex-shrink: 0; }
.pdp-text { flex: 1; white-space: nowrap; }
.pdp-text.pdp-placeholder { color: #9ca3af; }

/* ── Calendar popup ── */
.pdp-popup {
    display: none; position: absolute;
    background: #fff; border-radius: 14px;
    box-shadow: 0 16px 48px rgba(13,27,94,.22), 0 4px 14px rgba(0,0,0,.1);
    z-index: 999999; min-width: 280px; font-family: inherit;
    animation: pdpFadeIn .14s ease;
}
@keyframes pdpFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.pdp-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 8px;
}
.pdp-header-label { font-size: 14px; font-weight: 700; color: #0D1B5E; }
.pdp-nav {
    background: none; border: none; font-size: 20px; color: #0D1B5E;
    cursor: pointer; padding: 2px 10px; border-radius: 8px;
    line-height: 1; font-weight: 700; transition: background .12s;
}
.pdp-nav:hover { background: #f0f4ff; }

.pdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 12px 10px; }
.pdp-dow {
    font-size: 10px; font-weight: 800; color: #9ca3af;
    text-transform: uppercase; text-align: center; padding: 4px 0 6px;
    letter-spacing: .04em;
}
.pdp-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 8px; }
.pdp-day { cursor: pointer; font-weight: 500; color: #374151; transition: background .1s, color .1s; }
.pdp-day:hover { background: #f0f4ff; color: #0D1B5E; }
.pdp-disabled { color: #d1d5db; cursor: not-allowed; }
.pdp-today { background: #FFF8EC; color: #d97706; font-weight: 800; box-shadow: inset 0 0 0 2px #F5A623; }
.pdp-selected { background: #0D1B5E; color: #fff; font-weight: 700; }

.pdp-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-top: 1px solid #f3f4f6;
}
.pdp-today-btn, .pdp-close-btn {
    background: none; border: none; font-size: 12.5px; font-weight: 700;
    cursor: pointer; padding: 5px 10px; border-radius: 6px; transition: background .12s;
}
.pdp-today-btn { color: #0D1B5E; }
.pdp-today-btn:hover { background: #f0f4ff; }
.pdp-close-btn { color: #6b7280; }
.pdp-close-btn:hover { background: #f3f4f6; }

@media (max-width: 480px) {
    .pdp-popup { min-width: 92vw; left: 4vw !important; }
}
