/* Notifications panel: slides in from the left when #alerts gets .alertsvisible. */
#alerts {
    position: fixed;
    top: 110px;
    left: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(560px, calc(100vw - 10px));
    height: calc(100vh - 125px);
    margin: 0 0 0 5px;
    color: #fff;
    background: #066;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 6px 20px #0008;
    font-family: Segoe UI, sans-serif;
    font-size: 14px;
    transform: translateX(calc(-100% - 30px));
    visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
}
#alerts.alertsvisible {
    transform: translateX(0);
    visibility: visible;
    transition: transform .25s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    #alerts, #alerts.alertsvisible { transition: none; }
}

.alerts-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 12px 10px 15px;
    border-bottom: 4px solid #004d4d;
}
.alerts-title {
    flex: 1 1 auto;
    margin: 0;
    font-family: Segoe UI Light, Segoe UI, sans-serif;
    font-size: 24px;
    font-weight: normal;
}
#alerts .alerts-clear {
    width: auto;
    height: auto;
    padding: 5px 12px;
    font: inherit;
    font-size: 13px;
    color: #fff;
}
#alerts .alerts-clear:hover { height: auto; border-bottom-width: 4px; background-color: #BF312C; }
.alerts-close {
    width: 32px;
    height: 32px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.alerts-close:hover { background: #004d4d; }
#alerts button:focus-visible, #alerts a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#alerts-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 8px;
}

.alert {
    display: flex;
    gap: 12px;
    margin: 0 0 8px;
    padding: 10px;
    color: #333;
    background: #fff;
    border-left: 4px solid #FBB05E;
    border-radius: 3px;
}
.alert.alert-read { color: #888; border-left-color: #ccc; }
.alerticon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    background: #009999;
    border-radius: 3px;
}
.alert.alert-read .alerticon { background: #9bbcbc; }
.alerticon img { display: block; width: 36px; height: 36px; margin: 4px; }
.alertbody { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.alerttop { display: flex; align-items: baseline; gap: 10px; }
.alertheader { flex: 1 1 auto; font-weight: 600; }
.alert.alert-read .alertheader { font-weight: normal; }
.alertdate { flex: 0 0 auto; font-size: 12px; color: #888; white-space: nowrap; }
.alertmessage { display: block; margin-top: 4px; line-height: 1.45; }
.alertactions { margin-top: 6px; text-align: right; }
#alerts .alertdelete { font-size: 12px; color: #BF312C; }
#alerts .alertdelete:hover { text-decoration: underline; }

@media only screen and (max-device-aspect-ratio: 1/1), (max-width: 600px) {
    #alerts { width: 100vw; margin: 0; border-radius: 0; }
}
