/* Janaki Pos Nepali Datepicker Custom Enhancements */
.ndp-container {
    z-index: 999999 !important;
    font-family: inherit !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 35px -5px rgba(0, 0, 0, 0.25), 0 8px 16px -6px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.14) !important;
}

[data-theme="dark"] .ndp-container,
.dark-mode .ndp-container,
html[data-theme="dark"] .ndp-container {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .ndp-container .ndp-table,
.dark-mode .ndp-container .ndp-table,
html[data-theme="dark"] .ndp-container .ndp-table {
    background: #1e293b !important;
    color: #f8fafc !important;
}

[data-theme="dark"] .ndp-header .ndp-header-link,
.dark-mode .ndp-header .ndp-header-link,
html[data-theme="dark"] .ndp-header .ndp-header-link {
    color: #f8fafc !important;
}

[data-theme="dark"] .ndp-container .ndp-table td:hover,
html[data-theme="dark"] .ndp-container .ndp-table td:hover {
    background: #334155 !important;
}

.ndp-table td.ndp-selected {
    background-color: var(--pos-primary, var(--dynamic-primary, #c52127)) !important;
    color: #fff !important;
}

.ndp-table td.ndp-today {
    color: var(--pos-primary, var(--dynamic-primary, #c52127)) !important;
    font-weight: 700;
}

.ndp-today-button {
    background: var(--pos-primary, var(--dynamic-primary, #c52127)) !important;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 5px;
}

.nepali-datepicker-input {
    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='%23888888' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

/* POS Checkout Modal Due Date Styling - ensures input[type="text"] looks identical to native */
.pay-due-date-row input.nepali-datepicker-input,
.pay-due-date-row input[type="text"] {
    width: 100% !important;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--pos-line, #e2e8f0) !important;
    background: var(--pos-surface, #ffffff) !important;
    padding: 0 36px 0 16px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--pos-ink, #0f172a) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pay-due-date-row input.nepali-datepicker-input:focus,
.pay-due-date-row input[type="text"]:focus {
    border-color: var(--pos-primary, #c52127) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pos-primary, #c52127) 22%, transparent) !important;
}

html[data-theme="dark"] .pay-due-date-row input.nepali-datepicker-input,
html[data-theme="dark"] .pay-due-date-row input[type="text"] {
    border-color: var(--pos-line, #334155) !important;
    background: var(--pos-surface, #1e293b) !important;
    color: var(--pos-ink, #f8fafc) !important;
}
