/* /Components/ChatFeed/FlowSidebar.razor.rz.scp.css */
.template-sidebar[b-buftz8vfb3] {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--surface, #ffffff);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.template-sidebar.open[b-buftz8vfb3] {
    right: 0;
}

.sidebar-header[b-buftz8vfb3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface, #ffffff);
}

.sidebar-header h3[b-buftz8vfb3] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn[b-buftz8vfb3] {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover[b-buftz8vfb3] {
    background-color: var(--background, #f8fafc);
    color: var(--text-primary);
}

.sidebar-content[b-buftz8vfb3] {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--background, #f8fafc);
}

.loading-state[b-buftz8vfb3], .empty-state[b-buftz8vfb3] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.empty-state p[b-buftz8vfb3] {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.template-card[b-buftz8vfb3] {
    background-color: var(--surface, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-card:hover[b-buftz8vfb3] {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.template-card.selected[b-buftz8vfb3] {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 10, 102, 194), 0.2);
    background-color: rgba(var(--primary-rgb, 10, 102, 194), 0.03);
}

.template-card-header[b-buftz8vfb3] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.template-name[b-buftz8vfb3] {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    word-break: break-all;
}

.template-lang.badge[b-buftz8vfb3] {
    background-color: var(--background, #f8fafc);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.template-preview[b-buftz8vfb3] {
    background-color: #EFEAE2; /* WhatsApp chat background feel */
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #111b21;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.template-header-text[b-buftz8vfb3] {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.template-header-media[b-buftz8vfb3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background-color: rgba(255,255,255,0.7);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    color: #54656f;
    font-weight: 500;
}

.template-body-text[b-buftz8vfb3] {
    white-space: pre-wrap;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.template-footer-text[b-buftz8vfb3] {
    font-size: 0.75rem;
    color: #667781;
    margin-top: 0.5rem;
}

.template-buttons[b-buftz8vfb3] {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.5rem;
}

.template-btn-preview[b-buftz8vfb3] {
    width: 100%;
    background-color: transparent;
    color: #00a884;
    border: none;
    padding: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.sidebar-footer[b-buftz8vfb3] {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface, #ffffff);
}
/* /Components/ChatFeed/MessageBubble.razor.rz.scp.css */
.template-body[b-faf9awfnsj], .flow-body[b-faf9awfnsj] {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.3;
}

.whatsapp-bubble-divider[b-faf9awfnsj] {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 6px -12px;
}

.bubble-inbound .whatsapp-bubble-divider[b-faf9awfnsj] {
    background-color: rgba(0, 0, 0, 0.05);
}

.flow-cta-btn[b-faf9awfnsj] {
    text-align: center;
    color: #00a884;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 2px 0;
    cursor: pointer;
}

.bubble-inbound .flow-cta-btn[b-faf9awfnsj] {
    color: #02946c;
}
/* /Components/ChatFeed/TemplateSidebar.razor.rz.scp.css */
.template-sidebar[b-l9jyazo6la] {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--surface, #ffffff);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.template-sidebar.open[b-l9jyazo6la] {
    right: 0;
}

.sidebar-header[b-l9jyazo6la] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface, #ffffff);
}

.sidebar-header h3[b-l9jyazo6la] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn[b-l9jyazo6la] {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover[b-l9jyazo6la] {
    background-color: var(--background, #f8fafc);
    color: var(--text-primary);
}

.sidebar-content[b-l9jyazo6la] {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--background, #f8fafc);
}

.loading-state[b-l9jyazo6la], .empty-state[b-l9jyazo6la] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.empty-state p[b-l9jyazo6la] {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.template-card[b-l9jyazo6la] {
    background-color: var(--surface, #ffffff);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-card:hover[b-l9jyazo6la] {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.template-card.selected[b-l9jyazo6la] {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 10, 102, 194), 0.2);
    background-color: rgba(var(--primary-rgb, 10, 102, 194), 0.03);
}

.template-card-header[b-l9jyazo6la] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.template-name[b-l9jyazo6la] {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    word-break: break-all;
}

.template-lang.badge[b-l9jyazo6la] {
    background-color: var(--background, #f8fafc);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.template-preview[b-l9jyazo6la] {
    background-color: #EFEAE2; /* WhatsApp chat background feel */
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #111b21;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.template-header-text[b-l9jyazo6la] {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.template-header-media[b-l9jyazo6la] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background-color: rgba(255,255,255,0.7);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    color: #54656f;
    font-weight: 500;
}

.template-body-text[b-l9jyazo6la] {
    white-space: pre-wrap;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.template-footer-text[b-l9jyazo6la] {
    font-size: 0.75rem;
    color: #667781;
    margin-top: 0.5rem;
}

.template-buttons[b-l9jyazo6la] {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 0.5rem;
}

.template-btn-preview[b-l9jyazo6la] {
    width: 100%;
    background-color: transparent;
    color: #00a884;
    border: none;
    padding: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.sidebar-footer[b-l9jyazo6la] {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface, #ffffff);
}
/* /Layout/MainLayout.razor.rz.scp.css */
.crm-app-container[b-xcl1ysz228] {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #f8fafc;
}

.crm-main-wrapper[b-xcl1ysz228] {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* NO SCROLLING HERE */
    position: relative;
}

.crm-topbar[b-xcl1ysz228] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.tracking-wider[b-xcl1ysz228] {
    letter-spacing: 0.05em;
}

.crm-main-content[b-xcl1ysz228] {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto; /* SCROLL HAPPENS HERE */
    width: 100%;
}

.crm-footer[b-xcl1ysz228] {
    flex-shrink: 0;
    border-top: 1px dashed #e9ecef;
    background-color: #f8fafc;
    font-size: 0.75rem; /* Menor e mais discreto */
}
/* /Layout/NavMenu.razor.rz.scp.css */
.nav-sidebar[b-r2cqplh0iv] {
    width: 250px;
    height: 100vh;
    background-color: #1e1e2d;
    color: #a2a3b7;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    overflow-x: hidden;
}

.nav-sidebar.collapsed[b-r2cqplh0iv] {
    width: 70px;
}

.nav-sidebar-header[b-r2cqplh0iv] {
    height: 60px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a27;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-wrapper[b-r2cqplh0iv] {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.brand-icon[b-r2cqplh0iv] {
    font-size: 1.5rem;
    color: #3699ff;
    flex-shrink: 0;
}

.brand-title[b-r2cqplh0iv] {
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s;
}

.collapsed .brand-title[b-r2cqplh0iv] {
    opacity: 0;
    display: none;
}

.btn-toggle-menu[b-r2cqplh0iv] {
    background: none;
    border: none;
    color: #6c7293;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-menu:hover[b-r2cqplh0iv] {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-sidebar-content[b-r2cqplh0iv] {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.nav-section[b-r2cqplh0iv] {
    margin-bottom: 5px;
}

.nav-section-header[b-r2cqplh0iv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    transition: background-color 0.2s;
}
.nav-section-header:hover[b-r2cqplh0iv] {
    background-color: rgba(255, 255, 255, 0.02);
}

.nav-section-title[b-r2cqplh0iv] {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #565674;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    white-space: nowrap;
}

.section-toggle-icon[b-r2cqplh0iv] {
    color: #565674;
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.nav-divider[b-r2cqplh0iv] {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 10px 15px;
}

.nav-item[b-r2cqplh0iv] {
    margin-bottom: 2px;
}

.nav-link[b-r2cqplh0iv] {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px 20px 8px 30px; /* Indent sub-items slightly */
    color: #a2a3b7;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
}
/* Main top items have less padding-left */
.mb-3 .nav-link[b-r2cqplh0iv], .mt-auto .nav-link[b-r2cqplh0iv] {
    padding-left: 20px;
}

.nav-link span[b-r2cqplh0iv] {
    color: #a2a3b7;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-block;
}

.nav-link i[b-r2cqplh0iv] {
    font-size: 1.15rem;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 10px;
    flex-shrink: 0;
}

.collapsed .nav-link[b-r2cqplh0iv] {
    padding: 10px 15px !important;
    justify-content: center;
}

.collapsed .nav-link i[b-r2cqplh0iv] {
    margin-right: 0;
    width: auto;
    justify-content: center;
}

.nav-link:hover[b-r2cqplh0iv] {
    background-color: #1b1b29;
    color: #ffffff;
}

.nav-link:hover span[b-r2cqplh0iv] {
    color: #ffffff;
}

.nav-link.active[b-r2cqplh0iv] {
    background-color: rgba(16, 185, 129, 0.1);
    color: #ffffff;
    border-left-color: #10b981;
}

.nav-link.active span[b-r2cqplh0iv] {
    color: #ffffff;
    font-weight: 600;
}

/* Colors for specific icons */
.text-warning[b-r2cqplh0iv] { color: #ffb822 !important; }
.text-primary[b-r2cqplh0iv] { color: #3699ff !important; }
.text-info[b-r2cqplh0iv] { color: #8950fc !important; }
.text-success[b-r2cqplh0iv] { color: #1bc5bd !important; }
.text-emerald[b-r2cqplh0iv] { color: #0bb783 !important; }
.text-purple[b-r2cqplh0iv] { color: #8950fc !important; }
.text-orange[b-r2cqplh0iv] { color: #ffa800 !important; }
.text-yellow[b-r2cqplh0iv] { color: #f6c000 !important; }
.text-indigo[b-r2cqplh0iv] { color: #6610f2 !important; }
.text-pink[b-r2cqplh0iv] { color: #e83e8c !important; }
.text-teal[b-r2cqplh0iv] { color: #20c997 !important; }
.text-secondary[b-r2cqplh0iv] { color: #e4e6ef !important; }

.debug-link[b-r2cqplh0iv] {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin-top: 5px;
}
/* /Pages/Contacts/Contacts.razor.rz.scp.css */
.page-container[b-0cjo17iebx] {
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

.page-title[b-0cjo17iebx] {
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.search-bar[b-0cjo17iebx] {
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.search-bar input[b-0cjo17iebx] {
    font-size: 0.95rem;
}

.search-bar input:focus[b-0cjo17iebx] {
    box-shadow: none;
    outline: none;
}

.custom-table th[b-0cjo17iebx] {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e9ecef;
}

.custom-table td[b-0cjo17iebx] {
    padding: 0.6rem 0.5rem;
    vertical-align: middle;
}

.avatar-circle[b-0cjo17iebx] {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    overflow: hidden;
}

.avatar-xl[b-0cjo17iebx] {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.avatar-img[b-0cjo17iebx] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cores suaves para Avatars */
.bg-primary-soft[b-0cjo17iebx] { background-color: rgba(54, 153, 255, 0.15); }
.text-primary[b-0cjo17iebx] { color: #3699ff !important; }

.bg-success-soft[b-0cjo17iebx] { background-color: rgba(27, 197, 189, 0.15); }
.text-success[b-0cjo17iebx] { color: #1bc5bd !important; }

.bg-warning-soft[b-0cjo17iebx] { background-color: rgba(255, 184, 34, 0.15); }
.text-warning[b-0cjo17iebx] { color: #ffb822 !important; }

.bg-info-soft[b-0cjo17iebx] { background-color: rgba(137, 80, 252, 0.15); }
.text-info[b-0cjo17iebx] { color: #8950fc !important; }

.bg-danger-soft[b-0cjo17iebx] { background-color: rgba(246, 78, 96, 0.15); }
.text-danger[b-0cjo17iebx] { color: #f64e60 !important; }

.bg-purple-soft[b-0cjo17iebx] { background-color: rgba(111, 66, 193, 0.15); }
.text-purple[b-0cjo17iebx] { color: #6f42c1 !important; }

/* Offcanvas customizações */
.offcanvas[b-0cjo17iebx] {
    width: 450px !important;
    border-left: none;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
}

.btn-icon[b-0cjo17iebx] {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-icon:hover[b-0cjo17iebx] {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.custom-table thead th[b-0cjo17iebx] { 
    position: sticky; 
    top: 0; 
    background-color: #f8f9fa; 
    z-index: 10; 
    border-bottom: 2px solid #e9ecef; 
}
