/* CHAOS Self-Service — an das Endkundenportal (style.css) angeglichen */
:root {
  --m365-blue: #0078d4;
  --m365-blue-dark: #106ebe;
  --brand: var(--m365-blue);
  --brand-600: var(--m365-blue-dark);
  --bg: #f3f2f1;
  --bg-canvas: #faf9f8;
  --surface: #ffffff;
  --surface-2: #faf9f8;
  --line: #edebe9;
  --line-strong: #d2d0ce;
  --text: #323130;
  --text-soft: #605e5c;
  --text-muted: #8a8886;
  --success: #107c10;
  --warning: #faa21b;
  --danger: #a4262c;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11);
  --shadow-hover: 0 3.2px 7.2px rgba(0,0,0,.13), 0 .6px 1.8px rgba(0,0,0,.11);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin:0; font-family: var(--font); background: var(--bg); color: var(--text); line-height:1.5; }
a { color: var(--brand); }

.ss-header { background: var(--surface); border-bottom:1px solid var(--line); box-shadow: var(--shadow); position:sticky; top:0; z-index:20; }
.ss-header-inner { max-width: 1180px; margin:0 auto; height:52px; padding: 0 24px; display:flex; align-items:center; gap:20px; }
.ss-brand { display:flex; align-items:center; gap:10px; color: var(--text); text-decoration:none; }
.ss-brand-logo { width:32px; height:32px; object-fit:contain; display:block; }
.ss-brand-text { display:flex; flex-direction:column; line-height:1.1; }
.ss-brand-title { font-weight:700; font-size:16px; letter-spacing:-0.01em; }
.ss-brand-sub { font-size:11px; color: var(--text-soft); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.ss-nav { margin-left: 8px; display:flex; gap:4px; }
.ss-nav a { padding:8px 14px; border-radius: var(--radius); text-decoration:none; color: var(--text-soft); font-weight:600; font-size:14px; }
.ss-nav a:hover { background: var(--surface-2); color: var(--text); }
.ss-nav a.active { background: var(--m365-blue); color:#fff; }
.ss-spacer { flex:1; }
.ss-user { display:flex; align-items:center; gap:10px; font-size:14px; color: var(--text-soft); }
.ss-avatar { width:32px; height:32px; border-radius:50%; background: var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }

.ss-main { max-width: 1180px; margin: 28px auto; padding: 0 24px 60px; }
.ss-h1 { font-size: 1.75rem; font-weight:600; letter-spacing:-0.02em; margin:0 0 4px; color: var(--text); }
.ss-sub { color: var(--text-soft); margin:0 0 24px; }

.ss-grid { display:grid; gap:18px; }
.ss-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ss-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px){ .ss-grid-3,.ss-grid-2 { grid-template-columns:1fr; } }

.ss-card { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.ss-card h2 { font-size: 1rem; font-weight:600; margin:0 0 14px; }
.ss-kpi-label { font-size:13px; color: var(--text-soft); margin:0 0 6px; }
.ss-kpi-value { font-size: 30px; font-weight:700; line-height:1; }

.ss-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.ss-lic { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background: var(--surface-2); }
.ss-lic-name { font-weight:600; }
.ss-lic-sku { font-size:12px; color: var(--text-muted); font-family: ui-monospace, Menlo, Consolas, monospace; }

.ss-cat { display:grid; gap:16px; grid-template-columns: repeat(2,1fr); }
@media (max-width: 820px){ .ss-cat { grid-template-columns:1fr; } }
.ss-cat-item { border:1px solid var(--line); border-radius: var(--radius-lg); padding:18px; background: var(--surface); box-shadow: var(--shadow);
  display:flex; flex-direction:column; gap:10px; transition: box-shadow .15s ease, transform .15s ease; }
.ss-cat-item:hover { box-shadow: var(--shadow-hover); }
.ss-cat-icon { width:40px; height:40px; border-radius: var(--radius); background: rgba(0,120,212,.10); color: var(--brand);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; }
.ss-cat-title { font-weight:600; font-size:1rem; color: var(--text); }
.ss-cat-features { font-size:13px; color: var(--text-soft); line-height:1.5; flex:1; }
.ss-cat-meta { font-size:13px; color: var(--text-soft); }
.ss-cat-actions { margin-top:auto; padding-top:4px; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius: var(--radius); padding:10px 18px;
  font-weight:600; font-size:14px; cursor:pointer; text-decoration:none; }
.btn-primary { background: var(--brand); color:#fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface-2); color: var(--text); border:1px solid var(--line); }
.btn-danger { background: var(--danger); color:#fff; }
.btn[disabled], .btn.disabled { opacity:.5; pointer-events:none; }

.badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; }
.badge-ok { background: rgba(16,124,16,.12); color: var(--success); }
.badge-pend { background: rgba(193,156,0,.16); color: var(--warning); }
.badge-rej { background: rgba(209,52,56,.12); color: var(--danger); }
.badge-info { background: rgba(0,120,212,.12); color: var(--brand); }

table.ss-table { width:100%; border-collapse: collapse; }
.ss-table th { text-align:left; font-size:12px; color: var(--text-soft); text-transform:uppercase; letter-spacing:.03em; padding:8px 10px; border-bottom:1px solid var(--line); }
.ss-table td { padding:10px; border-bottom:1px solid var(--line); font-size:14px; }

.ss-field { display:block; margin: 0 0 14px; }
.ss-field label { display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
.ss-field textarea, .ss-field input { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; }

/* Standalone (Login / Decision) */
.ss-center { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.ss-panel { background: var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow: var(--shadow);
  padding:36px; max-width:440px; width:100%; text-align:center; }
.ss-panel.wide { max-width: 560px; text-align:left; }
.ss-panel h1 { font-size:22px; margin:0 0 6px; }
.ss-logo-lg { width:64px; height:64px; object-fit:contain; display:block; margin:0 auto 16px; }
.ss-muted { color: var(--text-soft); }
.ss-kv { margin:18px 0; }
.ss-kv div { display:flex; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px solid var(--line); }
.ss-kv div span:first-child { color: var(--text-soft); }
.ss-actions { display:flex; gap:12px; margin-top:20px; }
