﻿.bw-blade-menu {
    display: flex;
}

.bw-blade-menu-container {
    display: flex;
    gap: 0px;
}

.bw-blade-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    padding: 8px 10px;
    cursor: pointer;
    min-width: 60px;
    min-height: 58px;
    transition: background-color 0.2s ease;
}

    .bw-blade-menu-item .icon i {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .bw-blade-menu-item .label {
        font-size: 0.9rem;
    }

    .bw-blade-menu-item:hover {
        background-color: #3a3a3a; /* gray hover like your screenshot */
        color: #fff;
    }

    .bw-blade-menu-item.disabled {
        opacity: 0.4;
        cursor: default;
        pointer-events: none;
    }


bw-blade-tasks {
    width: 100%;
    height: 100%;
}
/* Container wraps both panels */
.panel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Both panels take full space and slide horizontally */
.bw-task-list,
.task-detail-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
}

/* Default: task list visible, detail panel offscreen right */
.bw-task-list {
    transform: translateX(0%);
    z-index: 1;
}

.task-detail-panel {
    transform: translateX(100%);
    z-index: 2;
    overflow-y: auto;
}

.bw-task-list {
    z-index: 1;
}

.task-detail-panel {
    z-index: 2; /* <-- always on top so you see it slide away */
}
/* When sliding to detail view */
.panel-container.show-detail .bw-task-list {
    transform: translateX(-100%);
}

.panel-container.show-detail .task-detail-panel {
    transform: translateX(0%);
}

/* Task list layout */
.bw-task-list {
    display: flex;
    flex-direction: column;
    color: #ddd;
    font-size: 14px;
    padding: 0px 15px;
}

/* Group headers */
.task-list-header {
    font-weight: bold;
    font-size: 12px;
    color: #aaa;
    padding: 20px 0px 8px 0px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #383838;
}

/* Each row in the task list */
.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #383838;
}

    .task-row:hover {
        background-color: #0c0c0c;
    }

    .task-row.disabled {
        pointer-events: none;
        opacity: 0.5;
        cursor: default;
    }
/* Left icon */
.task-icon {
    margin-right: 8px;
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Label text */
.task-heading {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge display */
.task-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    margin-left: 10px;
}
/* Chevron icon */
.task-chevron {
    margin-left: 5px;
    margin-right: 4px;
    color: #fff;
    font-size: 14px;
    vertical-align: middle;
    flex-shrink: 0;
}


.bw-content-editable .editor {
    padding: 5px;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    border: 1px solid #666666;
    border-radius: 6px;
    color: #eee;
    background-color: #222;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 1rem;
    line-height: 1.2rem;
    gap:0;

}

    .bw-content-editable .editor.dragover {
        border-color: #3b82f6;
        background: #2a2a2a;
    }
/* Anchor overlay & icon to the editor box */
.bw-content-editable .editor {
    position: relative;
}
/* allow the editor to scroll instead of forcing the parent to grow */
.bw-content-editable {
    min-height: 0;
}
    /* if the host is in a flex parent */
    .bw-content-editable .editor {
        min-height: 0;
    }
    /* ensure scroll works in flex layouts */
/* real icon overlaid top-right of the host */
    .bw-content-editable .ce-canned-icon {
        position: absolute;
        top: 8px;
        right: 8px;
        cursor: pointer;
        color: #666;
        z-index: 3;
        font-size: 16px;
    }

/* Overlay panel INSIDE the editor; anchored at the bottom */
    .bw-content-editable .ce-canned-wrap {
        position: absolute;
        left: 1px;
        right: 1px;
        bottom: 1px;
        max-height: 100%;
        background: #121212;
        color: #111;
        /* border: 1px solid #ddd; */
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        /* box-shadow: 0 6px 20px rgba(0,0,0,.2); */
        overflow-y: auto;
        z-index: 4;
    }
/* List styles */
.bw-content-editable .ce-canned-list {
    list-style: none;
    margin: 0;
    padding: 3px 0;
}

.bw-content-editable .ce-canned-item {
    padding: 6px 5px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.0;
    color: #fff;
}

    .bw-content-editable .ce-canned-item:hover {
        background: #444;
    }
    .bw-content-editable .ce-canned-item.highlight {
        background: #444;
    }

/* Loading/empty note */
.bw-content-editable .ce-empty-note {
    padding: 10px 12px;
    font-size: 13px;
    color: #666;
}


bw-message-box {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, sans-serif;
}

    /* The dialog container */
    bw-message-box .bw-message-box {
        background: #2b2b2b;
        color: #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        width: 100%;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Header */
    bw-message-box .header {
        background-color: #1f3b70;
        color: white;
        padding: 10px 15px;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        /* Close icon */
        bw-message-box .header .close-btn {
            cursor: pointer;
            color: white;
            opacity: 0.8;
        }

            bw-message-box .header .close-btn:hover {
                opacity: 1;
            }

    /* Body */
    bw-message-box .body {
        display: flex;
        padding: 15px;
        gap: 10px;
        align-items: flex-start;
    }

        bw-message-box .body .icon {
            font-size: 34px;
            flex-shrink: 0;
            color: #f0c040;
            margin-top: 3px;
        }

        bw-message-box .body .message {
            flex: 1;
            font-size: 14px;
            color: #e0e0e0;
            padding-left: 10px;
            line-height: 20px;
            margin-bottom: 20px;
        }

    /* Footer with buttons */
    bw-message-box .footer {
        display: flex;
        justify-content: flex-end;
        padding: 10px 15px;
        gap: 10px;
    }

        /* Buttons */
        bw-message-box .footer .btn {
            padding: 6px 14px;
            font-size: 14px;
            background: transparent;
            color: #ffffff;
            border: 1px solid #555;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
        }

            bw-message-box .footer .btn:hover {
                background: #3a3a3a;
                border-color: #888;
            }


.bw-select-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #383838;
    flex-shrink: 0;
}

.list-title {
    color: #58B5D7;
}

.list-close {
    cursor: pointer;
    font-size: 18px;
    color: #616161;
}

    .list-close:hover {
        color: #fff;
    }

.list-scroll {
    position: relative;
    overflow: hidden; /* required for perfect-scrollbar */
    flex: 1;
}

.list-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 8px;
    cursor: pointer;
}

    .list-row:hover {
        background-color: #0c0c0c;
    }

.list-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-size: 24px;
}

.list-row.single-line {
    align-items: center;
}

    .list-row.single-line .list-icon {
        font-size: 1rem;
    }

.list-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.list-line1 {
    font-size: 1rem;
    font-weight: 500;
}

.list-line2 {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 2px;
}

.list-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #383838;
    position: relative;
}

.list-clear {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #999;
}

bw-ticket-create {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 20px;
}

    bw-ticket-create .wrapper {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 10px;
    }

    bw-ticket-create bw-toolbar {
        margin-bottom: 10px;
    }

    bw-ticket-create .create-form {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
        gap: 10px; /* reset any default spacing */
    }

        bw-ticket-create .create-form > div {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 10px;
        }

        /* Label styling */
        bw-ticket-create .create-form p {
            margin: 0;
            font-weight: 600;
            font-size: 0.9rem;
        }

    /* Subject input */
    bw-ticket-create .subject-input {
        padding: 4px 6px;
        font-size: 1rem;
        border-radius: 4px;
        border: 1px solid #666666;
    }

    bw-ticket-create .description-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    /* Description expands */
    bw-ticket-create .description {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
    }

    /* Notes fixed height */
    bw-ticket-create .notes {
        height: 100px;
        overflow: auto;
    }

    /* Attachments fixed size */
    bw-ticket-create ticket-attachments {
        flex: 0 0 auto;
        overflow: hidden;
    }

bw-ticket {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.bw-ticket-two-column {
    display: flex;
    width: 100%;
    height: 100%;
}

.bw-ticket-column:first-child {
    flex: 1 1 auto; /* Grow to fill available space */
    min-width: 0; /* Prevent overflow */
    display: flex;
    flex-direction: column;
}

.bw-ticket-column:last-child {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #383838;
    width: 400px;
}


bw-ticket-tasks {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}


bw-ticket-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

    bw-ticket-editor .wrapper {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
        padding: 20px;
        box-sizing: border-box;
    }

    bw-ticket-editor .editor-section {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        height: 350px;
        overflow: hidden;
    }

    bw-ticket-editor .events {
        flex: 1;
        overflow: hidden; /* required by Perfect Scrollbar */
        position: relative;
        display: flex;
        flex-direction: column;
    }

    bw-ticket-editor bw-toolbar {
        margin-bottom: 10px;
    }


    /* When closed, hide the editor view */
    bw-ticket-editor .editor-view.closed {
        height: 0 !important;
        padding: 0;
        overflow: hidden;
    }

    /* Normal editor-view setup */
    bw-ticket-editor .editor {
        display: flex;
        flex-direction: column;
        height: 200px; /* default - dynamically resized in JS */
        overflow: hidden;
        gap: 10px;
        box-sizing: border-box;
    }

        /* Top input row - reply to */
        bw-ticket-editor .editor > bw-ticket-reply-to {
            flex: 0 0 auto;
            border-radius: 6px;
        }
        /* Top input row - reply to */
        bw-ticket-editor .editor > bw-canned-responses {
            flex: 0 0 auto;
            border-radius: 6px;
        }

        /* Middle content-editable area */
        bw-ticket-editor .editor > bw-content-editable {
            flex: 1 1 auto;
            min-height: 0;
            overflow: auto;
            border-radius: 6px;
        }

        /* Bottom attachments area */
        bw-ticket-editor .editor > ticket-attachments {
            flex: 0 0 auto;
            overflow: hidden;
        }


    bw-ticket-editor .editor {
        flex: 1;
        overflow: auto;
    }

    bw-ticket-editor .splitter {
        height: 3px;
        background: #383838;
        cursor: row-resize;
        flex-shrink: 0;
        margin: 10px 0;
        transition: background 0.2s;
    }

    bw-ticket-editor .events {
        flex: 1;
        overflow: auto;
        display: flex;
        flex-direction: column;
    }

    bw-ticket-editor .banner {
        height: 40px;
        background: #655b2d;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        box-sizing: border-box;
        z-index: 4;
        border-radius: 6px;
        line-height: 40px;
        text-align: left;
        text-transform: none;
    }
bw-ticket-escalate {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 20px;
}

    bw-ticket-escalate .wrapper {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 10px;
    }

    bw-ticket-escalate bw-toolbar {
        margin-bottom: 10px;
    }

    bw-ticket-escalate .create-form {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: hidden;
        gap: 10px; /* reset any default spacing */
    }

        bw-ticket-escalate .create-form > div {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 10px;
        }

        /* Label styling */
        bw-ticket-escalate .create-form p {
            margin: 0;
            font-weight: 600;
            font-size: 0.9rem;
        }

    bw-ticket-escalate input[type="text"] {
        padding: 4px 6px;
        font-size: 1rem;
        border-radius: 4px;
        border: 1px solid #666666;
    }

    bw-ticket-escalate .description-wrapper {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    /* Description expands */
    bw-ticket-escalate .description {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
    }

    /* Notes fixed height */
    bw-ticket-escalate .notes {
        height: 100px;
        overflow: auto;
    }

    /* Attachments fixed size */
    bw-ticket-escalate ticket-attachments {
        flex: 0 0 auto;
        overflow: hidden;
        margin-bottom: 10px;
    }


    bw-ticket-escalate .site-contact {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        grid-template-rows: auto auto; /* Two rows */
        gap: 10px; /* Optional spacing between cells */
    }


bw-ticket-event {
    display: block;
    border: 1px solid #383838;
    border-radius: 6px;
    padding: 6px;
    margin-bottom: 0.5rem;
}

    bw-ticket-event .header {
        display: flex;
        align-items: flex-start;
    }

    bw-ticket-event .icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 1rem;
        flex-shrink: 0;
    }

        bw-ticket-event .icon i {
            font-size: 22px;
            color: #fff;
            font-weight: 100;
        }

    bw-ticket-event .details {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1.2;
        margin-top: 2px;
    }



    bw-ticket-event .action {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    bw-ticket-event .author {
        font-size: 1rem;
        font-weight: bold;
        color: #fff;
    }

    bw-ticket-event .timestamp {
        font-size: 0.85rem;
        color: #ddd;
        margin-top: 0.3rem;
    }

    bw-ticket-event .viewer {
        padding-left: 3.5rem;
    }

    bw-ticket-event .attachments {
        padding: 0.5rem 0rem;
        margin-left: 3.5rem;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-wrap: break-word;
        box-sizing: border-box;
        border-top: 1px solid #383838;
        margin-top: 0.5rem;
    }

    bw-ticket-event .attachment {
        display: inline-block;
        padding: .35em .65em;
        white-space: nowrap;
        border-radius: .25rem;
        background-color: #313131;
        border: 1px solid #383838;
        margin-right: 5px;
    }

        bw-ticket-event .attachment span {
            color: #fff;
            font-size: 0.75rem;
            padding-left: 5px;
        }

        bw-ticket-event .attachment i {
            color: #fff;
        }



bw-ticket-event-body {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    box-sizing: border-box;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

bw-ticket-event.hidden {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


bw-ticket-events {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px
}

    bw-ticket-events .banner {
        position: absolute;
        top: 0px;
        left: 0;
        right: 0;
        height: 40px;
        background: #655b2d;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        box-sizing: border-box;
        z-index: 4;
        border-radius: 6px;
        line-height: 40px;
        text-align: left;
        text-transform: none;
    }

    bw-ticket-events .editor-view {
        position: absolute;
        top: 55px;
        left: 0;
        right: 0;
        height: 300px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        overflow: hidden;
        padding-bottom: 10px;
        gap: 10px;
    }


        bw-ticket-events .editor-view.closed {
            height: 0;
            padding: 0;
            overflow: hidden;
        }

        bw-ticket-events .editor-view > input,
        bw-ticket-events .editor-view > button {
            flex: 0 0 auto;
            margin-bottom: 6px;
            border-radius: 6px;
        }


        bw-ticket-events .editor-view > ticket-attachments {
            flex: 0 0 auto;
            margin-top: 6px;
            overflow: hidden;
        }

        bw-ticket-events .editor-view > bw-content-editable {
            flex: 1 1 auto;
            min-height: 0;
            overflow: auto;
        }

    bw-ticket-events .events-view {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 410px;
        overflow: hidden;
        box-sizing: border-box;
    }

    bw-ticket-events .editor-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
        margin-top: 8px;
    }

        bw-ticket-events .editor-buttons button {
            min-width: 80px;
            background-color: #1e1e1e;
            border: 1px solid #383838;
            color: #fff;
            padding: 8px;
            border-radius: 6px;
            font-size: 12px;
        }

            bw-ticket-events .editor-buttons button:hover {
                background-color: #3a3a3a;
            }

    bw-ticket-events input {
        border-radius: 6px;
    }


    bw-ticket-events .editor-splitter {
        position: absolute;
        top: 395px;
        left: 0;
        right: 0;
        height: 3px;
        cursor: row-resize;
        background: #2f2d2d;
        z-index: 1;
    }

    bw-ticket-events .toolbar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: #2a2a2a;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        box-sizing: border-box;
        z-index: 3;
        border-radius: 6px;
    }

    bw-ticket-events .toolbar-button {
        background-color: transparent;
        border: none;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.2s, color 0.2s;
        color: #c7c7c7;
    }

        bw-ticket-events .toolbar-button:hover {
            background-color: #444;
            color: #fff;
        }

        bw-ticket-events .toolbar-button i {
            font-size: 14px;
            line-height: 1;
        }

        bw-ticket-events .toolbar-button span {
            line-height: 1;
        }

    bw-ticket-events .toolbar-left {
        display: flex;
        gap: 0px;
        align-items: center;
    }

    bw-ticket-events .toolbar-canned {
        background-color: #2a2a2a;
        color: #c7c7c7;
        border: 1px solid #444;
        border-radius: 4px;
        font-size: 12px;
        padding: 6px 10px;
        height: 28px;
        line-height: 1;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        width: 300px;
    }

        bw-ticket-events .toolbar-canned:focus {
            outline: none;
            border-color: #666;
        }

    bw-ticket-events .toolbar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: #2a2a2a;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        box-sizing: border-box;
        z-index: 3;
    }


    bw-ticket-events .editor-view.closed {
        height: 0 !important;
        padding: 0;
        overflow: hidden;
    }

    bw-ticket-events .toolbar-button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }




.bw-ticket-reply-to .input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.bw-ticket-reply-to .static-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 13px;
    pointer-events: none;
    z-index: 4;
}

.bw-ticket-reply-to input {
    width: 100%;
    padding: 8px 30px 8px 80px; /* enough space for label */
    font-size: 13px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    color: #666;
    border-radius: 6px;
}

.bw-ticket-reply-to .icon-unlock {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 3; /* Ensure it's above input */
}

.bw-ticket-reply-to .empty-note {
    padding: 8px 10px;
    font-size: 13px;
    color: #777;
}


.bw-canned-responses .input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.bw-canned-responses .static-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 13px;
    pointer-events: none;
    z-index: 4;
}
.bw-canned-responses .select {
    width: 100%;
    padding: 8px 30px 8px 80px;
    font-size: 13px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    color: #666;
    border-radius: 6px;
    height: 34px;
    background-color: transparent;
}
/* General toolbar container style */
bw-toolbar {
    height: 40px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 3;
    border-radius: 6px;
}

    /* Buttons inside the toolbar */
    bw-toolbar .toolbar-button {
        background-color: transparent;
        border: none;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.2s, color 0.2s;
        color: #c7c7c7;
    }

        bw-toolbar .toolbar-button:hover {
            background-color: #444;
            color: #fff;
        }

        bw-toolbar .toolbar-button i {
            font-size: 14px;
            line-height: 1;
        }

        bw-toolbar .toolbar-button span {
            line-height: 1;
        }

    /* Left section inside the toolbar for grouping */
    bw-toolbar .toolbar-left {
        display: flex;
        gap: 0px;
        align-items: center;
    }

    /* Optional canned responses dropdown */
    bw-toolbar .toolbar-canned {
        background-color: #2a2a2a;
        color: #c7c7c7;
        border: 1px solid #444;
        border-radius: 4px;
        font-size: 12px;
        padding: 6px 10px;
        height: 28px;
        line-height: 1;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        width: 300px;
    }

        bw-toolbar .toolbar-canned:focus {
            outline: none;
            border-color: #666;
        }



/* sc.attachments.css */
ticket-attachments .attachments-block {
    border: 1px dashed #383838;
    border-radius: 6px;
    padding: 0rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
    position: relative;
}

    ticket-attachments .attachments-block:hover {
        border-color: #999;
    }

ticket-attachments .attachment-input {
    display: none;
}




ticket-attachments .attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 1rem 0;
    list-style: none;
}

ticket-attachments .attachment-item {
    display: inline-flex;
    align-items: center;
    background-color: #f3f3f3;
    color: #333;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: -0.25rem;
    max-width: 100%;
    line-height: 1.2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

ticket-attachments .file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

ticket-attachments .file-size {
    font-size: 0.75rem;
    color: #666;
    margin-left: 4px;
}

ticket-attachments .remove-icon {
    display: inline;
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    margin-left: 8px;
    transition: color 0.2s ease;
}

    ticket-attachments .remove-icon:hover {
        color: #d00;
    }





bw-global-search {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: visible; /* allow dropdown to render outside */
    background-color: #1a1a1a;
    height: 28px;
    color: white;
    font-size: 0.85rem;
    transition: border-color 0.2s;
    margin-left: 10px;
    position: relative; /* OK now because it's not messing with flex internals */
}

    bw-global-search .global-search-wrapper {
        display: flex;
        align-items: center;
        position: relative; /* dropdown anchors to this */
        width: 100%;
    }

    bw-global-search:focus-within {
        border-color: rgba(255,255,255,0.4);
    }

    bw-global-search .type-selector {
        display: flex;
        align-items: center;
        padding: 0 6px;
        gap: 6px;
        user-select: none;
        cursor: default;
        background-color: #1e1e1e;
        height: 100%;
    }

    bw-global-search .type-label {
        width: 100px;
        color: #bbb;
    }

    bw-global-search .type-arrows {
        display: flex;
        flex-direction: column;
        justify-content: center;
        line-height: 1;
    }

    bw-global-search .arrow {
        padding: 1px 2px;
        line-height: 1;
        cursor: pointer;
        color: #aaa;
        font-size: 0.65rem;
        height: 10px;
        display: block;
        text-align: center;
    }

        bw-global-search .arrow:hover {
            color: #fff;
        }

    bw-global-search .search-input {
        border: none;
        background: transparent;
        color: white;
        flex: 1;
        padding: 0 8px;
        outline: none;
    }

    bw-global-search .search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        color: #888;
        background-color: transparent;
        cursor: default;
        font-size: 0.9rem;
    }

        bw-global-search .search-icon:hover {
            color: #fff;
        }


    bw-global-search .result-dropdown {
        position: absolute;
        top: 23px;
        left: 0;
        background: #2a2a2a;
        color: white;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 0 0 4px 4px;
        width: 100%;
        z-index: 1000;
        list-style: none;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        max-height: 350px;
    }



        bw-global-search .result-dropdown li {
            padding: 8px 12px;
            cursor: pointer;
            display: flex;
            gap: 5px;
        }

            bw-global-search .result-dropdown li .col {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            bw-global-search .result-dropdown li:hover {
                background: #444;
                color: #fff;
            }




            /* example styles; adjust to your theme */
.bw-dialog-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.bw-dialog {
    background: #2b2b2b;
    color: #fff;
    border-radius: 10px;
    min-width: 280px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
    .bw-dialog .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        font-weight: 700;
        background: #1f3b70;
    }
.bw-dialog .body { padding: 16px; max-height: 70vh; overflow:auto; }
.bw-dialog .footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
    gap: 10px;
}

    /* Buttons */
    .bw-dialog .footer .btn {
        padding: 6px 14px;
        font-size: 14px;
        background: transparent;
        color: #ffffff;
        border: 1px solid #555;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.2s, border-color 0.2s;
    }

        .bw-dialog .footer .btn:hover {
            background: #3a3a3a;
            border-color: #888;
        }
