.dropdown.notifications-dd .di-content {
    white-space: normal;
}

.dropdown.notifications-dd .dropdown-menu {
    max-width: 400px;
    min-width: 400px;
}

@media screen and (max-width: 575px) {
    .dropdown.notifications-dd .dropdown-menu {
        min-width: 300px;
    }

    .dropdown.notifications-dd .dropdown-menu {
        max-width: calc(100vw - 2px);
    }
}

.dropdown.notifications-dd .dropdown-item > .di-content {
    border-bottom: 1px solid;
}

.dropdown.notifications-dd .dropdown-item:last-child > .di-content {
    border-bottom: 0;
}

.notif-icon {
    width: 1.875rem;
    position: relative;
}

.dropdown-menu .dropdown-item .di-content .notif-icon i:not(.ddl-btn) {
    left: 0;
    bottom: auto;
}

.notif-status-wrapper {
    width: 1.5625rem;
}

.notif-content {
    width: calc(100% - 1.875rem - 1.5625rem);
}

.notif-status {
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 50%;
    border: 1px solid #aaaaaa;
    display: inline-block;
}

.notif-status.small {
    height: 0.375rem;
    width: 0.375rem;
}

.notif-status.readed {
    background: #007bff;
    border-color: #007bff;
}

.notifications-dd .dropdown-toggle i {
    line-height: 2;
}

.notifications-dd sup {
    display: none;
    border: 1px solid;
    border-radius: 50%;
    padding: 0.1875rem;
    text-align: center;
    min-width: 1.125rem;
    height: 1.125rem;
    line-height: 0.6875rem;
    box-sizing: border-box;
    position: absolute;
    left: 49%;
    bottom: 54%;
    top: auto;
    transition: background-color 0.2s ease-in-out;
}

.notifications-dd sup.not-readed {
    display: block;
}

.notifications-dd:not(:hover):not(.show) .counter {
    display: none;
}

.notifications-dd sup.not-readed:after {
    content: '!';
    font-size: 0.75rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.333;
    color: #ffffff;
    font-weight: bold;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 50%;
}

.notifications-dd:hover sup.not-readed:after,
.notifications-dd.show sup.not-readed:after {
    content: none;
}

.xpand-list small {
    font-size: 100%;
}

.notifications-dd sup {
    font-size: 0.9em;
}

.notifications-dd .dropdown-toggle i {
    font-size: 1.15rem;
}

.notifications-dd .dropdown-toggle:after {
    content: none;
}

.notifications-items {
    max-height: 396px;
    overflow-y: auto;
}

.processing {
    pointer-events: none;
}

.btn.processing {
    background-color: #dedede !important;
    border-color: #dedede !important;
}

.notifications-items > li > .di-content {
    letter-spacing: 0.03125rem;
    cursor: pointer;
}
/* Custom Notification expander*/
.xpand-list {
    display: block;
    margin-top: 0.3125rem;
}

.xpand-list:after {
    content: '';
    display: table;
    clear: both;
}

.xpand-list > * {
    display: block;
}

.xpand-list > *:first-child {
    display: inline-block;
    position: relative;
    padding-right: 1rem;
}

.tdcell .xpand-list > *:first-child,
.k-tooltip .xpand-list > *:first-child {
    pointer-events: none;
}

.xpand-list > *:first-child:after {
    content: '';
    position: absolute;
    right: 0.25rem;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 3px 3px 0 3px;
    border-color: #222222 transparent transparent transparent;
    transition: transform 0.2s ease-in-out;
}

.xpand-list.opened > *:first-child:after {
    transform: rotate(180deg);
}

.xpand-list > *:not(:first-child) {
    display: none;
    width: 100%;
    float: left;
    padding: 0.5rem 0 0.25rem 0;
}

.tdcell .xpand-list > *:not(:first-child),
.k-tooltip .xpand-list > *:not(:first-child) {
    display: block;
}

.tdcell .xpand-list ~ p:last-of-type {
    margin-bottom: 0;
}

.xpand-list > *:not(:first-child) > div {
    display: flex;
    margin-bottom: 0.3125rem;
    line-height: 1.2;
}

.xpand-list > *:not(:first-child) > div > * {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.xpand-list > *:not(:first-child) > div > *:first-child {
    padding-right: 0.3125rem;
    width: 35%;
}

td .xpand-list > *:not(:first-child) > div > *:first-child {
    width: auto;
}

.xpand-list > *:not(:first-child) > div > em {
    padding: 0 0.625rem;
    font-style: normal;
    font-size: 0.8rem;
}

/*
    Recomended Expand block markup

    <div clas="xpand-list">
        <h5>Title</h5> // h3,h4,h5 remommended, but You can use here any html tag
        <div>
            <div data-name="[[name]]" class="field-edited">
                  <strong title="[[caption]]">[[caption]]</strong><em>=</em><small title="[[value]]">[[value]]</small>
            </div>
            <div data-name="[[name]]" class="field-edited">
                  <strong title="[[caption]]">[[caption]]</strong><em>=</em><small title="[[value]]">[[value]]</small>
            </div>
        </div>
    </div>
*/

/* End  Custom Notification expander */
.notifications-container .dropdown-item.header-links:hover {
    background-color: inherit;
}

.notif-tmpl-wrapper {
    max-height: 200px;
    overflow: auto;
    padding-right: 10px;
    margin-bottom: -20px;
}

.notif-tmpl-subject {
    display: block;
    margin-bottom: 10px;
}

.notif-tmpl-message {
    display: block;
}

.notif-tmpl-wrapper .xpand-list {
    margin-bottom: 10px;
}

    .notif-tmpl-wrapper .xpand-list > *:not(:first-child) > div > *:first-child {
        width: auto;
    }