/**
 * =================================================================
 * ERFOLGSWERKSTATT - APP.CSS (Haupt-Stylesheet)
 * =================================================================
 *
 * Diese Datei enthält alle Erfolgswerkstatt spezifischen Styles.
 * Einbinden via: <link rel="stylesheet" href="/assets/css/app.css">
 *
 * INHALT:
 * 1. CSS Variablen (Branding Farben)
 * 2. Layout & Navigation
 * 3. Button Styles (.btn-bb)
 * 4. Signin Page Styles
 * 5. Utility Classes
 *
 * =================================================================
 */


/* =================================================================
   1. CSS VARIABLEN - ERFOLGSWERKSTATT BRANDING
   ================================================================= */
:root {
    /* Primärfarbe - Orange */
    --wolf-primary: #e64a19;
    --wolf-primary-dark: #bf360c;
    --wolf-primary-light: #ff7043;

    /* Sekundärfarbe - Dunkel */
    --wolf-secondary: #1e1e1e;
    --wolf-secondary-dark: #000000;
    --wolf-secondary-light: #2a2a2a;

    /* Neutrale Farben / Fonts */
    --wolf-dark: #1e1e1e;
    --wolf-gray: #64748b;
    --wolf-gray-light: #94a3b8;
    --wolf-light: #fbfbfb;
    --wolf-white: #ffffff;

    /* Status-Farben */
    --wolf-success: #22c55e;
    --wolf-warning: #f59e0b;
    --wolf-danger: #ef4444;
    --wolf-info: #3b82f6;

    /* Schatten */
    --wolf-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --wolf-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --wolf-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --wolf-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --wolf-radius-sm: 6px;
    --wolf-radius: 8px;
    --wolf-radius-md: 12px;
    --wolf-radius-lg: 16px;
    --wolf-radius-xl: 20px;

    /* Transitions */
    --wolf-transition: all 0.2s ease;
}


/* =================================================================
   GLOBAL FORM ELEMENTS (Branding)
   ================================================================= */

.form-control,
.form-select {
    height: 43px !important;
    border-radius: .75rem !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0.5rem 0.875rem !important;
    font-size: 0.875rem !important;
    transition: border-color 0.2s ease !important;
}

textarea.form-control {
    height: auto;
    min-height: 80px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--wolf-secondary) !important;
    box-shadow: none !important;
}

.form-control::placeholder {
    color: var(--wolf-gray-light) !important;
}

.form-control:disabled,
.form-select:disabled {
    background: var(--wolf-light) !important;
    color: var(--wolf-gray) !important;
}

/* Globaler Label-Style für alle Formulare */
.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wolf-dark);
    margin-bottom: 0.375rem;
}


/* =================================================================
   2. LAYOUT & NAVIGATION
   ================================================================= */

#page-container {
    background: #f1f5f9 !important;
}

#main-container {
    background: #f8f9fb;
    min-height: 100vh;
}

/* Override OneUI main-content-narrow (90% width) → full width with small padding */
#page-container.main-content-narrow > #main-container .content {
    width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

#main-navigation {
    width: 64px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    z-index: 150;
    background: #fff;
}

#main-navigation-logo {
    width: 100%;
    max-width: 64px;
    padding: 0 10px;
    margin: 25px 0 80px 0;
    position: relative;
    display: flex;
}

#main-navigation-logo a:hover img {
    transform: scale(1.08);
}

#main-navigation-logo img {
    max-width: 100%;
    transition: .4s cubic-bezier(0.64, 0.23, 0.11, 1.73);
}

#main-navigation nav {
    height: calc( 100vh - 160px );
    padding: 0 5px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#main-navigation .nav-main a {
    padding: 10px 5px;
}

#main-navigation .nav-wrapper {
    width: 100% !important;
}

#main-navigation .nav-main a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px 0;
    transition: .2s ease-in-out;
    border-radius: .55rem;
    position: relative;
}

#main-navigation .nav-main a:hover {
    background: #f2f2f2;
}

#main-navigation .nav-main a:hover .nav-main-tooltip {
    opacity: 1;
    left: 110%;
}

#main-navigation .nav-main a:last-child {
    margin: 0 !important;
}

#main-navigation .nav-main a:hover i {
    color: #0f0f0f !important;
}

#main-navigation .nav-main a i {
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: #85899f;
}

.nav-div {
    width: 50%;
    height: 1px;
    background: rgba(0,0,0,.10);
    padding: 0 5px;
    margin: 10px auto !important;
}

#main-navigation .nav-main .nav-main-tooltip {
    width: 250px;
    position: absolute;
    display: inline-block;
    left: 100%;
    top: 7px;
    pointer-events: none;
    opacity: 0;
    transition: .3s ease-in-out;
}

#main-navigation .nav-main .nav-main-tooltip span {
    padding: 5px 25px;
    border-radius: .25rem;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
}

#main-navigation .nav-sub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#main-navigation .nav-sub a.nav-sub-avatar {
    width: 36px;
    height: 36px;
    background: var(--wolf-primary);
    color: #fff;
    display: flex;
    aspect-ratio: 1/1;
    border-radius: .55rem;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0px 0px 2px rgba(0,0,0,.05);
    text-decoration: none;
    transition: transform 0.2s ease;
}

#main-navigation .nav-sub a.nav-sub-avatar:hover {
    transform: scale(1.08);
    color: #fff;
}

.nav-notification-pill {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 0;
    right: 0;
    padding: 1px 0px 3px 0px;
    text-align: center;
    vertical-align: middle;
    font-size: 9px;
    font-weight: bold;
    color: #fff;
    background: var(--wolf-primary);
    border-radius: 50%;
}

/* Hide pill when empty */
.nav-notification-pill:empty {
    display: none;
}

/* Orange Pill Badge (inline, z.B. für Tabs) */
.badge-pill-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: var(--wolf-primary);
    border-radius: 50px;
}

/* Tables */
.bb-table-lead {
    display: flex;
    flex-direction: column;
}

.bb-table-head {
    font-weight: bold;
}

.bb-table-object {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 5.5%;
}


/* =================================================================
   3. BUTTON STYLES - .btn-bb
   ================================================================= */

/**
 * Haupt-Button-Klasse mit interaktivem Hover-Effekt.
 * Der radiale Gradient folgt der Mausposition.
 *
 * Verwendung:
 * <button class="btn-bb">Standard Button</button>
 * <button class="btn-bb btn-bb-primary">Primary Button</button>
 * <button class="btn-bb btn-bb-outline">Outline Button</button>
 * <button class="btn-bb btn-bb-sm">Small Button</button>
 * <button class="btn-bb btn-bb-lg">Large Button</button>
 * <button class="btn-bb btn-bb-block">Full Width Button</button>
 *
 * Benötigt: /assets/js/common/bb-buttons.js für Hover-Effekt
 */

.btn-bb {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--wolf-light);
    background: var(--wolf-secondary);
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Radial Gradient Hover-Effekt */
.btn-bb::before {
    content: "";
    position: absolute;
    top: var(--bb-y, 50%);
    left: var(--bb-x, 50%);
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.btn-bb.btn-bb-hover::before {
    opacity: 1;
}

.btn-bb:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(42, 167, 222, 0.4);
    color: var(--wolf-light);
    text-decoration: none;
}

.btn-bb:active {
    transform: translateY(0);
}

.btn-bb:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 167, 222, 0.2);
}

.btn-bb:disabled,
.btn-bb.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* -----------------------------------------------------------------
   Button Varianten
   ----------------------------------------------------------------- */

/* Primary (Orange) */
.btn-bb-primary {
    background: var(--wolf-primary);
}

.btn-bb-primary:hover {
    box-shadow: 0 10px 25px -5px rgba(230, 74, 25, 0.4);
}

.btn-bb-primary:focus {
    box-shadow: 0 0 0 4px rgba(230, 74, 25, 0.2);
}

/* Outline - Sekundär */
.btn-bb-outline {
    background: transparent;
    border: 2px solid var(--wolf-secondary);
    color: var(--wolf-secondary);
}

.btn-bb-outline::before {
    background: radial-gradient(circle, rgba(42, 167, 222, 0.2), transparent 60%);
}

.btn-bb-outline:hover {
    background: var(--wolf-secondary);
    color: var(--wolf-light);
}

/* Outline - Primary */
.btn-bb-outline-primary {
    background: transparent;
    border: 2px solid var(--wolf-primary);
    color: var(--wolf-primary);
}

.btn-bb-outline-primary::before {
    background: radial-gradient(circle, rgba(230, 74, 25, 0.2), transparent 60%);
}

.btn-bb-outline-primary:hover {
    background: var(--wolf-primary);
    color: var(--wolf-light);
    box-shadow: 0 10px 25px -5px rgba(230, 74, 25, 0.4);
}

/* Ghost - Minimal */
.btn-bb-ghost {
    background: transparent;
    color: var(--wolf-gray);
}

.btn-bb-ghost::before {
    background: radial-gradient(circle, rgba(100, 116, 139, 0.1), transparent 60%);
}

.btn-bb-ghost:hover {
    background: rgba(100, 116, 139, 0.1);
    color: var(--wolf-dark);
    box-shadow: none;
    transform: none;
}

/* -----------------------------------------------------------------
   Button Größen
   ----------------------------------------------------------------- */

/* Extra Small */
.btn-bb-xs {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: var(--wolf-radius-sm);
}

/* Small */
.btn-bb-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
    border-radius: var(--wolf-radius);
}

/* Large */
.btn-bb-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
    border-radius: var(--wolf-radius-lg);
}

/* Extra Large */
.btn-bb-xl {
    padding: 22px 48px;
    font-size: 1.25rem;
    border-radius: var(--wolf-radius-lg);
}

/* -----------------------------------------------------------------
   Button Layout
   ----------------------------------------------------------------- */

/* Full Width */
.btn-bb-block {
    display: block;
    width: 100%;
}

/* Button Group */
.btn-bb-group {
    display: inline-flex;
    gap: 8px;
}

.btn-bb-group .btn-bb {
    flex-shrink: 0;
}


/* =================================================================
   4. INLINE ACTION BUTTONS - .btn-action
   =================================================================

   Schlanke, minimalistische Buttons für Formulare, Karten und
   Inline-Aktionen (Speichern, Senden, Abbrechen etc.).
   Kein Hover-Transform, kein Box-Shadow, kein Pseudo-Element.

   Verwendung:
   <button class="btn-action">Speichern</button>
   <button class="btn-action-outline">Abbrechen</button>
   ================================================================= */

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    background: var(--wolf-secondary, #1e1e1e);
    border: 1px solid var(--wolf-secondary, #1e1e1e);
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.btn-action:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.btn-action:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.15);
}

.btn-action:disabled,
.btn-action.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Outline Variante */
.btn-action-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: #64748b;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-action-outline:hover {
    border-color: #94a3b8;
    color: #334155;
    text-decoration: none;
}

.btn-action-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

.btn-action-outline:disabled,
.btn-action-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Variante */
.btn-action-primary {
    background: var(--wolf-primary, #e64a19);
    border-color: var(--wolf-primary, #e64a19);
}

.btn-action-primary:focus {
    box-shadow: 0 0 0 3px rgba(230, 74, 25, 0.15);
}

/* Full Width */
.btn-action-block {
    display: flex;
    width: 100%;
    justify-content: center;
}


/* =================================================================
   EMPTY STATE
   ================================================================= */

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wolf-primary) 0%, var(--wolf-primary-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #fff;
}


/* =================================================================
   4. SIGNIN PAGE STYLES
   ================================================================= */

/* Background */
.signin-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.signin-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.signin-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 74, 25, 0.15) 0%, rgba(30, 30, 30, 0.85) 100%);
}

/* Container */
.signin-container {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
}

/* Branding Section (Desktop) */
.signin-branding {
    flex: 1;
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: var(--wolf-white);
}

@media (min-width: 992px) {
    .signin-branding {
        display: flex;
    }
}

.signin-branding img,
.signin-mobile-branding img {
    align-self: flex-start;
    object-fit: contain;
}

.signin-mobile-branding img {
    align-self: center;
}

.signin-branding h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.signin-branding h1 span {
    color: var(--wolf-primary);
}

.signin-branding p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    line-height: 1.7;
}

/* Features List */
.signin-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signin-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.signin-feature i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 74, 25, 0.2);
    border-radius: 10px;
    color: var(--wolf-primary);
}

/* Form Section */
.signin-form-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .signin-form-section {
        margin: 0;
        margin-left: auto;
        background: rgba(251, 251, 251, 0.97);
        backdrop-filter: blur(20px);
        min-height: 100vh;
    }
}

.signin-form-card {
    background: var(--wolf-white);
    border-radius: .75rem !important;
    padding: 40px;
    box-shadow: var(--wolf-shadow-lg);
}

@media (min-width: 992px) {
    .signin-form-card {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
}

/* Logo */
.signin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.signin-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.signin-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.signin-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wolf-dark);
}

.signin-logo-text span {
    color: var(--wolf-primary);
}

/* Header */
.signin-header {
    margin-bottom: 2rem;
}

.signin-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wolf-dark);
    margin-bottom: 0.5rem;
}

.signin-header p {
    color: var(--wolf-gray);
    font-size: 0.95rem;
}

/* Form */
.signin-form .form-group {
    margin-bottom: 1.5rem;
}

.signin-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wolf-dark);
    margin-bottom: 0.5rem;
}

.signin-form .form-control {
    width: 100%;
    height: 50px;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    background: var(--wolf-light);
    transition: var(--wolf-transition);
}

.signin-form .form-control:focus {
    outline: none;
    border-color: var(--wolf-secondary);
    background: var(--wolf-white);
    box-shadow: none;
}

.signin-form .form-control::placeholder {
    color: var(--wolf-gray-light);
}

.signin-form .form-control.lp-error {
    border-color: var(--wolf-primary);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.signin-form .input-group {
    position: relative;
}

.signin-form .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wolf-gray);
    z-index: 1;
}

.signin-form .input-group .form-control {
    padding-left: 48px;
}

/* Form Links */
.signin-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.signin-links a {
    color: var(--wolf-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.signin-links a:hover {
    color: var(--wolf-secondary);
}

/* Alerts */
.signin-alert {
    padding: 14px 16px;
    border-radius: .75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
}

.signin-alert.alert-info {
    background: rgba(42, 167, 222, 0.1);
    color: var(--wolf-secondary-dark);
    border: 1px solid rgba(42, 167, 222, 0.2);
}

.signin-alert.alert-error {
    background: rgba(230, 74, 25, 0.1);
    color: var(--wolf-primary-dark);
    border: 1px solid rgba(230, 74, 25, 0.2);
}

.signin-alert i {
    margin-top: 2px;
}

/* Footer */
.signin-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.signin-footer p {
    color: var(--wolf-gray);
    font-size: 0.875rem;
}

.signin-footer a {
    color: var(--wolf-secondary);
    text-decoration: none;
    font-weight: 500;
}

/* Mobile Branding */
.signin-mobile-branding {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--wolf-white);
}

@media (min-width: 992px) {
    .signin-mobile-branding {
        display: none;
    }
}

.signin-mobile-branding h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.signin-mobile-branding h1 span {
    color: var(--wolf-primary);
}

.signin-mobile-branding p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Modal */
.modal-signin .modal-content {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    overflow: hidden;
}

.modal-signin .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.modal-signin .modal-title {
    font-weight: 700;
    color: var(--wolf-dark);
}

.modal-signin .modal-title i {
    color: var(--wolf-primary);
}

.modal-signin .modal-body {
    padding: 1.5rem;
}

.modal-signin .btn-close {
    opacity: 0.5;
}

/* Notification Area */
#signin-notification {
    min-height: 0;
}

#signin-notification:empty {
    display: none;
}


/* =================================================================
   5. UTILITY CLASSES
   ================================================================= */

/* Text Colors */
.text-wolf-primary { color: var(--wolf-primary) !important; }
.text-wolf-secondary { color: var(--wolf-secondary) !important; }
.text-wolf-dark { color: var(--wolf-dark) !important; }
.text-wolf-gray { color: var(--wolf-gray) !important; }
.text-wolf-light { color: var(--wolf-light) !important; }

/* Background Colors */
.bg-wolf-primary { background-color: var(--wolf-primary) !important; }
.bg-wolf-secondary { background-color: var(--wolf-secondary) !important; }
.bg-wolf-dark { background-color: var(--wolf-dark) !important; }
.bg-wolf-light { background-color: var(--wolf-light) !important; }
.bg-wolf-white { background-color: var(--wolf-white) !important; }

/* Border Colors */
.border-wolf-primary { border-color: var(--wolf-primary) !important; }
.border-wolf-secondary { border-color: var(--wolf-secondary) !important; }

/* Shadows */
.shadow-wolf-sm { box-shadow: var(--wolf-shadow-sm) !important; }
.shadow-wolf { box-shadow: var(--wolf-shadow) !important; }
.shadow-wolf-md { box-shadow: var(--wolf-shadow-md) !important; }
.shadow-wolf-lg { box-shadow: var(--wolf-shadow-lg) !important; }

/* Global Checkbox & Switch Styles - Branding Rot */
.form-check-input:checked {
    background-color: var(--wolf-primary);
    border-color: var(--wolf-primary);
}

.form-check-input:focus {
    border-color: var(--wolf-primary);
    box-shadow: 0 0 0 0.25rem rgba(199, 2, 57, 0.25);
}

.form-switch .form-check-input:checked {
    background-color: var(--wolf-primary);
    border-color: var(--wolf-primary);
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(199, 2, 57, 0.25);
}

/* Border Radius */
.rounded-wolf-sm { border-radius: var(--wolf-radius-sm) !important; }
.rounded-wolf { border-radius: var(--wolf-radius) !important; }
.rounded-wolf-md { border-radius: var(--wolf-radius-md) !important; }
.rounded-wolf-lg { border-radius: var(--wolf-radius-lg) !important; }
.rounded-wolf-xl { border-radius: var(--wolf-radius-xl) !important; }


/* =================================================================
   6. PAGE HEADER & SUB-NAVIGATION
   ================================================================= */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem 0;
}

.page-header-content {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wolf-dark);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--wolf-gray);
    margin: 0;
}

.page-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* -----------------------------------------------------------------
   Page Action Buttons - Dezente Header-Buttons
   ----------------------------------------------------------------- */

/**
 * Dezente, kleine Buttons für Page-Header-Actions.
 * Grau/neutral gestaltet, um nicht vom Inhalt abzulenken.
 *
 * Verwendung:
 * <div class="page-header-actions">
 *     <button class="page-action-btn">Button 1</button>
 *     <button class="page-action-btn">Button 2</button>
 * </div>
 *
 * Varianten:
 * .page-action-btn-primary  - Akzentfarbe (für Haupt-Action)
 * .page-action-btn-icon     - Nur Icon, quadratisch
 */

.page-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--wolf-gray);
    background: var(--wolf-light);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.page-action-btn:hover {
    color: var(--wolf-dark);
    background: #f1f5f9;
    border-color: #cbd5e1;
    text-decoration: none;
}

.page-action-btn:active {
    background: #e2e8f0;
}

.page-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

.page-action-btn i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.page-action-btn:hover i {
    opacity: 1;
}

/* Primary Variante - für Haupt-Actions */
.page-action-btn-primary {
    color: var(--wolf-secondary);
    background: rgba(42, 167, 222, 0.08);
    border-color: rgba(42, 167, 222, 0.2);
}

.page-action-btn-primary:hover {
    color: var(--wolf-secondary-dark);
    background: rgba(42, 167, 222, 0.15);
    border-color: rgba(42, 167, 222, 0.3);
}

.page-action-btn-primary i {
    opacity: 0.85;
}

/* Icon-Only Variante */
.page-action-btn-icon {
    padding: 0.5rem;
    width: 2rem;
    height: 2rem;
}

.page-action-btn-icon i {
    margin: 0;
    font-size: 0.875rem;
}

/* Sub Navigation */
/* =================================================================
   Page Topbar — Sticky Sub-Navigation am oberen Rand
   ================================================================= */

.page-topbar {
    position: fixed;
    top: 0;
    left: var(--nav-v4-width-collapsed);
    right: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
    padding: 0 1.25rem;
    display: flex;
    align-items: stretch;
    transition: left var(--nav-v4-transition);
}

body:has(.nav-v4-expanded) .page-topbar {
    left: var(--nav-v4-width-expanded);
}

body:has(.page-topbar) #main-container {
    padding-top: 44px;
}

.page-topbar-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.page-topbar-tabs::-webkit-scrollbar {
    display: none;
}

.page-topbar-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wolf-gray);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.page-topbar-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--wolf-primary);
    border-radius: 2px;
    transition: width 0.25s ease, left 0.25s ease;
}

.page-topbar-tab:hover {
    color: var(--wolf-dark);
}

.page-topbar-tab:hover::after {
    width: 100%;
    left: 0;
}

.page-topbar-tab.active {
    color: var(--wolf-dark);
}

.page-topbar-tab.active::after {
    width: 100%;
    left: 0;
}

.page-topbar-tab i {
    margin-right: 6px;
    font-size: 0.75rem;
}

.page-topbar-tab .badge {
    margin-left: 6px;
    font-size: 0.6rem;
    padding: 0.15em 0.45em;
    vertical-align: middle;
}


/* =================================================================
   Nav Tabs Alt — Dashboard Card Tabs (Kommentare/Dateien)
   ================================================================= */

.dashboard-card .nav-tabs-alt {
    border-bottom: none;
}

.dashboard-card .nav-tabs-alt .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #94a3b8;
    transition: color 0.15s, border-color 0.15s;
}

.dashboard-card .nav-tabs-alt .nav-link:hover {
    color: var(--wolf-dark);
    border-bottom-color: #e2e8f0;
}

.dashboard-card .nav-tabs-alt .nav-link.active {
    color: var(--wolf-dark);
    border-bottom-color: var(--wolf-primary);
    background: transparent;
}


/* =================================================================
   Sub Navigation — Pill Style (innerhalb von Content-Bereichen)
   ================================================================= */

.sub-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: .75rem;
    width: fit-content;
}

.sub-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wolf-gray);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.sub-nav-item:hover {
    color: var(--wolf-dark);
    background: rgba(0, 0, 0, 0.05);
}

.sub-nav-item.active {
    color: var(--wolf-dark);
    background: var(--wolf-white);
    box-shadow: var(--wolf-shadow-sm);
}

.sub-nav-item i {
    font-size: 0.8rem;
}

/* Sub Navigation mit Actions */
.sub-nav-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: .75rem;
}

.sub-nav-with-actions .sub-nav-items {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sub-nav-with-actions .sub-nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sub-nav-item-add {
    padding: 0.625rem 0.875rem !important;
    color: var(--wolf-gray) !important;
}

.sub-nav-item-add:hover {
    color: var(--wolf-secondary) !important;
}

/* Sub Navigation Select (Dropdown) */
.sub-nav-select {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wolf-dark);
    background: var(--wolf-white);
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--wolf-shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-nav-select:hover {
    background: var(--wolf-white);
}

.sub-nav-select::after {
    margin-left: 0.5rem;
}

/* Sub Navigation Icon Button */
.sub-nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    color: var(--wolf-gray);
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sub-nav-icon-btn:hover {
    color: var(--wolf-dark);
    background: rgba(0, 0, 0, 0.05);
}

/* Sub Navigation Dropdown Menu */
.sub-nav .dropdown-menu {
    min-width: 220px;
    padding: 0.5rem;
    border: none;
    border-radius: .75rem;
    box-shadow: var(--wolf-shadow-lg);
    background: var(--wolf-white);
}

.sub-nav .dropdown-item {
    padding: 0.625rem 2rem 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wolf-gray);
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.sub-nav .dropdown-item:hover {
    color: var(--wolf-dark);
    background: var(--wolf-light);
}

.sub-nav .dropdown-item.active {
    color: var(--wolf-white);
    background: var(--wolf-secondary);
}

.sub-nav .dropdown-item.active:hover {
    background: var(--wolf-secondary-dark);
}


/* =================================================================
   7. OFFCANVAS STYLES
   ================================================================= */

.offcanvas-lead {
    width: 480px !important;
    max-width: 100%;
}

.offcanvas-lead .offcanvas-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.offcanvas-lead .offcanvas-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wolf-dark);
}

.offcanvas-lead .offcanvas-header .btn-close {
    padding: 0.5rem;
    margin: -0.25rem -0.25rem -0.25rem auto;
}

.offcanvas-lead .offcanvas-body {
    padding: 1.25rem 1rem;
}

/* Form Labels verwenden globale .form-label Styles (siehe GLOBAL FORM ELEMENTS) */

.offcanvas-lead h6.text-muted {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.offcanvas-lead hr {
    border-color: rgba(0, 0, 0, 0.08);
}

.offcanvas-lead textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Offcanvas mit fixiertem Footer */
.offcanvas-lead {
    display: flex;
    flex-direction: column;
}

.offcanvas-lead .offcanvas-body {
    flex: 1;
    overflow-y: auto;
}

.offcanvas-lead .offcanvas-footer {
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--wolf-white);
}

.offcanvas-lead .offcanvas-footer .btn-bb {
    width: 100%;
    border-radius: 0;
    padding: 0.75rem 1rem;
}

/* Footer-Button: Kein Transform/Shadow, aber radialer Lichteffekt bleibt aktiv */
.offcanvas-lead .offcanvas-footer .btn-bb:hover {
    transform: none;
    box-shadow: none;
}


/* =================================================================
   8. LEAD TABLES
   ================================================================= */

/* Lead-Tabellen Container */
#lead-company-table-block,
#lead-contact-table-block {
    border-radius: .75rem;
}

/* Lead-Tabellen (Unternehmen, Personen) */
#lead-company-table,
#lead-contact-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}

#lead-company-table thead th,
#lead-contact-table thead th {
    background: var(--wolf-light);
    padding: 0.75rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wolf-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#lead-company-table tbody td,
#lead-contact-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#lead-company-table tbody tr:hover,
#lead-contact-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

#lead-company-table tbody tr:last-child td,
#lead-contact-table tbody tr:last-child td {
    border-bottom: none;
}

.lead-company-row .fw-semibold,
.lead-contact-row .fw-semibold {
    color: var(--wolf-dark);
    font-size: 0.8125rem;
}

.lead-company-row small.text-muted,
.lead-contact-row small.text-muted {
    font-size: 0.75rem;
}

/* Dropdown-Button in Tabelle */
.lead-company-row .btn-sm,
.lead-contact-row .btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

.lead-company-row .dropdown-menu,
.lead-contact-row .dropdown-menu {
    border-radius: .75rem;
    box-shadow: var(--wolf-shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    position: fixed !important;
}

.lead-company-row .dropdown-item,
.lead-contact-row .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.lead-company-row .dropdown-item:hover,
.lead-contact-row .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.lead-company-row .dropdown-divider,
.lead-contact-row .dropdown-divider {
    margin: 0.375rem 0;
}

/* Klickbarer Firmenname */
.lead-company-name,
.lead-contact-name {
    color: var(--wolf-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lead-company-name:hover,
.lead-contact-name:hover {
    color: var(--wolf-secondary);
}


/* =================================================================
   9. BLOCK HEADER STYLES
   ================================================================= */

/* Block Header - Transparent Style (Standard) */
.block-header.block-header-transparent {
    background: transparent;
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.block-header.block-header-transparent .block-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wolf-gray);
    margin: 0;
}

.block-header.block-header-transparent .block-options {
    padding: 0;
}

.block-header.block-header-transparent .block-options .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}


/* =================================================================
   10. ONEUI OVERRIDES
   ================================================================= */

/* Block Border-Radius Override */
.block.block-rounded {
    border-radius: .75rem;
}

.block.block-rounded > .block-header,
.block.block-rounded > .nav-tabs {
    border-top-left-radius: calc(.75rem - 1px);
    border-top-right-radius: calc(.75rem - 1px);
}

.block.block-rounded > .block-header:last-child,
.block.block-rounded > .nav-tabs:last-child {
    border-bottom-right-radius: calc(.75rem - 1px);
    border-bottom-left-radius: calc(.75rem - 1px);
}

.block.block-rounded > .block-content:first-child {
    border-top-left-radius: calc(.75rem - 1px);
    border-top-right-radius: calc(.75rem - 1px);
}

.block.block-rounded > .block-content:last-child {
    border-bottom-right-radius: calc(.75rem - 1px);
    border-bottom-left-radius: calc(.75rem - 1px);
}

.block.block-rounded > .nav-tabs > .nav-item:first-child > .nav-link {
    border-top-left-radius: calc(.75rem - 1px);
}

.block.block-rounded > .nav-tabs > .nav-item:last-child > .nav-link {
    border-top-right-radius: calc(.75rem - 1px);
}

/* Entfernt den blauen Fokus-Schatten von OneUI */
.form-control:focus,
.form-control-alt:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus,
.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
    box-shadow: none !important;
    outline: none !important;
}


/* =================================================================
   11. SELECT2 BOOTSTRAP 5 INTEGRATION
   ================================================================= */

/* Select2 Container - Match .offcanvas-lead .form-select */
.select2-container .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    height: 43px !important;
    padding: 0 0.875rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #212529 !important;
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: .75rem !important;
    transition: border-color 0.2s ease !important;
}

.select2-container.select2-container--focus .select2-selection--single,
.select2-container.select2-container--open .select2-selection--single {
    border-color: var(--wolf-secondary) !important;
    outline: 0 !important;
}

/* Selected Text - Vertically centered via flexbox parent */
.select2-container .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    color: #212529 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Dropdown Arrow - Vertically centered */
.select2-container .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    top: 50% !important;
    right: 0.875rem !important;
    transform: translateY(-50%) !important;
    height: auto !important;
    width: auto !important;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin: 0 !important;
}

.select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* Clear Button - Vertically centered */
.select2-container .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 2rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 1.125rem !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.select2-container .select2-selection--single .select2-selection__clear:hover {
    color: var(--wolf-danger) !important;
}

/* Placeholder */
.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

/* Dropdown Menu */
.select2-container .select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: .75rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.select2-container .select2-search--dropdown {
    padding: 0.5rem !important;
}

.select2-container .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0 !important;
    border-radius: .75rem !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
}

.select2-container .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--wolf-secondary) !important;
    outline: none !important;
}

/* Results */
.select2-container .select2-results__option {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.875rem !important;
}

.select2-container .select2-results__option--highlighted[aria-selected] {
    background-color: var(--wolf-secondary) !important;
    color: #fff !important;
}

.select2-container .select2-results__option[aria-selected=true] {
    background-color: #f1f5f9 !important;
}

/* Select2 Multiple - Match .form-select styling */
.select2-container .select2-selection--multiple {
    min-height: 43px !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    color: #212529 !important;
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: .75rem !important;
    transition: border-color 0.2s ease !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.select2-container.select2-container--focus .select2-selection--multiple,
.select2-container.select2-container--open .select2-selection--multiple {
    border-color: var(--wolf-secondary) !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    padding: 0 !important;
    list-style: none !important;
    margin: 0 !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    padding: 0.25rem 0.625rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--wolf-dark) !important;
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    order: 2 !important;
    color: #94a3b8 !important;
    font-size: 1rem !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    line-height: 1 !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--wolf-danger) !important;
}

/* Hide the global clear-all button on multi-select */
.select2-container .select2-selection--multiple .select2-selection__clear {
    display: none !important;
}

.select2-container .select2-selection--multiple .select2-search--inline {
    margin: 0 !important;
}

.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    font-size: 0.875rem !important;
    margin: 0 !important;
    padding: 0.125rem 0.25rem !important;
    min-height: 28px !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice__display {
    padding: 0 !important;
    margin: 0 !important;
}

/* Placeholder for multiple */
.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
    color: #94a3b8 !important;
}

/* Offcanvas Z-Index Fix */
.offcanvas .select2-container--open {
    z-index: 1056 !important;
}

.select2-container--open .select2-dropdown {
    z-index: 1057 !important;
}


/* =================================================================
   12. LP-TABLE - CUSTOM DIV-BASED TABLE
   ================================================================= */

/**
 * Custom Table System basierend auf Divs statt <table>.
 * Flexibel, responsive und leicht anpassbar.
 *
 * Struktur:
 * <div class="lp-table">
 *     <div class="lp-table-head">
 *         <div class="lp-table-row">
 *             <div class="lp-table-cell">Header 1</div>
 *             <div class="lp-table-cell">Header 2</div>
 *         </div>
 *     </div>
 *     <div class="lp-table-body">
 *         <div class="lp-table-row">
 *             <div class="lp-table-cell">Wert 1</div>
 *             <div class="lp-table-cell">Wert 2</div>
 *         </div>
 *     </div>
 * </div>
 *
 * Spaltenbreiten:
 * - Standard: Alle Spalten gleichmäßig verteilt (flex: 1)
 * - Manuell: data-col-width="200" oder style="min-width:200px"
 * - Auto: .lp-table-auto nutzt CSS Grid mit auto-fit
 *
 * Responsive:
 * - data-hide-mobile: Spalte auf Mobile ausblenden
 * - data-hide-tablet: Spalte auf Tablet ausblenden
 */

/* -----------------------------------------------------------------
   Basis-Container
   ----------------------------------------------------------------- */
.lp-table {
    width: 100%;
    background: var(--wolf-white);
    border-radius: .75rem;
}

.lp-table-bordered {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------------------------
   Header
   ----------------------------------------------------------------- */
.lp-table-head {
    background: var(--wolf-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lp-table-head .lp-table-row {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wolf-gray);
}

.lp-table-head .lp-table-cell {
    padding: 0.75rem 1rem;
}

/* -----------------------------------------------------------------
   Body
   ----------------------------------------------------------------- */
.lp-table-body {
    /* Container für Zeilen */
}

.lp-table-body .lp-table-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.15s ease;
}

.lp-table-body .lp-table-row:last-child {
    border-bottom: none;
}

.lp-table-body .lp-table-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

.lp-table-body .lp-table-cell {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    color: var(--wolf-dark);
}

/* -----------------------------------------------------------------
   Zeilen & Zellen (Flexbox)
   ----------------------------------------------------------------- */
.lp-table-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.lp-table-cell {
    flex: 1;
    min-width: 0; /* Ermöglicht Text-Truncation */
}

/* Feste Breiten-Klassen */
.lp-table-cell-xs { flex: 0 0 60px; max-width: 60px; }
.lp-table-cell-sm { flex: 0 0 100px; max-width: 100px; }
.lp-table-cell-md { flex: 0 0 150px; max-width: 150px; }
.lp-table-cell-lg { flex: 0 0 200px; max-width: 200px; }
.lp-table-cell-xl { flex: 0 0 300px; max-width: 300px; }

/* Feste Breiten via Prozent */
.lp-table-cell-10 { flex: 0 0 10%; max-width: 10%; }
.lp-table-cell-15 { flex: 0 0 15%; max-width: 15%; }
.lp-table-cell-20 { flex: 0 0 20%; max-width: 20%; }
.lp-table-cell-25 { flex: 0 0 25%; max-width: 25%; }
.lp-table-cell-30 { flex: 0 0 30%; max-width: 30%; }
.lp-table-cell-40 { flex: 0 0 40%; max-width: 40%; }
.lp-table-cell-50 { flex: 0 0 50%; max-width: 50%; }

/* Auto-Width (shrink to content) */
.lp-table-cell-auto {
    flex: 0 0 auto;
    max-width: none;
}

/* Grow (nimmt verfügbaren Platz) */
.lp-table-cell-grow {
    flex: 1 1 0;
}

/* Feste Breite (via inline style) */
.lp-table-cell-fixed {
    flex: 0 0 auto;
}

/* -----------------------------------------------------------------
   Zellen-Ausrichtung
   ----------------------------------------------------------------- */
.lp-table-cell-center { text-align: center; justify-content: center; }
.lp-table-cell-right { text-align: right; justify-content: flex-end; }
.lp-table-cell-left { text-align: left; justify-content: flex-start; }

/* Vertikale Ausrichtung */
.lp-table-row-top { align-items: flex-start; }
.lp-table-row-bottom { align-items: flex-end; }

/* -----------------------------------------------------------------
   Text-Styles in Zellen
   ----------------------------------------------------------------- */
.lp-table-cell .lp-table-primary {
    font-weight: 600;
    color: var(--wolf-dark);
}

.lp-table-cell .lp-table-secondary {
    font-size: 0.75rem;
    color: var(--wolf-gray);
    margin-top: 0.125rem;
}

.lp-table-cell .lp-table-link {
    color: var(--wolf-dark);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 4px;
}

.lp-table-cell .lp-table-link:hover {
    color: var(--wolf-primary);
    background-color: rgba(199, 2, 57, 0.08);
}

/* Text-Truncation */
.lp-table-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -----------------------------------------------------------------
   Responsive Breakpoints
   ----------------------------------------------------------------- */

/* Mobile: < 768px */
@media (max-width: 767.98px) {
    .lp-table-hide-mobile,
    [data-hide-mobile] {
        display: none !important;
    }

    .lp-table-head .lp-table-cell,
    .lp-table-body .lp-table-cell {
        padding: 0.625rem 0.75rem;
    }

    .lp-table-body .lp-table-cell {
        font-size: 0.8125rem;
    }
}

/* Tablet: < 992px */
@media (max-width: 991.98px) {
    .lp-table-hide-tablet,
    [data-hide-tablet] {
        display: none !important;
    }
}

/* Desktop: < 1200px */
@media (max-width: 1199.98px) {
    .lp-table-hide-desktop,
    [data-hide-desktop] {
        display: none !important;
    }
}

/* -----------------------------------------------------------------
   Varianten
   ----------------------------------------------------------------- */

/* Kompakte Tabelle */
.lp-table-compact .lp-table-head .lp-table-cell {
    padding: 0.5rem 0.75rem;
}

.lp-table-compact .lp-table-body .lp-table-cell {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

/* Gestreifte Zeilen */
.lp-table-striped .lp-table-body .lp-table-row:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* Klickbare Zeilen */
.lp-table-clickable .lp-table-body .lp-table-row {
    cursor: pointer;
}

.lp-table-clickable .lp-table-body .lp-table-row:hover {
    background: rgba(42, 167, 222, 0.05);
}

/* -----------------------------------------------------------------
   Spezielle Elemente
   ----------------------------------------------------------------- */

/* Avatar/Icon in Zelle */
.lp-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    object-fit: cover;
}

.lp-table-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wolf-light);
    border-radius: .5rem;
    color: var(--wolf-gray);
    font-size: 0.875rem;
}

/* Company Favicon */
.company-favicon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--wolf-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.company-favicon-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wolf-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--wolf-gray);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Company Favicon Header (Detailseite) */
.company-favicon-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--wolf-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.company-favicon-placeholder-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wolf-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--wolf-gray);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Status-Badges */
.lp-table-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.lp-table-badge-success { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.lp-table-badge-warning { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.lp-table-badge-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.lp-table-badge-info { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.lp-table-badge-secondary { background: rgba(100, 116, 139, 0.1); color: #475569; }
.lp-table-badge-default { background: rgba(100, 116, 139, 0.08); color: #64748b; font-weight: 500; }

/* Aktionen-Zelle */
.lp-table-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.lp-table-actions .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

/* Hover-only Actions */
.lp-table-actions-hover {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.lp-table-row:hover .lp-table-actions-hover {
    opacity: 1;
}

/* Schlichte Inline-Action-Buttons */
.lp-table-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.lp-table-action-btn:hover {
    color: var(--wolf-dark);
    background: rgba(0, 0, 0, 0.05);
}

.lp-table-action-btn-danger:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.lp-table-action-btn-success:hover {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.08);
}

/* Dropdown in Tabelle */
.lp-table-actions .dropdown-menu {
    border-radius: .75rem;
    box-shadow: var(--wolf-shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

.lp-table-actions .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.lp-table-actions .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Select in Tabellen */
.lp-table .form-select-sm {
    font-size: 0.75rem;
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
    height: auto;
    min-height: 28px;
    border-radius: 0.375rem;
    border-color: #e2e8f0;
}

.lp-table .form-select-sm:focus {
    border-color: var(--wolf-primary);
    box-shadow: 0 0 0 2px rgba(199, 2, 57, 0.1);
}

/* -----------------------------------------------------------------
   Empty State
   ----------------------------------------------------------------- */
.lp-table-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.lp-table-empty-icon {
    font-size: 2.5rem;
    color: var(--wolf-gray-light);
    margin-bottom: 1rem;
}

.lp-table-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--wolf-dark);
    margin-bottom: 0.25rem;
}

.lp-table-empty-text {
    font-size: 0.875rem;
    color: var(--wolf-gray);
}

/* -----------------------------------------------------------------
   Footer / Load More
   ----------------------------------------------------------------- */
.lp-table-footer {
    border-top: 1px solid #e2e8f0;
}

.lp-table-row-action {
    background: #f8fafc;
    transition: background 0.15s ease;
}

.lp-table-row-action:hover {
    background: #f1f5f9;
}

.lp-table-cell-full {
    width: 100%;
    flex: 1 1 100%;
    padding: 0.75rem 1rem;
    text-align: center;
}

/* -----------------------------------------------------------------
   Loading State
   ----------------------------------------------------------------- */
.lp-table-loading {
    position: relative;
    min-height: 200px;
}

.lp-table-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* =================================================================
   13. SETTINGS PAGE STYLES
   ================================================================= */

/* Form Labels verwenden globale .form-label Styles (siehe GLOBAL FORM ELEMENTS) */

/* Notification Settings */
.settings-notification-group {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.settings-notification-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.settings-notification-group h6 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--wolf-gray);
    margin-bottom: 0.75rem;
}

.settings-notification-item {
    padding: 0.625rem 0;
}

.settings-notification-item:first-of-type {
    padding-top: 0;
}

.settings-notification-item:last-of-type {
    padding-bottom: 0;
}

/* Custom Form Switch für Settings - Sanfte, kompakte Version */
.settings-notification-item .form-switch {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding-left: 0 !important;
    margin: 0;
    min-height: auto;
}

.settings-notification-item .form-switch .form-check-input {
    float: none;
    flex-shrink: 0;
    width: 2.25rem;
    height: 1.25rem;
    margin: 0.125rem 0 0 0;
    cursor: pointer;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background-color: #334155;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.5' fill='%2394a3b8'/%3e%3c/svg%3e");
    background-position: left center;
    background-size: contain;
    transition: all 0.2s ease;
}

.settings-notification-item .form-switch .form-check-input:checked {
    background-color: var(--wolf-primary);
    border-color: var(--wolf-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.5' fill='white'/%3e%3c/svg%3e");
    background-position: right center;
}

.settings-notification-item .form-switch .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(199, 2, 57, 0.15);
    border-color: var(--wolf-primary);
}

.settings-notification-item .form-switch .form-check-input:not(:checked):hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.settings-notification-item .form-switch .form-check-label {
    cursor: pointer;
    flex: 1;
    padding-top: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.settings-notification-item .form-check-label .fw-semibold {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wolf-dark);
    display: block;
    line-height: 1.4;
}

.settings-notification-item .form-check-label .text-muted {
    font-size: 0.8125rem;
    margin-top: 0.125rem;
    line-height: 1.4;
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-input-wrapper .password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wolf-gray-light);
    cursor: pointer;
    transition: color 0.15s ease;
    user-select: none;
    line-height: 1;
}

.password-input-wrapper .password-toggle:hover {
    color: var(--wolf-dark);
}

.password-input-wrapper .password-toggle i {
    font-size: 0.875rem;
}

/* Danger Zone Block */
.block.block-danger {
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.block.block-danger .block-header-transparent {
    background: rgba(239, 68, 68, 0.04);
}


/* =================================================================
   REMINDER STYLES
   ================================================================= */

/* Reminder Item */
.reminder-item {
    padding: 0.875rem;
    border-radius: 0.5rem;
    background: #f8fafc;
    margin-bottom: 0.625rem;
    transition: all 0.15s ease;
}

.reminder-item:hover {
    background: #f1f5f9;
}

.reminder-item:last-child {
    margin-bottom: 0;
}

/* Reminder Badge in Tab */
.reminder-count-badge {
    background-color: #dbeafe !important;
    color: #2563eb !important;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.25rem;
}

/* Bell Icon in Kanban Deal Card - uses default color, blue on hover */
.kanban-deal-quick-btn[title="Erinnerung erstellen"]:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

/* Quick Reminder Modal Buttons */
.quick-reminder-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.quick-reminder-btn.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
}

.quick-reminder-btn.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}


/* =================================================================
   NOTIFICATIONS OFFCANVAS
   ================================================================= */

.offcanvas-notifications {
    width: 380px !important;
    max-width: 100vw;
}

.offcanvas-notifications .offcanvas-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
}

.offcanvas-notifications .offcanvas-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

/* Notification Header */
.notification-header {
    font-size: 0.8125rem;
}

/* Notification List */
.notification-list,
.reminder-list {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background 0.15s ease;
}

.notification-item:hover {
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
}

.notification-item.notification-unread {
    background: rgba(37, 99, 235, 0.04);
}

.notification-item.notification-unread:hover {
    background: rgba(37, 99, 235, 0.08);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 0.125rem;
}

.notification-message {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.notification-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    background: var(--wolf-secondary);
    border-radius: 50%;
}

/* Empty State */
.notification-empty {
    padding: 3rem 1.5rem;
}

.notification-empty i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.notification-empty p {
    font-size: 0.875rem;
}

/* Reminder Items in Offcanvas */
.reminder-item-nav {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.reminder-item-nav:hover {
    background: #f8fafc;
}

.reminder-item-nav.reminder-overdue {
    background: rgba(220, 38, 38, 0.04);
}

.reminder-item-nav.reminder-overdue:hover {
    background: rgba(220, 38, 38, 0.08);
}

.reminder-item-nav.reminder-today {
    background: rgba(217, 119, 6, 0.04);
}

.reminder-item-nav.reminder-today:hover {
    background: rgba(217, 119, 6, 0.08);
}

.reminder-item-nav .reminder-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.reminder-item-nav .reminder-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

.reminder-item-nav .reminder-deal {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--wolf-secondary);
    text-decoration: none;
    margin-top: 0.25rem;
}

.reminder-item-nav .reminder-deal:hover {
    text-decoration: underline;
}

.reminder-item-nav .reminder-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 50%;
    font-size: 0.75rem;
    color: #94a3b8;
}

.reminder-item-nav .reminder-creator {
    color: #64748b;
}

.reminder-item-nav .reminder-actions {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.reminder-item-nav:hover .reminder-actions {
    opacity: 1;
}

.reminder-item-nav .reminder-actions .btn-link {
    font-size: 0.875rem;
}


/* =================================================================
   OFFCANVAS/MODAL TABS (Global Style)
   ================================================================= */

/*
 * Einheitlicher Tab-Style für alle Offcanvas und Modals.
 * Verwendung: <div class="offcanvas-tabs"> oder <div class="modal-tabs">
 * Funktioniert auch für Modals mit der Klasse .modal-tabs
 */

.offcanvas-tabs,
.modal-tabs {
    padding: 0.5rem 0 0;
    background: #fff;
}

.offcanvas-tabs .nav-tabs,
.modal-tabs .nav-tabs {
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    padding: 0;
}

.offcanvas-tabs .nav-tabs .nav-item:first-child .nav-link,
.modal-tabs .nav-tabs .nav-item:first-child .nav-link {
    padding-left: 1.5rem;
}

.offcanvas-tabs .nav-tabs .nav-link,
.modal-tabs .nav-tabs .nav-link {
    border: 1px solid #e2e8f0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: -1px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.25rem;
}

.offcanvas-tabs .nav-tabs .nav-link:hover,
.modal-tabs .nav-tabs .nav-link:hover {
    color: #1e1e1e;
    border-bottom-color: #dee2e6;
}

.offcanvas-tabs .nav-tabs .nav-link.active,
.modal-tabs .nav-tabs .nav-link.active {
    color: #1e1e1e;
    border-bottom-color: var(--wolf-secondary, #0f0f0f);
    background: transparent;
}

.offcanvas-tabs .nav-tabs .nav-link .badge,
.modal-tabs .nav-tabs .nav-link .badge {
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    min-width: 1.1rem;
    height: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10rem;
    margin-left: 0.5rem;
    background-color: var(--wolf-primary, #c70239) !important;
}


/* =================================================================
   SWEETALERT2 - CUSTOM STYLING
   ================================================================= */

/* Popup Container */
.swal2-popup {
    border-radius: var(--wolf-radius-lg) !important;
    padding: 2rem 1.5rem 1.5rem !important;
    box-shadow: var(--wolf-shadow-lg) !important;
    font-family: inherit !important;
}

/* Titel */
.swal2-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--wolf-dark) !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
}

/* Text/Message */
.swal2-html-container {
    font-size: 0.9375rem !important;
    color: var(--wolf-gray) !important;
    line-height: 1.5 !important;
    margin: 0.5rem 0 1.25rem !important;
    padding: 0 !important;
}

/* Icon Anpassungen */
.swal2-icon {
    margin: 0 auto 1rem !important;
}

/* Success Icon */
.swal2-icon.swal2-success {
    border-color: var(--wolf-success) !important;
    color: var(--wolf-success) !important;
}

.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
    background-color: var(--wolf-success) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34, 197, 94, 0.3) !important;
}

/* Warning Icon */
.swal2-icon.swal2-warning {
    border-color: var(--wolf-warning) !important;
    color: var(--wolf-warning) !important;
}

/* Error Icon */
.swal2-icon.swal2-error {
    border-color: var(--wolf-danger) !important;
    color: var(--wolf-danger) !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: var(--wolf-danger) !important;
}

/* Info Icon */
.swal2-icon.swal2-info {
    border-color: var(--wolf-info) !important;
    color: var(--wolf-info) !important;
}

/* Question Icon */
.swal2-icon.swal2-question {
    border-color: var(--wolf-secondary) !important;
    color: var(--wolf-secondary) !important;
}

/* Button Container */
.swal2-actions {
    margin-top: 0.5rem !important;
    gap: 0.75rem !important;
}

/* Alle Buttons */
.swal2-styled {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--wolf-radius) !important;
    transition: var(--wolf-transition) !important;
    min-width: 100px !important;
}

.swal2-styled:focus {
    box-shadow: none !important;
}

/* Confirm Button - Primary Style */
.swal2-confirm {
    background-color: var(--wolf-secondary) !important;
    color: white !important;
}

.swal2-confirm:hover {
    background-color: var(--wolf-secondary-dark) !important;
}

/* Confirm Button - Danger Variante (für Löschen etc.) */
.swal2-popup.swal2-icon-warning .swal2-confirm,
.swal2-popup.swal2-icon-error .swal2-confirm {
    background-color: var(--wolf-danger) !important;
}

.swal2-popup.swal2-icon-warning .swal2-confirm:hover,
.swal2-popup.swal2-icon-error .swal2-confirm:hover {
    background-color: #dc2626 !important;
}

/* Cancel Button */
.swal2-cancel {
    background-color: transparent !important;
    color: var(--wolf-gray) !important;
    border: 1px solid #e2e8f0 !important;
}

.swal2-cancel:hover {
    background-color: var(--wolf-light) !important;
    color: var(--wolf-dark) !important;
}

/* Deny Button */
.swal2-deny {
    background-color: var(--wolf-gray-light) !important;
}

.swal2-deny:hover {
    background-color: var(--wolf-gray) !important;
}

/* Backdrop */
.swal2-container {
    backdrop-filter: blur(2px) !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.4) !important;
}

/* Close Button */
.swal2-close {
    color: var(--wolf-gray-light) !important;
    font-size: 1.75rem !important;
    transition: var(--wolf-transition) !important;
}

.swal2-close:hover {
    color: var(--wolf-gray) !important;
}

/* Animation */
.swal2-popup.swal2-show {
    animation: swal2-show 0.2s ease-out !important;
}

.swal2-popup.swal2-hide {
    animation: swal2-hide 0.15s ease-in !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}


/* =================================================================
   15. LEAD FILTERS
   ================================================================= */

/**
 * Filter-Leiste für Leads-Liste (Unternehmen/Personen)
 * Suchfeld + Dropdown-Filter für Branche, Stadt, Quelle
 */

.lead-filters {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Select2 Dropdown: Ausgewähltes Element besser lesbar */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e9ecef;
    color: var(--wolf-dark);
}

/* Load More Button in LP-Table */
.lp-table-footer {
    border-top: 1px solid #e2e8f0;
}

.lp-table-row-action {
    background: #fafafa;
}

.lp-table-row-action:hover {
    background: #f5f5f5;
}

.lp-table-cell-full {
    width: 100%;
    padding: 0.75rem 1rem;
}


/* =================================================================
   LEAD IMPORT WIZARD
   ================================================================= */

/* Modal */
.import-modal-content {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Linke Seite: Branding */
.import-modal-branding {
    position: relative;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
}

.import-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.import-modal-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.import-modal-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(199, 2, 57, 0.2) 0%, rgba(30, 30, 30, 0.8) 100%);
}

.import-modal-branding-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.import-modal-branding-content h4 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.import-modal-branding-content h4 span {
    color: #334155;
}

.import-modal-branding-content p {
    font-size: .875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Features Liste */
.import-modal-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.import-modal-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .8125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.25rem;
}

.import-modal-features li:last-child {
    margin-bottom: 0;
}

.import-modal-features li i {
    width: 20px;
    height: 20px;
    background: var(--wolf-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .5rem;
    flex-shrink: 0;
}

/* Rechte Seite: Wizard */
.import-modal-form {
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

#modal-lead-import-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 1rem;
}

#modal-lead-import-footer:empty {
    display: none;
}

/* Step Indicator (horizontal bar) */
.import-steps {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 0 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.import-step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 0 0 auto;
}

.import-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #868e96;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.import-step.active .import-step-num {
    background: var(--wolf-secondary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 15, 15, 0.2);
}

.import-step.done .import-step-num {
    background: #198754;
    color: #fff;
    font-size: 0.7rem;
}

.import-step-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.import-step-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #868e96;
}

.import-step.active .import-step-title {
    color: var(--wolf-dark);
}

.import-step.done .import-step-title {
    color: #198754;
}

.import-step-desc {
    font-size: 0.6875rem;
    color: #adb5bd;
}

.import-step.active .import-step-desc {
    color: #868e96;
}

.import-step-divider {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.75rem;
    border-radius: 1px;
    min-width: 20px;
}

.import-step-divider.done {
    background: #198754;
}

/* Dropzone */
.import-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: var(--wolf-radius-md);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fafbfc;
}

.import-dropzone:hover {
    border-color: #9ca3af;
    background: #f5f6f8;
}

.import-dropzone.import-dropzone-hover {
    border-color: var(--wolf-primary);
    background: #fef2f5;
    border-style: solid;
}

.import-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.import-dropzone-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.import-dropzone:hover .import-dropzone-icon {
    background: #dee2e6;
    color: #495057;
}

.import-dropzone.import-dropzone-hover .import-dropzone-icon {
    background: var(--wolf-primary);
    color: #fff;
}

.import-dropzone-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--wolf-dark);
    margin-bottom: 0.25rem;
}

.import-dropzone-subtitle {
    font-size: 0.8125rem;
    color: #868e96;
    margin-bottom: 1rem;
}

.import-dropzone-formats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.import-format-badge {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
    background: #e9ecef;
    color: #6c757d;
}

/* Dropzone Loading */
.import-dropzone-loading {
    padding: 1rem 0;
}

.import-loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9ecef;
    border-top-color: var(--wolf-secondary);
    border-radius: 50%;
    animation: import-spin 0.7s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes import-spin {
    to { transform: rotate(360deg); }
}

.import-loading-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wolf-dark);
    margin-bottom: 0.25rem;
}

.import-loading-filename {
    font-size: 0.8125rem;
    color: #868e96;
    margin-bottom: 0;
}

/* File Info Bar */
.import-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

.import-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.import-file-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wolf-dark);
}

.import-file-meta {
    display: block;
    font-size: 0.75rem;
    color: #868e96;
}

/* Mapping List */
.import-mapping-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.import-mapping-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.15s;
}

.import-mapping-row:hover {
    background: #f8f9fa;
}

.import-mapping-row-matched {
    background: #f0fdf4;
}

.import-mapping-row-matched:hover {
    background: #dcfce7;
}

.import-mapping-source {
    flex: 0 0 35%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.import-mapping-col-index {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #e9ecef;
    color: #868e96;
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.import-mapping-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wolf-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.import-mapping-arrow {
    flex-shrink: 0;
    color: #ced4da;
    font-size: 0.75rem;
}

.import-mapping-row-matched .import-mapping-arrow {
    color: #198754;
}

.import-mapping-target {
    flex: 1;
    min-width: 0;
}

.import-mapping-target .form-select-sm {
    font-size: 0.8125rem;
    border-color: #e2e5e9;
}

/* Import Options */
.import-options {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Preview Table */
.import-preview-table-wrap {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
}

.import-preview-table {
    width: 100%;
    font-size: 0.8125rem;
    border-collapse: collapse;
}

.import-preview-table th {
    background: #f8f9fa;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    white-space: nowrap;
    border-bottom: 1px solid #e9ecef;
}

.import-preview-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f3f5;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--wolf-dark);
}

.import-preview-table tbody tr:hover {
    background: #f8f9fa;
}

/* Done / Summary */
.import-done {
    text-align: center;
    padding: 1.5rem 0;
}

.import-done-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #d1e7dd;
    color: #198754;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.import-done-title {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--wolf-dark);
}

.import-done-text {
    font-size: 0.875rem;
    color: #868e96;
    margin-bottom: 0;
}

.import-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.import-summary-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.import-summary-item i {
    font-size: 0.875rem;
    width: 1.25rem;
    text-align: center;
}

.import-summary-success {
    background: #d1e7dd;
    color: #0f5132;
}

.import-summary-warning {
    background: #fff3cd;
    color: #664d03;
}

.import-summary-error {
    background: #f8d7da;
    color: #842029;
}


/* =================================================================
   MODAL STYLES
   ================================================================= */

.modal-content {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal .modal-header .modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.625rem;
    background: var(--wolf-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.modal .modal-header .modal-header-text {
    flex: 1;
    min-width: 0;
}

.modal .modal-header .modal-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
    line-height: 1.3;
}

.modal .modal-header .modal-subtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0.125rem 0 0 0;
    line-height: 1.4;
}

.modal .modal-close {
    background: none;
    border: 1px solid #e2e8f0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-left: auto;
    padding: 0;
    font-size: 1rem;
}

.modal .modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal .modal-body {
    padding: 1.25rem 1.5rem;
}

.modal .modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.modal .modal-actions-between {
    justify-content: space-between;
}

/* -----------------------------------------------------------------
   Modal Action Buttons
   ----------------------------------------------------------------- */

/* Primary Action (Gradient: #e64a19 → #eb6d10) */
.modal .modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.modal .modal-btn-primary {
    background: linear-gradient(135deg, #e64a19, #eb6d10, #e64a19);
    background-size: 200% 200%;
    background-position: 0% 50%;
    color: #fff;
}

.modal .modal-btn-primary:hover {
    animation: modal-gradient-shift 1.5s ease infinite;
    box-shadow: 0 4px 15px -3px rgba(230, 74, 25, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.modal .modal-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px -2px rgba(230, 74, 25, 0.4);
}

@keyframes modal-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Delete Button (subtle, text-only) */
.modal .modal-btn-delete {
    background: none;
    color: #9ca3af;
    font-weight: 500;
}

.modal .modal-btn-delete:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
}

.cat-row:hover .cat-delete-btn {
    opacity: 1 !important;
}

.cat-inline-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.375rem 0.625rem !important;
    font-size: 0.8125rem !important;
    border-radius: 0 !important;
    transition: background 0.2s;
}

.cat-inline-input:focus {
    background: rgba(0, 0, 0, 0.03) !important;
}


/* =================================================================
   TOAST NOTIFICATIONS (bootstrap-notify Override)
   ================================================================= */

[data-notify="container"].alert {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.625rem 2rem 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    min-height: unset;
    max-width: 360px;
}

[data-notify="container"].alert p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.4;
}

[data-notify="container"].alert [data-notify="icon"] {
    font-size: 0.75rem;
    flex-shrink: 0;
}

[data-notify="container"].alert [data-notify="message"] {
    font-size: 0.8125rem;
}

[data-notify="container"].alert [data-notify="dismiss"] {
    color: #94a3b8;
    font-size: 0.6875rem;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    right: 0.625rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

[data-notify="container"].alert [data-notify="dismiss"]:hover {
    color: #334155;
}

[data-notify="container"].alert [data-notify="progressbar"] {
    display: none;
}

/* Typ-spezifische Akzentfarben (dezenter linker Streifen) */
[data-notify="container"].alert-success {
    border-left: 3px solid #22c55e;
}

[data-notify="container"].alert-success [data-notify="icon"] {
    color: #22c55e;
}

[data-notify="container"].alert-info {
    border-left: 3px solid #3b82f6;
}

[data-notify="container"].alert-info [data-notify="icon"] {
    color: #3b82f6;
}

[data-notify="container"].alert-warning {
    border-left: 3px solid #f59e0b;
}

[data-notify="container"].alert-warning [data-notify="icon"] {
    color: #f59e0b;
}

[data-notify="container"].alert-danger {
    border-left: 3px solid #ef4444;
}

[data-notify="container"].alert-danger [data-notify="icon"] {
    color: #ef4444;
}


/* =================================================================
   NAV V4 — Sidebar Navigation
   ================================================================= */

:root {
    --nav-v4-width-collapsed: 64px;
    --nav-v4-width-expanded: 240px;
    --nav-v4-bg: #fff;
    --nav-v4-border: #f0f0f0;
    --nav-v4-text: #64748b;
    --nav-v4-text-hover: #0f172a;
    --nav-v4-active-bg: rgba(230, 74, 25, 0.06);
    --nav-v4-active-text: var(--wolf-primary);
    --nav-v4-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-v4 {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: var(--nav-v4-bg);
    border-right: 1px solid var(--nav-v4-border);
    z-index: 150;
    display: flex;
    flex-direction: column;
    transition: width var(--nav-v4-transition);
    overflow: hidden;
}

.nav-v4-collapsed { width: var(--nav-v4-width-collapsed); }
.nav-v4-expanded { width: var(--nav-v4-width-expanded); }

/* Header */
.nav-v4-header {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 14px;
    flex-shrink: 0;
    gap: 4px;
}

.nav-v4-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
}

.nav-v4-logo-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    border-radius: 6px;
}

.nav-v4-logo:hover .nav-v4-logo-icon {
    transform: scale(1.06);
}

.nav-v4-logo-text {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--nav-v4-transition);
}

.nav-v4-collapsed .nav-v4-logo-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

/* Mobile Toggle */
.nav-v4-mobile-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 148;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: none;
    background: #fff;
    color: var(--nav-v4-text-hover);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 16px;
}

/* Body */
.nav-v4-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px;
}

.nav-v4-body::-webkit-scrollbar {
    width: 0;
}

/* Sections */
.nav-v4-section {
    margin-bottom: 16px;
}

.nav-v4-section-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    padding: 4px 12px 8px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--nav-v4-transition);
}

.nav-v4-collapsed .nav-v4-section-label {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
}

/* Links */
.nav-v4-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--nav-v4-text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    position: relative;
    cursor: pointer;
}

.nav-v4-link:hover {
    background: #f8f9fb;
    color: var(--nav-v4-text-hover);
}

.nav-v4-link.active {
    background: var(--nav-v4-active-bg);
    color: var(--nav-v4-active-text);
}

.nav-v4-link.active i {
    color: var(--nav-v4-active-text);
}

.nav-v4-link i {
    width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
    color: var(--nav-v4-text);
    transition: color 0.15s;
}

.nav-v4-link:hover i {
    color: var(--nav-v4-text-hover);
}

.nav-v4-link span {
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--nav-v4-transition);
}

.nav-v4-collapsed .nav-v4-link span {
    opacity: 0;
    pointer-events: none;
}

/* Badge */
.nav-v4-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--wolf-primary);
    border-radius: 50px;
    flex-shrink: 0;
}

.nav-v4-collapsed .nav-v4-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
}

/* Footer */
.nav-v4-footer {
    flex-shrink: 0;
    padding: 8px;
    border-top: 1px solid var(--nav-v4-border);
}

.nav-v4-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    overflow: hidden;
    margin-top: 4px;
}

.nav-v4-collapsed .nav-v4-user {
    justify-content: center;
    padding: 8px 0 8px 4px;
}

.nav-v4-user:hover {
    background: #f8f9fb;
}

.nav-v4-avatar {
    width: 32px;
    height: 32px;
    background: var(--wolf-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-v4-user-info {
    min-width: 0;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--nav-v4-transition);
}

.nav-v4-collapsed .nav-v4-user-info {
    opacity: 0;
    pointer-events: none;
}

.nav-v4-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Collapsed tooltip on hover */
.nav-v4-collapsed .nav-v4-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 200;
}

/* Main content offset */
body:has(.nav-v4-collapsed) #page-container {
    padding-left: var(--nav-v4-width-collapsed);
}

body:has(.nav-v4-expanded) #page-container {
    padding-left: var(--nav-v4-width-expanded);
}

body.nav-v4-ready #page-container {
    transition: padding-left var(--nav-v4-transition);
}

/* Backdrop */
.nav-v4-backdrop {
    display: none;
}

/* Mobile */
@media (max-width: 991.98px) {

    .nav-v4-mobile-toggle {
        display: flex;
    }

    .nav-v4 {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .nav-v4.nav-v4-mobile-open {
        transform: translateX(0);
        width: 90vw !important;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-v4.nav-v4-mobile-open .nav-v4-logo-text {
        opacity: 1;
        width: auto;
        pointer-events: auto;
    }

    .nav-v4.nav-v4-mobile-open .nav-v4-section-label {
        opacity: 1;
        height: auto;
        padding: 4px 12px 8px;
    }

    .nav-v4.nav-v4-mobile-open .nav-v4-link span,
    .nav-v4.nav-v4-mobile-open .nav-v4-user-info {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-v4.nav-v4-mobile-open .nav-v4-badge {
        position: static;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    body:has(.nav-v4) #page-container {
        padding-left: 0 !important;
    }

    body:has(.nav-v4) #main-container {
        width: 95%;
        margin-left: auto !important;
        margin-right: auto;
    }

    .page-topbar {
        left: 0 !important;
    }

    .nav-v4-backdrop.active {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 149;
    }
}

/* Hide old navigation when v4 is active */
body:has(.nav-v4) #main-navigation {
    display: none !important;
}

body:has(.nav-v4) #sidebar {
    display: none !important;
}

body:has(.nav-v4) #page-container.sidebar-o #main-container {
    padding-left: 0;
}
