/* Isolated attention panel styles — small file so nginx proxy won't truncate it */
.dashboard-attention-body {
    --attention-row-h: 4.35rem;
    --attention-gap: 0.55rem;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--attention-gap) !important;
    padding: 0.7rem 0.75rem 0.85rem !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.dashboard-attention-empty {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 4.5rem;
    padding: 0.65rem 0.75rem;
    color: var(--cm-text-2, #94a3b8);
    text-align: center;
}

.dashboard-attention-empty p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 600;
}

.dashboard-attention-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.7rem !important;
    position: relative !important;
    width: 100% !important;
    height: var(--attention-row-h, 4.35rem) !important;
    min-height: var(--attention-row-h, 4.35rem) !important;
    max-height: var(--attention-row-h, 4.35rem) !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0.75rem 0.8rem !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
    border-radius: 0.75rem !important;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1), rgba(248, 113, 113, 0.03)) !important;
    color: inherit !important;
    text-align: left !important;
    font: inherit !important;
    line-height: 1.35 !important;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    overflow: visible !important;
}

.dashboard-attention-item-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden;
}

.dashboard-attention-item-title,
.dashboard-attention-item-meta,
.dashboard-attention-item-time {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.35 !important;
}

.dashboard-attention-item-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: inherit !important;
}

.dashboard-attention-item-meta,
.dashboard-attention-item-time {
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--cm-text-2, #94a3b8) !important;
}

.dashboard-attention-item-time {
    font-size: 0.68rem !important;
}

.dashboard-attention-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    position: static !important;
    min-width: auto;
    margin: 0 !important;
    padding: 0.2rem 0.45rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(248, 113, 113, 0.45) !important;
    background: rgba(248, 113, 113, 0.16) !important;
    color: #fca5a5 !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    letter-spacing: 0.01em;
}

.dashboard-attention-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.16);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .dashboard-attention-body {
        --attention-row-h: 4.2rem;
        --attention-gap: 0.5rem;
        gap: var(--attention-gap) !important;
        padding: 0.65rem 0.7rem 0.85rem !important;
        flex: 1 1 auto !important;
        max-height: none !important;
    }

    .dashboard-attention-body:has(.dashboard-attention-empty) {
        flex: 0 0 auto !important;
        padding: 0.35rem 0.7rem 0.5rem !important;
    }

    .dashboard-attention-empty {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
        min-height: 0;
        padding: 0.35rem 0.25rem;
        flex: 0 0 auto;
    }

    .dashboard-attention-empty .material-symbols-outlined {
        font-size: 1.2rem;
    }

    .dashboard-attention-empty p {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .dashboard-attention-item {
        gap: 0.55rem !important;
        height: var(--attention-row-h) !important;
        min-height: var(--attention-row-h) !important;
        max-height: var(--attention-row-h) !important;
        padding: 0.7rem 0.75rem !important;
    }

    .dashboard-attention-item-title {
        font-size: 0.9rem !important;
    }

    .dashboard-attention-item-meta {
        font-size: 0.72rem !important;
    }

    .dashboard-attention-item-time {
        font-size: 0.68rem !important;
    }

    .dashboard-attention-badge {
        min-width: auto;
        padding: 0.2rem 0.45rem !important;
        font-size: 0.6rem !important;
    }
}

html.light .dashboard-attention-badge {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.28) !important;
    color: #b91c1c !important;
}

html.light .dashboard-attention-count {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}
