/* Custom Nepali-aware date picker (see static/js/np_datepicker.js) — navy/gold palette
   matching the staff Theme 4 navbar and the public site's accent colors. */
.npdp-popup {
    display: none;
    position: absolute;
    z-index: 2050; /* above modals (1050+), below the global loader (2000)... loader wins during nav */
    width: 322px;
    background: #fff;
    border: 1px solid #d5d9e0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(20, 30, 60, 0.25);
    overflow: hidden;
    font-family: inherit;
    user-select: none;
}

.npdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
    color: #fff;
}
.npdp-title { text-align: center; font-weight: 600; line-height: 1.2; }
.npdp-bs-title { font-size: 0.72rem; color: #ffd166; font-weight: 500; }
.npdp-nav {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 6px;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.npdp-nav:hover { background: rgba(255, 209, 102, 0.35); }

.npdp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 8px;
}
.npdp-weekday {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    padding: 4px 0;
}
.npdp-day {
    text-align: center;
    padding: 3px 0 2px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.05;
}
.npdp-day:hover { background: #eef3fb; }
.npdp-ad { display: block; font-size: 0.95rem; font-weight: 600; color: #212529; }
.npdp-bs { display: block; font-size: 0.58rem; color: #8a93a2; }
.npdp-sat .npdp-ad, .npdp-weekday.npdp-sat { color: #d63946; } /* Saturday = holiday in Nepal */

.npdp-today { box-shadow: inset 0 0 0 2px #0f3460; }
.npdp-selected { background: #0f3460; }
.npdp-selected:hover { background: #0f3460; }
.npdp-selected .npdp-ad { color: #fff; }
.npdp-selected .npdp-bs { color: #ffd166; }

.npdp-disabled { opacity: 0.35; cursor: not-allowed; }
.npdp-disabled:hover { background: transparent; }

.npdp-footer {
    border-top: 1px solid #eceff3;
    padding: 6px 10px;
    text-align: center;
}
.npdp-today-btn {
    border: none;
    background: none;
    color: #0f3460;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}
.npdp-today-btn:hover { color: #d4af37; }
