/* Header reminders bell + floating panel (shown on every logged-in page). */

.reminder-bell {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 14px;
}

.reminder-bell-button {
    background: none;
    border: 0;
    padding: 2px;
    cursor: pointer;
    color: inherit;
    line-height: 0;
}

.reminder-bell-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.reminder-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #e11;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
}

.reminder-badge.hidden {
    display: none;
}

.reminder-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 360px;
    width: 45vw;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    color: #333;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    z-index: 2000;
}

.reminder-panel.hidden {
    display: none;
}

.reminder-panel-header {
    padding: 10px 14px;
    background: #383d4b;
    color: #fff;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

.reminder-panel-body {
    padding: 4px 0;
}

.reminder-loading,
.reminder-empty {
    padding: 14px;
    color: #666;
    font-size: 13px;
}

ul.reminder-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.reminder-list .reminder-item {
    padding: 8px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    line-height: 1.4;
}

ul.reminder-list .reminder-item:hover {
    background-color: #e6e6e6;
}
ul.reminder-list .reminder-item:last-child {
    border-bottom: 0;
}

ul.reminder-list .reminder-item a {
    text-decoration: none;
}
ul.reminder-list .reminder-item a:hover {
    color: #0d64a2 !important;
}

ul.reminder-list .reminder-item .overdue {
    color: #e11;
}

ul.reminder-list .reminder-item .event-date {
    float: right;
}

/* Leading icons per reminder type (unscoped, so they also work off the dashboard). */
.reminder-item.renewal:before {
    content: "\1F5D8";
    float: left;
    margin-right: 6px;
}

.reminder-item.expired:before {
    content: "\2757";
    float: left;
    margin-right: 6px;
}

.reminder-item.invoice:before {
    content: "\1F4B5";
    float: left;
    margin-right: 6px;
}

.reminder-item.invoice_send:before {
    content: "\1F585";
    float: left;
    margin-right: 6px;
}
