/* ═══════════════════════════════════════════════════════════
   EMC Shell · emc-shell.css · v1.0.0
   Hosted: https://intern.emailconversion.de/assets/css/emc-shell.css

   Einbindung in jeden Tenant:
   <link rel="stylesheet" href="https://intern.emailconversion.de/assets/css/emc-shell.css">
   ═══════════════════════════════════════════════════════════ */

:root {
    --emc-brand:          #2471be;
    --emc-brand-dark:     #1d5fa0;
    --emc-nav-h:          52px;
    --emc-sidebar-w:      52px;
    --emc-sidebar-w-open: 220px;
    --emc-sidebar-bg:     #1e293b;
    --emc-sidebar-hover:  #273549;
    --emc-sidebar-text:   #64748b;
    --emc-sidebar-hi:     #e2e8f0;
    --emc-bg:             #f1f5f9;
    --emc-surface:        #ffffff;
    --emc-border:         #e2e8f0;
    --emc-text:           #1e293b;
    --emc-text-muted:     #64748b;
    --emc-radius:         8px;
    --emc-radius-lg:      12px;
    --emc-shadow:         0 1px 4px rgba(0,0,0,.06);
    --emc-font:           'Inter', system-ui, -apple-system, sans-serif;
    --emc-font-mono:      'DM Mono', monospace;
    --emc-transition:     .18s ease;
}

/* ── Reset Basis ─────────────────────────── */
.emc-shell *, .emc-shell *::before, .emc-shell *::after { box-sizing: border-box; }
.emc-shell { font-family: var(--emc-font); }

/* ── Body-Offset für fixe Nav ────────────── */
.emc-body-wrap {
    position: fixed;
    top: var(--emc-nav-h);
    left: var(--emc-sidebar-w);
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
    transition: left var(--emc-transition);
}
.emc-body-wrap.sidebar-open { left: var(--emc-sidebar-w-open); }

/* ── Sidebar ─────────────────────────────── */
.emc-sidebar {
    position: fixed;
    top: var(--emc-nav-h);
    left: 0;
    bottom: 0;
    width: var(--emc-sidebar-w);
    background: var(--emc-sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    transition: width var(--emc-transition);
}
.emc-sidebar:hover,
.emc-sidebar.pinned { width: var(--emc-sidebar-w-open); }

.emc-sidebar-section {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #334155;
    padding: .625rem .75rem .25rem;
    opacity: 0;
    transition: opacity var(--emc-transition);
    white-space: nowrap;
}
.emc-sidebar:hover .emc-sidebar-section,
.emc-sidebar.pinned .emc-sidebar-section { opacity: 1; }

.emc-sidebar-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    height: 40px;
    padding: 0 9px;
    color: var(--emc-sidebar-text);
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--emc-transition), color var(--emc-transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    font-family: var(--emc-font);
    width: 100%;
    justify-content: flex-start;
}
.emc-sidebar-item i { font-size: 18px; flex-shrink: 0; min-width: 34px; text-align: center; }
.emc-sidebar-item:hover { background: var(--emc-sidebar-hover); color: var(--emc-sidebar-hi); }
.emc-sidebar-item.active { background: var(--emc-brand); color: #fff; }

.emc-sidebar-label {
    opacity: 0;
    transition: opacity var(--emc-transition);
    pointer-events: none;
}
.emc-sidebar:hover .emc-sidebar-label,
.emc-sidebar.pinned .emc-sidebar-label { opacity: 1; }

.emc-sidebar-spacer { flex: 1; }

/* ── Main Content ────────────────────────── */
.emc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--emc-bg);
}
.emc-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    background: var(--emc-surface);
    border-bottom: 1px solid var(--emc-border);
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.emc-page-head h1 { font-size: 1.1rem; font-weight: 600; }
.emc-page-body { padding: 1.5rem; flex: 1; overflow-y: auto; min-height: 0; }

/* ── Karte ───────────────────────────────── */
.emc-card {
    background: var(--emc-surface);
    border: 1px solid var(--emc-border);
    border-radius: var(--emc-radius-lg);
    overflow: hidden;
    box-shadow: var(--emc-shadow);
}
.emc-card-head {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid var(--emc-border);
    font-size: .84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.emc-card-body { padding: 1.25rem; }

/* ── Buttons ─────────────────────────────── */
.emc-btn {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .4rem .875rem;
    border-radius: var(--emc-radius);
    font-size: .82rem;
    font-weight: 500;
    font-family: var(--emc-font);
    cursor: pointer;
    border: 1px solid var(--emc-border);
    background: var(--emc-surface);
    color: var(--emc-text);
    transition: background var(--emc-transition), border-color var(--emc-transition);
    text-decoration: none;
}
.emc-btn:hover { background: var(--emc-bg); border-color: #cbd5e1; }
.emc-btn-primary { background: var(--emc-brand); border-color: var(--emc-brand); color: #fff; }
.emc-btn-primary:hover { background: var(--emc-brand-dark); border-color: var(--emc-brand-dark); }

/* ── Badge ───────────────────────────────── */
.emc-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}
.emc-badge-green  { background: #dcfce7; color: #15803d; }
.emc-badge-amber  { background: #fef9c3; color: #a16207; }
.emc-badge-red    { background: #fee2e2; color: #dc2626; }
.emc-badge-blue   { background: #eff6ff; color: #1d4ed8; }
