.kfw-notifications-panel {
    width: 0;
    height: calc(100% - var(--headbar-height));
    position: fixed;
    top: var(--headbar-height);
    right: calc(-1 * var(--notification-panel-width));
    background: var(--background-color);
    transition: var(--global-transition);
    overflow: hidden;
    z-index: 1000;
    border-left: var(--navbar-border);
    display: flex;
    flex-direction: column;
}

.kfw-notifications-panel.show {
    width: var(--notification-panel-width);
    right: 0;
}

.kfw-notifications-panel-headbar {
    padding: 10px;
    border-bottom: var(--table-cell-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.kfw-notifications-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.kfw-notifications-panel-footer {
    flex-shrink: 0;
    border-top: var(--table-cell-border);
    padding: 12px 16px;
    text-align: center;
}

.kfw-notifications-panel-footer a {
    color: var(--primary-color-lighter);
    text-decoration: none;
}

.kfw-notifications-panel-footer a:hover {
    text-decoration: underline;
}

.kfw-notification {
    width: 100%;
    border-bottom: var(--table-cell-border);
    padding: 5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.kfw-notification.unseen {
    border-left: 6px solid rgba(var(--primary-rgb), 0.8);
    cursor: pointer;
}

.kfw-notification-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.kfw-notification-header .kfw-notification-title {
    width: 100%;
    max-width: calc(100% - 40px);
    padding-right: 10px;
    padding-left: 5px;
    display: flex;
    align-items: center;
    min-height: var(--button-height);
    font-weight: bold;
    text-wrap: wrap;
    word-wrap: break-word;
}

.kfw-notification-header .kfw-notification-options {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kfw-notification-header .kfw-notification-options .buttons-group > button {
    padding: 0 5px;
    height: 20px;
}

.kfw-notification-content {
    width: 100%;
    padding: 5px 5px 15px 5px;
    text-wrap: wrap;
    word-wrap: break-word;
}

.kfw-notification-footer {
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.kfw-notification-footer button {
    padding: 0 5px !important;
    height: 20px !important;
    margin-bottom: 5px !important;
}

.kfw-notification-date {
    width: 100%;
    text-align: right;
    padding-bottom: 5px;
    padding-right: 5px;
    font-size: 10px;
    opacity: 0.7;
}

@media only screen and (max-width: 768px) {
    .kfw-notifications-panel {
        right: -100%;
    }

    .kfw-notifications-panel.show {
        right: 0;
        width: 100%;
    }
}
body.headbar-disabled .kfw-notifications-panel {
    height: 100%;
    top: 0;
}
