:root {
body {
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1e293b;
}

    --sh-brand:       #2471be;
    --sh-brand-dark:  #1d5fa0;
    --sh-bg:          #f1f5f9;
    --sh-surface:     #ffffff;
    --sh-border:      #e2e8f0;
    --sh-text:        #1e293b;
    --sh-text-muted:  #64748b;
    --sh-radius:      8px;
    --sh-radius-lg:   12px;
    --sh-shadow:      0 1px 4px rgba(0,0,0,.06);
    --sh-transition:  .18s ease;
}

/* ============================================================
   emailconversion · Support Hub · emc-support.css
   Version : 1.0.0
   Stand   : 23.07.2026 MEZ
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size-adjust: 0.52; /* verhindert Layout-Shift beim Font-Laden */
    font-size: 14px;
    color: #1a1a1a;
    background: #F8FAFC;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────── */
.sh-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sh-page {
    display: flex;
    flex: 1;
    min-height: 0;
    padding-left: 0;
    animation: shFadeIn 0.1s ease-out;
}

/* emc-shell.css setzt left:52px (INT collapsed sidebar) — SHUB überschreibt auf 220px */
.emc-body-wrap,
.sh-page {
    left: 220px !important;
    width: calc(100% - 220px) !important;
    padding-left: 0 !important;
}

@keyframes shFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Shell (dunkle Leiste) ────────────────────────────────── */
.sh-shell {
    background: #0F1117;
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 0;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.sh-shell-brand {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-shell-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2471be;
    flex-shrink: 0;
}

.sh-shell-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    font-family: 'DM Mono', monospace;
    white-space: nowrap;
}

.sh-shell-sub {
    color: #4b5563;
    font-size: 12px;
    margin-left: 4px;
}

.sh-shell-spacer { flex: 1; }

.sh-shell-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-portal-link {
    font-size: 11px;
    color: #6b7280;
    border: 0.5px solid #374151;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}
.sh-portal-link:hover { color: #9ca3af; border-color: #4b5563; }

.sh-user-chip {
    background: #1c2333;
    border-radius: 16px;
    padding: 3px 10px 3px 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sh-user-chip-name {
    color: #9ca3af;
    font-size: 11px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
/* ═══════════════════════════════════════
   SHUB Sidebar — angeglichen an INT v1.0
   ═══════════════════════════════════════ */

.sh-sidebar,
.emc-sidebar {
    position: fixed;
    top: 52px; left: 0; bottom: 0;
    width: 220px;
    background: #1e293b;
    border-right: 1px solid rgba(255,255,255,.04);
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 8px 7px;
}

/* Gruppen-Label */
.sh-sidebar-group {
    padding: 8px 4px 2px;
}
.sh-sidebar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #334155;
    display: block;
}

/* Item */
.sh-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}
.sh-sidebar-item:hover  { background: #273549; color: #e2e8f0; }
.sh-sidebar-item.active { background: #2471be; color: #fff; }
.sh-sidebar-item.active .sh-sidebar-text { color: #fff; }
.sh-sidebar-item.active .ti { color: #fff; }

/* Icon */
.sh-sidebar-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Text */
.sh-sidebar-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12.5px;
    font-weight: 500;
}

/* Badge */
.sh-sidebar-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    flex-shrink: 0;
}
.sh-sidebar-badge.blue  { background: #1d4ed8; color: #fff; }
.sh-sidebar-badge.gray  { background: #374151; color: #9ca3af; }
.sh-sidebar-badge.amber { background: #92400e; color: #fef3c7; }

/* Shell — wird von nav.js/emc-shell ersetzt */
.sh-shell { display: none !important; }

/* ── Main area ────────────────────────────────────────────── */
.sh-main-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── Subbar / Breadcrumb ──────────────────────────────────── */
.sh-subbar {
    height: 42px;
    border-bottom: 0.5px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 6px;
    flex-shrink: 0;
    position: sticky;
    top: 44px;
    z-index: 90;
}

.sh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.sh-breadcrumb-item { font-size: 12px; color: #6b7280; }
.sh-breadcrumb-sep  { font-size: 12px; color: #d1d5db; }
.sh-breadcrumb-cur  { font-size: 12px; color: #1a1a1a; font-weight: 500; }

.sh-subbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Main content ─────────────────────────────────────────── */
.sh-main {
    flex: 1;
    padding: 24px 20px;
    background: #F8FAFC;
}

/* ── Buttons ──────────────────────────────────────────────── */
.sh-btn:hover { background: #f9fafb; }

/* ── Filter-Pills ─────────────────────────────────────────── */
.sh-filters {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 9px 16px;
    border-bottom: 0.5px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;

}

/* Suchfeld-Wrapper auch zentrieren */
.sh-search-wrap {

}

.sh-filter {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    color: #6b7280;
    border: none;
    background: transparent;
    font-family: inherit;
    transition: background .1s;
}
.sh-filter:hover  { background: #f1f5f9; }
.sh-filter.active { background: #2471be; color: #fff; }

.sh-filter-count { color: #9ca3af; font-size: 11px; margin-left: auto; }

/* ── Ticket-Liste ─────────────────────────────────────────── */
.sh-ticket-list {
    background: #fff;
    border-top: 0.5px solid #e5e7eb;

}

.sh-ticket-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 24px;
    border-bottom: 0.5px solid #f1f5f9;
    cursor: pointer;
    transition: background .1s;
}
.sh-ticket-row:hover         { background: #f8fafc; }
.sh-ticket-row.is-vip        { background: #fefce8; }
.sh-ticket-row.is-vip:hover  { background: #fef9c3; }

.sh-ticket-flags {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
    padding-top: 3px;
    min-width: 28px;
}

.sh-vip-badge {
    background: #fee2e2;
    color: #991b1b;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.6;
}

.sh-prio-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sh-ticket-body {
    flex: 1;
    min-width: 0;
}

.sh-ticket-subject {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-ticket-from {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 2px;
}

.sh-ticket-preview {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-ticket-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.sh-ticket-time { font-size: 12px; color: #9ca3af; }

/* ── Avatar ───────────────────────────────────────────────── */
.sh-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    font-family: inherit;
}

/* ── Badges ───────────────────────────────────────────────── */
.sh-badge-success { background: #dcfce7; color: #166534; }
.sh-badge-amber   { background: #fef3c7; color: #92400e; }
.sh-badge-purple  { background: #ede9fe; color: #6d28d9; }
.emc-badge-purple { background: #ede9fe; color: #6d28d9; }

/* ── Empty State ──────────────────────────────────────────── */
.sh-empty {
    padding: 60px 20px;
    text-align: center;
    color: #9ca3af;
}
.sh-empty .ti { font-size: 32px; margin-bottom: 12px; display: block; }
.sh-empty-title { font-size: 15px; font-weight: 500; color: #6b7280; margin-bottom: 4px; }
.sh-empty-sub   { font-size: 13px; }

/* ── Flash-Meldungen ──────────────────────────────────────── */
.sh-flash {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}
.sh-flash-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid #ef4444; }
.sh-flash-success { background: #dcfce7; color: #166534; border-left: 3px solid #22c55e; }

/* ── Login-Seite ──────────────────────────────────────────── */
.sh-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
}

.sh-login-card {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid #e5e7eb;
    padding: 36px 32px;
    width: 360px;
}

.sh-login-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.sh-login-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2471be;
}

.sh-login-logo-text {
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Mono', monospace;
    color: #111827;
}

.sh-login-logo-sub {
    color: #9ca3af;
    font-size: 13px;
}

.sh-login-title {
    font-size: 18px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 6px;
}

.sh-login-sub {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 24px;
}

.sh-form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}

.sh-form-control {
    width: 100%;
    padding: 8px 10px;
    border: 0.5px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #111827;
    background: #fff;
    margin-bottom: 14px;
    transition: border-color .15s;
}
.sh-form-control:focus { outline: none; border-color: #2471be; }

.sh-login-btn {
    width: 100%;
    padding: 9px;
    background: #2471be;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    transition: background .15s;
}
.sh-login-btn:hover { background: #1a5a9e; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ── SHUB Overrides für emc-shell.css ──────────────────────────
   SHUB hat eine fixe 220px Sidebar (immer offen/pinned).
   Wir überschreiben die Hover/Collapse-Logik aus emc-shell.css.
   ──────────────────────────────────────────────────────────── */

/* Sidebar immer offen */
.emc-sidebar {
    width: var(--emc-sidebar-w-open) !important;
    overflow-y: auto !important;
    padding: 8px 7px;
}

/* Body-Wrap immer bei 220px */
.emc-body-wrap,
.sh-page {
    left: var(--emc-sidebar-w-open) !important;
    width: calc(100% - var(--emc-sidebar-w-open)) !important;
    padding-left: 0 !important;
}

/* Labels + Sections immer sichtbar */
.emc-sidebar-label,
.emc-sidebar-section {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Sidebar-Section Abstände */
.emc-sidebar-section {
    padding: .625rem .75rem .25rem;
}

/* Badge-Varianten */
.emc-sidebar-badge,
.sh-sidebar-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    flex-shrink: 0;
    opacity: 1 !important;
    min-width: 18px;
    text-align: center;
    line-height: 1.6;
}
.sh-sidebar-badge.blue, .emc-sidebar-badge.blue   { background: var(--emc-brand); color: #fff; }
.sh-sidebar-badge.gray, .emc-sidebar-badge.gray   { background: transparent; color: #475569; }
.sh-sidebar-badge.amber, .emc-sidebar-badge.amber { background: rgba(146,64,14,.3); color: #fef3c7; }

/* Kompatibilität sh-* → emc-* */
.sh-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;overflow:hidden;text-decoration:none;cursor:pointer;transition:background var(--emc-transition),color var(--emc-transition);box-sizing:border-box;flex-shrink:0;border-radius:var(--emc-radius); }
.sh-sidebar-item:hover  { background: var(--emc-sidebar-hover); color: var(--emc-sidebar-hi); }
.sh-sidebar-item.active { background: var(--emc-brand); color: #fff; }
.sh-sidebar-text { flex:1;overflow:hidden;text-overflow:ellipsis;opacity:1!important;max-width:none!important; }
.sh-sidebar-icon { font-size:18px;flex-shrink:0;min-width:34px;text-align:center; }

/* emc-main scrollbar */
.emc-main, .sh-main-area { overflow-y: auto; }

/* Karten mit emc-Radius */

/* ── SHUB-Erweiterungen (nicht in emc-shell.css) ────────────── */

/* Tabellen */
.emc-table-wrap { overflow-x: auto; }
.emc-table { width:100%;border-collapse:collapse;font-size:.875rem; }
.emc-table th { padding:.55rem 1rem;text-align:left;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--emc-text-muted);border-bottom:1px solid var(--emc-border);white-space:nowrap;background:var(--emc-bg); }
.emc-table td { padding:.7rem 1rem;border-bottom:1px solid var(--emc-border);vertical-align:middle;color:var(--emc-text); }
.emc-table tr:last-child td { border-bottom:none; }
.emc-table tr:hover td { background:var(--emc-bg); }

/* Danger Button */
.emc-btn-danger { background:#fee2e2;color:#b91c1c;border-color:#fecaca; }
.emc-btn-danger:hover { background:#fecaca; }

/* Flash-Meldungen */
.sh-flash { padding:10px 16px;border-radius:var(--emc-radius);font-size:13px;margin-bottom:12px; }
.sh-flash-success { background:#dcfce7;color:#166534;border:1px solid #bbf7d0; }
.sh-flash-error   { background:#fee2e2;color:#b91c1c;border:1px solid #fecaca; }

/* Empty State */
.sh-empty { text-align:center;padding:48px 20px;color:var(--emc-text-muted); }
.sh-empty-title { font-size:15px;font-weight:500;margin-bottom:4px; }
.sh-empty-sub { font-size:13px; }

/* ── Inbox + Konversation: einheitliches Dreizonen-Layout ─── */
.sh-main-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.sh-main-content {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.sh-right-panel {
    width: 320px;
    flex-shrink: 0;
    border-left: 0.5px solid #e5e7eb;
    background: #f8fafc;
    overflow-y: auto;
    padding: 0;
}
.sh-rp-section {
    padding: 14px;
    border-bottom: 0.5px solid #e5e7eb;
}
.sh-rp-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9ca3af;
    margin-bottom: 10px;
    display: block;
}
.sh-rp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 13px;
}
.sh-rp-row:last-child { margin-bottom: 0; }
.sh-rp-key { color: #6b7280; }
.sh-rp-val { font-weight: 600; color: #1e293b; }
.sh-rp-val.danger  { color: #b91c1c; }
.sh-rp-val.warning { color: #a16207; }
.sh-rp-val.muted   { color: #9ca3af; }

/* ── Breadcrumb Actions ──────────────────────────────────────── */
.sh-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
