/* Layout für Objekte & Risikomatrix */

.app-shell {
    max-width: 1200px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

/* Ergänzend zu style.css – hier nur Spezielles */

.obj-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.obj-list {
    margin-top: 8px;
    max-height: 260px;
    overflow: auto;
}

.list-empty {
    font-size: 12px;
    color: #9ca3af;
}

/* Risikotabelle */

.risk-table-wrapper {
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.risk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

.risk-table thead {
    background: #f9fafb;
}

.risk-table th,
.risk-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.risk-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
}

.risk-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.risk-table-actions {
    width: 40px;
    text-align: right;
}

.risk-table-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
}

/* Risk Badges – Farblogik wie im Diagramm */

.risk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.risk-badge-grey {
    background: #e5e7eb;
    color: #374151;
}

.risk-badge-green {
    background: #dcfce7;
    color: #166534;
}

.risk-badge-yellow {
    background: #fef9c3;
    color: #92400e;
}

.risk-badge-orange {
    background: #ffedd5;
    color: #9a3412;
}

.risk-badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.risk-badge-darkred {
    background: #7f1d1d;
    color: #f9fafb;
}

/* Kleinere Optimierungen */

@media (max-width: 900px) {
    .risk-table-wrapper {
        margin-top: 12px;
    }
}
