/* Grundlayout für die Durchklicken-Ansicht */

.app-shell {
    max-width: 1200px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
}

.app-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===========================
   Browse-Layout
=========================== */

.browse-body {
    font-size: 13px;
}

.browse-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.browse-col {
    flex: 1 1 0;
    min-width: 0;
}

.browse-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 8px;
}

.browse-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.browse-empty {
    font-size: 12px;
    color: #9ca3af;
    padding: 8px 10px;
}

.browse-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 14px;
}

/* ===========================
   Items (volle Breite klickbar)
=========================== */

.browse-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.12s ease,
                box-shadow 0.12s ease,
                transform 0.08s ease,
                background 0.12s ease;
}

.browse-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

.browse-item-title {
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.browse-item-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.browse-item-desc {
    font-size: 11px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

.browse-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    transform: translateY(-1px);
}

.browse-item.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* ===========================
   Hazards mit Farbcodes
=========================== */

.browse-hazard {
    position: relative;
}

/* Hintergrundtönung je Risiko (Container) */
.risk-bg-green   { background: #ecfdf3; }
.risk-bg-yellow  { background: #fefce8; }
.risk-bg-orange  { background: #fff7ed; }
.risk-bg-red     { background: #fef2f2; }
.risk-bg-darkred { background: #7f1d1d; color: #f9fafb; }

/* Balken wie im chart.css */
.hazard-risk-bar {
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.risk-green   { background: #dcfce7; color: #166534; }
.risk-yellow  { background: #fef9c3; color: #92400e; }
.risk-orange  { background: #ffedd5; color: #9a3412; }
.risk-red     { background: #fee2e2; color: #b91c1c; }
.risk-darkred { background: #991b1b; color: #fef2f2; }

/* ===========================
   Equipment-Warnungen
=========================== */

.warn-icon {
    font-size: 18px;
}

.warn-red    { color: #dc2626; }
.warn-yellow { color: #d97706; }

/* ===========================
   Responsive
=========================== */

@media (max-width: 900px) {
    .browse-columns {
        flex-direction: column;
    }
}

.browse-item.is-active-click {
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}
