/* Fix694 - shared polished in-app date picker. Keeps one calendar icon and replaces the browser-native popup. */
.nt-date-picker-control {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.nt-date-picker-control > .form-control,
.nt-date-picker-control > input {
    width: 100%;
    padding-right: 42px !important;
    border-color: #cfd8e6;
    border-radius: 10px;
    background-color: #fff;
    color: #172033;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(15,23,42,.04);
}

.nt-date-picker-control-sm > .form-control,
.nt-date-picker-control-sm > input {
    padding-right: 38px !important;
    border-radius: 9px;
    font-size: .78rem;
}

.nt-date-picker-control > .form-control:hover,
.nt-date-picker-control > input:hover {
    border-color: #aebbd0;
}

.nt-date-picker-control > .form-control:focus,
.nt-date-picker-control > input:focus {
    border-color: #405189;
    box-shadow: 0 0 0 .18rem rgba(64,81,137,.13), 0 6px 16px rgba(15,23,42,.06);
}

.nt-date-picker-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #405189;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.nt-date-picker-button:hover,
.nt-date-picker-button:focus {
    color: #25316d;
    background: rgba(64,81,137,.09);
    outline: none;
}

.nt-date-picker-control-sm .nt-date-picker-button {
    right: 6px;
    width: 26px;
    height: 26px;
}

.nt-date-picker-control-direct > .form-control,
.nt-date-picker-control-direct > input {
    min-height: 42px;
    border-radius: 12px;
    background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
    font-size: .9rem;
    font-weight: 750;
}

.nt-date-picker-popover {
    position: fixed;
    z-index: 1095;
    width: 296px;
    padding: 12px;
    border: 1px solid #d8e0ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15,23,42,.16), 0 6px 14px rgba(15,23,42,.08);
    color: #172033;
    font-family: inherit;
}

.nt-date-picker-popover[hidden] {
    display: none !important;
}

.nt-date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}

.nt-date-picker-month-title {
    font-size: .94rem;
    font-weight: 750;
    color: #172033;
    text-align: center;
    flex: 1 1 auto;
}

.nt-date-picker-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #405189;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nt-date-picker-nav:hover,
.nt-date-picker-nav:focus {
    border-color: #c7d2e4;
    background: #f7f9fc;
    outline: none;
}

.nt-date-picker-weekdays,
.nt-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.nt-date-picker-weekdays {
    margin-top: 10px;
    margin-bottom: 4px;
}

.nt-date-picker-weekdays span {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    color: #7b8798;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.nt-date-picker-day {
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #253044;
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
}

.nt-date-picker-day:hover,
.nt-date-picker-day:focus {
    background: #eef4ff;
    color: #25316d;
    outline: none;
}

.nt-date-picker-day.is-outside {
    color: #b0bac8;
    font-weight: 550;
}

.nt-date-picker-day.is-today {
    box-shadow: inset 0 0 0 1px #aebbd0;
}

.nt-date-picker-day.is-selected {
    background: #405189;
    color: #fff;
    box-shadow: 0 7px 14px rgba(64,81,137,.24);
}

.nt-date-picker-day:disabled {
    cursor: not-allowed;
    color: #ccd3df;
    background: transparent;
    box-shadow: none;
}

.nt-date-picker-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

.nt-date-picker-footer button {
    border: 1px solid #d8e0ee;
    border-radius: 9px;
    padding: 6px 10px;
    background: #fff;
    color: #405189;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
}

.nt-date-picker-footer button:hover,
.nt-date-picker-footer button:focus {
    background: #f7f9fc;
    outline: none;
}

@media (max-width: 575.98px) {
    .nt-date-picker-popover {
        width: min(296px, calc(100vw - 24px));
    }
}

.nt-date-picker-selectors {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 6px;
}

.nt-date-picker-select {
    width: 100%;
    min-width: 0;
    height: 30px;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    padding: 2px 22px 2px 7px;
    color: #495057;
    background-color: #fff;
    font-size: 12px;
}

.nt-date-picker-select:focus {
    border-color: #a9b5d5;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(64, 81, 137, .12);
}
