.nex-datepicker-container, .form-group:has([data-crm-nex-options]),
td:has(> [data-crm-nex-options]) { position: relative; }
.nex-datepicker-container { width: 100%; }
.nex-datepicker-container .input-group-addon { cursor: pointer; }
.bootstrap-datetimepicker-widget.crm-calendar-popup {
    position: fixed;
    margin: 0;
    color: #333;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
}
.bootstrap-datetimepicker-widget table td,
.bootstrap-datetimepicker-widget table th { color: #333; }
.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover { color: #fff; }

/* The notification dropdown limit and page button theme must not style calendars. */
.bootstrap-datetimepicker-widget.dropdown-menu.crm-calendar-popup {
    min-width: 0;
    max-width: calc(100vw - 16px);
    padding: 8px;
    box-sizing: border-box;
}
.bootstrap-datetimepicker-widget.dropdown-menu.crm-calendar-popup.timepicker-sbs {
    width: 540px;
}
.bootstrap-datetimepicker-widget.crm-calendar-popup.timepicker-sbs > .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}
.bootstrap-datetimepicker-widget.crm-calendar-popup.timepicker-sbs > .row > .col-sm-6 {
    flex: 1 1 240px;
    width: auto;
    min-width: 0;
    padding: 0 6px;
    float: none;
}
.bootstrap-datetimepicker-widget.crm-calendar-popup .timepicker .btn[data-action] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 0;
    padding: 0;
    margin: 0;
    color: #174085;
    background: #f0f4fa;
    border: 1px solid #dce4ef;
    border-radius: 4px;
    box-shadow: none;
    line-height: 1;
}
.bootstrap-datetimepicker-widget.crm-calendar-popup .timepicker .btn[data-action]:hover,
.bootstrap-datetimepicker-widget.crm-calendar-popup .timepicker .btn[data-action]:focus {
    color: #fff;
    background: #174085;
}
.bootstrap-datetimepicker-widget.crm-calendar-popup .timepicker .btn[data-action] span {
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    line-height: 1;
    color: inherit;
    background: transparent;
}
