/* /Layout/ChatLayout.razor.rz.scp.css */
/* Layout styles are defined in ChatLayout.razor <style> block to avoid CSS isolation scoping issues. */
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-9ac10ijh4c] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-9ac10ijh4c] {
    flex: 1;
}

.sidebar[b-9ac10ijh4c] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-9ac10ijh4c] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-9ac10ijh4c]  a, .top-row[b-9ac10ijh4c]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-9ac10ijh4c]  a:hover, .top-row[b-9ac10ijh4c]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-9ac10ijh4c]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-9ac10ijh4c] {
        justify-content: space-between;
    }

    .top-row[b-9ac10ijh4c]  a, .top-row[b-9ac10ijh4c]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-9ac10ijh4c] {
        flex-direction: row;
    }

    .sidebar[b-9ac10ijh4c] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-9ac10ijh4c] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-9ac10ijh4c]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-9ac10ijh4c], article[b-9ac10ijh4c] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-o3p8fk2byv] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-o3p8fk2byv] {
    height: 2.5rem;
    background-color: rgba(0,0,0,0.35);
}

.navbar-brand[b-o3p8fk2byv] {
    font-size: 1rem;
    color: #fff !important;
}

.bi[b-o3p8fk2byv] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-o3p8fk2byv] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-o3p8fk2byv] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-o3p8fk2byv] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-chat-dots-fill-nav-menu[b-o3p8fk2byv] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M5 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3Cpath d='m2.165 15.803.02-.004c1.83-.363 2.948-.842 3.468-1.105A9.06 9.06 0 0 0 8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6a10.437 10.437 0 0 1-.524 2.318l-.003.011a10.722 10.722 0 0 1-.244.637c-.079.186.074.394.273.362a21.673 21.673 0 0 0 .693-.125z'/%3E%3C/svg%3E");
}

.bi-people-fill-nav-menu[b-o3p8fk2byv] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/%3E%3Cpath fill-rule='evenodd' d='M5.216 14A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216z'/%3E%3Cpath d='M4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E");
}

.bi-folder-fill-nav-menu[b-o3p8fk2byv] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.828 3h3.982a2 2 0 0 1 1.992 2.181l-.637 7A2 2 0 0 1 13.174 14H2.825a2 2 0 0 1-1.991-1.819l-.637-7a1.99 1.99 0 0 1 .342-1.31L.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3zm-8.322.12C1.72 3.042 1.95 3 2.19 3h5.396l-.707-.707A1 1 0 0 0 6.172 2H2.5a1 1 0 0 0-1 1v.12z'/%3E%3C/svg%3E");
}

.nav-item[b-o3p8fk2byv] {
    font-size: 0.875rem;
    padding-bottom: 0.2rem;
}

    .nav-item:first-of-type[b-o3p8fk2byv] {
        padding-top: 0.5rem;
    }

    .nav-item:last-of-type[b-o3p8fk2byv] {
        padding-bottom: 0.5rem;
    }

    .nav-item[b-o3p8fk2byv]  a {
        color: #e8e8e8;
        border-radius: 4px;
        height: 2.25rem;
        display: flex;
        align-items: center;
        line-height: 2.25rem;
        text-decoration: none;
    }

.nav-item[b-o3p8fk2byv]  a.active {
    background-color: rgba(255,255,255,0.3);
    color: #fff;
}

.nav-item[b-o3p8fk2byv]  a:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
}

@media (min-width: 641px) {
    .navbar-toggler[b-o3p8fk2byv] {
        display: none;
    }

    .collapse[b-o3p8fk2byv] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-o3p8fk2byv] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 2.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Chat.razor.rz.scp.css */
/* ── Outer container ─────────────────────────────────────── */
.chat-container[b-5vh30yrjr4] {
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-size: 0.875rem;
}

/* ── Left panel ──────────────────────────────────────────── */
.conv-panel[b-5vh30yrjr4] {
    width: 320px;
    min-width: 280px;
    background: #1e293b;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #334155;
    overflow: hidden;
}

.conv-header[b-5vh30yrjr4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid #334155;
}

.conv-title[b-5vh30yrjr4] {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.conv-count[b-5vh30yrjr4] {
    background: #3b82f6;
    color: white;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.75rem;
}

.conv-search[b-5vh30yrjr4] {
    padding: 0.5rem;
}

.conv-search .form-control[b-5vh30yrjr4] {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
    font-size: 0.8rem;
}

.conv-search .form-control[b-5vh30yrjr4]::placeholder { color: #94a3b8; }
.conv-search .form-control:focus[b-5vh30yrjr4] {
    background: #334155;
    border-color: #3b82f6;
    color: #f1f5f9;
    box-shadow: none;
}

.conv-loading[b-5vh30yrjr4], .conv-empty[b-5vh30yrjr4] {
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.conv-list[b-5vh30yrjr4] {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #475569 transparent;
}

.conv-item[b-5vh30yrjr4] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #1e293b;
    transition: background 0.12s;
}

.conv-item:hover[b-5vh30yrjr4] { background: #273548; }
.conv-item.selected[b-5vh30yrjr4] { background: #1d4ed8; }

.conv-avatar[b-5vh30yrjr4] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.conv-item.selected .conv-avatar[b-5vh30yrjr4] { background: #60a5fa; }

.conv-item-body[b-5vh30yrjr4] { flex: 1; min-width: 0; }

.conv-item-top[b-5vh30yrjr4], .conv-item-bottom[b-5vh30yrjr4] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.25rem;
}

.conv-name[b-5vh30yrjr4] {
    font-weight: 500;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time[b-5vh30yrjr4] { font-size: 0.72rem; color: #94a3b8; flex-shrink: 0; }

.conv-preview[b-5vh30yrjr4] {
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
    flex: 1;
}

.status-dot[b-5vh30yrjr4] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-botactive[b-5vh30yrjr4]     { background: #3b82f6; }
.status-waitingforhuman[b-5vh30yrjr4] { background: #f59e0b; }
.status-active[b-5vh30yrjr4]        { background: #22c55e; }
.status-resolved[b-5vh30yrjr4]      { background: #64748b; }
.status-archived[b-5vh30yrjr4]      { background: #374151; }

/* ── Right panel ─────────────────────────────────────────── */
.msg-panel[b-5vh30yrjr4] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}

.msg-empty[b-5vh30yrjr4] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 0.5rem;
}

.msg-empty-icon[b-5vh30yrjr4] { font-size: 3rem; }

/* Message header */
.msg-header[b-5vh30yrjr4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    gap: 1rem;
}

.msg-header-info[b-5vh30yrjr4] { display: flex; align-items: center; gap: 0.75rem; }

.msg-avatar[b-5vh30yrjr4] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.msg-contact-name[b-5vh30yrjr4] { font-weight: 600; color: #1e293b; }
.msg-contact-phone[b-5vh30yrjr4] { font-size: 0.78rem; color: #64748b; }
.msg-header-actions[b-5vh30yrjr4] { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }

/* Message body */
.msg-body[b-5vh30yrjr4] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.msg-row[b-5vh30yrjr4] { display: flex; }
.msg-row.inbound[b-5vh30yrjr4]  { justify-content: flex-start; }
.msg-row.outbound[b-5vh30yrjr4] { justify-content: flex-end; }

.msg-bubble[b-5vh30yrjr4] {
    max-width: 70%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    position: relative;
    word-break: break-word;
}

.bubble-in[b-5vh30yrjr4] {
    background: #ffffff;
    color: #1e293b;
    border-bottom-left-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.bubble-out[b-5vh30yrjr4] {
    background: #dcf8c6;
    color: #1e293b;
    border-bottom-right-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.bubble-ai[b-5vh30yrjr4] {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.ai-badge[b-5vh30yrjr4] {
    display: inline-block;
    background: #3b82f6;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    padding: 1px 4px;
    margin-right: 4px;
    vertical-align: middle;
}

.msg-text[b-5vh30yrjr4] { font-size: 0.875rem; line-height: 1.4; }

.msg-meta[b-5vh30yrjr4] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    margin-top: 2px;
    font-size: 0.7rem;
    color: #94a3b8;
}

.msg-sender[b-5vh30yrjr4] { color: #64748b; }

.msg-tick[b-5vh30yrjr4] { font-size: 0.75rem; }
.tick-sent[b-5vh30yrjr4]      { color: #94a3b8; }
.tick-delivered[b-5vh30yrjr4] { color: #94a3b8; }
.tick-read[b-5vh30yrjr4]      { color: #3b82f6; }

/* Input bar */
.msg-input-bar[b-5vh30yrjr4] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.msg-input[b-5vh30yrjr4] {
    flex: 1;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    background: #f8fafc;
}

.msg-input:focus[b-5vh30yrjr4] {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
    background: #fff;
}

.msg-send[b-5vh30yrjr4] {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ── Quick reply template bar ─────────────────────────── */
.quick-reply-bar[b-5vh30yrjr4] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem 0;
    background: #ffffff;
}

.quick-reply-btn[b-5vh30yrjr4] {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 16px;
    padding: 0.25rem 0.85rem;
    font-size: 0.78rem;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.quick-reply-btn:hover[b-5vh30yrjr4] {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
}

/* ── Re-engage (out-of-window) bar ────────────────────── */
.reengage-bar[b-5vh30yrjr4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 1.25rem;
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    font-size: 0.78rem;
}

.reengage-info[b-5vh30yrjr4] {
    color: #92400e;
    flex: 1;
}

.reengage-btn[b-5vh30yrjr4] {
    white-space: nowrap;
    border-radius: 16px;
    font-size: 0.78rem;
}

/* ── Re-engage variable input form ────────────────────── */
.reengage-form[b-5vh30yrjr4] {
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reengage-form-row[b-5vh30yrjr4] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.reengage-label[b-5vh30yrjr4] {
    width: 120px;
    min-width: 120px;
    font-size: 0.78rem;
    color: #92400e;
    padding-top: 0.35rem;
    font-weight: 500;
}

.reengage-input[b-5vh30yrjr4] {
    flex: 1;
    font-size: 0.82rem;
}

.reengage-textarea[b-5vh30yrjr4] {
    flex: 1;
    font-size: 0.82rem;
    resize: vertical;
}

.reengage-form-actions[b-5vh30yrjr4] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.25rem;
}
/* /Pages/Users.razor.rz.scp.css */
.users-page[b-boknibp7p2] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: #f8fafc;
}

.users-toolbar[b-boknibp7p2] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.users-title[b-boknibp7p2] {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
}

.users-loading[b-boknibp7p2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.25rem;
    color: #64748b;
}

.users-table-wrap[b-boknibp7p2] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.users-table th[b-boknibp7p2] {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.users-table td[b-boknibp7p2] {
    font-size: 0.875rem;
    vertical-align: middle;
}

.btn-xs[b-boknibp7p2] {
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
}
