﻿/* =============================================================
   KEF Element Inspector - Complete Styles
   Theme: .dark / .light class on each element
   ============================================================= */
.k-input-button.k-button {
    min-height: stretch !important;
}
/* =============================================================
   TOOLTIP - ساختار اصلی
   ============================================================= */
#ke-inspector-tooltip {
    position: fixed;
    border-radius: 10px;
    padding: 14px 18px;
    font-family: Tahoma, "Segoe UI", system-ui, sans-serif;
    font-size: 12px;
    z-index: 999999;
    pointer-events: auto;
    max-width: 420px;
    min-width: 290px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    direction: ltr;
    line-height: 1.7;
    display: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}*


    /* =============================================================
   TOOLTIP - DARK THEME
   ============================================================= */
    #ke-inspector-tooltip.dark {
        background: #1e1e2e;
        color: #cdd6f4;
        border: 1px solid #45475a;
    }

        #ke-inspector-tooltip.dark .ke-tip-header {
            border-bottom-color: #45475a;
        }

        #ke-inspector-tooltip.dark .ke-tip-close {
            color: #6c7086;
        }

            #ke-inspector-tooltip.dark .ke-tip-close:hover {
                color: #cdd6f4;
                background: #313244;
            }

        #ke-inspector-tooltip.dark .ke-tip-tag {
            color: #f38ba8;
            background: #2a2a3a;
        }

        #ke-inspector-tooltip.dark .ke-tip-info-box {
            background: #2a2a3a;
            border-color: #45475a;
        }

        #ke-inspector-tooltip.dark .ke-tip-label-id {
            color: #fab387;
            background: #1e1e2e;
        }

        #ke-inspector-tooltip.dark .ke-tip-value-id {
            color: #fab387;
        }

        #ke-inspector-tooltip.dark .ke-tip-label-class {
            color: #a6e3a1;
            background: #1e1e2e;
        }

        #ke-inspector-tooltip.dark .ke-tip-class-item {
            color: #a6e3a1;
            background: #1e1e2e;
            border-color: #45475a;
        }

        #ke-inspector-tooltip.dark .ke-tip-label-style {
            color: #89dceb;
            background: #1e1e2e;
        }

        #ke-inspector-tooltip.dark .ke-tip-style-code {
            color: #89dceb;
            background: #1e1e2e;
            border-color: #45475a;
        }

        #ke-inspector-tooltip.dark .ke-tip-spacing-box {
            background: #2a2a3a;
            border-color: #45475a;
        }

        #ke-inspector-tooltip.dark .ke-tip-spacing-label {
            color: #6c7086;
        }

        #ke-inspector-tooltip.dark .ke-tip-margin-val {
            color: #f9e2af;
        }

        #ke-inspector-tooltip.dark .ke-tip-padding-val {
            color: #cba6f7;
        }

        #ke-inspector-tooltip.dark .ke-tip-bg-swatch {
            border-color: #45475a;
        }

        #ke-inspector-tooltip.dark .ke-tip-bg-val {
            color: #89dceb;
        }

        #ke-inspector-tooltip.dark .ke-tip-text-preview {
            border-top-color: #45475a;
            color: #6c7086;
        }


    /* =============================================================
   TOOLTIP - LIGHT THEME
   ============================================================= */
    #ke-inspector-tooltip.light {
        background: #ffffff;
        color: #1e1e2e;
        border: 1px solid #ccd0da;
        font-weight: 900;
    }

        #ke-inspector-tooltip.light .ke-tip-header {
            border-bottom-color: #ccd0da;
        }

        #ke-inspector-tooltip.light .ke-tip-close {
            color: #4c4f69;
            font-weight: 900;
        }

            #ke-inspector-tooltip.light .ke-tip-close:hover {
                color: #1e1e2e;
                background: #e6e9ef;
            }

        #ke-inspector-tooltip.light .ke-tip-tag {
            color: #d20f39;
            background: #f5f5f5;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-info-box {
            background: #f5f5f5;
            border-color: #ccd0da;
        }

        #ke-inspector-tooltip.light .ke-tip-label-id {
            color: #fe640b;
            background: #ffffff;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-value-id {
            color: #fe640b;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-label-class {
            color: #40a02b;
            background: #ffffff;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-class-item {
            color: #40a02b;
            background: #ffffff;
            border-color: #ccd0da;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-label-style {
            color: #179299;
            background: #ffffff;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-style-code {
            color: #179299;
            background: #ffffff;
            border-color: #ccd0da;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-spacing-box {
            background: #f5f5f5;
            border-color: #ccd0da;
        }

        #ke-inspector-tooltip.light .ke-tip-spacing-label {
            color: #4c4f69;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-margin-val {
            color: #df8e1d;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-padding-val {
            color: #8839ef;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-bg-swatch {
            border-color: #ccd0da;
        }

        #ke-inspector-tooltip.light .ke-tip-bg-val {
            color: #179299;
            font-weight: 900;
        }

        #ke-inspector-tooltip.light .ke-tip-text-preview {
            border-top-color: #ccd0da;
            color: #4c4f69;
            font-weight: 900;
        }


    /* =============================================================
   TOOLTIP INNER ELEMENTS - مشترک
   ============================================================= */
    #ke-inspector-tooltip .ke-tip-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid transparent;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    #ke-inspector-tooltip .ke-tip-close {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
        padding: 2px 6px;
        line-height: 1;
        border-radius: 4px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    #ke-inspector-tooltip .ke-tip-tag-wrap {
        direction: ltr;
        text-align: right;
        flex: 1;
    }

    #ke-inspector-tooltip .ke-tip-tag {
        font-weight: bold;
        font-size: 15px;
        padding: 2px 8px;
        border-radius: 4px;
        display: inline-block;
    }

    #ke-inspector-tooltip .ke-tip-info-box {
        border: 1px solid transparent;
        border-radius: 8px;
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    #ke-inspector-tooltip .ke-tip-row {
        margin-bottom: 6px;
        direction: rtl;
        text-align: right;
    }

        #ke-inspector-tooltip .ke-tip-row:last-child {
            margin-bottom: 0;
        }

    #ke-inspector-tooltip .ke-tip-label {
        font-size: 11px;
        font-weight: bold;
        padding: 1px 6px;
        border-radius: 3px;
        margin-left: 6px;
        display: inline-block;
    }

    #ke-inspector-tooltip .ke-tip-value-id {
        font-weight: bold;
        font-size: 13px;
        direction: ltr;
        display: inline-block;
        word-break: break-all;
    }

    #ke-inspector-tooltip .ke-tip-class-list {
        display: inline-flex;
        flex-wrap: wrap;
        gap: 4px;
        direction: ltr;
        margin-top: 3px;
    }

    #ke-inspector-tooltip .ke-tip-class-item {
        font-size: 12px;
        padding: 1px 6px;
        border-radius: 3px;
        border: 1px solid transparent;
    }

    #ke-inspector-tooltip .ke-tip-style-code {
        font-size: 11px;
        direction: ltr;
        margin-top: 3px;
        word-break: break-all;
        padding: 4px 8px;
        border-radius: 4px;
        border: 1px solid transparent;
        font-family: Consolas, Monaco, monospace;
        max-height: 60px;
        overflow-y: auto;
        display: block;
    }

    #ke-inspector-tooltip .ke-tip-spacing-box {
        border: 1px solid transparent;
        border-radius: 8px;
        padding: 8px 12px;
        margin-bottom: 8px;
    }

    #ke-inspector-tooltip .ke-tip-spacing-row {
        display: flex;
        justify-content: space-between;
        direction: ltr;
        font-size: 11px;
    }

    #ke-inspector-tooltip .ke-tip-bg-row {
        margin-top: 4px;
        direction: ltr;
        font-size: 11px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    #ke-inspector-tooltip .ke-tip-bg-swatch {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 3px;
        vertical-align: middle;
        border: 1px solid transparent;
    }

    #ke-inspector-tooltip .ke-tip-text-preview {
        padding-top: 6px;
        border-top: 1px solid transparent;
        font-size: 11px;
        max-height: 50px;
        overflow: hidden;
        direction: rtl;
        text-align: right;
        font-style: italic;
    }


/* =============================================================
   DRAG HINT - در داخل iframe
   ============================================================= */
#ke-drag-hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 10px;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    z-index: 999999;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    direction: rtl;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

    #ke-drag-hint.dark {
        background: #1e1e2e;
        color: #cdd6f4;
        border: 1px solid #45475a;
    }

        #ke-drag-hint.dark .ke-hint-key {
            color: #f9e2af;
        }

    #ke-drag-hint.light {
        background: #ffffff;
        color: #1e1e2e;
        border: 1px solid #ccd0da;
        font-weight: 900;
    }

        #ke-drag-hint.light .ke-hint-key {
            color: #df8e1d;
            font-weight: 900;
        }


/* =============================================================
   DROP INDICATOR - در داخل iframe
   ============================================================= */
#ke-drop-indicator {
    position: absolute;
    height: 4px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 999999;
    display: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    #ke-drop-indicator.dark {
        background: linear-gradient(90deg, #89b4fa, #cba6f7);
        box-shadow: 0 0 10px #89b4fa;
    }

    #ke-drop-indicator.light {
        background: linear-gradient(90deg, #1e66f5, #8839ef);
        box-shadow: 0 0 10px #1e66f5;
    }


/* =============================================================
   DRAG GHOST - در صفحه اصلی
   ============================================================= */
.ke-drag-ghost {
    position: fixed;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: Tahoma, sans-serif;
    font-size: 13px;
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    direction: ltr;
    color: #fff;
}

    .ke-drag-ghost.dark {
        background: #89b4fa;
    }

    .ke-drag-ghost.light {
        background: #1e66f5;
    }

    .ke-drag-ghost .ke-ghost-class {
        opacity: 0.8;
        margin-left: 8px;
    }
















































































































/* =============================================================
   KEF Advanced HTML Editor - Modern & Beautiful Styles
   Theme classes: .dark / .light
   ============================================================= */

/* ===== CSS VARIABLES ===== */
#ke-html-modal.dark {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2333;
    --bg-elevated: #21262d;
    --border-primary: rgba(99, 110, 123, 0.25);
    --border-accent: rgba(56, 139, 253, 0.15);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --accent-green: #3fb950;
    --accent-orange: #f0883e;
    --accent-red: #f85149;
    --accent-cyan: #76e3ea;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --glow-color: rgba(56, 139, 253, 0.15);
    --header-gradient: linear-gradient(135deg, #1a1e2e 0%, #16213e 50%, #1a1a2e 100%);
    --status-gradient: linear-gradient(135deg, #1a1e2e 0%, #161b22 100%);
    --scrollbar-track: #0d1117;
    --scrollbar-thumb: #30363d;
    --scrollbar-hover: #484f58;
    --highlight-bg: rgba(255, 215, 0, 0.08);
    --highlight-border: #e3b341;
    --caret-color: #58a6ff;
    --fold-border: #58a6ff;
    --fold-bg: #161b22;
    --btn-bg: rgba(99, 110, 123, 0.15);
    --btn-border: rgba(99, 110, 123, 0.3);
    --btn-hover: rgba(99, 110, 123, 0.25);
    --btn-text: #e6edf3;
    --overlay-pattern: radial-gradient(circle at 20% 50%, rgba(56, 139, 253, 0.03) 0%, transparent 50%);
}

#ke-html-modal.light {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eef1f5;
    --bg-elevated: #ffffff;
    --border-primary: rgba(31, 35, 40, 0.12);
    --border-accent: rgba(56, 139, 253, 0.2);
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --text-muted: #8b949e;
    --accent-blue: #0969da;
    --accent-purple: #8250df;
    --accent-green: #1a7f37;
    --accent-orange: #bc4c00;
    --accent-red: #cf222e;
    --accent-cyan: #0598bc;
    --shadow-color: rgba(31, 35, 40, 0.12);
    --glow-color: rgba(56, 139, 253, 0.08);
    --header-gradient: linear-gradient(135deg, #f0f3f9 0%, #e8ecf4 50%, #f0f0f8 100%);
    --status-gradient: linear-gradient(135deg, #f0f3f9 0%, #f6f8fa 100%);
    --scrollbar-track: #f6f8fa;
    --scrollbar-thumb: #d0d7de;
    --scrollbar-hover: #afb8c1;
    --highlight-bg: rgba(56, 139, 253, 0.08);
    --highlight-border: #0969da;
    --caret-color: #0969da;
    --fold-border: #0969da;
    --fold-bg: #f6f8fa;
    --btn-bg: rgba(31, 35, 40, 0.04);
    --btn-border: rgba(31, 35, 40, 0.15);
    --btn-hover: rgba(31, 35, 40, 0.08);
    --btn-text: #1f2328;
    --overlay-pattern: radial-gradient(circle at 80% 50%, rgba(56, 139, 253, 0.02) 0%, transparent 50%);
}


/* ===== OVERLAY ===== */
#ke-html-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
/*    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);*/
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    /*animation: ke-overlay-in 0.3s ease-out;*/
}

@keyframes ke-overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ===== MODAL ===== */
#ke-html-modal {
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    box-shadow: 0 0 0 1px var(--border-accent), 0 8px 24px var(--shadow-color), 0 24px 48px rgba(0, 0, 0, 0.2), 0 0 80px var(--glow-color);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}


/* ===== HEADER ===== */
#ke-html-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--header-gradient);
    border-bottom: 1px solid var(--border-primary);
    position: relative;
    transition: background 0.4s ease, border-color 0.4s ease;
}

    /* خط نازک گرادینت زیر هدر */
    #ke-html-header::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--accent-blue) 20%, var(--accent-purple) 50%, var(--accent-cyan) 80%, transparent 100% );
        opacity: 0.5;
    }

    #ke-html-header .ke-header-title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        /* آیکون کد قبل از عنوان */
        #ke-html-header .ke-header-title::before {
            content: '</>';
            font-family: Consolas, Monaco, monospace;
            font-size: 12px;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 6px;
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            color: #fff;
            letter-spacing: -0.5px;
        }

    #ke-html-header .ke-header-title-text {
        font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
        letter-spacing: 0.3px;
        transition: color 0.4s ease;
    }

    #ke-html-header .ke-header-buttons {
        display: flex;
        gap: 8px;
        align-items: center;
    }

        /* ===== HEADER BUTTONS ===== */
        #ke-html-header .ke-header-buttons .ke-hbtn {
            padding: 6px 14px;
            border-radius: 8px;
            cursor: pointer;
            font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
            font-size: 12px;
            font-weight: 500;
            background: var(--btn-bg);
            color: var(--btn-text);
            border: 1px solid var(--btn-border);
            transition: all 0.25s ease;
            position: relative;
            overflow: hidden;
        }

            #ke-html-header .ke-header-buttons .ke-hbtn::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 100%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
                transition: left 0.5s ease;
            }

            #ke-html-header .ke-header-buttons .ke-hbtn:hover {
                background: var(--btn-hover);
                border-color: var(--accent-blue);
                box-shadow: 0 0 12px var(--glow-color);
                transform: translateY(-1px);
            }

                #ke-html-header .ke-header-buttons .ke-hbtn:hover::before {
                    left: 100%;
                }

            #ke-html-header .ke-header-buttons .ke-hbtn:active {
                transform: translateY(0);
                box-shadow: none;
            }


/* Apply Button - ویژه */
#ke-btn-apply {
    background: linear-gradient(135deg, #238636, #2ea043) !important;
    color: #fff !important;
    border: 1px solid rgba(35, 134, 54, 0.5) !important;
    font-weight: 600 !important;
    padding: 6px 20px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

    #ke-btn-apply:hover {
        background: linear-gradient(135deg, #2ea043, #3fb950) !important;
        box-shadow: 0 0 20px rgba(46, 160, 67, 0.3) !important;
        border-color: rgba(63, 185, 80, 0.5) !important;
    }


/* Close Button - ویژه */
#ke-btn-close {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid transparent !important;
    font-size: 16px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    line-height: 1;
}

    #ke-btn-close:hover {
        background: rgba(248, 81, 73, 0.15) !important;
        color: var(--accent-red) !important;
        border-color: rgba(248, 81, 73, 0.3) !important;
        box-shadow: 0 0 12px rgba(248, 81, 73, 0.15) !important;
    }


/* ===== EDITOR CONTAINER ===== */
#ke-html-modal .ke-editor-container {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    flex-direction: row;
    background: var(--bg-primary);
    background-image: var(--overlay-pattern);
    transition: background-color 0.4s ease;
}


/* ===== LINE NUMBERS ===== */
#ke-html-modal .ke-line-numbers-container {
    display: flex;
    flex-direction: row;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

#ke-line-numbers {
    width: 50px;
    padding: 12px 10px;
    text-align: left;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    user-select: none;
    position: relative;
    background: var(--bg-secondary);
    color: var(--text-muted);
    transition: background-color 0.4s ease, color 0.4s ease;
}

    /* افکت hover برای شماره خطوط */
    #ke-line-numbers div:hover {
        color: var(--text-secondary);
        background: var(--glow-color);
        border-radius: 3px;
    }

#ke-html-modal .ke-line-numbers-border {
    width: 1px;
    height: 100%;
    margin: 0 4px;
    background: linear-gradient(180deg, transparent 0%, var(--border-primary) 10%, var(--border-primary) 90%, transparent 100% );
    transition: background 0.4s ease;
}


/* ===== CODE WRAPPER ===== */
#ke-html-modal .ke-code-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    order: 0;
}


/* ===== FOLD MARKERS ===== */
#ke-fold-markers {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

    #ke-fold-markers .fold-marker {
        position: absolute;
        left: 2px;
        cursor: pointer;
        font-size: 10px;
        width: 16px;
        height: 16px;
        text-align: center;
        line-height: 14px;
        z-index: 4;
        border-radius: 4px;
        border: 1px solid var(--fold-border);
        color: var(--fold-border);
        background: var(--fold-bg);
        pointer-events: auto;
        transition: all 0.25s ease;
        opacity: 0.6;
    }

        #ke-fold-markers .fold-marker:hover {
            opacity: 1;
            background: var(--glow-color);
            box-shadow: 0 0 8px var(--glow-color);
            transform: scale(1.15);
        }


/* ===== CODE DISPLAY (Syntax Highlight Layer) ===== */
#ke-code-display {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    padding-left: 28px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
    color: transparent;
    pointer-events: none;
    z-index: 1;
}


/* ===== CODE AREA (Textarea) ===== */
#ke-code-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    padding-left: 28px;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    border: none;
    outline: none;
    resize: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto;
    z-index: 2;
    direction: ltr;
    text-align: left;
    background: var(--bg-primary);
    color: var(--text-primary);
    caret-color: var(--caret-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

    /* وقتی فوکوس داره، حاشیه نرم */
    #ke-code-area:focus {
        box-shadow: inset 0 0 0 0;
    }


/* ===== STATUS BAR ===== */
#ke-status-bar {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 11.5px;
    background: var(--status-gradient);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-primary);
    position: relative;
    transition: all 0.4s ease;
}

    /* خط نازک گرادینت بالای استاتوس بار */
    #ke-status-bar::before {
        content: '';
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, var(--accent-purple) 30%, var(--accent-blue) 70%, transparent 100% );
        opacity: 0.3;
    }

    #ke-status-bar span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

/* مقادیر عددی در استاتوس بار */
#ke-status-lines,
#ke-status-chars {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 12px;
}

#ke-status-cursor {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}


/* ===== LINE HIGHLIGHT ===== */
#ke-line-highlight {
    position: absolute;
    left: 28px;
    right: 0;
    z-index: 1;
    pointer-events: none;
    background: var(--highlight-bg);
    border-left: 3px solid var(--highlight-border);
    border-radius: 0 4px 4px 0;
    transition: opacity 2s ease;
    animation: ke-highlight-pulse 2s ease-in-out infinite;
}

@keyframes ke-highlight-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}


/* =============================================================
   DARK THEME - اضافی
   ============================================================= */
#ke-html-modal.dark {
    background: #0d1117;
    border: 1px solid rgba(99, 110, 123, 0.25);
}

    /* افکت نوری نرم در گوشه‌ها (فقط دارک) */
    #ke-html-modal.dark::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 20%, rgba(56, 139, 253, 0.03) 0%, transparent 40% );
        pointer-events: none;
        z-index: 0;
    }


/* =============================================================
   LIGHT THEME - اضافی
   ============================================================= */
#ke-html-modal.light {
    background: #ffffff;
    border: 1px solid rgba(31, 35, 40, 0.12);
    box-shadow: 0 0 0 1px rgba(31, 35, 40, 0.04), 0 8px 24px rgba(31, 35, 40, 0.1), 0 24px 48px rgba(31, 35, 40, 0.08);
}

    /* متن‌ها در لایت ضخیم‌تر */
    #ke-html-modal.light .ke-header-title-text {
        font-weight: 700;
    }

    #ke-html-modal.light #ke-line-numbers {
        font-weight: 600;
    }

    #ke-html-modal.light #ke-code-area {
        font-weight: 500;
    }

    #ke-html-modal.light #ke-status-bar {
        font-weight: 500;
    }


/* =============================================================
   SCROLLBAR STYLES - مدرن
   ============================================================= */

/* --- Dark --- */
#ke-html-modal.dark #ke-code-area::-webkit-scrollbar,
#ke-html-modal.dark #ke-line-numbers::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#ke-html-modal.dark #ke-code-area::-webkit-scrollbar-track,
#ke-html-modal.dark #ke-line-numbers::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 5px;
}

#ke-html-modal.dark #ke-code-area::-webkit-scrollbar-thumb,
#ke-html-modal.dark #ke-line-numbers::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
    background-clip: padding-box;
}

    #ke-html-modal.dark #ke-code-area::-webkit-scrollbar-thumb:hover,
    #ke-html-modal.dark #ke-line-numbers::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-hover);
        border: 2px solid var(--scrollbar-track);
        background-clip: padding-box;
    }

/* Corner */
#ke-html-modal.dark #ke-code-area::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}


/* --- Light --- */
#ke-html-modal.light #ke-code-area::-webkit-scrollbar,
#ke-html-modal.light #ke-line-numbers::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#ke-html-modal.light #ke-code-area::-webkit-scrollbar-track,
#ke-html-modal.light #ke-line-numbers::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 5px;
}

#ke-html-modal.light #ke-code-area::-webkit-scrollbar-thumb,
#ke-html-modal.light #ke-line-numbers::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
    background-clip: padding-box;
}

    #ke-html-modal.light #ke-code-area::-webkit-scrollbar-thumb:hover,
    #ke-html-modal.light #ke-line-numbers::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-hover);
        border: 2px solid var(--scrollbar-track);
        background-clip: padding-box;
    }

#ke-html-modal.light #ke-code-area::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}


/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    #ke-html-modal {
        width: 98vw;
        height: 95vh;
        border-radius: 10px;
    }

    #ke-html-header {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }

        #ke-html-header .ke-header-title::before {
            font-size: 10px;
            padding: 2px 6px;
        }

        #ke-html-header .ke-header-title-text {
            font-size: 12px;
        }

        #ke-html-header .ke-header-buttons {
            flex-wrap: wrap;
            gap: 5px;
        }

        #ke-html-header .ke-hbtn {
            padding: 5px 10px;
            font-size: 10px;
            border-radius: 6px;
        }

    #ke-code-area,
    #ke-code-display {
        font-size: 12px;
    }

    #ke-line-numbers {
        width: 38px;
        font-size: 11px;
        padding: 12px 6px;
    }

    #ke-status-bar {
        padding: 8px 14px;
        font-size: 10px;
    }
}

/* ===== انیمیشن Subtle برای بارگذاری اولیه المان‌ها ===== */
@keyframes ke-fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ke-html-header .ke-hbtn {
    animation: ke-fade-up 0.3s ease-out backwards;
}

    #ke-html-header .ke-hbtn:nth-child(1) {
        animation-delay: 0.05s;
    }

    #ke-html-header .ke-hbtn:nth-child(2) {
        animation-delay: 0.1s;
    }

    #ke-html-header .ke-hbtn:nth-child(3) {
        animation-delay: 0.15s;
    }

    #ke-html-header .ke-hbtn:nth-child(4) {
        animation-delay: 0.2s;
    }

    #ke-html-header .ke-hbtn:nth-child(5) {
        animation-delay: 0.25s;
    }


/* ===== Selection Style ===== */
#ke-html-modal.dark #ke-code-area::selection {
    background: rgba(56, 139, 253, 0.3);
    color: #e6edf3;
}

#ke-html-modal.light #ke-code-area::selection {
    background: rgba(9, 105, 218, 0.2);
    color: #1f2328;
}


/* ===== Focus Ring برای دسترسی‌پذیری ===== */
#ke-html-header .ke-hbtn:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}






















































/* ===== KEF Class Manager - Styles ===== */

/* --- Scrollbar --- */
.ke-cm-content::-webkit-scrollbar {
    width: 6px;
}

.ke-cm-content::-webkit-scrollbar-track {
    background: transparent;
}

.ke-cm-content::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

    .ke-cm-content::-webkit-scrollbar-thumb:hover {
        opacity: 0.8;
    }

/* --- Light Theme Scrollbar --- */
.ke-cm-light .ke-cm-content::-webkit-scrollbar-thumb {
    background: #d0d4db;
}

    .ke-cm-light .ke-cm-content::-webkit-scrollbar-thumb:hover {
        background: #b0b4bb;
    }

/* --- Dark Theme Scrollbar --- */
.ke-cm-dark .ke-cm-content::-webkit-scrollbar-thumb {
    background: #4a5568;
}

    .ke-cm-dark .ke-cm-content::-webkit-scrollbar-thumb:hover {
        background: #5a6a80;
    }

/* --- Overlay --- */
.ke-cm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Tahoma, Arial, sans-serif;
}

    .ke-cm-light .ke-cm-overlay,
    .ke-cm-overlay.ke-cm-light {
        background: rgba(0, 0, 0, 0.4);
    }

    .ke-cm-overlay.ke-cm-dark {
        background: rgba(0, 0, 0, 0.7);
    }

/* --- Modal --- */
.ke-cm-modal {
    width: 90vw;
    max-width: 680px;
    max-height: 85vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ke-cm-light .ke-cm-modal {
    background: #ffffff;
    border: 1px solid #e2e5ea;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.ke-cm-dark .ke-cm-modal {
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* --- Header --- */
.ke-cm-header {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ke-cm-light .ke-cm-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e5ea;
}

.ke-cm-dark .ke-cm-header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.ke-cm-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .ke-cm-header-title span {
        font-size: 14px;
        font-weight: 900;
    }

.ke-cm-light .ke-cm-header-title span {
    color: #1a1a2e;
}

.ke-cm-dark .ke-cm-header-title span {
    color: #f1f5f9;
}

.ke-cm-header-title code {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
}

.ke-cm-light .ke-cm-header-title code {
    background: rgba(59, 125, 216, 0.08);
    color: #3b7dd8;
}

.ke-cm-dark .ke-cm-header-title code {
    background: rgba(99, 179, 237, 0.15);
    color: #63b3ed;
}

.ke-cm-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Buttons --- */
.ke-cm-btn {
    border-radius: 6px;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    font-weight: 900;
    font-size: 11px;
    transition: all 0.15s ease;
}

.ke-cm-btn-cancel {
    padding: 6px 16px;
}

.ke-cm-light .ke-cm-btn-cancel {
    background: #eef1f5;
    color: #5a5a70;
    border: 1px solid #e2e5ea;
}

.ke-cm-dark .ke-cm-btn-cancel {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
}

    .ke-cm-dark .ke-cm-btn-cancel:hover {
        background: #334155;
        color: #cbd5e1;
    }

.ke-cm-btn-apply {
    padding: 6px 18px;
    border: none;
}

.ke-cm-light .ke-cm-btn-apply {
    background: #3b7dd8;
    color: #fff;
}

.ke-cm-dark .ke-cm-btn-apply {
    background: #3b82f6;
    color: #fff;
}

    .ke-cm-dark .ke-cm-btn-apply:hover {
        background: #2563eb;
    }

.ke-cm-btn-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 4px;
}

.ke-cm-light .ke-cm-btn-close {
    background: #f7f8fa;
    color: #5a5a70;
    border: 1px solid #e2e5ea;
}

.ke-cm-dark .ke-cm-btn-close {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
}

    .ke-cm-dark .ke-cm-btn-close:hover {
        background: #334155;
        color: #f1f5f9;
    }

/* --- Tab Bar --- */
.ke-cm-tab-bar {
    display: flex;
    padding: 0 16px;
    gap: 0;
    flex-shrink: 0;
}

.ke-cm-light .ke-cm-tab-bar {
    background: #f7f8fa;
    border-bottom: 1px solid #e2e5ea;
}

.ke-cm-dark .ke-cm-tab-bar {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.ke-cm-tab-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.ke-cm-light .ke-cm-tab-btn {
    color: #8a8a9a;
}

.ke-cm-dark .ke-cm-tab-btn {
    color: #475569;
}

.ke-cm-light .ke-cm-tab-btn:hover {
    color: #1a1a2e;
}

.ke-cm-dark .ke-cm-tab-btn:hover {
    color: #cbd5e1;
}

.ke-cm-tab-btn.active {
    border-bottom-color: currentColor;
}

.ke-cm-light .ke-cm-tab-btn.active {
    color: #3b7dd8;
}

.ke-cm-dark .ke-cm-tab-btn.active {
    color: #3b82f6;
}

/* --- Content --- */
.ke-cm-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.ke-cm-tab-panel {
    padding: 16px 20px;
    display: none;
}

    .ke-cm-tab-panel.active {
        display: block;
    }

/* --- Labels --- */
.ke-cm-label {
    display: block;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 5px;
}

.ke-cm-light .ke-cm-label {
    color: #8a8a9a;
}

.ke-cm-dark .ke-cm-label {
    color: #64748b;
}

/* --- Inputs --- */
.ke-cm-input,
.ke-cm-textarea {
    width: 100%;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease;
}

.ke-cm-input {
    padding: 9px 12px;
}

.ke-cm-textarea {
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.6;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11px;
}

.ke-cm-light .ke-cm-input,
.ke-cm-light .ke-cm-textarea {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    color: #1a1a2e;
}

    .ke-cm-light .ke-cm-input:focus,
    .ke-cm-light .ke-cm-textarea:focus {
        border-color: #3b7dd8;
    }

.ke-cm-dark .ke-cm-input,
.ke-cm-dark .ke-cm-textarea {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

    .ke-cm-dark .ke-cm-input:focus,
    .ke-cm-dark .ke-cm-textarea:focus {
        border-color: #3b82f6;
    }

    .ke-cm-dark .ke-cm-input::placeholder,
    .ke-cm-dark .ke-cm-textarea::placeholder {
        color: #475569;
    }

/* --- Select --- */
.ke-cm-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    font-family: Tahoma, Arial, sans-serif;
    outline: none;
    cursor: pointer;
}

.ke-cm-light .ke-cm-select {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    color: #1a1a2e;
}

.ke-cm-dark .ke-cm-select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

/* --- Class Group Container --- */
.ke-cm-class-container {
    padding: 8px;
    border-radius: 6px;
}

.ke-cm-light .ke-cm-class-container {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
}

.ke-cm-dark .ke-cm-class-container {
    background: #1e293b;
    border: 1px solid #334155;
}

/* --- Group Header --- */
.ke-cm-group-header small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.ke-cm-light .ke-cm-group-header small {
    color: #8a8a9a;
}

.ke-cm-dark .ke-cm-group-header small {
    color: #64748b;
}

/* --- Tag Buttons (class toggles) --- */
.ke-cm-tag-btn {
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    font-family: Consolas, 'Courier New', monospace;
    transition: all 0.12s ease;
    padding: 3px 8px;
}

.ke-cm-light .ke-cm-tag-btn {
    background: #f0f2f5;
    border: 1px solid #dde0e6;
    color: #5a5a70;
}

    .ke-cm-light .ke-cm-tag-btn:hover {
        background: #eef1f5;
        border-color: #d0d4db;
    }

    .ke-cm-light .ke-cm-tag-btn.active {
        background: #3b7dd8;
        border-color: #3b7dd8;
        color: #fff;
    }

.ke-cm-dark .ke-cm-tag-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
}

    .ke-cm-dark .ke-cm-tag-btn:hover {
        background: #334155;
        border-color: #475569;
        color: #cbd5e1;
    }

    .ke-cm-dark .ke-cm-tag-btn.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: #fff;
    }

/* --- Server class button (uses Tahoma) --- */
.ke-cm-tag-btn.ke-cm-server-btn {
    font-family: Tahoma, Arial, sans-serif;
}

/* --- Quick Style Buttons --- */
.ke-cm-quick-style {
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    font-family: Tahoma, Arial, sans-serif;
    transition: all 0.12s ease;
}

.ke-cm-light .ke-cm-quick-style {
    background: #f0f2f5;
    border: 1px solid #dde0e6;
    color: #5a5a70;
}

    .ke-cm-light .ke-cm-quick-style:hover {
        background: #eef1f5;
        border-color: #d0d4db;
    }

.ke-cm-dark .ke-cm-quick-style {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
}

    .ke-cm-dark .ke-cm-quick-style:hover {
        background: #334155;
        border-color: #475569;
        color: #cbd5e1;
    }

/* --- Warning Box --- */
.ke-cm-warning {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
}

.ke-cm-light .ke-cm-warning {
    background: rgba(200, 149, 48, 0.08);
    border-right: 3px solid #c89530;
    color: #c89530;
}

.ke-cm-dark .ke-cm-warning {
    background: rgba(251, 191, 36, 0.08);
    border-right: 3px solid #fbbf24;
    color: #fbbf24;
}

/* --- Muted Text --- */
.ke-cm-muted {
    font-size: 10px;
    font-weight: 900;
}

.ke-cm-light .ke-cm-muted {
    color: #8a8a9a;
}

.ke-cm-dark .ke-cm-muted {
    color: #64748b;
}

/* --- Format button --- */
.ke-cm-btn-format {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Tahoma, Arial, sans-serif;
}

.ke-cm-light .ke-cm-btn-format {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    color: #5a5a70;
}

.ke-cm-dark .ke-cm-btn-format {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
}

    .ke-cm-dark .ke-cm-btn-format:hover {
        background: #334155;
        color: #cbd5e1;
    }

/* --- Header Icon SVG --- */
.ke-cm-light .ke-cm-icon-accent {
    stroke: #3b7dd8;
}

.ke-cm-dark .ke-cm-icon-accent {
    stroke: #3b82f6;
}
.ke-cm-tab-panel {
    padding: 16px 20px;
    display: none;
}

    .ke-cm-tab-panel.active {
        display: block;
    }
























































/* ==============================================================
   KEF Context Menu & Info Modals - Styles
   Supports Light (.light) and Dark (.dark) themes
   Detection: body.dark → 'dark', otherwise → 'light'
   ============================================================== */

/* ===========================
   ANIMATIONS
=========================== */
@keyframes keMenuSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes keOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes keModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===========================
   CONTEXT MENU - Base
=========================== */
#ke-context-menu {
    position: fixed;
    z-index: 999999;
    border-radius: 8px;
    padding: 6px;
    min-width: 280px;
    display: none;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 12px;
    direction: rtl;
    animation: keMenuSlide 0.1s ease;
}

    /* ── Context Menu: Dark (دقیقاً مثل کد قبلی) ── */
    #ke-context-menu.dark {
        background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
        border: 1px solid #3c3c3c;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    /* ── Context Menu: Light ── */
    #ke-context-menu.light {
        background: linear-gradient(180deg, #ffffff 0%, #f5f6f8 100%);
        border: 1px solid #d0d5dd;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* ===========================
   CONTEXT MENU - Grid Layout
=========================== */
    #ke-context-menu .ke-menu-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
    }

    /* ===========================
   CONTEXT MENU - Menu Items
=========================== */
    #ke-context-menu .ke-menu-item {
        padding: 6px 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        border-radius: 4px;
        transition: background 0.1s;
        white-space: nowrap;
    }

    /* ── Menu Item: Dark (دقیقاً مثل قبل) ── */
    #ke-context-menu.dark .ke-menu-item {
        color: #e0e0e0;
        font-weight: 400;
    }

        #ke-context-menu.dark .ke-menu-item:hover {
            background: #3a3a3a;
            color: #fff;
        }

.ke-menu-item .label {
    font-size: 86%;
}

    /* ── Menu Item: Light ── */
    #ke-context-menu.light .ke-menu-item, #ke-context-menu.light .ke-menu-item .label {
        color: #1a1a2e !important;
        font-weight: 900;
    }



        #ke-context-menu.light .ke-menu-item:hover #ke-context-menu.light .ke-menu-item:hover .label {
            background: #e8ecf1 !important;
            color: #000000;

        }

    /* ===========================
   CONTEXT MENU - Item Icon
=========================== */
    #ke-context-menu .ke-menu-item .k-icon {
        font-size: 14px;
    }

    /* ── Icon: Dark (دقیقاً مثل قبل) ── */
    #ke-context-menu.dark .ke-menu-item .k-icon {
        color: #89b4fa;
    }

    /* ── Icon: Light ── */
    #ke-context-menu.light .ke-menu-item .k-icon {
        color: #2563eb;
    }

    /* ===========================
   CONTEXT MENU - Item Label & Hint
=========================== */
    #ke-context-menu .ke-menu-item .label {
        flex: 1;
    }

    #ke-context-menu .ke-menu-item .hint {
        font-size: 10px;
    }

    /* ── Hint: Dark (دقیقاً مثل قبل) ── */
    #ke-context-menu.dark .ke-menu-item .hint {
        color: #808080;
    }

    /* ── Hint: Light ── */
    #ke-context-menu.light .ke-menu-item .hint {
        color: #6b7280;
        font-weight: 700;
    }

    /* ===========================
   CONTEXT MENU - Separator
=========================== */
    #ke-context-menu .ke-separator {
        grid-column: 1 / -1;
        margin: 4px 0;
    }

    /* ── Separator: Dark (دقیقاً مثل قبل) ── */
    #ke-context-menu.dark .ke-separator {
        border-top: 1px solid #3c3c3c;
    }

    /* ── Separator: Light ── */
    #ke-context-menu.light .ke-separator {
        border-top: 1px solid #d0d5dd;
    }

    /* ===========================
   CONTEXT MENU - Header
=========================== */
    #ke-context-menu .ke-menu-header {
        grid-column: 1 / -1;
        padding: 6px 8px 2px 8px;
        font-size: 11px;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    /* ── Header: Dark (دقیقاً مثل قبل) ── */
    #ke-context-menu.dark .ke-menu-header {
        color: #89b4fa;
        font-weight: 500;
        border-bottom: 1px solid #3c3c3c;
    }

    /* ── Header: Light ── */
    #ke-context-menu.light .ke-menu-header {
        color: #2563eb;
        font-weight: 900;
        border-bottom: 1px solid #d0d5dd;
    }

/* ==============================================================
   INFO MODAL (showFullInfo) - Overlay
   ============================================================== */
.ke-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: keOverlayFadeIn 0.15s ease;
}

    /* ── Overlay: Dark (دقیقاً مثل قبل) ── */
    .ke-info-overlay.dark {
        background: rgba(0, 0, 0, 0.7);
    }

    /* ── Overlay: Light ── */
    .ke-info-overlay.light {
        background: rgba(0, 0, 0, 0.35);
    }

/* ==============================================================
   INFO MODAL - Window
   ============================================================== */
.ke-info-modal {
    min-width: 450px;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    animation: keModalSlideIn 0.2s ease;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
}

/* ── Window: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-modal {
    background: #1e1e2e;
    border: 1px solid #313244;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ── Window: Light ── */
.ke-info-overlay.light .ke-info-modal {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ==============================================================
   INFO MODAL - Title Bar
   ============================================================== */
.ke-info-titlebar {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Titlebar: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-titlebar {
    background: linear-gradient(90deg, #181825, #1e1e2e);
    border-bottom: 1px solid #313244;
    border-radius: 8px 8px 0 0;
}

/* ── Titlebar: Light ── */
.ke-info-overlay.light .ke-info-titlebar {
    background: linear-gradient(90deg, #f0f2f5, #ffffff);
    border-bottom: 1px solid #d0d5dd;
    border-radius: 8px 8px 0 0;
}

/* ── Title text ── */
.ke-info-titlebar .ke-info-title {
    font-size: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Title: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-title {
    color: #cdd6f4;
}

/* ── Title: Light ── */
.ke-info-overlay.light .ke-info-title {
    color: #1a1a2e;
    font-weight: 900;
}

/* ── Title icon ── */
.ke-info-titlebar .ke-info-title .k-icon {
    font-size: 16px;
}

/* ── Title icon: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-title .k-icon {
    color: #89b4fa;
}

/* ── Title icon: Light ── */
.ke-info-overlay.light .ke-info-title .k-icon {
    color: #2563eb;
}

/* ── Close button ── */
.ke-info-titlebar .ke-info-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
    line-height: 1;
}

/* ── Close: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-close-btn {
    background: #313244;
    color: #cdd6f4;
    border: none;
}

    .ke-info-overlay.dark .ke-info-close-btn:hover {
        background: #45475a;
        color: #fff;
    }

/* ── Close: Light ── */
.ke-info-overlay.light .ke-info-close-btn {
    background: #e8ecf1;
    color: #374151;
    border: 1px solid #d0d5dd;
}

    .ke-info-overlay.light .ke-info-close-btn:hover {
        background: #d0d5dd;
        color: #000000;
    }

/* ==============================================================
   INFO MODAL - Content Area
   ============================================================== */
.ke-info-content {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* ── Content background: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-content {
    background: #1e1e2e;
}

/* ── Content background: Light ── */
.ke-info-overlay.light .ke-info-content {
    background: #ffffff;
}

/* ── Scrollbar ── */
.ke-info-content::-webkit-scrollbar {
    width: 5px;
}

.ke-info-content::-webkit-scrollbar-track {
    background: transparent;
}

.ke-info-overlay.dark .ke-info-content::-webkit-scrollbar-thumb {
    background: #313244;
    border-radius: 3px;
}

.ke-info-overlay.light .ke-info-content::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 3px;
}

/* ==============================================================
   INFO MODAL - Table
   ============================================================== */
.ke-info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: system-ui, Tahoma, sans-serif;
}

    .ke-info-table tr {
        transition: background 0.1s ease;
    }

/* ── Row border: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-table tr {
    border-bottom: 1px solid #313244;
}

/* ── Row border: Light ── */
.ke-info-overlay.light .ke-info-table tr {
    border-bottom: 1px solid #e8ecf1;
}

/* ── Row hover: Dark ── */
.ke-info-overlay.dark .ke-info-table tr:hover {
    background: #262637;
}

/* ── Row hover: Light ── */
.ke-info-overlay.light .ke-info-table tr:hover {
    background: #f5f6f8;
}

/* ── Label cell ── */
.ke-info-table .ke-info-label {
    padding: 8px 8px;
    width: 120px;
    text-align: right;
    font-size: 13px;
    white-space: nowrap;
    vertical-align: top;
}

/* ── Label: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-label {
    color: #a6adc8;
}

/* ── Label: Light ── */
.ke-info-overlay.light .ke-info-label {
    color: #374151;
    font-weight: 900;
}

/* ── Label icon ── */
.ke-info-table .ke-info-label .k-icon {
    margin-left: 8px;
    font-size: 14px;
    vertical-align: middle;
}

/* ── Label icon: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-label .k-icon {
    color: #89b4fa;
}

/* ── Label icon: Light ── */
.ke-info-overlay.light .ke-info-label .k-icon {
    color: #2563eb;
}

/* ── Value cell ── */
.ke-info-table .ke-info-value {
    padding: 8px 8px;
    direction: ltr;
    text-align: left;
    font-family: Consolas, monospace;
    font-size: 13px;
    word-break: break-all;
}

/* ── Value: Dark (دقیقاً مثل قبل) ── */
.ke-info-overlay.dark .ke-info-value {
    color: #cdd6f4;
}

/* ── Value: Light ── */
.ke-info-overlay.light .ke-info-value {
    color: #0f172a;
    font-weight: 900;
}

/* ── RTL value (for Persian text) ── */
.ke-info-table .ke-info-value.ke-rtl {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, 'Segoe UI', sans-serif;
}

/* ==============================================================
   GENERIC INFO MODAL (openInfoModal) - Overlay
   ============================================================== */
.ke-generic-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: keOverlayFadeIn 0.15s ease;
}

    /* ── Overlay: Dark (دقیقاً مثل قبل) ── */
    .ke-generic-info-overlay.dark {
        background: rgba(0, 0, 0, 0.7);
    }

    /* ── Overlay: Light ── */
    .ke-generic-info-overlay.light {
        background: rgba(0, 0, 0, 0.35);
    }

/* ==============================================================
   GENERIC INFO MODAL - Window
   ============================================================== */
.ke-generic-info-modal {
    border-radius: 8px;
    min-width: 350px;
    max-width: 500px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: keModalSlideIn 0.2s ease;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
}

/* ── Window: Dark (دقیقاً مثل قبل) ── */
.ke-generic-info-overlay.dark .ke-generic-info-modal {
    background: #2d2d2d;
    border: 1px solid #404040;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ── Window: Light ── */
.ke-generic-info-overlay.light .ke-generic-info-modal {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ==============================================================
   GENERIC INFO MODAL - Header
   ============================================================== */
.ke-generic-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

/* ── Header: Dark (دقیقاً مثل قبل) ── */
.ke-generic-info-overlay.dark .ke-generic-info-header {
    border-bottom: 1px solid #404040;
    background: #2d2d2d;
}

/* ── Header: Light ── */
.ke-generic-info-overlay.light .ke-generic-info-header {
    border-bottom: 1px solid #d0d5dd;
    background: #f5f6f8;
}

.ke-generic-info-header .ke-generic-info-title {
    font-size: 14px;
}

/* ── Title: Dark (دقیقاً مثل قبل) ── */
.ke-generic-info-overlay.dark .ke-generic-info-title {
    color: #e0e0e0;
    font-weight: 500;
}

/* ── Title: Light ── */
.ke-generic-info-overlay.light .ke-generic-info-title {
    color: #1a1a2e;
    font-weight: 900;
}

.ke-generic-info-header .ke-generic-info-close {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
    line-height: 1;
}

/* ── Close: Dark (دقیقاً مثل قبل) ── */
.ke-generic-info-overlay.dark .ke-generic-info-close {
    background: #3c3c3c;
    color: #ccc;
    border: none;
}

    .ke-generic-info-overlay.dark .ke-generic-info-close:hover {
        background: #505050;
        color: #fff;
    }

/* ── Close: Light ── */
.ke-generic-info-overlay.light .ke-generic-info-close {
    background: #e8ecf1;
    color: #374151;
    border: 1px solid #d0d5dd;
}

    .ke-generic-info-overlay.light .ke-generic-info-close:hover {
        background: #d0d5dd;
        color: #000000;
    }

/* ==============================================================
   GENERIC INFO MODAL - Body (pre content)
   ============================================================== */
.ke-generic-info-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

    .ke-generic-info-body pre {
        font-family: Consolas, 'Courier New', monospace;
        font-size: 12px;
        line-height: 1.6;
        white-space: pre-wrap;
        word-wrap: break-word;
        margin: 0;
        direction: ltr;
        text-align: left;
    }

/* ── Pre: Dark (دقیقاً مثل قبل) ── */
.ke-generic-info-overlay.dark .ke-generic-info-body pre {
    color: #ccc;
}

/* ── Pre: Light ── */
.ke-generic-info-overlay.light .ke-generic-info-body pre {
    color: #0f172a;
    font-weight: 700;
}

/* ── Scrollbar ── */
.ke-generic-info-body::-webkit-scrollbar {
    width: 5px;
}

.ke-generic-info-body::-webkit-scrollbar-track {
    background: transparent;
}

.ke-generic-info-overlay.dark .ke-generic-info-body::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 3px;
}

.ke-generic-info-overlay.light .ke-generic-info-body::-webkit-scrollbar-thumb {
    background: #d0d5dd;
    border-radius: 3px;
}

/* ==============================================================
   END - KEF Context Menu & Info Modals Styles
   ============================================================== */





























































































body.dark .bg-white2{
    background-color : #414755 !important;
}

body.dark .logo-lg {
    color: #fff !important;
}

.main-header .logo .logo-lg {
    padding-right: 6px;
}
body.dark .form-control, body.dark .bootstrap-tagsinput, body.dark table.k-editor {
    border-color: #737580 !important;
}

body.dark .bootstrap-tagsinput {
    background-color: #414755 !important;
}

.k-input-button, .k-input-button.k-button {
    min-height: 2.573rem;
}


    body.dark .k-input-button, .k-input-button.k-button {
        background-color: #262f37;
        color:#fff;
    }

    .k-editor .k-editor-toolbar-wrap .k-picker.k-icon-picker .k-input-inner, .k-editor .k-editor-toolbar-wrap .k-picker.k-icon-picker .k-input-inner {
        width: inherit;
        height: inherit;
        padding: 0;
    }


    .k-editor .k-editor-toolbar-wrap .k-input-button, .k-input-button.k-button {
        min-height: 0;
    }


#divCartHedear, #divCartNewHedear {
    background-color: #e0e0e0;
    text-align: center;
    display: none;
    border-bottom: 1px solid;
}

    #divCartHedear label, #divCartNewHedear label {
        padding: 10px !important;
        margin: 0 !important;
        font-weight: 900;
        font-size: 13px;
    }

.divCartPriceIdItem {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right:5px;
    display: flex;
    align-content: center;
    align-items: center;
    border-bottom: 1px solid;
}

    .divCartPriceIdItem:nth-child(even) {
        background-color: #f0f0f0;
    }

.zebra-row > .row {
    margin-right: 0px !important;
    margin-left: 0px !important;
    padding-top: 10px !important;
    border-radius: 10px !important;
    position: relative;
    overflow: visible;
    margin-bottom: 50px;
}

    .zebra-row > .row:nth-child(even) {
        background-color: #f0f0f0;
    }
.zebra-row > .row > hr {
    top: 45px;
}
    .zebra-row > .row:nth-child(odd) {
        border: 4px solid #f0f0f0;
    }
.zebra-row label {
    text-align: center;
    display: block;
}
.zebra-row input:not([type="button"]) {
    display: block;
    margin: 0 auto;
}


#PurchaseCreateDiv .iconremovedd {
    right: -17px;
}

    /* استایل‌های پایه */
    .CardItem2Sam {
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        background: #fff;
    }

        .CardItem2Sam:hover {
            background-color: rgba(0, 0, 0, 0.02);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        /* حالت collapsed */
        .CardItem2Sam.collapsed {
            height: 100px !important;
            min-height: 100px;
            overflow: hidden;
        }
    /* آیکون toggle */
    .card-toggle-icon {
        position: absolute;
        top: 10px;
        left: 10px;
        cursor: pointer;
        font-size: 20px;
        color: #666;
        z-index: 100;
        background: #fff;
        padding: 1px 5px;
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

        .card-toggle-icon:hover {
            color: #333;
            transform: scale(1.1);
        }
    /* کانتینر دکمه‌های کنترل */
    .card-2sam-controls {
        display: flex;
        gap: 10px;
        margin: 0 auto 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* حالت موزاییک - تغییر به flexbox */
    .mosaic-container {
        position: relative;
        width: 100%;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    /* کلاس‌های col برای responsive */
    .CardItem2Sam.mosaic-view {
        height: 120px !important;
        min-height: 120px !important;
        margin: 0 !important;
        padding: 20px 15px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: flex;
        cursor: pointer;
        /* حاشیه برای فاصله بین کارت‌ها */
        margin: 8px !important;
    }
        /* تنظیم iconremovedd در حالت موزاییک */
        .CardItem2Sam.mosaic-view .iconremovedd {
            right: -18px !important;
        }
    /* کلاس‌های col responsive */
    .col-base {
        position: relative;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }
    /* حالت عادی - col-12 */
    .CardItem2Sam:not(.mosaic-view) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* موبایل - col-12 */
    @media (max-width: 575px) {
        .CardItem2Sam.mosaic-view {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }
    /* تبلت - col-6 */
    @media (min-width: 576px) and (max-width: 767px) {
        .CardItem2Sam.mosaic-view {
            flex: 0 0 50%;
            max-width: 50%;
        }
    }
    /* تبلت بزرگ - col-4 */
    @media (min-width: 768px) and (max-width: 991px) {
        .CardItem2Sam.mosaic-view {
            flex: 0 0 33.333333%;
            max-width: 33.333333%;
        }
    }
    /* دسکتاپ - col-3 */
    @media (min-width: 992px) and (max-width: 1199px) {
        .CardItem2Sam.mosaic-view {
            flex: 0 0 25%;
            max-width: 25%;
        }
    }
    /* دسکتاپ بزرگ - col-2 */
    @media (min-width: 1200px) {
        .CardItem2Sam.mosaic-view {
            flex: 0 0 16.666667%;
            max-width: 16.666667%;
        }
    }

    .CardItem2Sam.mosaic-view:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    /* نمایش عناوین در حالت compact */
    .CardItem2Sam.mosaic-view.compact::after {
        content: attr(data-title);
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 16px;
        font-weight: bold;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90%;
        text-align: center;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    /* نمایش عناوین در حالت compact */
    .CardItem2Sam.mosaic-view.compact img {
        top: -3px;
        right: 0;
        max-height: 35px;
        position: absolute;
        max-width: 60px;
    }

    .CardItem2Sam.mosaic-view.compact::before {
        content: attr(data-subtitle);
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90%;
        opacity: 0.9;
        text-align: center;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    /* انیمیشن */
    .CardItem2Sam.animating {
        transition: all 0.3s ease;
    }
    /* مخفی کردن فیلدها در حالت موزاییکی */
    .CardItem2Sam.mosaic-view.compact .form-group {
        display: none;
    }
    /* حالت collapsed در موزاییک */
    .CardItem2Sam.mosaic-view.collapsed {
        height: 60px !important;
        min-height: 60px !important;
    }
    /* استایل‌های responsive اضافی */
    @media (max-width: 768px) {
        .card-2sam-controls {
            flex-direction: column;
            width: 100%;
            padding: 0 10px;
        }

            .card-2sam-controls a {
                width: 100%;
                text-align: center;
            }
    }
    /* حالت dark mode */
    @media (prefers-color-scheme: dark) {
        .CardItem2Sam {
            background: #2d2d2d;
            border-color: #444;
            color: #fff;
        }

        .card-toggle-icon {
            background: #333;
            color: #fff;
        }

        .mosaic-container {
            background: #1a1a1a;
        }
    }


















    .iconremovedd {
        position: absolute;
        top: -8px;
        right: -40px;
    }

















































    .divOutFilterAdd {
        background-color: #36bea696;
        padding: 10px;
        border: 1px solid;
    }



    .BoxItemSearchFilterAddWarehouseOut .box {
        height: 190px;
        margin: 0;
    }

    .BoxItemSearchFilterAddWarehouseOut .box-header {
        padding: 0;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .BoxItemSearchFilterAddWarehouseOut .box-body {
        font-weight: bolder;
        padding: 5px 0;
        background: #e0e0e0;
        padding-bottom: 0 !important;
    }

    .BoxItemSearchFilterAddWarehouseOut {
        padding: 10px !important;
    }

        .BoxItemSearchFilterAddWarehouseOut .box-title {
            line-height: 1.5;
        }

        .BoxItemSearchFilterAddWarehouseOut:hover .box {
            box-shadow: 4px 1px 8px 3px rgb(0 0 0 / 33%);
        }

    .BoxItemSearchFilterAddWarehouseOutBody:hover:after {
        content: "انتخاب";
        position: absolute;
        height: 135px;
        top: 55px;
        left: 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        background: #7460eec9;
        align-items: center;
        font-size: 16px;
        color: #fff;
        font-weight: 900;
        text-shadow: 0px 0px 1px #000;
    }

    .BoxItemSearchFilterAddWarehouseOut .box-body .col-12 {
        margin: 0;
    }

    .BoxItemSearchFilterAddWarehouseOut .box-footer {
        font-weight: bolder;
        padding: 5px !important;
    }

    .divOutFilterAdd .input-success {
        color: #005536 !important;
    }

    #PiProductWarehouseRelated-grid .k-spacer {
        -ms-flex: none;
        flex: none;
    }







    .btnAddInterceptionCodeSearchFilterAddWarehouseOut {
        margin-top: 5px;
    }


    .BoxItemSearchFilterAddWarehouseOutDetailsItem .btn {
        box-shadow: 0px 0px 4px 0px #000;
        margin-top: 15px;
        padding: 5px;
    }

    .BoxItemSearchFilterAddWarehouseOutDetailsItem .box {
        min-height: 280px;
        margin: 0;
    }

    .BoxItemSearchFilterAddWarehouseOutDetails > .box > .box-header {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px !important;
    }

        .BoxItemSearchFilterAddWarehouseOutDetails > .box > .box-header div {
            text-align: right !important;
        }


    .BoxItemSearchFilterAddWarehouseOutDetailsItem > .box > .box-header {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px !important;
    }

    .BoxItemSearchFilterAddWarehouseOutDetails .box-body {
        font-weight: bolder;
        padding: 5px;
        background: #e0e0e0;
        padding-bottom: 0 !important;
    }

    .BoxItemSearchFilterAddWarehouseOutDetailsItem .box-body {
        font-weight: bolder;
        padding: 5px;
        background: #fff;
        padding-bottom: 0 !important;
    }

    .BoxItemSearchFilterAddWarehouseOutDetails {
        padding: 10px !important;
    }

        .BoxItemSearchFilterAddWarehouseOutDetails .box-title {
            line-height: 1.5;
        }

    .BoxItemSearchFilterAddWarehouseOutDetailsItem:hover .box {
        box-shadow: 4px 1px 8px 3px rgb(0 0 0 / 33%);
    }

    .BoxItemSearchFilterAddWarehouseOutDetailsItem {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    /*.BoxItemSearchFilterAddWarehouseOutDetailsItem .box-body:hover:after {
    content: "انتخاب";
    position: absolute;
    height: 140px;
    top: 60px;
    left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    background: #7460eec9;
    align-items: center;
    font-size: 16px;
    color: #fff;
    font-weight: 900;
    text-shadow: 0px 0px 1px #000;
}*/
    .TrackingCodesDivAdd {
        padding-top: 5px;
        padding-bottom: 5px;
        border: 1px solid;
        padding: 5px;
        margin: 5px;
        box-shadow: 0 0 1px 0px;
        cursor: pointer;
        margin-top: 5px;
        display: inline-block;
    }

        .TrackingCodesDivAdd:hover {
            background-color: #eee;
            box-shadow: 0 0 2px 0px;
        }



    .BoxItemSearchFilterAddWarehouseOutDetails .box-body .col-12 {
        margin: 0;
    }

    .BoxItemSearchFilterAddWarehouseOutDetails .box-footer {
        font-weight: bolder;
        padding: 5px !important;
    }


    .WarehouseOutItemEssentials {
        text-align: center;
        background: #7460ee21;
        border: 1px solid;
    }

        .WarehouseOutItemEssentials .slideTBox {
            width: 100%;
        }

    .locked-row {
        background-color: #f8f9fa;
        opacity: 0.8;
    }

    .essential-row {
        border: 1px solid #dee2e6;
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 5px;
    }

    .manual-add-section {
        margin-top: 20px;
        text-align: center;
    }
    /*
.TemplateFormMakerAnswerManagement- .MBox {
    box-shadow: 0px 0px 7px rgba(0,0,0,1);
    margin-bottom: 80px;
    background: #e1e7ec
}

.formMakerDetails .Mitem {
    box-shadow: 0px 0px 7px rgba(0,0,0,1);
    margin-bottom: 80px;
    background: #e1e7ec
}


.formMakerDetails .Mitem .form-group {
    background: rgb(255, 255, 255);
    font-weight: 500;
    border: 1px solid #acacac;
    padding-top: 5px;
}

.formMakerDetails .Mitem .form-controlRead {
    background: rgb(225, 231, 236);
    font-weight: 900;
    padding: 10px;
    margin-top: 5px;
}


.formMakerDetails .Mitem .alert {
    border-radius: 0;
}

.TemplateFormMakerAnswerManagement- .MBox:before {
    content: "پاسخ مدیر";
    width: 100vw;
    border-bottom: 1px solid;
    font-size: 14px;
    padding: 20px 5px;
    font-weight: 900;
    background: var(--blue);
    color: #fff;
    margin: -10px;
    margin-bottom: 20px;
}*/
    .iconremovedd3 {
        position: absolute;
        right: 3px;
        margin-top: -15px;
    }

    .overflow-visible {
        overflow: visible !important;
    }

    .iconBox2Sam {
        position: absolute;
        left: 22px;
        z-index: 99999999999999;
    }

    .dmax {
        width: 100%;
        max-width: max-content;
        height: auto;
        max-height: 100vh;
    }

    #divItem .iconremovedd {
        position: absolute;
        margin-top: -29px;
        right: 2px;
    }


.d-nonei {
    display: none !important;
}

    .WarehouseOutItemEssentials .iconremovedd {
        margin-top: -5px !important;
    }

    .WarehouseOutItemEssentials .slideTBox > div {
        padding-top: 5px !important;
        border-bottom: 1px solid;
    }

    #divItem .divItem:nth-child(odd) {
        background-color: #eeeeee;
    }

    #divItem .divItem {
        padding: 10px 10px;
        border: 1px solid;
        margin-bottom: 20px !important;
        overflow: hidden;
    }


    #divItem .divItemDetails:nth-child(odd) {
        background-color: #fff;
    }

    .divItemDetails {
        background-color: #eeeeee;
        padding: 10px 10px;
        border: 1px solid #28a745;
        margin-bottom: 20px !important;
        overflow: hidden;
    }

    .FactorEdit .form-group.card {
        display: flex !important;
    }

    .k-input-inner {
        overflow-y: auto !important;
    }

    #GroupProductUl.menu-open {
        background: #000;
    }

        #GroupProductUl.menu-open .treeview-menu {
            padding-left: 0 !important;
        }

    #FinalBalanceDiv {
        text-align: center;
    }

    .ShelvingSpan {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 70px;
        height: 30px;
        text-align: center;
        padding-top: 5px;
        background: #d93e4dc2;
        font-weight: bolder;
        color: #ffffff;
        border-radius: 10px;
        box-shadow: 0px 0px 3px 0px;
    }

    .FactorEdit .MItem {
        display: grid;
        border: 1px solid #eee;
        margin-top: 10px;
        /*box-shadow: 0px 0px 7px rgb(0 0 0 / 20%);*/
        text-align: center;
        padding: 15px 0;
    }

        .FactorEdit .MItem input {
            text-align: left;
        }
    /*        .NumPriceBtn:last-child {
        display: none;
    }*/
    .FactorEdit .card {
        position: relative;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-direction: column;
        flex-direction: inherit;
    }

    .FactorEdit .col-lg-9.col-sm-8 {
        padding: 0;
    }

    .FactorEdit .form-group.card:last-child {
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .NumPriceBtnDBox {
        padding-top: 10px;
    }

        .NumPriceBtnDBox a {
            /*border: 1px solid;*/
            display: flex !important;
            margin: 0;
            padding: 0 10px;
        }

        .NumPriceBtnDBox label {
            font-size: 1.2em !important;
        }

        .NumPriceBtnDBox [data-toggle='collapse']::after {
            left: 10px !important;
            right: inherit;
        }

        .NumPriceBtnDBox .card-header {
            padding: 8px !important;
        }

        .NumPriceBtnDBox input {
            padding: 10px !important;
            height: auto !important;
            padding-left: 10px !important;
            border: solid 1px #999;
            border-radius: 5px;
        }

        .NumPriceBtnDBox .collapse {
            padding: 5px;
        }

        .NumPriceBtnDBox b {
            padding-top: 6px;
            /*margin-left: 7px !important;*/
            display: inline-block;
            width: 30px;
            height: 30px;
            background: #3f51b5;
            color: #fff;
            font-size: 16px;
            border-radius: 25%;
            overflow: hidden;
            font-weight: bolder;
            cursor: pointer;
            line-height: 25px;
            margin-top: 10px;
            text-align: center;
        }

        .NumPriceBtnDBox :nth-child(5) {
            background: #eb4924;
        }

        .NumPriceBtnDBox :nth-child(6) {
            background: #fe7a15;
        }

        .NumPriceBtnDBox :nth-child(7) {
            background: darkkhaki;
        }

        .NumPriceBtnDBox :nth-child(8) {
            background: #4caf50;
        }

        .NumPriceBtnDBox :nth-child(9) {
            background: #28a745;
        }

        .NumPriceBtnDBox :nth-child(10) {
            background: #4183c4;
        }

        .NumPriceBtnDBox :nth-child(11) {
            background: peru;
        }



    .hlError {
        background-color: #fea;
        color: #f33;
    }

    .hlOK {
        background-color: #aef;
        color: #060;
    }

    .inlineCode {
        font: bold 12px monospace;
    }

    .direction-ltr {
        direction: ltr !important;
    }


    .ace-tm .ace_print-margin {
        display: none;
    }

    .mh-auto {
        min-height: 0 !important;
    }

    .text-red {
        color: red;
        background: #fff;
        padding: 0px 5px;
        border-radius: 5px;
    }
    /*.ace_scrollbar-inner, .ace_content {
    width: 100% !important;
}*/
    .ace_scrollbar-inner {
        width: 100% !important;
    }

    #editor {
        /* position: absolute; */
        /* top: 0; */
        /* right: 0; */
        /* bottom: 0; */
        /* left: 0; */
        height: 500px;
    }

    .ace_editor {
        height: 500px;
    }

    .editorDiv {
        padding: 20px;
        background-color: #d5d5d5;
        height: 595px;
        -ms-border-radius: 10px;
        border-radius: 10px;
    }

    #TemplateFAQDiv {
        display: contents;
    }

    .input-success {
        color: #43d9a3 !important;
    }

    .input-danger {
        color: #dc3545 !important;
    }


    .input-Bsuccess > span, .b-success {
        border: 1px solid #43d9a3 !important;
    }

        .input-Bsuccess > span:first-child {
            border-left: 0 !important;
        }

    .input-Bsuccess span.k-dropdown-wrap {
        border-left: 1px solid #43d9a3 !important;
    }

    .input-Bdanger > span, .b-danger {
        border: 1px solid #dc3545 !important;
    }

        .input-Bdanger > span:first-child {
            border-left: 0 !important;
        }

    .input-Bdanger span.k-dropdown-wrap {
        border-left: 1px solid #dc3545 !important;
    }


    .CardItem2Sam {
        border: 1px solid #a8aaac !important;
        background: #ebebeb;
        margin: 20px 0 !important;
        padding: 20px 0 !important;
    }

    a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
        color: #fff !important;
    }

    .h-0 {
        /*    height: 0px !important;
    min-height: 0px !important;*/
    }

    .k-dropdown.form-control.h-0 {
        height: inherit !important;
        min-height: inherit !important;
    }

    .w-110 {
        width: 110px !important;
    }

    .bg-white2 {
        background: #fff !important;
    }

    .Product .bootstrap-tagsinput {
        height: 195px;
    }

    .wrapper {
        overflow: hidden;
    }

    @media (max-width: 767px) {
        .rtl .main-header .navbar {
            margin: 0 !important;
        }
    }

    @media (max-width: 767px) {
        .rtl .content-wrapper, .rtl .main-footer {
            margin-right: 0 !important;
        }
    }

    .rtl .content-wrapper, .rtl .main-footer, .rtl .main-header .navbar {
        margin-right: 200px;
        margin-left: 0;
    }

    .content-wrapper, .main-footer, .main-header .navbar {
        margin-left: 200px;
        margin-right: 0;
    }

    .content-top-agile h2 {
        letter-spacing: 10px;
        word-spacing: 4px;
    }

    .k-grid-content {
        overflow: hidden;
    }

    .SectionFeaturesitem {
        margin-top: 20px !important;
        padding-bottom: 7px;
        border-bottom: rgba(97,106,120,0.07) 1px solid;
    }

    .k-upload {
        border: 1px solid;
    }

    .iconremovedd {
        -webkit-appearance: none !important;
        color: #c30c0c;
        font-size: 25px;
    }

    .iconremovedd2 {
        position: absolute;
        color: #f50505;
        top: 0;
        font-size: 20px;
        right: 13px;
        -webkit-appearance: none !important;
    }

    .rtl [type=checkbox] + label.pl-20 {
        padding-right: 20px !important;
    }

    .skin-info .Skin-active, .skin-info-light .Skin-active {
        color: #ffffff;
        background-color: #2962FF;
        border-color: #2962FF;
    }

    .skin-black .Skin-active, .skin-black-light .Skin-active {
        color: #ffffff;
        background-color: #414755;
        border-color: #414755;
    }

    .skin-primary .Skin-active, .skin-primary-light .Skin-active {
        color: #ffffff;
        background-color: #7460ee;
        border-color: #7460ee;
    }

    .skin-success .Skin-active, .skin-success-light .Skin-active {
        color: #ffffff;
        background-color: #36bea6;
        border-color: #36bea6;
    }

    .skin-danger .Skin-active, .skin-danger-light .Skin-active {
        color: #ffffff;
        background-color: #f62d51;
        border-color: #f62d51;
    }

    .skin-warning .Skin-active, .skin-warning-light .Skin-active {
        color: #ffffff;
        background-color: #ffbc34;
        border-color: #ffbc34;
    }



    .skin-black-light .logo-lg,
    .skin-info-light .logo-lg,
    .skin-danger-light .logo-lg,
    .skin-success-light .logo-lg,
    .skin-warning-light .logo-lg,
    .skin-primary-light .logo-lg {
        color: #313640;
    }






    .skin-info .sidebar li.active > a, .skin-info .sidebar li > a:hover,
    .skin-info-light .sidebar li.active > a, .skin-info-light .sidebar li > a:hover {
        color: #ffffff;
        background-color: #2962FF;
    }

    .skin-black-light .sidebar li.active > a, .skin-black-light .sidebar li > a:hover,
    .skin-black-light .sidebar li.active > a i, .skin-black-light .sidebar li > a i:hover {
        color: #ffffff;
        background-color: #414755;
    }

    .skin-black .sidebar li.active > a, .skin-black .sidebar li > a:hover,
    .skin-black .sidebar li.active > a i, .skin-black .sidebar li > a i:hover {
        color: #414755;
        background-color: #ffffff;
    }

    .skin-primary .sidebar li.active > a, .skin-primary .sidebar li > a:hover,
    .skin-primary-light .sidebar li.active > a, .skin-primary-light .sidebar li > a:hover {
        color: #ffffff;
        background-color: #7460ee;
    }

    .skin-success .sidebar li.active > a, .skin-success .sidebar li > a:hover,
    .skin-success-light .sidebar li.active > a, .skin-success-light .sidebar li > a:hover {
        color: #ffffff;
        background-color: #36bea6;
    }

    .skin-danger .sidebar li.active > a, .skin-danger .sidebar li > a:hover,
    .skin-danger-light .sidebar li.active > a, .skin-danger-light .sidebar li > a:hover {
        color: #ffffff;
        background-color: #f62d51;
    }

    .skin-warning .sidebar li.active > a, .skin-warning .sidebar li > a:hover,
    .skin-warning-light .sidebar li.active > a, .skin-warning-light .sidebar li > a:hover {
        color: #ffffff;
        background-color: #ffbc34;
    }

    .user-profile a {
        color: #000 !important;
    }

    .btn {
        margin-left: 10px;
    }

.user-theme-settings-divider {
    margin: 0 0 1rem;
    border-top: 1px solid #d9dee8;
}

.user-theme-settings-collapse > summary,
.user-theme-settings-collapse details > summary {
    text-align: right;
    cursor: pointer;
    padding: .65rem .85rem;
    border-radius: .4rem;
    background: #f4f6fa;
    color: #263247;
    font-weight: 600;
}

.user-theme-settings-collapse > summary {
    margin-bottom: .75rem;
}

.user-theme-settings-collapse > summary::marker {
    color: #52627a;
}

.user-theme-settings-collapse details[open] > summary {
    margin-bottom: .5rem;
}

.user-theme-code-editor {
    width: 100%;
    height: 22rem;
    direction: ltr;
    text-align: left;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.5;
    border: 1px solid #d9dee8;
    border-radius: .4rem;
}

.user-theme-settings-collapse {
    margin-top: 1rem;
}

.user-theme-root-css-field {
    margin-top: 1.75rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid #e3e7ee;
}

.user-theme-token-card {
    margin-bottom: .75rem;
    padding: .7rem .8rem;
    border: 1px solid #e3e7ee;
    border-radius: .5rem;
    background: #fff;
}

.user-theme-token-card > label {
    display: block;
    margin-bottom: .45rem;
    color: #344054;
    font-weight: 500;
}

.user-theme-token-picker {
    gap: .65rem;
}

.user-theme-token-enabled {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0 .15rem 0 0;
    cursor: pointer;
}

.user-theme-token-picker .form-control[type="color"] {
    width: 100%;
    min-height: 2.35rem;
    padding: .2rem;
    cursor: pointer;
}

.user-theme-token-picker .form-control:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.productPricingEditWindow { max-width: calc(100vw - 24px) !important; }
.productPricingEditWindow .k-edit-form-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    width: 100% !important;
    max-height: calc(90vh - 90px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 12px;
}
.productPricingEditWindow .productPricingSpan2 { grid-column: span 2; }
.productPricingEditWindow .productPricingSpan3 { grid-column: span 3; }
.productPricingEditWindow .productPricingSpan4 { grid-column: span 4; }
.productPricingEditWindow .productPricingSpan6 { grid-column: span 6; }
.productPricingEditWindow .productPricingSpan12 { grid-column: 1 / -1; }
.productPricingEditWindow .productPricingEditField { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.productPricingEditWindow .productPricingEditStandalone { padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 4px; background: rgba(0, 0, 0, .025); }
.productPricingEditWindow .k-edit-label,
.productPricingEditWindow .k-edit-field { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; min-width: 0; }
.productPricingEditWindow .k-edit-label { white-space: nowrap; }
.productPricingEditWindow .productPricingEditRelatedGroup { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 4px; background: rgba(0, 0, 0, .025); }
.productPricingEditWindow .productPricingColorGroup { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; width: 100%; box-sizing: border-box; }
.productPricingEditWindow .productPricingColorGroup .productPricingEditField { display: flex; align-items: center; width: auto; min-width: 0; }
.productPricingEditWindow .productPricingColorToggleField { flex: 0 0 auto; white-space: nowrap; gap: 6px; }
.productPricingEditWindow .productPricingColorToggleField .k-edit-field { display: flex; align-items: center; }
.productPricingEditWindow .productPricingColorPickerField { flex: 1 1 auto; }
.productPricingEditWindow .productPricingColorPickerField .k-edit-field { flex: 1 1 auto; min-width: 0; }
.productPricingEditWindow .productPricingColorPickerField input[type="color"] { display: block; width: 100% !important; max-width: none; height: 38px; padding: 2px; box-sizing: border-box; cursor: pointer; }
.productPricingEditWindow .productPricingEditField .k-edit-field > input:not([type="checkbox"]):not([type="radio"]),
.productPricingEditWindow .productPricingEditField .k-edit-field > textarea,
.productPricingEditWindow .productPricingEditField .k-edit-field > select,
.productPricingEditWindow .productPricingEditField .k-edit-field > .k-widget { width: 100%; max-width: 100%; box-sizing: border-box; }
.productPricingEditWindow .productPricingEditField .k-edit-field > textarea { height: 38px !important; min-height: 38px; resize: none; }
.productPricingEditWindow .k-edit-buttons { grid-column: 1 / -1; }
@media (min-width: 768px) and (max-width: 1199px) {
    .productPricingEditWindow .k-edit-form-container { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .productPricingEditWindow .productPricingEditField,
    .productPricingEditWindow .productPricingEditRelatedGroup { grid-column: span 6; }
    .productPricingEditWindow .productPricingSpan12 { grid-column: 1 / -1; }
    .productPricingEditWindow .productPricingSpan2 { grid-column: span 3; }
    .productPricingEditWindow .productPricingSpan4 { grid-column: span 6; }
    .productPricingEditWindow .productPricingSpan6 { grid-column: span 12; }
}
@media (max-width: 767px) {
    .productPricingEditWindow { width: calc(100vw - 24px) !important; }
    .productPricingEditWindow .k-edit-form-container { grid-template-columns: minmax(0, 1fr); }
    .productPricingEditWindow .productPricingEditField,
    .productPricingEditWindow .productPricingEditRelatedGroup { grid-column: 1 / -1; }
}










.preloader {
    min-height: 100vh;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000009;
    display: none;
    flex-flow: row nowrap;
    align-items: center;
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0.57);
}

.infinity {
    width: 120px;
    height: 60px;
    position: relative;
}

    .infinity div,
    .infinity span {
        position: absolute;
    }

    .infinity div {
        top: 0;
        left: 50%;
        width: 60px;
        height: 60px;
        -webkit-animation: rotate 6.9s linear infinite;
        animation: rotate 6.9s linear infinite;
    }

        .infinity div span {
            left: -8px;
            top: 50%;
            margin: -8px 0 0 0;
            width: 16px;
            height: 16px;
            display: block;
            background: #8C6FF0;
            box-shadow: 2px 2px 8px rgba(140, 111, 240, 0.09);
            border-radius: 50%;
            -webkit-transform: rotate(90deg);
            transform: rotate(90deg);
            -webkit-animation: move 6.9s linear infinite;
            animation: move 6.9s linear infinite;
        }

            .infinity div span:before, .infinity div span:after {
                content: '';
                position: absolute;
                display: block;
                border-radius: 50%;
                width: 14px;
                height: 14px;
                background: inherit;
                top: 50%;
                left: 50%;
                margin: -7px 0 0 -7px;
                box-shadow: inherit;
            }

            .infinity div span:before {
                -webkit-animation: drop1 .8s linear infinite;
                animation: drop1 .8s linear infinite;
            }

            .infinity div span:after {
                -webkit-animation: drop2 .8s linear infinite .4s;
                animation: drop2 .8s linear infinite .4s;
            }

        .infinity div:nth-child(2) {
            -webkit-animation-delay: -2.3s;
            animation-delay: -2.3s;
        }

            .infinity div:nth-child(2) span {
                -webkit-animation-delay: -2.3s;
                animation-delay: -2.3s;
            }

        .infinity div:nth-child(3) {
            -webkit-animation-delay: -4.6s;
            animation-delay: -4.6s;
        }

            .infinity div:nth-child(3) span {
                -webkit-animation-delay: -4.6s;
                animation-delay: -4.6s;
            }

.infinityChrome {
    width: 128px;
    height: 60px;
    margin-left: -180px;
}

    .infinityChrome div {
        position: absolute;
        width: 16px;
        height: 16px;
        background: #8C6FF0;
        box-shadow: 2px 2px 8px rgba(140, 111, 240, 0.09);
        border-radius: 50%;
        -webkit-animation: moveSvg 6.9s linear infinite;
        animation: moveSvg 6.9s linear infinite;
        -webkit-filter: url(#goo);
        filter: url(#goo);
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
        offset-path: path("M64.3636364,29.4064278 C77.8909091,43.5203348 84.4363636,56 98.5454545,56 C112.654545,56 124,44.4117395 124,30.0006975 C124,15.5896556 112.654545,3.85282763 98.5454545,4.00139508 C84.4363636,4.14996252 79.2,14.6982509 66.4,29.4064278 C53.4545455,42.4803627 43.5636364,56 29.4545455,56 C15.3454545,56 4,44.4117395 4,30.0006975 C4,15.5896556 15.3454545,4.00139508 29.4545455,4.00139508 C43.5636364,4.00139508 53.1636364,17.8181672 64.3636364,29.4064278 Z");
    }

        .infinityChrome div:before, .infinityChrome div:after {
            content: '';
            position: absolute;
            display: block;
            border-radius: 50%;
            width: 14px;
            height: 14px;
            background: inherit;
            top: 50%;
            left: 50%;
            margin: -7px 0 0 -7px;
            box-shadow: inherit;
        }

        .infinityChrome div:before {
            -webkit-animation: drop1 .8s linear infinite;
            animation: drop1 .8s linear infinite;
        }

        .infinityChrome div:after {
            -webkit-animation: drop2 .8s linear infinite .4s;
            animation: drop2 .8s linear infinite .4s;
        }

        .infinityChrome div:nth-child(2) {
            -webkit-animation-delay: -2.3s;
            animation-delay: -2.3s;
        }

        .infinityChrome div:nth-child(3) {
            -webkit-animation-delay: -4.6s;
            animation-delay: -4.6s;
        }

@-webkit-keyframes moveSvg {
    0% {
        offset-distance: 0%;
    }

    25% {
        background: #5628EE;
    }

    75% {
        background: #23C4F8;
    }

    100% {
        offset-distance: 100%;
    }
}

@keyframes moveSvg {
    0% {
        offset-distance: 0%;
    }

    25% {
        background: #5628EE;
    }

    75% {
        background: #23C4F8;
    }

    100% {
        offset-distance: 100%;
    }
}

@-webkit-keyframes rotate {
    50% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
        margin-left: 0;
    }

    50.0001%, 100% {
        margin-left: -60px;
    }
}

@keyframes rotate {
    50% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
        margin-left: 0;
    }

    50.0001%, 100% {
        margin-left: -60px;
    }
}

@-webkit-keyframes move {
    0%,50% {
        left: -8px;
    }

    25% {
        background: #5628EE;
    }

    75% {
        background: #23C4F8;
    }

    50.0001%, 100% {
        left: auto;
        right: -8px;
    }
}

@keyframes move {
    0%,50% {
        left: -8px;
    }

    25% {
        background: #5628EE;
    }

    75% {
        background: #23C4F8;
    }

    50.0001%, 100% {
        left: auto;
        right: -8px;
    }
}

@-webkit-keyframes drop1 {
    100% {
        -webkit-transform: translate(32px, 8px) scale(0);
        transform: translate(32px, 8px) scale(0);
    }
}

@keyframes drop1 {
    100% {
        -webkit-transform: translate(32px, 8px) scale(0);
        transform: translate(32px, 8px) scale(0);
    }
}

@-webkit-keyframes drop2 {
    0% {
        -webkit-transform: translate(0, 0) scale(0.9);
        transform: translate(0, 0) scale(0.9);
    }

    100% {
        -webkit-transform: translate(32px, -8px) scale(0);
        transform: translate(32px, -8px) scale(0);
    }
}

@keyframes drop2 {
    0% {
        -webkit-transform: translate(0, 0) scale(0.9);
        transform: translate(0, 0) scale(0.9);
    }

    100% {
        -webkit-transform: translate(32px, -8px) scale(0);
        transform: translate(32px, -8px) scale(0);
    }
}

.infinity {
    display: none;
}

html {
    -webkit-font-smoothing: antialiased;
}

body .dribbble {
    position: fixed;
    display: block;
    right: 20px;
    bottom: 20px;
}

    body .dribbble img {
        display: block;
        height: 28px;
    }

