/* Osakekurssi alerts UI — shared stylesheet */

html {
    background: #12141a;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 1280px;
    padding: 2rem 2.5rem;
    color: #e8eaed;
    background: #12141a;
    min-height: 100vh;
}

h1, h2 {
    margin-top: 0;
    font-weight: 600;
    color: #f3f4f6;
}

h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.meta {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.meta a {
    color: #60a5fa;
    text-decoration: none;
}

.meta a:hover {
    text-decoration: underline;
}

.status {
    margin-bottom: 2rem;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
}

.status-item {
    background: #1a1d26;
    border: 1px solid #2d3340;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.status-item dt {
    margin: 0 0 0.35rem;
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-item dd {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f3f4f6;
}

table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    margin: 0 0 2rem;
    background: #1a1d26;
    border: 1px solid #2d3340;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border-bottom: 1px solid #2d3340;
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: #22262f;
    color: #b8bcc6;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #232833;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.alert-row {
    background: #1e222c;
}

.alert-row:hover {
    background: #2a2520;
}

.alert-row td:first-child {
    font-weight: 600;
    color: #f9fafb;
}

.alert-row .num {
    color: #fbbf24;
}

.alert-row td:nth-child(5) {
    color: #d1d5db;
    max-width: 420px;
    word-break: break-word;
}

.alert-row td:last-child {
    color: #9ca3af;
    white-space: nowrap;
    font-size: 0.9rem;
}

.empty {
    color: #9ca3af;
    font-style: italic;
}

.badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.35rem;
}

strong {
    color: #fca5a5;
}
