/* Minimal CSS sans framework. POC viewer web V0.1. */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background: #f8fafc;
}
.topbar {
    background: #1e3a8a;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    gap: 24px;
    align-items: center;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }
.topbar .brand { font-weight: bold; font-size: 1.1em; }
.topbar .poc {
    background: #f97316;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    margin-left: 6px;
}

main { max-width: 1100px; margin: 0 auto; padding: 24px; }
h1 { margin-top: 0; color: #1e3a8a; }
h2 { color: #1e40af; border-bottom: 2px solid #dbeafe; padding-bottom: 4px; }
p.lede { color: #64748b; font-size: 1.05em; }
p.muted { color: #64748b; font-size: 0.9em; }
code {
    background: #eef2ff;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: Consolas, Menlo, monospace;
    font-size: 0.95em;
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
}

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #e5e7eb; }
th { background: #eef2ff; color: #1e3a8a; font-weight: 600; }
tr:hover td { background: #f9fafb; }

form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #374151;
}
form input, form select, form textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    margin-top: 4px;
    font-weight: normal;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30,64,175,.15);
}

.btn, button.btn {
    display: inline-block;
    background: #1e40af;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    border: 0;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover, button.btn:hover { background: #1e3a8a; }
.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #4b5563; }
.btn-small { padding: 4px 10px; font-size: 0.9em; }

.form-actions { margin-top: 16px; }

.alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-top: 12px;
    font-weight: 500;
}
.alert.ok {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}
.alert.err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* V2.30 : pages RSE, audit, catalogue */
.badge {
    display: inline-block;
    background: #1e40af;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1em;
}
.hint { color: #64748b; font-size: 0.85em; font-style: italic; }
.meta { color: #64748b; font-size: 0.95em; }
table.kv td:first-child { color: #64748b; width: 60%; }
table.kv td:last-child { text-align: right; font-weight: 600; }
table.cat th { font-size: 0.85em; }
table.cat td { font-family: Consolas, Menlo, monospace; font-size: 0.92em; }
.reco {
    border-left: 4px solid #6b7280;
    padding: 8px 14px;
    margin: 8px 0;
    background: #f9fafb;
    border-radius: 0 4px 4px 0;
}
.reco-warning { border-left-color: #d97706; background: #fef3c7; }
.reco-critical { border-left-color: #dc2626; background: #fef2f2; }
.reco-ok { border-left-color: #16a34a; background: #dcfce7; }
.reco-info { border-left-color: #1e40af; background: #eef2ff; }
details summary { cursor: pointer; font-weight: 600; color: #1e40af; }
details pre {
    background: #1e293b; color: #e2e8f0;
    padding: 12px; border-radius: 4px;
    overflow-x: auto; font-size: 0.85em;
    max-height: 400px;
}
.rse-form .card { margin-bottom: 12px; }
