.alerts-page-body {
    display: grid;
    gap: 10px;
}

.alerts-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.alerts-stat-card {
    min-width: 0;
    padding: 8px;
    background: #dfdfdf;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #808080;
    border-bottom: 1px solid #808080;
    box-shadow: inset 1px 1px 0 #f7f7f7, inset -1px -1px 0 #b0b0b0;
}

.alerts-stat-card.is-danger { background: linear-gradient(180deg, #ffd8d8, #f1b3b3); }
.alerts-stat-card.is-warning { background: linear-gradient(180deg, #fff1c9, #ffe39f); }
.alerts-stat-card.is-info { background: linear-gradient(180deg, #d7e6fb, #bfd7f8); }

.alerts-stat-label {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 12px;
    text-transform: uppercase;
    color: #333333;
}

.alerts-stat-value {
    margin: 0;
    font-size: 24px;
    line-height: 24px;
    font-weight: bold;
}

.alerts-stat-note {
    margin: 6px 0 0;
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    color: #222222;
    background: rgba(255,255,255,.65);
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #a0a0a0;
    border-bottom: 1px solid #a0a0a0;
    font-size: 12px;
    line-height: 12px;
}

.alerts-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 10px;
    min-height: 0;
}

.alerts-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.alerts-list-panel {
    flex: 1 1 auto;
    min-height: 520px;
}

.alerts-actions-panel {
    flex: 1 1 auto;
    min-height: 220px;
}

.alerts-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #ffffff;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.7), inset -1px -1px 0 rgba(0,0,0,.08);
}

.alerts-panel-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 6px 8px;
    background: #dfdfdf;
    border-bottom: 1px solid #b0b0b0;
    box-shadow: inset 1px 1px 0 #f7f7f7;
}

.alerts-panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 22px;
    font-weight: bold;
    font-size: 15px;
    line-height: 15px;
}

.alerts-panel-sub {
    color: #444444;
    font-size: 12px;
    line-height: 12px;
    font-weight: normal;
}

.alerts-panel-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.alerts-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
    overflow: auto;
    background-color: #ffffff;
    background-image: linear-gradient(180deg, rgba(255,255,255,.9), rgba(238,238,238,.58));
}

.alerts-tool-button,
.alerts-row-button,
.alerts-footer-button {
    min-width: 64px;
    height: 24px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 12px;
}

.alerts-action-button {
    width: 100%;
    min-width: 0;
}

.alerts-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(110px, .6fr));
    gap: 8px;
    margin-bottom: 8px;
}

.alerts-input,
.alerts-select,
.alerts-textarea {
    width: 100%;
    min-width: 0;
    color: #000000;
    background: #ffffff;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    padding: 4px 6px;
    font-family: inherit;
    font-size: 13px;
}

.alerts-input,
.alerts-select {
    height: 28px;
}

.alerts-table-wrap {
    height: 430px;
    overflow: auto;
    background: #ffffff;
    border-top: 2px solid #606060;
    border-left: 2px solid #606060;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
}

.alerts-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    line-height: 14px;
    color: #000000;
}

.alerts-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 6px;
    text-align: left;
    background: #dfdfdf;
    border-bottom: 1px solid #b0b0b0;
    box-shadow: inset 0 1px 0 #ffffff;
}

.alerts-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.96); }
.alerts-table tbody tr:nth-child(even) { background: rgba(240,244,255,.9); }
.alerts-table tbody tr:hover { background: #d8e5f8; }
.alerts-table tbody tr.is-selected { background: #c5dcff; }

.alerts-table td {
    padding: 6px;
    border-bottom: 1px solid #e1e1e1;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alerts-col-check { width: 34px; }
.alerts-col-severity { width: 76px; }
.alerts-col-status { width: 82px; }
.alerts-col-code { width: 70px; }
.alerts-col-time { width: 110px; }
.alerts-col-actions { width: 88px; }

.alerts-pill {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    color: #222222;
    background: #f1f1f1;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #b0b0b0;
    border-bottom: 1px solid #b0b0b0;
    font-size: 12px;
    line-height: 12px;
}

.alerts-pill.low { background: #deebff; }
.alerts-pill.medium { background: #fff2c8; }
.alerts-pill.high { background: #ffdcdc; }
.alerts-pill.open { background: #f2e1ff; }
.alerts-pill.acked { background: #e2f0e2; }
.alerts-pill.closed { background: #ececec; }

.alerts-info-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.alerts-info-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 6px 8px;
    background: #f5f5f5;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #c0c0c0;
    border-bottom: 1px solid #c0c0c0;
}

.alerts-info-item strong {
    font-size: 13px;
    line-height: 13px;
}

.alerts-info-item span {
    min-width: 0;
    color: #222222;
    word-break: break-word;
}

.alerts-json-box {
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 8px;
    color: #b7ffc8;
    background: #050505;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    font-family: "MonoCraft", "Courier New", monospace;
    font-size: 12px;
    line-height: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.alerts-mini-note {
    margin-top: 8px;
    padding: 8px;
    color: #000000;
    background: #ffffcc;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #a08000;
    border-bottom: 1px solid #a08000;
    font-size: 12px;
    line-height: 15px;
}

.alerts-action-stack {
    display: grid;
    gap: 8px;
}

.alerts-footerbar {
    flex: 0 0 auto;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-top: 1px solid #ffffff;
    background: #dfdfdf;
}

.alerts-footer-left,
.alerts-footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.alerts-status-pill {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: #000000;
    background: #ffffff;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    font-size: 12px;
    line-height: 12px;
}

@media (max-width: 1120px) {
    .alerts-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alerts-content-grid {
        grid-template-columns: 1fr;
    }

    .alerts-toolbar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .alerts-summary-grid,
    .alerts-toolbar-grid {
        grid-template-columns: 1fr;
    }

    .alerts-table-wrap {
        height: 360px;
    }

    .alerts-panel-header,
    .alerts-footerbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .alerts-info-item {
        grid-template-columns: 1fr;
    }
}
