/* ============================================================
   Outbreak WebPanel - Haupt-Stylesheet (style.css)
   ============================================================
   Diese Datei enthält alle CSS-Regeln für das gesamte WebPanel.
   Sie definiert das Layout, Farben, Schriftarten und responsive
   Anpassungen für alle Seiten.
   
   WICHTIG: Alle Werte sind in Pixel (px) oder Prozent (%).
   Für Tabellen-Spalten verwenden wir feste Pixel-Breiten,
   damit sich die Spalten nicht gegenseitig beeinflussen.
   ============================================================ */

/* ============================================================ */
/* 1. GRUNDEINSTELLUNGEN (Reset + Body + Overlay)               */
/* ============================================================ */

/* Reset: Entfernt Standard-Margins und Padding von allen Elementen.
   Box-sizing: border-box sorgt dafür, dass Padding und Border
   in die Breiten-/Höhenberechnung einbezogen werden. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body: Grundlegende Einstellungen für die gesamte Seite.
   - Hintergrundbild mit Overlay-Effekt
   - Schriftart und Größe
   - Kein Scrollen der Hauptseite (overflow: hidden) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    min-height: 100vh;
    overflow: hidden;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dunkles Overlay über dem Hintergrundbild.
   Erhöht die Lesbarkeit des Textes. */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Globale Popup-Basis.
   Feste, deckende Farben sind Vorgabe, damit Popups nicht matschig wirken. */
:root {
    --app-modal-overlay-bg: rgba(0, 0, 0, 0.8);
    --app-modal-bg: #10121a;
    --app-panel-bg: #0f1119;
    --app-modal-surface-image: none;
    --app-modal-border: 1px solid #15577d;
    --app-modal-radius: 15px;
    --app-modal-padding: 24px;
    --app-modal-field-bg: #070d13;
    --app-modal-box-bg: #0f1119;
    --app-panel-inner-bg: #0b1320;
    --app-panel-row-bg: #0f1119;
    --app-panel-row-alt-bg: #11141d;
    --app-panel-active-bg: rgba(33, 150, 243, 0.10);
    --app-modal-box-border: 1px solid #164a68;
    --app-modal-pill-bg: #1c2734;
    --app-modal-badge-bg: #242630;
    --app-modal-accent: #2196f3;
    --app-modal-text: #fff;
    --app-modal-muted: #c0c7d0;
    --role-user-color: #c9d1d9;
    --role-streamer-color: #a855f7;
    --role-support-color: #2196f3;
    --role-support-lead-color: #00bcd4;
    --role-admin-color: #f44336;
    --role-project-lead-color: #ffc107;
    --role-system-color: #9aa4b2;
}

.app-modal-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    z-index: 2150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--app-modal-padding);
    background: var(--app-modal-overlay-bg);
}

.app-modal-overlay > .app-modal-dialog {
    margin: auto;
}

.app-modal-overlay[hidden] {
    display: none;
}

.app-modal-dialog {
    width: min(820px, 95vw);
    max-height: 88vh;
    overflow-y: auto;
    border: var(--app-modal-border);
    border-radius: var(--app-modal-radius);
    background-color: var(--app-modal-bg);
    background-image: var(--app-modal-surface-image);
    background-repeat: repeat;
    color: var(--app-modal-text);
    box-shadow: none;
}

.app-modal-dialog-padded {
    padding: var(--app-modal-padding);
}

.app-modal-dialog-wide {
    width: min(1180px, 95vw);
}

.app-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.app-modal-head h2,
.app-modal-head h3 {
    color: var(--app-modal-accent);
}

.app-modal-head p {
    color: var(--app-modal-muted);
}

.app-modal-body {
    min-height: 0;
}

.app-modal-close {
    border: 0;
    color: #fff;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.app-modal-box {
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-modal-box-bg);
}

.app-modal-field {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 5px;
    color: #fff;
    background: var(--app-modal-field-bg);
    font-size: 12px;
    box-sizing: border-box;
}

.user-modal-head {
    align-items: center;
    margin-bottom: 20px;
}

.user-modal-head-tight {
    margin-bottom: 16px;
}

.app-modal-dialog .user-edit-field,
.app-modal-dialog .user-info-edit {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none;
}

.app-modal-dialog input.user-edit-field,
.app-modal-dialog textarea.user-edit-field,
.app-modal-dialog input.user-info-edit,
.app-modal-dialog textarea.user-info-edit {
    appearance: none;
    -webkit-appearance: none;
    background: var(--app-modal-field-bg) !important;
    background-image: none !important;
    background-clip: border-box;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
}

.app-modal-dialog .user-edit-field:focus,
.app-modal-dialog .user-info-edit:focus {
    border-color: rgba(33, 150, 243, 0.8);
    outline: none;
    box-shadow: none !important;
}

.app-modal-dialog .user-edit-field:disabled,
.app-modal-dialog .user-info-edit:disabled,
.app-modal-dialog .modal-role-checkbox:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    color: #8a94a3 !important;
    border-color: rgba(21, 87, 125, 0.45) !important;
    background-color: #05090d !important;
}

.app-modal-dialog label:has(.modal-role-checkbox:disabled),
.app-modal-dialog label:has(#newmodal-role-streamer:disabled) {
    opacity: 0.7;
    cursor: not-allowed !important;
}

.app-modal-dialog textarea.user-edit-field {
    background-clip: padding-box;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.app-modal-dialog .user-subrole-option {
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* Globale Rollenfarben. Werden durch Projektverwaltung dynamisch ueberschrieben. */
.role-name {
    font-weight: 800;
}

.role-name.role-user {
    color: var(--role-user-color) !important;
}

.role-name.role-support {
    color: var(--role-support-color) !important;
}

.role-name.role-support-lead {
    color: var(--role-support-lead-color) !important;
}

.role-name.role-admin {
    color: var(--role-admin-color) !important;
}

.role-name.role-project-lead {
    color: var(--role-project-lead-color) !important;
}

.role-name.role-system {
    color: var(--role-system-color) !important;
}

.role-streamer-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 5px;
    border-radius: 50%;
    background: var(--role-streamer-color);
    vertical-align: middle;
}

/* ============================================================ */
/* 2. HEADER: Logo, Navigation, Login/Benutzerinfo              */
/* ============================================================ */

/* Header-Bereich: Fixiert oben, überlagert alles (z-index: 1000) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 15px 40px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo: Positioniert links im Header */
.logo {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* Logo-Bild: Runder Rahmen mit blauem Glow-Effekt */
.logo img {
    height: 68px;
    width: auto;
    border-radius: 50%;
    border: 2px solid rgba(33, 150, 243, 0.8);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Navigations-Tabs: Feste Breite fuer gleiche Zentrierung */
.nav-tabs {
    display: flex;
    list-style: none;
    gap: 6px;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-width: 700px; /* Feste Breite basierend auf 8 Buttons */
}

/* Einzelner Tab-Button (Link) */
.tab-btn {
    display: block;
    padding: 6px 12px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: #000;
    border: 2px solid rgba(33, 150, 243, 0.5);
    min-width: 95px;
    text-align: center;
    box-sizing: border-box;
    text-decoration: none;
}

/* Hover- und Aktiv-Zustand der Tabs */
.tab-btn:hover,
.tab-btn.active {
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
}

/* Benutzerinfo (nach erfolgreichem Login): Rechts im Header */
.user-info {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 12px;
    max-width: 360px;
}

/* Benutzername-Text (mit Ellipsis bei zu langen Namen) */
.user-info span {
    color: #fff;
    font-weight: bold;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Abmelden-Button */
.user-info button {
    padding: 6px 12px;
    background: #000;
    border: 2px solid rgba(33, 150, 243, 0.5);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s;
}

/* Hover-Effekt für den Abmelden-Button */
.user-info button:hover {
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
}

/* ============================================================ */
/* 3. HAUPTBEREICH: Main Content + Content-Box + Überschriften */
/* ============================================================ */

/* Container für den Hauptinhalt der Seite.
   Zentriert die Content-Box horizontal. */
.main-content {
    position: relative;
    z-index: 2;
    padding: 110px 0px 55px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

/* Spezielles Layout für Admin/Supporter Panel:
   Kein Padding, volle Breite und Höhe */
body:has(.panel-box) .main-content {
    padding: 0;
    max-width: none;
    height: 100vh;
}

/* Standard-Content-Box für öffentliche Seiten (Willkommen, Lore, Regeln) */
.content-box {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    width: fit-content;
    min-width: 320px;
    max-width: 100%;
    max-height: calc(100vh - 165px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* Panel-Box: Speziell fuer Admin/Supporter Panel.
   Nimmt die gesamte Seite ein (volle Breite und Hoehe). */
.content-box.panel-box {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0);
}

/* Versteckt leere Content-Boxen */
.content-box:empty,
.content-box:not(:has(*)) {
    display: none;
}

/* H1-Überschrift (z.B. "Admin Panel", "Supporter Panel") */
.content-box h1 {
    color: #2196f3;
    font-size: 24px;
    margin-bottom: 20px;
    margin-left: 90px;   /* Abstand zum linken Rand der Box */
}

/* Einstellungen-Seite: Kein großer linker Abstand, da kein Hamburger-Button */
.settings-box h1 {
    margin-left: 0;
    text-align: center;
}

/* H2-Überschrift (z.B. "Web Anpassung", "Benutzerverwaltung") */
.content-box h2 {
    color: #2196f3;
    font-size: 20px;
    margin: 20px 0 10px;
}

/* Standard-Textabsätze */
.content-box p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 13px;
}

/* ============================================================ */
/* 4. BUTTONS (Panel-Buttons, Admin-Buttons, Support-Buttons)   */
/* ============================================================ */

/* Gemeinsame Basis-Styling fuer alle Panel-Buttons */
.panel-btn {
    display: inline-block;
    padding: 6px 12px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: #000;
    border: 2px solid rgba(33, 150, 243, 0.5);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    width: auto;
    min-width: auto;
}

/* Hover- und Aktiv-Zustand der Buttons */
.panel-btn:hover,
.panel-btn.active {
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.6);
}

/* Gefahren-Button (z.B. "Löschen") - Rot statt Blau */
.panel-btn.danger {
    border-color: rgba(244, 67, 54, 0.7);
    color: #ffb3b3;
    padding: 6px 12px;
    font-size: 10px;
}

/* Hover-Effekt für Gefahren-Button */
.panel-btn.danger:hover {
    border-color: #f44336;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

/* ============================================================ */
/* 5. PANEL-SECTION (Scrollbarer Bereich im Admin/Supporter Panel) */
/* ============================================================ */

/* Scrollbarer Container fuer Panel-Inhalte (z.B. Benutzertabelle, Rollen, etc.)
   Exakt im Stil des Bearbeiten-Modals:
   - Hintergrund: rgba(20, 20, 30, 0.95)
   - Rand: 1px solid rgba(33, 150, 243, 0.3)
   - Abrundung: 15px
   - Innenabstand: 30px */
.panel-section {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 15px;
    padding: 30px;
}

/* Scrollbar-Styling für Panel-Sections */
.panel-section::-webkit-scrollbar {
    width: 8px;
}

.panel-section::-webkit-scrollbar-track {
    background: #0f0f1a;
    border-radius: 10px;
}

.panel-section::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.panel-section::-webkit-scrollbar-thumb:hover {
    background: #2196f3;
}

/* Generische Regel für ALLE Tabellen in Panels:
   Jede neue Tabelle innerhalb eines Panels bekommt automatisch
   table-layout: fixed, damit die Kopfzeile die Spaltenbreiten steuert. */
.panel-section table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

/* Input-Felder in allen Panel-Tabellen füllen die Zelle aus */
.panel-section td .user-edit-field,
.panel-section td select.user-edit-field {
    width: 100%;
    box-sizing: border-box;
}

/* Team-Panel-Tabs folgen derselben Flaechenlogik wie globale Popups. */
.panel-section {
    background-color: var(--app-panel-bg) !important;
    background-image: var(--app-modal-surface-image) !important;
    background-repeat: repeat !important;
    border: var(--app-modal-border) !important;
    border-radius: var(--app-modal-radius) !important;
    padding: var(--app-modal-padding) !important;
    color: var(--app-modal-text);
    box-shadow: none !important;
    background-clip: border-box;
}

.panel-section h2:first-child {
    margin-top: 0;
}

.panel-section .management-note,
.panel-section .support-note,
.panel-section .permissions-card,
.panel-section .ts-card,
.panel-section .ts-table-wrap,
.panel-section .user-subrole-box,
.panel-section .user-management-right .user-management-form .user-whitelist-box,
.panel-section [style*="background: rgba(0,0,0"],
.panel-section [style*="background: rgba(0, 0, 0"] {
    background: var(--app-modal-box-bg) !important;
    border: var(--app-modal-box-border) !important;
    border-radius: 8px;
    box-shadow: none !important;
}

.panel-section input:not([type="checkbox"]):not([type="radio"]),
.panel-section textarea,
.panel-section .ts-input,
.panel-section .user-info-edit {
    appearance: none;
    -webkit-appearance: none;
    background: var(--app-modal-field-bg) !important;
    background-image: none !important;
    border: 1px solid rgba(33, 150, 243, 0.4) !important;
    color: #fff;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
}

.panel-section select,
.panel-section .user-edit-field {
    background-color: var(--app-modal-field-bg) !important;
    border-color: rgba(33, 150, 243, 0.4) !important;
    color: #fff;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
}

.panel-section input:not([type="checkbox"]):not([type="radio"]):focus,
.panel-section textarea:focus,
.panel-section select:focus,
.panel-section .user-edit-field:focus,
.panel-section .user-info-edit:focus {
    outline: none;
    border-color: rgba(33, 150, 243, 0.8) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.content-box.panel-box .panel-btn:hover,
.content-box.panel-box .panel-btn.active,
.team-nav .team-btn:hover,
.team-nav .team-btn.active {
    box-shadow: none !important;
}

.panel-section .permissions-card:hover,
.panel-section .ticket-system-queue-row.selected,
.panel-section .ticket-system-card.selected,
.panel-section .ticket-card:hover {
    box-shadow: none !important;
}

body.team-panel-page .logo img,
body.team-panel-page .tab-btn:hover,
body.team-panel-page .tab-btn.active,
body.team-panel-page .user-info button:hover,
body.team-panel-page .slide-btn:hover,
body.team-panel-page .slide-toggle:hover {
    box-shadow: none !important;
}

/* Team-Panel Style-Contract: gemeinsame Basis fuer neue/angeglichene Tabs. */
.team-panel-module {
    min-width: 0;
    padding: 16px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-modal-box-bg);
    color: var(--app-modal-text);
    box-shadow: none;
}

.team-panel-module-title,
.team-panel-module > h2:first-child {
    margin: 0 0 4px;
    color: var(--app-modal-accent);
    font-size: 16px;
    line-height: 1.2;
}

.team-panel-module-subtitle {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b9c2cd;
    font-size: 12px;
    line-height: 1.4;
}

.team-panel-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.team-panel-toolbar label {
    color: #d8e1ec;
    font-size: 13px;
}

.team-panel-toolbar select,
.team-panel-toolbar input:not([type="checkbox"]):not([type="radio"]),
.team-panel-control {
    min-height: 34px;
    background: var(--app-modal-field-bg) !important;
    border: 1px solid rgba(33, 150, 243, 0.55) !important;
    border-radius: 8px;
    color: #fff;
    box-shadow: none !important;
}

.team-panel-card {
    padding: 16px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
    box-shadow: none;
}

.team-panel-card-title {
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.28);
    color: var(--app-modal-accent);
    font-size: 16px;
    line-height: 1.2;
}

.team-panel-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.team-panel-table-wrap {
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
    overflow: auto;
    box-shadow: none;
}

/* Team-Panel Normal-Tabs: eine Flaeche, gleiche Titel/Toolbar/Karten. */
body.team-panel-page .panel-section > h2:first-child {
    margin: 0 0 16px;
    color: var(--app-modal-accent);
    font-size: 22px;
    line-height: 1.2;
}

body.team-panel-page .project-module-panel,
body.team-panel-page .project-module-nav,
body.team-panel-page .user-list-wrap,
body.team-panel-page #quizEditForm,
body.team-panel-page #quizSection div[style*="background: rgba(0,0,0"] {
    background: var(--app-panel-inner-bg) !important;
    border: var(--app-modal-box-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.team-panel-page #usersSection .user-management-layout {
    display: block;
}

body.team-panel-page #usersSection .user-management-left {
    width: 100%;
    min-width: 0;
}

body.team-panel-page #usersSection .user-search,
body.team-panel-page #quizSection > div[style*="display: flex; gap: 15px"] {
    margin: 0 0 16px !important;
    gap: 10px !important;
}

body.team-panel-page #usersSection .user-table,
body.team-panel-page .project-module-panel .user-table {
    margin-top: 0;
}

body.team-panel-page #usersSection .user-table th,
body.team-panel-page #usersSection .user-table td,
body.team-panel-page .project-module-panel .user-table th,
body.team-panel-page .project-module-panel .user-table td {
    border-bottom-color: #111b25;
}

body.team-panel-page #quizSection input:not([type="checkbox"]):not([type="radio"]),
body.team-panel-page #quizSection textarea,
body.team-panel-page #quizSection select,
body.team-panel-page #usersSection .user-search input,
body.team-panel-page #usersSection .user-search select {
    min-height: 34px;
    border-radius: 8px !important;
}

body.team-panel-page #quizQuestionsList {
    margin-top: 14px;
}

body.team-panel-page #quizSection #quizFormTitle,
body.team-panel-page #quizSection span[style*="color: #2196f3"],
body.team-panel-page #quizSection h3[style*="color: #2196f3"] {
    color: var(--app-modal-accent) !important;
}

body.team-panel-page #quizSection .quiz-settings-shell {
    display: grid !important;
    grid-template-columns: minmax(280px, auto) minmax(320px, 1fr);
    gap: 14px !important;
    align-items: start;
    margin: 0 0 16px !important;
}

body.team-panel-page #quizSection .quiz-settings-group,
body.team-panel-page #quizSection .quiz-toggle-row,
body.team-panel-page #quizSection .quiz-button-row,
body.team-panel-page #quizSection .quiz-form-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
    align-items: flex-start;
}

body.team-panel-page #quizSection .quiz-feedback-stack,
body.team-panel-page #quizSection .quiz-action-stack {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

body.team-panel-page #quizSection .quiz-setting-card,
body.team-panel-page #quizSection .quiz-toggle-card {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    min-height: 52px;
    padding: 8px 12px !important;
    border: var(--app-modal-box-border) !important;
    border-radius: 8px !important;
    background: var(--app-panel-inner-bg) !important;
    box-shadow: none !important;
}

body.team-panel-page #quizSection .quiz-toggle-card {
    width: 190px;
    box-sizing: border-box;
}

body.team-panel-page #quizEditForm {
    padding: 16px !important;
    margin-bottom: 16px !important;
}

body.team-panel-page #quizSection .quiz-answer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px !important;
    margin-bottom: 12px;
}

body.team-panel-page #quizSection .quiz-question-scroll {
    max-height: min(54vh, 620px);
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #2b4054 #07111b;
}

body.team-panel-page #quizSection .quiz-question-scroll::-webkit-scrollbar {
    width: 8px;
}

body.team-panel-page #quizSection .quiz-question-scroll::-webkit-scrollbar-track {
    background: #07111b;
    border-radius: 10px;
}

body.team-panel-page #quizSection .quiz-question-scroll::-webkit-scrollbar-thumb {
    background: #2b4054;
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: 10px;
}

body.team-panel-page #quizSection .quiz-question-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--app-modal-accent);
}

body.team-panel-page #quizSection .quiz-question-card {
    margin-bottom: 10px;
    padding: 14px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
    box-shadow: none;
}

body.team-panel-page #quizSection .quiz-question-card:last-child {
    margin-bottom: 0;
}

body.team-panel-page #quizSection .quiz-question-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 10px;
}

body.team-panel-page #quizSection .quiz-question-meta {
    color: var(--app-modal-accent);
    font-weight: 700;
    font-size: 12px;
}

body.team-panel-page #quizSection .quiz-question-text {
    margin-top: 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

body.team-panel-page #quizSection .quiz-question-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 6px;
}

body.team-panel-page #quizSection .quiz-answer-list {
    padding-left: 10px;
    border-left: 2px solid rgba(33, 150, 243, 0.38);
    color: #b9c2cd;
    font-size: 12px;
    line-height: 1.6;
}

body.team-panel-page #quizSection .quiz-question-count {
    margin-top: 5px;
    color: #8f9aaa;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 980px) {
    body.team-panel-page #quizSection .quiz-settings-shell,
    body.team-panel-page #quizSection .quiz-answer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* 6. BENUTZERVERWALTUNG (Formular, Suche, Nachrichten)          */
/* ============================================================ */

/* 2-Spalten-Layout fuer die Benutzerverwaltung:
   Links: Bestehende User (breiter)
   Rechts: Neuen User anlegen (schmaler) */
.user-management-layout {
    display: flex;
    gap: 20px;
}

.user-management-left {
    flex: 2;
    min-width: 0;
}

.user-management-right {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
}

/* Formular im rechten Bereich: 1-Spalten-Layout */
.user-management-right .user-management-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-management-right .user-management-form input,
.user-management-right .user-management-form select {
    width: 100%;
}

.user-subrole-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: -2px;
    padding: 8px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.user-subrole-title {
    color: #888;
    font-size: 12px;
}

.user-subrole-option {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    width: fit-content;
}

/* Box für optionale Whitelist-Profildaten beim Team-Anlegen */
.user-management-right .user-management-form .user-whitelist-box {
    grid-column: auto;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-management-right .user-management-form .user-whitelist-box .user-whitelist-box-title {
    color: #2196f3;
    font-size: 12px;
    font-weight: bold;
}

.user-management-right .char-counter {
    text-align: right;
    color: #888;
    font-size: 12px;
    margin-top: -2px;
}

.user-management-right .char-counter.warning {
    color: #ff9800;
}

.user-management-right .char-counter.ok {
    color: #4caf50;
}

/* Counter im Benutzer-Bearbeiten-Modal (Whitelist-Profil) */
#editUserDialog .char-counter {
    display: block;
    text-align: right;
    color: #9fb0c2;
    font-size: 11px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.1;
}

#editUserDialog .char-counter.warning {
    color: #ffb74d;
}

#editUserDialog .char-counter.ok {
    color: #66bb6a;
}

#editUserDialog .modal-counter {
    text-align: right !important;
}

/* Counter im "Neuer Benutzer"-Popup identisch zu Bearbeiten-Modal */
#newUserDialog .char-counter {
    display: block;
    text-align: right;
    color: #9fb0c2;
    font-size: 11px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.1;
}

#newUserDialog .char-counter.warning {
    color: #ffb74d;
}

#newUserDialog .char-counter.ok {
    color: #66bb6a;
}

#newUserDialog .modal-counter {
    text-align: right !important;
}

/* Charaktergeschichte im Benutzer-Bearbeiten-Modal: feste Boxgroesse */
#editUserDialog #modal-whitelist-story {
    height: 252px !important;
    min-height: 252px !important;
    max-height: 252px !important;
    resize: none !important;
    overflow-y: auto !important;
}

.user-management-right .user-management-form .user-whitelist-box textarea.user-edit-field {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

/* Responsive: Bei kleinen Bildschirmen untereinander */
@media (max-width: 900px) {
    .user-management-layout {
        flex-direction: column;
    }
    .user-management-right {
        max-width: none;
    }
    .user-col-actions {
        flex-wrap: wrap;
    }
}

/* Formular zum Anlegen neuer Benutzer (Grid-Layout: 4 Spalten) */
.user-management-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 160px;
    gap: 12px;
    margin-bottom: 11px;
    align-items: start;   /* Felder nicht auf volle Höhe dehnen */
}

/* Eingabefelder und Dropdown im Benutzer-Anlegen-Formular
   Im Stil des Bearbeiten-Modals: dunkler Hintergrund, blauer Rand. */
.user-management-form input,
.user-management-form select,
.user-management-form textarea {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(33, 150, 243, 0.4);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    height: 38px;         /* Feste Hoehe statt 100% */
}

/* Focus-Effekt fuer Formularfelder */
.user-management-form input:focus,
.user-management-form select:focus,
.user-management-form textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.user-management-right .user-management-form .panel-btn {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
}

/* Der "Benutzer anlegen"-Button nimmt die volle Breite ein */
.user-management-form .panel-btn {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Erfolgs-/Fehlermeldungen (z.B. "Benutzer wurde angelegt") */
.user-message {
    min-height: 20px;
    margin: 10px 0;
    font-size: 12px;
}

.user-message.success {
    color: #4caf50;
}

.user-message.error {
    color: #f44336;
}

/* Suchfeld für die Benutzertabelle */
.user-search {
    margin: 13px 0;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.user-search select.user-edit-field {
    width: auto;
    min-width: auto;
    white-space: nowrap;
}

#userWlProfileFilter.user-edit-field {
    min-width: 160px;
}

.user-search .user-new-btn {
    margin-left: auto;
    white-space: nowrap;
}

.user-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
}

.user-search input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

/* Container fuer die Benutzertabelle (ermoeglicht horizontales Scrollen)
   Im Stil des Bearbeiten-Modals: dunkler Hintergrund, blauer Rand. */
.user-list-wrap {
    overflow-x: auto;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* ============================================================ */
/* 7. BENUTZERTABELLE (user-table)                              */
/* ============================================================ */
/* Diese Styles gelten für die Tabelle in Admin/Supporter Panel.
   Sie hat 6 Spalten: Username | Rolle | Steam64 | Team-Info | Status | Aktion */

/* Basis-Styling der Benutzertabelle */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;   /* Kopfzeile bestimmt die Breite aller Spalten */
}

/* Tabellenzellen (Header und Daten) - gemeinsame Basis */
.user-table th,
.user-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Tabellen-Header (Spaltenüberschriften) - blaue Schrift */
.user-table th {
    color: #2196f3;
}

/* ---------------------------------------------------------- */
/* SPALTENBREITEN - BENUTZERTABELLE (5 Spalten - kompakt)     */
/* Hier kannst du die Breite jeder einzelnen Spalte einstellen.
   Die Werte sind in Pixel (px) - feste Groesse.
   WICHTIG: Wenn du eine Zahl aenderst, passen sich die anderen
   NICHT automatisch an.
   ---------------------------------------------------------- */

/* SPALTE 1: Username (mit Info-Icon) */
.user-table th:nth-child(1),
.user-table td:nth-child(1) {
    width: 200px;
}

/* SPALTE 2: Rolle */
.user-table th:nth-child(2),
.user-table td:nth-child(2) {
    width: 120px;
}

/* SPALTE 3: Status (Aktiv / Gebannt) - zentriert */
.user-table th:nth-child(3),
.user-table td:nth-child(3) {
    width: 110px;
    text-align: center;
}

/* SPALTE 4: Whitelist-Status */
.user-table th:nth-child(4),
.user-table td:nth-child(4) {
    width: 150px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SPALTE 5: Team-Info */
.user-table th:nth-child(5),
.user-table td:nth-child(5) {
    width: 260px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SPALTE 6: Aktion (Buttons: Bearbeiten, Loeschen, Bannen) */
.user-table th:nth-child(6),
.user-table td:nth-child(6) {
    width: 270px;
    white-space: nowrap;   /* Buttons nicht umbrechen */
}

.user-col-teaminfo {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-teaminfo-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 6px;
    padding: 6px 8px;
    color: #fff;
    font-size: 12px;
    box-sizing: border-box;
}

.user-teaminfo-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.25);
}

.user-col-actions {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    vertical-align: middle;
}

.user-actions-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
}

.user-icon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(33, 150, 243, 0.35);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: #8ec9ff;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.user-icon-btn:hover {
    border-color: rgba(33, 150, 243, 0.7);
    background: rgba(33, 150, 243, 0.2);
    color: #fff;
}

/* SPALTE 6-9: Werden von anderen Tabellen genutzt */
.user-table th:nth-child(7),
.user-table td:nth-child(7) {
    width: 150px;
}

.user-table th:nth-child(8),
.user-table td:nth-child(8) {
    width: 80px;
    text-align: center;
}

.user-table th:nth-child(9),
.user-table td:nth-child(9) {
    width: 100px;
    text-align: center;
}

.user-table th:nth-child(10),
.user-table td:nth-child(10) {
    width: 220px;
    white-space: nowrap;
}

/* Eingabefelder für Benutzerdaten in der Tabelle.
   Diese Felder erscheinen beim Bearbeiten einer Zeile. */
.user-edit-field,
.user-info-edit {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    box-sizing: border-box;
}

.user-edit-field:focus,
.user-info-edit:focus {
    border-color: rgba(33, 150, 243, 0.8);
    outline: none;
}

/* Select-Dropdown in der Benutzertabelle */
select.user-edit-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

/* ============================================================ */
/* 8. ROLLEN-TABELLE (roles-table)                              */
/* ============================================================ */
/* Diese Styles gelten für die Rollen-Verwaltung im Admin Panel.
   Sie hat 5 Spalten: ID | Name | Level | Rechte | Aktion */

/* Basis-Styling der Rollen-Tabelle (gleich wie user-table) */
.roles-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: fixed;
}

/* Tabellenzellen der Rollen-Tabelle */
.roles-table th,
.roles-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 12px;
    vertical-align: top;
}

/* Tabellen-Header der Rollen-Tabelle */
.roles-table th {
    color: #2196f3;
}

/* ---------------------------------------------------------- */
/* SPALTENBREITEN - ROLLEN-TABELLE (5 Spalten)                */
/* Hier kannst du die Breite jeder einzelnen Spalte einstellen.
   Die Werte sind in Pixel (px) - feste Größe, nie Prozent!
   WICHTIG: Wenn du eine Zahl änderst, passen sich die anderen
   NICHT automatisch an.
   ---------------------------------------------------------- */

/* SPALTE 1: ID (z.B. projekt_lead) */
.roles-table th:nth-child(1),
.roles-table td:nth-child(1) {
    width: 120px;
}

/* SPALTE 2: Name (z.B. Projekt Lead) */
.roles-table th:nth-child(2),
.roles-table td:nth-child(2) {
    width: 140px;
}

/* SPALTE 3: Level (0-5) */
.roles-table th:nth-child(3),
.roles-table td:nth-child(3) {
    width: 70px;
}

/* SPALTE 4: Rechte (Checkboxen mit Tooltips) */
.roles-table th:nth-child(4),
.roles-table td:nth-child(4) {
    width: 400px;
}

/* SPALTE 5: Aktion (Speichern, Löschen) */
.roles-table th:nth-child(5),
.roles-table td:nth-child(5) {
    width: 180px;
    white-space: nowrap;
}

/* Rotes X zum Löschen (Rollen-Tabelle) */
.delete-x {
    color: #f44336;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s;
}

.delete-x:hover {
    color: #ff6659;
}

/* ============================================================ */
/* PERMISSION-TAGS (Kompakte Darstellung in Rollen-Tabelle)     */
/* ============================================================ */

/* Container für die Tags */
/* Einzelner Permission-Tag */
/* "+X mehr" / "Rechte bearbeiten"-Button */
/* Dropdown-Container: absolut positioniert relativ zum nächsten positionierten Eltern-Element */
/* ============================================================ */
/* 9. ROLLEN-VERWALTUNG (Permissions)                           */
/* ============================================================ */

/* Einzelne Permission-Checkbox mit Label */
.permission-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
}

/* Die Checkbox selbst */
.permission-label input[type="checkbox"] {
    accent-color: #2196f3;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ============================================================ */
/* 10. EINSTELLUNGSSEITE (Mein Bereich)                         */
/* ============================================================ */

.settings-box.user-area-box {
    width: min(1080px, calc(100vw - 32px));
    max-width: min(1080px, calc(100vw - 32px));
    padding: 22px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.78);
}

.user-area-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.18);
}

.user-area-title h1 {
    margin: 0 0 4px;
    color: #2196f3;
    font-size: 24px;
    line-height: 1.15;
}

.user-area-title p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
}

.user-area-layout {
    display: grid;
    grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.45fr);
    gap: 14px;
    align-items: start;
}

.user-area-sidebar {
    display: grid;
    gap: 12px;
}

.user-area-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(33, 150, 243, 0.18);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
}

.user-area-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.user-area-panel-head span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.user-profile-panel .settings-info,
.user-password-panel .settings-form {
    margin: 0;
    padding: 0;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.user-profile-panel .settings-info {
    display: grid;
    gap: 8px;
}

.user-profile-panel .settings-info p {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 0;
    color: #ddd;
}

.user-profile-panel .settings-info strong {
    color: #8fbce8;
    font-size: 11px;
    font-weight: 600;
}

.user-profile-panel .settings-info span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whitelist-status-panel #whitelistStatusContent {
    color: #ccc;
    font-size: 13px;
}

.whitelist-status-panel #whitelistStatusContent button {
    margin-left: 0 !important;
}

.user-password-panel .settings-form {
    gap: 8px;
}

.user-password-panel .settings-form input {
    padding: 9px 10px;
    font-size: 12px;
}

.user-password-panel .settings-form button {
    width: 100%;
}

.user-password-panel #settingsMessage {
    margin-top: 10px;
}

/* Begrenzte Breite der Einstellungs-Box */
.settings-box {
    width: min(980px, 100%);
    padding: 20px;        /* Weniger Padding als Standard-Content-Box */
}

/* Info-Box mit Benutzerdaten */
.settings-info {
    margin-bottom: 10px;  /* Weniger Abstand zwischen den Boxen */
}

/* Twitch Kanal Sektion: Kompakter */
#twitchSection {
    margin-bottom: 5px;
}

#twitchSection .user-message {
    min-height: 0;
    margin: 3px 0 0;
}

.settings-info p {
    margin-bottom: 5px;   /* Weniger Abstand zwischen Textzeilen */
}

.tickets-user-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(33, 150, 243, 0.25);
}

.tickets-user-panel.user-tickets-panel {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(33, 150, 243, 0.18);
}

.ticket-user-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.ticket-user-head h2 {
    margin: 0 0 4px;
    color: #2196f3;
    font-size: 20px;
}

.ticket-user-head p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
}

.ticket-live-state {
    min-width: 78px;
    padding: 5px 8px;
    border: 1px solid rgba(158, 158, 158, 0.4);
    border-radius: 8px;
    color: #ccc;
    font-size: 11px;
    text-align: center;
    background: rgba(0, 0, 0, 0.25);
}

.ticket-live-state.online {
    border-color: rgba(76, 175, 80, 0.7);
    color: #9be49f;
}

.ticket-live-state.pending {
    border-color: rgba(255, 193, 7, 0.7);
    color: #ffd76a;
}

.ticket-live-state.offline {
    border-color: rgba(244, 67, 54, 0.45);
    color: #ffb3b3;
}

.ticket-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
}

.ticket-stat {
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid rgba(33, 150, 243, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.ticket-stat strong {
    display: block;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.ticket-stat span {
    display: block;
    margin-top: 4px;
    color: #aaa;
    font-size: 11px;
}

.ticket-user-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
}

.ticket-user-nav .ticket-nav-btn {
    flex: 1 1 130px;
    min-width: 0;
    border-width: 1px;
    background: transparent;
    box-shadow: none;
}

.ticket-user-nav .ticket-nav-btn.active {
    background: rgba(33, 150, 243, 0.18);
    border-color: rgba(33, 150, 243, 0.65);
}

.ticket-user-message {
    min-height: 0;
    margin: 0;
}

.ticket-user-message:not(:empty) {
    min-height: 18px;
    margin: 8px 0;
}

.ticket-user-view {
    min-height: 0;
}

.ticket-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--app-modal-overlay-bg);
}

.ticket-modal-overlay[hidden] {
    display: none;
}

.ticket-modal {
    width: min(880px, calc(100vw - 32px));
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: var(--app-modal-border);
    border-radius: var(--app-modal-radius);
    background-color: var(--app-modal-bg);
    background-image: var(--app-modal-surface-image);
    background-repeat: repeat;
    box-shadow: none;
}

.ticket-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: var(--app-modal-box-border);
    background: var(--app-modal-bg);
}

.ticket-modal-head h3 {
    margin: 0 0 4px;
    color: #2196f3;
    font-size: 19px;
}

.ticket-modal-head p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
}

.ticket-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(33, 150, 243, 0.45);
    border-radius: 8px;
    color: #fff;
    background: #000;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ticket-modal-close:hover {
    border-color: #2196f3;
    box-shadow: none;
}

.ticket-modal .ticket-user-message:not(:empty) {
    margin: 10px 14px 0;
}

.ticket-modal-body {
    min-height: 120px;
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ticket-empty {
    padding: 14px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    color: #aaa;
    font-size: 12px;
    background: var(--app-modal-box-bg);
}

.ticket-card {
    display: flex;
    width: 100%;
    min-height: 68px;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding: 11px 12px;
    border: var(--app-modal-box-border);
    border-left-width: 3px;
    border-radius: 8px;
    color: #fff;
    text-align: left;
    background: var(--app-modal-box-bg);
    cursor: pointer;
}

.ticket-card:hover {
    border-color: #2196f3;
    box-shadow: none;
}

.ticket-card.open {
    border-left-color: #2196f3;
}

.ticket-card.progress {
    border-left-color: #ff9800;
}

.ticket-card.waiting {
    border-left-color: #ffc107;
}

.ticket-card.closed {
    border-left-color: #4caf50;
}

.ticket-card-main,
.ticket-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ticket-card-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-card-main small,
.ticket-card-meta {
    color: #aaa;
    font-size: 11px;
}

.ticket-card-meta {
    align-items: flex-end;
    flex-shrink: 0;
}

.ticket-pill,
.ticket-priority {
    max-width: 160px;
    padding: 4px 7px;
    border: 1px solid #34465a;
    border-radius: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ddd;
    background: var(--app-modal-badge-bg);
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 11px;
    border: var(--app-modal-box-border);
    border-radius: 10px;
    background: var(--app-modal-box-bg);
}

.ticket-modal-body > .ticket-form {
    margin-top: 0;
}

.ticket-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ticket-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #d8dde4;
    font-size: 12px;
}

.ticket-category-hint,
.ticket-control-hint {
    display: block;
    color: #9fb0c2;
    font-size: 11px;
    line-height: 1.35;
}

.ticket-category-hint.warning,
.ticket-control-hint.warning {
    color: #ffd15c;
}

.ticket-category-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 5px;
    border: 1px solid rgba(33, 150, 243, 0.58);
    border-radius: 50%;
    color: #9fd4ff;
    background: rgba(8, 24, 38, 0.92);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.ticket-category-help.warning {
    border-color: rgba(255, 193, 7, 0.66);
    color: #ffd15c;
    background: rgba(45, 31, 0, 0.92);
}

.ticket-floating-tooltip {
    position: fixed;
    z-index: 99999;
    max-width: 280px;
    padding: 8px 10px;
    border: 1px solid rgba(33, 150, 243, 0.55);
    border-radius: 7px;
    color: #d8e6f3;
    background: #07111c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
}

.ticket-floating-tooltip.warning {
    border-color: rgba(255, 193, 7, 0.66);
    color: #ffe08a;
    background: #1d1604;
}

.ticket-floating-tooltip[hidden] {
    display: none !important;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea {
    width: 100%;
    padding: 8px;
    border: var(--app-modal-box-border);
    border-radius: 5px;
    color: #fff;
    background: var(--app-modal-field-bg);
    font-size: 12px;
    box-sizing: border-box;
}

.ticket-form textarea {
    resize: vertical;
}

.ticket-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ticket-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-detail-head h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 18px;
}

.ticket-detail-head p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
}

.ticket-message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.ticket-message {
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.ticket-message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 11px;
}

.ticket-message-head strong {
    color: #2196f3;
}

.ticket-message p {
    margin: 0;
    color: #ddd;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.ticket-chat-panel {
    margin-bottom: 12px;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.ticket-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.18);
    background: rgba(0, 0, 0, 0.22);
}

.ticket-chat-head h4 {
    margin: 0;
    color: #2196f3;
    font-size: 14px;
}

.ticket-chat-head h4 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    margin-left: 8px;
    padding: 1px 6px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 999px;
    color: #f0f3f7;
    background: var(--app-modal-badge-bg);
    font-size: 10px;
    vertical-align: 1px;
}

.ticket-chat-head span {
    color: #b4bdc8;
    font-size: 11px;
}

.ticket-chat-window {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    min-height: 210px;
    max-height: 44vh;
    padding: 10px 12px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.28);
}

.ticket-chat-message {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.ticket-chat-message.team,
.ticket-chat-message.own {
    justify-content: flex-start;
}

.ticket-chat-message.user {
    justify-content: flex-start;
}

.ticket-chat-message.internal,
.ticket-chat-message.management {
    justify-content: flex-start;
}

.ticket-chat-bubble {
    width: 100%;
    max-width: none;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ticket-chat-message.team .ticket-chat-bubble,
.ticket-chat-message.own .ticket-chat-bubble {
    border-color: transparent;
    background: transparent;
    border-radius: 0;
}

.ticket-chat-message.user .ticket-chat-bubble {
    border-color: transparent;
    background: transparent;
    border-radius: 0;
}

.ticket-chat-message.internal .ticket-chat-bubble {
    max-width: none;
    border-color: transparent;
    background: transparent;
}

.ticket-chat-message.management .ticket-chat-bubble {
    max-width: none;
    border-color: transparent;
    background: transparent;
}

.ticket-chat-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    color: #c4ccd6;
    font-size: 11px;
}

.ticket-chat-meta strong {
    color: #2196f3;
}

.ticket-chat-message.management .ticket-chat-meta strong {
    color: inherit;
}

.ticket-chat-message.internal .ticket-chat-meta strong {
    color: inherit;
}

.ticket-chat-meta > span {
    padding: 0;
    border-radius: 0;
    color: #d3d9e2;
    background: transparent;
}

.ticket-chat-message.internal .ticket-chat-meta > span {
    color: #ffd45a;
}

.ticket-chat-message.management .ticket-chat-meta > span {
    color: #ff5c7d;
}

.ticket-chat-meta strong .role-name {
    padding: 0;
    border: 0;
    background: transparent;
}

.ticket-chat-bubble p {
    margin: 0;
    color: #f0f3f7;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.ticket-system-composer {
    margin-bottom: 12px;
}

.ticket-composer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: start;
}

.ticket-composer-main {
    min-width: 0;
}

.ticket-composer-message {
    min-width: 0;
}

.ticket-composer-message textarea {
    min-height: 104px;
    height: 104px;
    max-height: 104px;
    font-size: 14px;
    line-height: 1.35;
    overflow-y: auto;
    resize: none;
}

.ticket-composer-side {
    display: flex;
    justify-content: center;
    padding-top: 25px;
    min-width: 0;
}

.ticket-compose-modes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ticket-compose-mode {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    min-height: 0;
    transition: transform 120ms ease;
}

.ticket-compose-mode input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ticket-compose-mode-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 7px;
    color: #071018;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transition: box-shadow 120ms ease, transform 120ms ease, filter 120ms ease;
}

.ticket-compose-mode-public .ticket-compose-mode-icon {
    background: #2196f3;
}

.ticket-compose-mode-internal .ticket-compose-mode-icon {
    background: #ffd76a;
}

.ticket-compose-mode-management .ticket-compose-mode-icon {
    background: #ff6fae;
}

.ticket-compose-mode-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ticket-compose-mode:has(input:checked) {
    background: transparent;
}

.ticket-compose-mode:hover {
    background: transparent;
}

.ticket-compose-mode:hover .ticket-compose-mode-icon {
    transform: scale(1.07);
    filter: brightness(1.08);
}

.ticket-compose-mode:has(input:checked) .ticket-compose-mode-icon {
    transform: scale(1.08);
}

.ticket-compose-mode-public:has(input:checked) .ticket-compose-mode-icon {
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.3), 0 0 14px rgba(33, 150, 243, 0.85);
}

.ticket-compose-mode-internal:has(input:checked) .ticket-compose-mode-icon {
    box-shadow: 0 0 0 2px rgba(255, 215, 106, 0.3), 0 0 14px rgba(255, 215, 106, 0.75);
}

.ticket-compose-mode-management:has(input:checked) .ticket-compose-mode-icon {
    box-shadow: 0 0 0 2px rgba(255, 111, 174, 0.3), 0 0 14px rgba(255, 111, 174, 0.75);
}

.ticket-composer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
}

.ticket-composer-send,
.ticket-composer-attach {
    min-width: 104px;
    justify-content: center;
}

.ticket-composer-file {
    display: none;
}

@media (max-width: 920px) {
    .ticket-composer-layout {
        grid-template-columns: 1fr;
    }

    .ticket-composer-side {
        justify-content: flex-start;
        padding-top: 0;
    }

    .ticket-compose-modes {
        flex-direction: row;
    }
}

.ticket-attachments-block {
    margin-bottom: 12px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
}

.ticket-attachments-block h4 {
    margin: 0 0 10px;
    color: #2196f3;
    font-size: 14px;
}

.ticket-attachment-list {
    display: grid;
    gap: 8px;
}

.ticket-attachment {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    color: #ddd;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.ticket-attachment:hover {
    border-color: rgba(33, 150, 243, 0.55);
    color: #fff;
}

.ticket-attachment span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.ticket-attachment small {
    flex-shrink: 0;
    color: #aaa;
    font-size: 11px;
}

.ticket-attachment-form {
    margin-top: 10px;
}

.ticket-notification {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.26);
}

.ticket-notification.unread {
    border-color: rgba(33, 150, 243, 0.45);
}

.ticket-notification strong {
    color: #fff;
}

.ticket-notification p,
.ticket-notification time {
    display: block;
    margin: 5px 0 0;
    color: #aaa;
    font-size: 12px;
}

.ticket-notification-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.tickets-system-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px 18px;
    overflow: hidden;
}

.tickets-system-section #ticketsSystemContainer {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ticket-system-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    height: 100%;
}

.ticket-system-head,
.ticket-system-subhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
}

.ticket-system-head h2,
.ticket-system-subhead h3 {
    margin: 0 0 4px;
    color: #2196f3;
}

.ticket-system-head p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
}

.ticket-system-message {
    min-height: 0;
    margin: 0;
}

.ticket-system-message:not(:empty) {
    min-height: 18px;
    margin: 8px 0;
}

.ticket-system-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ticket-system-overview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    flex: 0 0 auto;
    align-items: stretch;
}

.ticket-system-stats.ticket-system-stats-compact {
    grid-template-columns: repeat(5, minmax(86px, 1fr));
    gap: 6px;
    margin-bottom: 0;
}

.ticket-system-stats-compact .ticket-stat {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 8px;
    border-color: rgba(33, 150, 243, 0.12);
}

.ticket-system-stats-compact .ticket-stat strong {
    font-size: 15px;
}

.ticket-system-stats-compact .ticket-stat span {
    margin-top: 0;
    font-size: 10px;
}

.ticket-system-quick-actions {
    display: flex;
    align-items: stretch;
}

.ticket-system-quick-actions .panel-btn {
    min-width: 108px;
    padding: 5px 10px;
}

.ticket-system-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.6fr);
    gap: 14px;
    align-items: start;
}

.ticket-system-list-panel,
.ticket-system-detail,
.ticket-system-activity {
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    padding: 12px;
}

.ticket-system-toolbar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto;
    gap: 8px;
    margin-bottom: 10px;
}

.ticket-system-inbox-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.ticket-system-inbox-toolbar {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.35fr) minmax(150px, 0.35fr);
    gap: 7px;
    margin-bottom: 8px;
}

.ticket-system-inbox-toolbar input,
.ticket-system-inbox-toolbar select {
    padding: 7px 8px;
}

.ticket-system-toolbar input,
.ticket-system-toolbar select,
.ticket-system-box input,
.ticket-system-box select,
.ticket-system-box textarea,
.ticket-assign-row select {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    box-sizing: border-box;
}

.ticket-system-list {
    max-height: 68vh;
    overflow: auto;
    padding-right: 4px;
}

.ticket-system-inbox-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.ticket-system-queue {
    display: grid;
    gap: 6px;
}

.ticket-system-queue-head,
.ticket-system-queue-row {
    display: grid;
    grid-template-columns: 58px minmax(220px, 1.5fr) minmax(105px, 0.55fr) minmax(95px, 0.5fr) minmax(115px, 0.58fr) minmax(85px, 0.42fr) minmax(120px, 0.62fr) minmax(120px, 0.55fr) 52px;
    gap: 10px;
    align-items: center;
}

.ticket-system-queue-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 6px 10px;
    border: 1px solid rgba(33, 150, 243, 0.12);
    border-radius: 8px;
    color: #8fbce8;
    background: rgba(3, 6, 10, 0.92);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.ticket-system-queue-row {
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid rgba(33, 150, 243, 0.13);
    border-left: 3px solid rgba(33, 150, 243, 0.75);
    border-radius: 8px;
    color: #ddd;
    text-align: left;
    background: rgba(255, 255, 255, 0.028);
    cursor: pointer;
}

.ticket-system-queue-row:hover,
.ticket-system-queue-row.selected {
    border-color: rgba(33, 150, 243, 0.65);
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.14);
}

.ticket-system-queue-row.closed {
    border-left-color: #4caf50;
}

.ticket-system-queue-row.waiting {
    border-left-color: #ffc107;
}

.ticket-system-queue-row.progress {
    border-left-color: #ff9800;
}

.ticket-system-queue-row > span,
.ticket-system-title-cell strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-system-no {
    color: #fff;
    font-weight: 700;
}

.ticket-system-title-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ticket-system-title-cell strong {
    color: #fff;
}

.ticket-system-queue-row .ticket-pill,
.ticket-system-queue-row .ticket-priority {
    max-width: 115px;
    padding: 3px 6px;
    font-size: 10px;
}

.ticket-system-card.selected {
    border-color: rgba(33, 150, 243, 0.8);
    box-shadow: 0 0 16px rgba(33, 150, 243, 0.22);
}

.ticket-softlock {
    color: #ffd76a;
    font-size: 11px;
}

.ticket-system-detail-head {
    justify-content: space-between;
}

.ticket-system-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.ticket-delete-ticket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    padding: 0;
    border: 1px solid #f44336;
    border-radius: 8px;
    color: #ff8d85;
    background: #050608;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.ticket-delete-ticket:hover {
    color: #fff;
    background: rgba(244, 67, 54, 0.18);
}

.ticket-system-row-actions {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.ticket-delete-ticket-list {
    width: 30px;
    height: 28px;
    border-radius: 6px;
    font-size: 15px;
}

.ticket-system-lock {
    margin-bottom: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #aaa;
    background: rgba(0, 0, 0, 0.25);
    font-size: 12px;
}

.ticket-system-lock.active {
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffd76a;
}

.ticket-system-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 14px;
}

.ticket-system-detail-modal {
    border: 0;
    padding: 0;
    background: transparent;
}

.ticket-system-modal-overlay {
    z-index: 2150;
    padding: var(--app-modal-padding);
    background: var(--app-modal-overlay-bg);
}

.ticket-system-modal-overlay[hidden] {
    display: none;
}

.ticket-system-modal {
    width: min(1180px, 95vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: var(--app-modal-border);
    border-radius: var(--app-modal-radius);
    background: var(--app-modal-bg);
    box-shadow: none;
}

.ticket-system-modal-head {
    padding: var(--app-modal-padding) var(--app-modal-padding) 16px;
    border-bottom: 0;
    background: transparent;
}

.ticket-system-modal-head h3 {
    margin: 0 0 4px;
    color: #2196f3;
    font-size: 19px;
}

.ticket-system-modal-head p {
    margin: 0;
    color: #c0c7d0;
    font-size: 12px;
}

.ticket-system-modal .ticket-system-message:not(:empty) {
    margin: 10px 14px 0;
}

.ticket-system-modal-body {
    min-height: 180px;
    padding: 0 var(--app-modal-padding) var(--app-modal-padding);
    overflow-y: auto;
    overflow-x: hidden;
    background: transparent;
}

.ticket-system-main,
.ticket-system-side {
    min-width: 0;
}

.ticket-system-box {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}

.ticket-system-box h4 {
    margin: 0 0 10px;
    color: #2196f3;
    font-size: 14px;
}

.ticket-system-box label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 9px;
    color: #d8dde4;
    font-size: 12px;
}

.ticket-meta-line,
.ticket-small-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #c0c7d0;
    font-size: 12px;
}

.ticket-meta-line strong {
    color: #fff;
    text-align: right;
}

.ticket-assign-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.ticket-message.internal {
    border-color: rgba(255, 193, 7, 0.35);
    background: rgba(255, 193, 7, 0.06);
}

.ticket-system-composers {
    display: grid;
    gap: 12px;
}

.ticket-system-activity {
    margin-top: 14px;
}

.ticket-system-modal {
    height: min(86vh, 820px);
}

.ticket-system-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
}

.ticket-system-modal-body > .ticket-system-detail-modal {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.ticket-system-modal-body > .ticket-system-activity-modal {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.ticket-activity-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.35fr);
    gap: 8px;
    margin: 0 0 10px;
}

.ticket-activity-list {
    display: grid;
    gap: 6px;
}

.ticket-activity-row {
    display: grid;
    grid-template-columns: 138px minmax(190px, 1fr) minmax(120px, 0.35fr) minmax(110px, 0.28fr) minmax(220px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(33, 150, 243, 0.22);
    border-radius: 8px;
    background: rgba(5, 8, 13, 0.66);
    color: #cfd7e0;
    text-align: left;
}

button.ticket-activity-row {
    cursor: pointer;
}

button.ticket-activity-row:hover {
    border-color: rgba(33, 150, 243, 0.52);
    background: rgba(9, 18, 29, 0.9);
}

.ticket-activity-row.missing {
    opacity: 0.72;
}

.ticket-activity-time,
.ticket-activity-action,
.ticket-activity-actor,
.ticket-activity-details,
.ticket-activity-ticket small {
    min-width: 0;
    overflow: hidden;
    color: #aeb7c2;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-activity-ticket {
    min-width: 0;
}

.ticket-activity-ticket strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-activity-ticket small {
    display: block;
    margin-top: 2px;
}

.ticket-activity-action {
    color: #1e9fff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ticket-activity-tools,
    .ticket-activity-row {
        grid-template-columns: 1fr;
    }

    .ticket-activity-row {
        gap: 4px;
    }
}

.ticket-system-ticket-summary {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto) auto;
    align-items: start;
    gap: 12px;
}

.ticket-system-ticket-title {
    min-width: 0;
}

.ticket-system-ticket-title > span {
    display: inline-block;
    margin-bottom: 3px;
    color: #b7d8f5;
    font-size: 11px;
    font-weight: 700;
}

.ticket-system-summary-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 360px;
}

.ticket-system-summary-pills .ticket-pill,
.ticket-system-summary-pills .ticket-priority {
    max-width: 150px;
    font-size: 10px;
    color: #f0f3f7;
    background: rgba(255, 255, 255, 0.08);
}

.ticket-system-detail-modal .ticket-system-lock {
    flex: 0 0 auto;
}

.ticket-system-detail-workbench {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) 250px;
}

.ticket-system-conversation {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.ticket-system-sidebar {
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.ticket-system-detail-modal .ticket-chat-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.ticket-system-detail-modal .ticket-chat-window {
    flex: 1 1 auto;
    min-height: 170px;
    max-height: none;
}

.ticket-system-detail-modal .ticket-system-composer,
.ticket-system-detail-modal .ticket-attachments-foldout {
    flex: 0 0 auto;
}

.ticket-system-foldout,
.ticket-attachments-foldout {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
}

.ticket-system-foldout summary,
.ticket-attachments-foldout summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    color: #2196f3;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.ticket-system-foldout summary::-webkit-details-marker,
.ticket-attachments-foldout summary::-webkit-details-marker {
    display: none;
}

.ticket-system-foldout summary::after,
.ticket-attachments-foldout summary::after {
    content: "+";
    color: #8fbce8;
    font-size: 14px;
}

.ticket-system-foldout[open] summary::after,
.ticket-attachments-foldout[open] summary::after {
    content: "-";
}

.ticket-system-foldout summary strong,
.ticket-attachments-foldout summary strong {
    min-width: 24px;
    padding: 2px 6px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 999px;
    color: #f0f3f7;
    background: rgba(255, 255, 255, 0.08);
    font-size: 10px;
    text-align: center;
}

.ticket-system-foldout > :not(summary),
.ticket-attachments-foldout > :not(summary) {
    margin: 10px 0 0;
}

.ticket-attachments-foldout > h4 {
    display: none;
}

/* Team-Ticket-Popup: klare Innenflaechen statt gestapelter Transparenz. */
.ticket-system-modal {
    color: #eef3f8;
}

.ticket-system-modal .ticket-modal-close {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: none;
    font-size: 24px;
    box-shadow: none;
}

.ticket-system-modal .ticket-modal-close:hover {
    color: #2196f3;
    border-color: transparent;
    box-shadow: none;
}

.ticket-system-modal-body {
    color: #e8eef5;
}

.ticket-system-ticket-summary,
.ticket-system-box,
.ticket-system-foldout,
.ticket-attachments-foldout,
.ticket-system-detail-modal .ticket-chat-panel,
.ticket-system-detail-modal .ticket-system-composer {
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-modal-box-bg);
    box-shadow: none;
}

.ticket-system-ticket-summary {
    margin-bottom: 12px;
    padding: 10px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-modal-box-bg);
}

.ticket-system-ticket-title > span {
    color: #91c9f7;
    font-size: 12px;
}

.ticket-system-ticket-title h3 {
    color: #fff;
    font-size: 20px;
}

.ticket-system-ticket-title p,
.ticket-system-modal-head p {
    color: #c5cfda;
}

.ticket-system-summary-pills .ticket-pill,
.ticket-system-summary-pills .ticket-priority {
    color: #f5f8fb;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(33, 150, 243, 0.22);
}

.ticket-system-detail-modal .ticket-system-lock {
    border-color: rgba(33, 150, 243, 0.2);
    color: #c0c7d0;
    background: var(--app-modal-box-bg);
}

.ticket-system-detail-modal .ticket-system-lock.active {
    border-color: rgba(255, 193, 7, 0.62);
    color: #ffe08a;
    background: rgba(255, 193, 7, 0.08);
}

.ticket-system-detail-workbench {
    gap: 16px;
}

.ticket-system-sidebar {
    padding-right: 6px;
}

.ticket-system-box h4,
.ticket-chat-head h4,
.ticket-system-foldout summary,
.ticket-attachments-foldout summary {
    color: #2aa7ff;
}

.ticket-system-box label,
.ticket-form label,
.ticket-system-foldout label,
.ticket-attachments-foldout label,
.ticket-meta-line,
.ticket-small-row {
    color: #d9e0e8;
    font-size: 13px;
}

.ticket-meta-line strong {
    color: #fff;
}

.ticket-system-toolbar input,
.ticket-system-toolbar select,
.ticket-system-box input,
.ticket-system-box select,
.ticket-system-box textarea,
.ticket-system-foldout input,
.ticket-system-foldout select,
.ticket-system-foldout textarea,
.ticket-attachments-foldout input,
.ticket-attachments-foldout select,
.ticket-attachments-foldout textarea,
.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.ticket-assign-row select,
.ticket-activity-tools input,
.ticket-activity-tools select {
    border-color: rgba(76, 163, 236, 0.38);
    color: #f4f7fb;
    background: var(--app-modal-field-bg);
    font-size: 12px;
}

.ticket-system-toolbar input:focus,
.ticket-system-toolbar select:focus,
.ticket-system-box input:focus,
.ticket-system-box select:focus,
.ticket-system-box textarea:focus,
.ticket-system-foldout input:focus,
.ticket-system-foldout select:focus,
.ticket-system-foldout textarea:focus,
.ticket-attachments-foldout input:focus,
.ticket-attachments-foldout select:focus,
.ticket-attachments-foldout textarea:focus,
.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus,
.ticket-assign-row select:focus,
.ticket-activity-tools input:focus,
.ticket-activity-tools select:focus {
    border-color: rgba(76, 163, 236, 0.9);
    outline: none;
    box-shadow: none;
}

.ticket-chat-head {
    border-bottom-color: rgba(33, 150, 243, 0.22);
    background: #0b1118;
}

.ticket-chat-head span {
    color: #c4ceda;
    font-size: 12px;
}

.ticket-chat-window {
    background: rgba(0, 0, 0, 0.18);
}

.ticket-chat-bubble {
    max-width: none;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ticket-chat-message.team .ticket-chat-bubble,
.ticket-chat-message.own .ticket-chat-bubble {
    border-color: transparent;
    background: transparent;
}

.ticket-chat-message.user .ticket-chat-bubble {
    border-color: transparent;
    background: transparent;
}

.ticket-chat-message.internal .ticket-chat-bubble {
    border-color: transparent;
    background: transparent;
}

.ticket-chat-message.management .ticket-chat-bubble {
    border-color: transparent;
    background: transparent;
}

.ticket-chat-meta {
    color: #cbd4df;
    font-size: 12px;
}

.ticket-chat-meta > span {
    color: #e5ebf2;
    background: transparent;
}

.ticket-chat-message.internal .ticket-chat-meta > span {
    color: #ffd45a;
}

.ticket-chat-message.management .ticket-chat-meta > span {
    color: #ff5c7d;
}

.ticket-chat-bubble p {
    color: #f6f9fc;
    font-size: 13px;
    line-height: 1.45;
}

.ticket-compose-mode {
    border-color: transparent;
    background: transparent;
}

.ticket-compose-mode strong {
    font-size: 12px;
}

.ticket-compose-mode small {
    color: #b2bbc6;
    font-size: 10px;
}

.ticket-attachments-block {
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-modal-box-bg);
}

.ticket-attachment {
    border-color: rgba(33, 150, 243, 0.2);
    color: #e5ebf2;
    background: rgba(255, 255, 255, 0.04);
}

.ticket-attachment small {
    color: #c3ccd7;
}

.ticket-system-foldout summary,
.ticket-attachments-foldout summary {
    background: transparent;
}

.ticket-system-foldout summary strong,
.ticket-attachments-foldout summary strong {
    color: #fff;
    background: var(--app-modal-badge-bg);
}

.ticket-system-foldout > :not(summary),
.ticket-attachments-foldout > :not(summary) {
    color: #dce4ed;
}

/* Test: Team-Ticket-Innenflaechen deckend, farblich nahe an den bisherigen rgba-Werten. */
.ticket-system-ticket-summary,
.ticket-system-box,
.ticket-system-foldout,
.ticket-attachments-foldout,
.ticket-system-detail-modal .ticket-chat-panel,
.ticket-system-detail-modal .ticket-system-composer,
.ticket-attachments-block {
    background: var(--app-modal-box-bg);
}

.ticket-system-detail-modal .ticket-system-lock {
    background: var(--app-modal-box-bg);
}

.ticket-system-detail-modal .ticket-system-lock.active {
    background: #29200d;
}

.ticket-chat-window {
    background: #101119;
}

.ticket-chat-head {
    background: #0b1118;
}

.ticket-system-foldout summary,
.ticket-attachments-foldout summary {
    background: transparent;
}

.ticket-chat-bubble {
    background: transparent;
}

.ticket-chat-message.team .ticket-chat-bubble,
.ticket-chat-message.own .ticket-chat-bubble {
    background: transparent;
}

.ticket-chat-message.user .ticket-chat-bubble {
    background: transparent;
}

.ticket-chat-message.internal .ticket-chat-bubble {
    background: transparent;
}

.ticket-chat-message.management .ticket-chat-bubble {
    background: transparent;
}

.ticket-attachment {
    background: #171922;
}

.ticket-system-summary-pills .ticket-pill,
.ticket-system-summary-pills .ticket-priority,
.ticket-system-foldout summary strong,
.ticket-attachments-foldout summary strong {
    background: var(--app-modal-badge-bg);
}

.ticket-chat-meta > span {
    background: transparent;
}

.ticket-chat-message.internal .ticket-chat-meta > span {
    color: #ffd45a;
}

.ticket-chat-message.management .ticket-chat-meta > span {
    color: #ff5c7d;
}

.ticket-system-foldout,
.ticket-attachments-foldout {
    border-color: rgba(33, 150, 243, 0.38);
}

.ticket-system-foldout summary,
.ticket-attachments-foldout summary {
    padding-bottom: 0;
    border-bottom: 0;
}

.ticket-system-foldout[open] summary,
.ticket-attachments-foldout[open] summary {
    padding-bottom: 0;
    border-bottom: 0;
}

.ticket-system-summary-pills .ticket-pill,
.ticket-system-summary-pills .ticket-priority {
    border-color: #34465a;
    background: var(--app-modal-pill-bg);
}

/* Gemeinsame Ticket-Chat-Basis fuer User- und Teamansicht. */
.ticket-user-detail {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
}

.ticket-user-detail .ticket-detail-head {
    margin-bottom: 0;
}

.ticket-user-chat-panel {
    margin-bottom: 0;
}

.ticket-user-detail .ticket-chat-window {
    min-height: 260px;
    max-height: 42vh;
}

.ticket-user-composer {
    margin-bottom: 0;
}

.ticket-chat-message.support {
    justify-content: flex-start;
}

.ticket-chat-message.support .ticket-chat-bubble {
    border-color: transparent;
    border-radius: 0;
    background: transparent;
}

.ticket-chat-message.support .ticket-chat-meta strong {
    color: #7cc5ff;
}

.ticket-chat-message.own .ticket-chat-meta strong {
    color: #7cc5ff;
}

.ticket-user-detail .ticket-attachments-foldout {
    margin-bottom: 0;
}

.ticket-user-detail .ticket-attachments-foldout .ticket-attachment-form {
    margin-top: 10px;
}

/* Team-Ticket-Detail: kompaktere Steuerung und Anhaenge-Verwaltung. */
.ticket-system-modal-body > .ticket-system-detail-modal {
    position: relative;
    padding-bottom: 30px;
}

.ticket-system-detail-modal .ticket-system-lock {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1.2;
}

.ticket-system-detail-modal .ticket-system-lock span {
    color: #d7b45e;
    font-weight: 800;
}

.ticket-system-detail-modal .ticket-system-lock strong {
    color: #fff;
}

.ticket-system-detail-modal .ticket-system-lock small {
    color: #d8c27c;
    font-size: 10px;
}

.ticket-system-control-box {
    padding: 10px;
}

.ticket-system-control-box h4 {
    margin-bottom: 8px;
    font-size: 13px;
}

.ticket-system-control-box .ticket-control-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: #cbd5df;
    font-size: 11px;
}

.ticket-system-control-box .ticket-control-row > span {
    color: #9fb0c2;
}

.ticket-system-control-box .ticket-control-row select,
.ticket-system-control-box .ticket-control-row strong {
    min-width: 0;
}

.ticket-system-control-box .ticket-control-row select {
    height: 32px;
    padding: 5px 8px;
}

.ticket-system-control-box .ticket-control-row.ticket-assign-row {
    margin-top: 0;
}

.ticket-system-control-box .ticket-status-action {
    width: 100%;
    min-width: 0;
    height: 32px;
}

.ticket-system-control-box .ticket-control-static strong {
    overflow: hidden;
    color: #fff;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-attachment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 7px;
    align-items: stretch;
    padding: 0;
}

.ticket-attachment-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    color: #ddd;
    text-decoration: none;
}

.ticket-attachment-link:hover {
    color: #fff;
}

.ticket-attachment-delete {
    width: 28px;
    min-width: 28px;
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 7px;
    color: #ff8a80;
    background: rgba(244, 67, 54, 0.08);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.ticket-attachment-delete:hover {
    border-color: rgba(244, 67, 54, 0.9);
    color: #fff;
    background: rgba(244, 67, 54, 0.18);
}

/* Verlauf und Nachricht bilden im Team-Ticket einen gemeinsamen Chatbereich. */
.ticket-system-detail-modal .ticket-system-conversation {
    gap: 0;
}

.ticket-system-detail-modal .ticket-chat-panel {
    margin-bottom: 0;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.ticket-system-detail-modal .ticket-system-composer {
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(33, 150, 243, 0.38);
    border-radius: 0 0 8px 8px;
}

.ticket-system-detail-modal .ticket-attachments-foldout {
    margin-top: 0;
}

.project-settings-card {
    margin-top: 16px;
    padding: 16px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-modal-box-bg);
}

.project-settings-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.project-settings-head h3 {
    margin: 0 0 4px;
    color: #2196f3;
    font-size: 16px;
}

.project-settings-head p {
    margin: 0;
    color: #b9c2cd;
    font-size: 12px;
}

.role-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.role-color-row {
    display: grid;
    grid-template-columns: auto minmax(110px, 1fr) 48px minmax(92px, 120px);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(33, 150, 243, 0.38);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
    color: #e6edf5;
}

.role-color-preview {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

.role-color-label {
    font-weight: 700;
}

.role-color-row input[type="color"] {
    width: 44px;
    height: 30px;
    padding: 0;
    border: var(--app-modal-box-border);
    border-radius: 6px;
    background: var(--app-modal-field-bg);
}

.project-role-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(33, 150, 243, 0.38);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
}

.project-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.project-module-shell {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.project-module-nav {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-bg);
}

.project-module-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.project-module-btn.active {
    border-color: #2196f3;
    background: #2196f3;
    color: #fff;
}

.project-module-content {
    min-width: 0;
}

.project-module-panel {
    min-width: 0;
    padding: 16px;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-bg);
    box-shadow: none;
}

body.team-panel-page .project-module-panel,
body.team-panel-page .project-module-nav {
    background: var(--app-panel-bg) !important;
}

.project-module-panel > h2:first-child {
    margin: 0 0 4px;
    color: #2196f3;
    font-size: 16px;
    line-height: 1.2;
}

.project-module-panel > div > h2:first-child {
    margin: 0 0 4px;
    color: #2196f3;
    font-size: 16px;
    line-height: 1.2;
}

.project-module-panel > .management-note,
.project-module-panel > div > .management-note {
    margin: 0 0 14px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #b9c2cd;
    font-size: 12px;
    box-shadow: none !important;
}

.project-module-panel .project-settings-card {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.project-module-panel .user-list-wrap {
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
}

#teamspeakSection .team-panel-toolbar {
    margin-bottom: 12px;
}

#teamspeakSection #teamspeakMessage {
    margin-bottom: 12px;
}

#teamspeakSection .ts-card,
#teamspeakSection .ts-table-wrap {
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
    box-shadow: none;
}

#teamspeakSection .ts-card {
    padding: 16px;
}

#teamspeakSection .ts-input {
    min-height: 34px;
    border-radius: 8px;
}

#teamspeakSection .ts-row {
    gap: 10px;
    margin-bottom: 12px;
}

#teamspeakSection h3 {
    color: var(--app-modal-accent) !important;
}

#logsSection .user-table {
    margin-top: 0;
}

#logsSection .user-table th,
#logsSection .user-table td {
    border-bottom-color: #111b25;
}

#logsSection .user-list-wrap {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: auto;
}

#logsSection .user-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--app-panel-inner-bg);
}

#logsSection .user-table tbody tr:last-child td {
    border-bottom-color: transparent;
}

#streamsConfigSection form > div {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
}

#streamsConfigSection .stream-config-card {
    padding: 20px;
}

#streamsConfigSection .stream-current-card {
    margin-top: 30px;
    padding: 20px;
}

@media (max-width: 980px) {
    .project-module-shell {
        grid-template-columns: 1fr;
    }

    .project-module-nav {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

#systemTicketEscalateLevel,
#systemTicketEscalateReason,
#systemTicketEscalateNote {
    border: 1px solid rgba(33, 150, 243, 0.38) !important;
    border-radius: 5px !important;
    color: #fff !important;
    background-color: #05080c !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
}

#systemTicketEscalateLevel {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

@media (max-width: 720px) {
    .settings-box.user-area-box {
        width: calc(100vw - 18px);
        max-width: calc(100vw - 18px);
        padding: 14px;
    }

    .user-area-layout {
        grid-template-columns: 1fr;
    }

    .user-area-title {
        flex-direction: column;
        gap: 8px;
    }

    .ticket-user-head,
    .ticket-system-head,
    .ticket-system-subhead,
    .ticket-card,
    .ticket-detail-head,
    .ticket-notification,
    .ticket-attachment {
        flex-direction: column;
        align-items: stretch;
    }

    .ticket-dashboard,
    .ticket-system-stats,
    .ticket-system-overview-row,
    .ticket-system-layout,
    .ticket-system-detail-grid,
    .ticket-form-row {
        grid-template-columns: 1fr;
    }

    .ticket-system-toolbar,
    .ticket-system-inbox-toolbar,
    .ticket-assign-row {
        grid-template-columns: 1fr;
    }

    .ticket-card-meta {
        align-items: flex-start;
    }

    .ticket-attachment small {
        white-space: normal;
    }

    .ticket-form-actions,
    .ticket-notification-actions {
        justify-content: flex-start;
    }

    .ticket-modal-overlay {
        padding: 8px;
        align-items: stretch;
    }

    .ticket-modal {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 10px;
    }

    .ticket-modal-head {
        align-items: center;
    }

    .ticket-modal-body {
        padding: 12px;
    }

    .ticket-system-quick-actions .panel-btn {
        width: 100%;
    }

    .ticket-system-modal-overlay {
        padding: 8px;
        align-items: stretch;
    }

    .ticket-system-modal {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 10px;
    }

    .ticket-system-modal-head {
        align-items: center;
    }

    .ticket-system-modal-body {
        padding: 12px;
        display: block;
        overflow-y: auto;
    }

    .ticket-system-modal-body > .ticket-system-detail-modal {
        height: auto;
        min-height: 100%;
    }

    .ticket-chat-bubble {
        max-width: none;
    }

    .ticket-chat-window {
        max-height: 48vh;
    }

    .ticket-system-ticket-summary {
        grid-template-columns: 1fr;
    }

    .ticket-system-summary-pills {
        justify-content: flex-start;
        max-width: none;
    }

    .ticket-system-detail-workbench {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .ticket-system-conversation,
    .ticket-system-sidebar {
        overflow: visible;
    }

    .ticket-compose-modes {
        grid-template-columns: 1fr;
    }

    .ticket-system-inbox-list {
        max-height: none;
    }
}

/* Hinweis-Box (z.B. "Steam64 ID ändern kontaktiere Support") */
.support-note {
    padding: 12px;
    border: 1px solid rgba(33, 150, 243, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
}

/* Hinweis-Box in der Benutzerverwaltung
   Im Stil des Bearbeiten-Modals. */
.management-note {
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #ccc;
    font-size: 12px;
}

/* ============================================ */
/* Berechtigungen (Rechte-Tab)                 */
/* ============================================ */

.permissions-overview {
    background: var(--app-panel-bg);
    border: var(--app-modal-box-border);
    border-radius: 8px;
    padding: 14px;
    margin: 12px 0;
}

.permissions-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px 0;
}

.permissions-overview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.permissions-overview-head h3 {
    margin: 0 0 4px 0;
    color: var(--app-modal-accent);
    font-size: 16px;
}

.permissions-overview-head p,
.permissions-overview-head small {
    margin: 0;
    color: #aeb6c2;
    font-size: 12px;
}

.permissions-matrix-wrap {
    overflow-x: auto;
    border: var(--app-modal-box-border);
    border-radius: 8px;
    background: var(--app-panel-inner-bg);
}

.permissions-matrix-block + .permissions-matrix-block {
    margin-top: 14px;
}

.permissions-matrix-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 7px 0;
}

.permissions-matrix-title strong {
    color: var(--app-modal-accent);
    font-size: 14px;
}

.permissions-matrix-title span {
    color: #aeb6c2;
    font-size: 12px;
}

.permissions-matrix {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 1180px;
}

.permissions-matrix th,
.permissions-matrix td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 52px;
    padding: 0 10px;
    text-align: center;
    font-size: 12px;
    vertical-align: middle;
}

.permissions-matrix th {
    color: var(--app-modal-accent);
    background: var(--app-panel-inner-bg);
    font-weight: 700;
}

.permissions-matrix th:first-child,
.permissions-matrix td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 156px;
    min-width: 156px;
    max-width: 156px;
    text-align: left;
    padding-left: 12px;
    background: inherit;
}

.permissions-matrix th:first-child {
    z-index: 2;
    background: var(--app-panel-inner-bg);
}

.permissions-matrix-row {
    cursor: default;
    background: var(--app-panel-row-bg);
}

.permissions-matrix-row:nth-child(even) {
    background: var(--app-panel-row-alt-bg);
}

.permissions-matrix-row.active {
    background: rgba(33, 150, 243, 0.08);
    box-shadow: inset 3px 0 0 rgba(33, 150, 243, 0.74);
}

.permissions-matrix-row td:first-child strong {
    display: block;
    color: #fff;
}

.permissions-matrix-row td:first-child small {
    display: block;
    color: #8f9aaa;
    margin-top: 2px;
}

.permissions-matrix-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.permissions-matrix-cell:hover,
.permissions-matrix-cell.active {
    border-color: rgba(33, 150, 243, 0.68);
    background: var(--app-panel-active-bg);
}

.permissions-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 22px;
    padding: 0 7px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #111827;
    color: #aeb6c2;
    font-size: 11px;
    font-weight: 700;
}

.permissions-state-full {
    border-color: rgba(33, 150, 243, 0.72);
    color: #fff;
    background: #0d64a0;
}

.permissions-state-partial {
    border-color: rgba(255, 193, 7, 0.7);
    color: #ffd36b;
    background: #2a220d;
}

.permissions-state-empty {
    width: 34px;
    min-width: 34px;
    padding: 0;
    color: #7f8896;
}

.permissions-cell-modal {
    position: fixed;
    inset: 0;
    z-index: 2400;
}

.permissions-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
}

.permissions-modal-dialog {
    width: min(760px, calc(100vw - 48px));
    max-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    background: var(--app-modal-bg);
    border: var(--app-modal-border);
    border-radius: 8px;
    color: #fff;
}

.permissions-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: var(--app-modal-box-border);
    background: var(--app-panel-inner-bg);
}

.permissions-modal-head h3 {
    margin: 0;
    color: var(--app-modal-accent);
    font-size: 17px;
}

.permissions-modal-head p {
    margin: 5px 0 0 0;
    color: #aeb6c2;
    font-size: 12px;
}

.permissions-modal-close {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.permissions-modal-close:hover {
    border-color: rgba(33, 150, 243, 0.68);
    color: var(--app-modal-accent);
}

.permissions-modal-body {
    overflow-y: auto;
    padding: 16px 18px;
}

.permissions-toggle-list {
    display: grid;
    gap: 8px;
}

.permissions-toggle-section {
    display: grid;
    gap: 8px;
}

.permissions-toggle-section + .permissions-toggle-section {
    margin-top: 14px;
}

.permissions-toggle-section-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 2px;
}

.permissions-toggle-section-head strong {
    color: var(--app-modal-accent);
    font-size: 13px;
}

.permissions-toggle-section-head span {
    color: #8f9aaa;
    font-size: 11px;
    line-height: 1.35;
}

.permissions-toggle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: 7px;
    background: var(--app-panel-inner-bg);
    cursor: pointer;
}

.permissions-toggle-row:hover {
    border-color: rgba(33, 150, 243, 0.58);
}

.permissions-toggle-row.is-disabled {
    opacity: 0.65;
    cursor: default;
}

.permissions-toggle-copy strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.permissions-toggle-copy small {
    display: block;
    margin-top: 3px;
    color: #8f9aaa;
    font-size: 11px;
    line-height: 1.35;
}

.permissions-toggle-copy .permissions-dependency-note {
    color: #8fc9ff;
}

.permissions-toggle-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permissions-toggle-ui {
    position: relative;
    width: 46px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: #1b2430;
}

.permissions-toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8f9aaa;
    transition: transform 0.15s ease, background 0.15s ease;
}

.permissions-toggle-row input:checked + .permissions-toggle-ui {
    border-color: rgba(33, 150, 243, 0.78);
    background: #0d64a0;
}

.permissions-toggle-row input:checked + .permissions-toggle-ui::after {
    transform: translateX(22px);
    background: #fff;
}

.permissions-modal-info {
    display: grid;
    gap: 5px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 7px;
    background: #181407;
    padding: 12px;
}

.permissions-modal-info strong {
    color: #ffc107;
}

.permissions-modal-info span {
    color: #d0d6de;
    font-size: 12px;
}

.permissions-modal-message {
    min-height: 18px;
    margin-bottom: 10px;
    color: #aeb6c2;
    font-size: 12px;
}

.permissions-modal-message.success {
    color: #30d158;
}

.permissions-modal-message.error {
    color: #ff6b6b;
}

.permissions-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 16px 18px;
    border-top: var(--app-modal-box-border);
}

/* Rechte-Tab: äußerer Container nicht scrollen,
   damit nur der innere Rechtebereich scrollbar ist. */
.permissions-panel-shell {
    overflow: hidden;
}

/* Formular zum Passwort ändern */
.settings-form {
    display: grid;
    gap: 12px;
}

/* Eingabefelder im Passwort-Formular */
.settings-form input {
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
}

/* ============================================================ */
/* 12. STREAMS KONFIGURATION (team.html)                        */
/* ============================================================ */

/* Formular für Twitch Einstellungen */
#streamsConfigForm.user-management-form {
    grid-template-columns: 1fr;
    gap: 0;
}

#streamsConfigForm.user-management-form label {
    text-align: left;
    margin-bottom: 5px;
    margin-top: 15px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

#streamsConfigForm.user-management-form input {
    margin-bottom: 0;
}

/* ============================================================ */
/* 13. FOOTER                                                   */
/* ============================================================ */

/* Footer: Fixiert unten, überlagert alles (z-index: 1000) */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 8px;
    text-align: center;
}

/* Footer-Text (Copyright, Kontakt) */
.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    margin: 2px 0;
}

/* ============================================================ */
/* 13. SCROLLBAR-STYLING (für Content-Box)                     */
/* ============================================================ */

/* Breite der Scrollbar */
.content-box::-webkit-scrollbar {
    width: 8px;
}

/* Hintergrund der Scrollbar */
.content-box::-webkit-scrollbar-track {
    background: #0f0f1a;
    border-radius: 10px;
}

/* Daumen (beweglicher Teil) der Scrollbar */
.content-box::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Hover-Effekt für den Scrollbar-Daumen */
.content-box::-webkit-scrollbar-thumb:hover {
    background: #2196f3;
}

/* ============================================
   Team Panel Web-Editor (TinyMCE)
   ============================================ */
#webSection .team-panel-web-module {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#webSection .page-selector.team-panel-toolbar {
    margin-bottom: 14px;
}

#webSection .editor-container {
    margin-top: 0;
}

#webSection .team-panel-editor {
    width: 100%;
}

#webSection .tox.tox-tinymce {
    height: 620px !important;
    min-height: 620px !important;
    max-height: 620px !important;
    border: 1px solid #15577d !important;
    border-radius: 8px !important;
    background: #0f1119 !important;
    box-shadow: none !important;
    overflow: hidden;
}

#webSection .tox .tox-editor-header {
    background: #0f1119 !important;
    border-bottom: 1px solid #164a68 !important;
    box-shadow: none !important;
}

#webSection .tox .tox-toolbar-overlord {
    background: #0f1119 !important;
}

#webSection .tox .tox-toolbar,
#webSection .tox .tox-toolbar__overflow,
#webSection .tox .tox-toolbar__primary {
    background: #0f1119 !important;
    padding: 7px 8px !important;
}

#webSection .tox .tox-toolbar__group {
    border-color: #164a68 !important;
    padding: 0 7px 0 0 !important;
}

#webSection .tox .tox-tbtn,
#webSection .tox .tox-split-button {
    background: #182332 !important;
    border: 1px solid #25445d !important;
    color: #dcecff !important;
    border-radius: 5px !important;
    margin: 2px 3px !important;
    box-shadow: none !important;
}

#webSection .tox .tox-tbtn svg {
    fill: #dcecff !important;
}

#webSection .tox .tox-tbtn__select-label {
    color: #dcecff !important;
}

#webSection .tox .tox-split-button__chevron {
    border-left-color: #25445d !important;
}

#webSection .tox .tox-tbtn--disabled {
    opacity: 0.45 !important;
}

#webSection .tox .tox-tbtn:hover,
#webSection .tox .tox-split-button:hover {
    background: #00507f !important;
    border-color: #2196f3 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#webSection .tox .tox-tbtn--enabled,
#webSection .tox .tox-tbtn--active,
#webSection .tox .tox-split-button:focus {
    background: #00324f !important;
    border-color: #2196f3 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#webSection .tox .tox-edit-area {
    background: #05080c !important;
}

#webSection .tox .tox-edit-area::before {
    border: 0 !important;
}

#webSection .tox .tox-edit-area__iframe {
    background: #05080c !important;
}

#webSection .tox .tox-statusbar {
    min-height: 26px !important;
    background: #0f1119 !important;
    border-top: 1px solid #164a68 !important;
    color: #9db5cb !important;
}

#webSection .tox .tox-statusbar__path-item,
#webSection .tox .tox-statusbar__wordcount {
    color: #9db5cb !important;
}

#webSection .tox .tox-statusbar__resize-handle svg {
    fill: #2196f3 !important;
}

#webSection .tox:not(.tox-tinymce-inline) .tox-editor-header,
#webSection .tox .tox-sidebar-wrap {
    border-color: #164a68 !important;
}

body.team-panel-page .tox-tinymce-aux .tox-menu,
body.team-panel-page .tox-tinymce-aux .tox-collection,
body.team-panel-page .tox-tinymce-aux .tox-pop {
    background: #0f1119 !important;
    border: 1px solid #15577d !important;
    color: #e8f2ff !important;
    box-shadow: none !important;
}

body.team-panel-page .tox-tinymce-aux .tox-collection__item {
    color: #e8f2ff !important;
}

body.team-panel-page .tox-tinymce-aux .tox-collection__item--active,
body.team-panel-page .tox-tinymce-aux .tox-collection__item:hover {
    background: #00324f !important;
}

/* ============================================================ */
/* 15. SLIDE-BAR (für eingeloggte User)                        */
/* ============================================================ */

/* Hamburger-Button: Am linken Rand der Slide-Bar, aber AUSSERHALB.
   Er ragt immer 40px über den rechten Bildschirmrand hinaus,
   damit er auch sichtbar ist wenn die Slide-Bar geschlossen ist.
   Bewegt sich mit der Slide-Bar mit. */
.slide-toggle {
    position: fixed;
    right: 0;
    top: 29px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(33, 150, 243, 0.5);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
    transition: right 0.3s ease;
    z-index: 1001;
    height: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

/* Wenn Slide-Bar geöffnet ist: Button fährt mit nach links */
.slide-bar.open + .slide-toggle,
.slide-toggle.open {
    right: 250px;
}

/* Slide-Bar: Rechte Seitenleiste für eingeloggte User.
   Enthält: Benutzername, Einstellungen, Team, Abmelden */
.slide-bar {
    position: fixed;
    top: 0;
    right: -250px; /* Ausserhalb des Bildschirms */
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    border-left: 2px solid rgba(33, 150, 243, 0.5);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    display: flex;
    flex-direction: column;
}

/* Slide-Bar ist geöffnet */
.slide-bar.open {
    right: 0;
}

/* Benutzerinfo in der Slide-Bar */
.slide-user {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.3);
    margin-bottom: 10px;
}

/* Buttons in der Slide-Bar */
.slide-btn {
    display: block;
    padding: 6px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(33, 150, 243, 0.5);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    height: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-btn:hover {
    border-color: #2196f3;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.6);
}

/* Eingeloggt: User-Menü in der Slide-Bar */
.slide-user-menu {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 4px;
}

/* Obere Buttons (Einstellungen, Team) */
.slide-top-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Abmelden-Button: Ganz unten in der Slide-Bar, zentriert */
.slide-logout {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 120px;
}

/* Overlay für Slide-Bar (dunkler Hintergrund wenn geöffnet) */
.slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.slide-overlay.open {
    display: block;
}

@media (max-width: 768px) {
    /* Kleineres Padding im Header */
    .header {
        padding: 10px 20px;
    }
    
    /* Kleineres Logo */
    .logo img {
        height: 60px;
    }
    
    /* Tabs umbrechen bei zu wenig Platz */
    .nav-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* Kleinere Tab-Buttons */
    .tab-btn {
        padding: 6px 12px;
        font-size: 10px;
        min-width: 80px;
    }
    
    /* Mehr Padding oben für den Header */
    .main-content {
        padding: 150px 15px 65px;
    }
    
    /* Content-Box nimmt volle Breite ein */
    .content-box {
        padding: 20px;
        width: 100%;
        min-width: 0;
    }
}
