* { box-sizing: border-box; }

:root {
    --wa-green: #008069;
    --wa-green-dark: #075e54;
    --wa-green-light: #d9fdd3;
    --wa-bg-app: #e5ddd5;
    --wa-bg-panel: #f0f2f5;
    --wa-sidebar: #ffffff;
    --wa-border: #e9edef;
    --wa-text: #111b21;
    --wa-text-soft: #667781;
    --wa-chat-bg: #efeae2;
    --wa-received: #ffffff;
    --wa-sent: #d9fdd3;
    --wa-hover: #f5f6f6;
    --wa-active: #f0f2f5;
    --wa-shadow: 0 1px 3px rgba(11, 20, 26, .08);
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background:
        linear-gradient(to bottom, var(--wa-green-dark) 0, var(--wa-green-dark) 125px, #d1d7db 125px, #d1d7db 100%);
    color: var(--wa-text);
}

a { color: inherit; text-decoration: none; }

.topbar {
    height: 64px;
    background: #f0f2f5;
    color: var(--wa-text);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 18px;
    border-bottom: 1px solid var(--wa-border);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 240px;
}

.brand h1 {
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.brand small {
    color: var(--wa-text-soft);
    font-size: 12px;
}

.topbar nav {
    margin-left: auto;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.topbar nav a,
.topbar nav span {
    font-size: 14px;
}

.topbar nav a:hover {
    color: var(--wa-green-dark);
}

.topbar nav .user-chip {
    background: #fff;
    border: 1px solid var(--wa-border);
    border-radius: 999px;
    padding: 8px 12px;
    box-shadow: var(--wa-shadow);
}

.app-shell {
    width: calc(100% - 40px);
    height: calc(100vh - 28px);
    margin: 14px auto;
    max-width: 1600px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(11,20,26,.12);
}

.layout {
    display: grid;
    grid-template-columns: 390px 1fr;
    min-height: calc(100vh - 92px);
}

.sidebar {
    background: var(--wa-sidebar);
    border-right: 1px solid var(--wa-border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--wa-border);
    background: #f0f2f5;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-subtitle {
    color: var(--wa-text-soft);
    font-size: 13px;
}

.sidebar-search {
    padding: 10px 12px;
    border-bottom: 1px solid var(--wa-border);
    background: #fff;
}

.sidebar-search form {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.sidebar-search input {
    width: 100%;
    border: 1px solid #d1d7db;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    background: #f0f2f5;
}

.sidebar-search .btn {
    width: 100%;
    text-align: center;
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    transition: background .15s ease;
}

.conversation-item:hover {
    background: var(--wa-hover);
}

.conversation-item.active {
    background: var(--wa-active);
}

.avatar {
    width: 49px;
    height: 49px;
    border-radius: 50%;
    background: #dfe5e7;
    color: #54656f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex: 0 0 auto;
}

.avatar.large {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

.conv-main {
    min-width: 0;
    flex: 1;
}

.conv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.conv-title {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 12px;
    color: var(--wa-text-soft);
    white-space: nowrap;
}

.conv-meta {
    color: var(--wa-text-soft);
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    background: #eef3f4;
}

.badge.waiting { background: #fff3c4; color: #8a6d1d; }
.badge.open { background: #dff7e3; color: #216c34; }
.badge.closed { background: #ebedef; color: #54656f; }

.chat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--wa-chat-bg);
}

.chat-header {
    background: #f0f2f5;
    border-bottom: 1px solid var(--wa-border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-main {
    flex: 1;
    min-width: 0;
}

.chat-header-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-header-meta {
    color: var(--wa-text-soft);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.messages {
    flex: 1;
    padding: 26px;
    overflow-y: auto;
    background-color: var(--wa-chat-bg);
    background-image:
        radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 24px 24px, 18px 18px;
    background-position: 0 0, 12px 12px;
}

.msg {
    max-width: 72%;
    margin: 8px 0;
    padding: 8px 11px 7px;
    border-radius: 8px;
    line-height: 1.45;
    white-space: pre-wrap;
    font-size: 14px;
    box-shadow: 0 1px .5px rgba(11,20,26,.13);
    position: relative;
}

.msg.in {
    background: var(--wa-received);
    border-top-left-radius: 2px;
}

.msg.out {
    background: var(--wa-sent);
    margin-left: auto;
    border-top-right-radius: 2px;
}

.msg .msg-text {
    padding-right: 48px;
}

.msg small {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    color: #667781;
    margin-top: 5px;
    font-size: 11px;
}

.msg-type {
    text-transform: capitalize;
    opacity: .9;
}

.composer {
    background: #f0f2f5;
    border-top: 1px solid var(--wa-border);
    padding: 12px 16px 16px;
}

.composer textarea {
    width: 100%;
    min-height: 56px;
    max-height: 180px;
    resize: vertical;
    padding: 14px 14px;
    border: 1px solid #d1d7db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.composer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    background: var(--wa-green);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
}

.btn:hover {
    filter: brightness(.97);
}

.btn.secondary {
    background: #8696a0;
}

.btn.danger {
    background: #d84b4b;
}

.empty {
    padding: 44px;
    color: var(--wa-text-soft);
    text-align: center;
}

.empty h2 {
    font-size: 32px;
    color: #41525d;
    margin: 0 0 12px;
    font-weight: 300;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        linear-gradient(to bottom, var(--wa-green-dark) 0, var(--wa-green-dark) 180px, #e4e8eb 180px, #e4e8eb 100%);
}

.login-card {
    background: #fff;
    width: 400px;
    padding: 34px 30px;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0,0,0,.14);
}

.login-card h1 {
    margin: 0;
    font-size: 28px;
    color: var(--wa-green-dark);
}

.login-card p {
    color: var(--wa-text-soft);
    margin-top: 8px;
}

.login-card label,
.form label {
    display: block;
    margin-top: 14px;
    font-weight: 600;
}

.login-card input,
.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #ccd5d8;
    border-radius: 7px;
    font-family: inherit;
    background: #fff;
}

.login-card button,
.form button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    background: var(--wa-green-dark);
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-weight: 600;
}

.alert {
    background: #ffe5e5;
    color: #8a1f1f;
    padding: 10px 12px;
    border-radius: 6px;
    margin: 12px 0;
}

.content {
    padding: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: var(--wa-shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px;
    border-bottom: 1px solid var(--wa-border);
    text-align: left;
}

.table th {
    color: var(--wa-text-soft);
    font-weight: 600;
}

.page-title {
    font-size: 22px;
    margin: 0 0 16px;
}

.info-note {
    color: var(--wa-text-soft);
    font-size: 13px;
}

@media (max-width: 1100px) {
    .app-shell {
        width: 100%;
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .layout {
        grid-template-columns: 320px 1fr;
        min-height: calc(100vh - 64px);
    }

    .topbar {
        padding: 0 12px;
    }

    .brand small {
        display: none;
    }
}

@media (max-width: 820px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-height: 42vh;
    }

    .msg {
        max-width: 92%;
    }

    .topbar nav {
        gap: 10px;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msg strong {
    font-weight: 700;
}

@media (max-width: 1100px) {
    }

.filter-form button {
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
}

.filter-actions {
    display: flex;
    align-items: end;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: var(--wa-shadow);
    border-left: 4px solid var(--wa-green);
}

.kpi-card span {
    display: block;
    color: var(--wa-text-soft);
    font-size: 13px;
    margin-bottom: 8px;
}

.kpi-card strong {
    display: block;
    font-size: 28px;
    color: var(--wa-text);
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 140px;
    gap: 12px;
    align-items: center;
}

.bar-label {
    font-weight: 600;
    color: var(--wa-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-track {
    position: relative;
    height: 34px;
    background: #f0f2f5;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--wa-border);
}

.bar-fill {
    height: 100%;
    background: var(--wa-green);
    border-radius: 999px;
}

.secondary-fill {
    background: #34b7f1;
}

.bar-track span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #111b21;
}

.bar-extra {
    color: var(--wa-text-soft);
    font-size: 13px;
    text-align: right;
}

@media (max-width: 1100px) {
    .filter-grid,
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .bar-row {
        grid-template-columns: 110px 1fr;
    }

    .bar-extra {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 700px) {
    .filter-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .bar-row {
        grid-template-columns: 1fr;
    }

    .bar-extra {
        grid-column: auto;
        text-align: left;
    }
}

/* v2.4: balões mais compactos e prévia de mídias */
.messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg {
    width: fit-content;
    min-width: 120px;
    max-width: min(560px, 72%);
    margin: 0;
}

.msg.out {
    align-self: flex-end;
    margin-left: 0;
}

.msg.in {
    align-self: flex-start;
}

.msg .msg-text {
    padding-right: 0;
}

.msg-media-image {
    display: block;
    max-width: 340px;
    max-height: 360px;
    width: auto;
    height: auto;
    border-radius: 8px;
    margin-bottom: 6px;
    object-fit: contain;
}

.msg-media-video {
    display: block;
    max-width: 360px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 6px;
}

.msg-media-audio {
    display: block;
    width: 300px;
    max-width: 100%;
    margin-bottom: 6px;
}

.msg-media-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--wa-text);
}

@media (max-width: 820px) {
    .msg {
        max-width: 92%;
    }

    .msg-media-image {
        max-width: 100%;
    }
}

/* v2.5: correção de altura/flex para não sumir o compositor */
.app-shell {
    display: flex;
    flex-direction: column;
}

.layout {
    flex: 1;
    min-height: 0;
}

.chat {
    min-height: 0;
    height: auto;
}

.messages {
    min-height: 0;
    flex: 1 1 auto;
}

.composer {
    flex: 0 0 auto;
}

.avatar-photo {
    padding: 0;
    overflow: hidden;
    background: #dfe5e7;
}

.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* balões mais naturais */
.msg {
    min-height: unset;
    height: auto;
    max-width: min(520px, 68%);
}

.msg .msg-text {
    display: block;
}

.msg small {
    white-space: nowrap;
}

@media (max-width: 820px) {
    .msg {
        max-width: 92%;
    }
}

/* v2.6: correção definitiva de balões proporcionais e compositor */
.app-shell {
    display: flex !important;
    flex-direction: column !important;
}

.layout {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: calc(100vh - 92px) !important;
}

.chat {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 22px 28px !important;
}

.msg {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 520px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 10px 6px !important;
    margin: 0 !important;
}

.msg.in {
    align-self: flex-start !important;
}

.msg.out {
    align-self: flex-end !important;
    margin-left: 0 !important;
}

.msg .msg-text {
    display: block !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.msg small {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    margin-top: 4px !important;
}

.composer {
    flex: 0 0 auto !important;
    padding: 10px 16px !important;
}

.composer textarea {
    min-height: 46px !important;
    height: 54px !important;
}

.composer-actions {
    margin-top: 8px !important;
}

.msg-media-image {
    display: block !important;
    max-width: 300px !important;
    max-height: 320px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px !important;
    object-fit: contain !important;
}

.avatar-photo {
    padding: 0 !important;
    overflow: hidden !important;
}

.avatar-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 820px) {
    .layout {
        height: auto !important;
    }

    .msg {
        max-width: 92% !important;
    }

    .msg-media-image {
        max-width: 100% !important;
    }
}

/* v2.7: balões sem espaços em branco e botões alinhados */
.msg {
    white-space: normal !important;
    line-height: 1.35 !important;
    padding: 7px 9px 5px !important;
    max-width: min(420px, 62%) !important;
}

.msg .msg-text {
    white-space: pre-wrap !important;
    line-height: 1.35 !important;
}

.msg:has(.msg-media-image) {
    max-width: min(340px, 62%) !important;
    padding: 6px !important;
}

.msg-media-image {
    margin: 0 0 4px 0 !important;
    max-width: 100% !important;
    max-height: 260px !important;
}

.msg small {
    margin-top: 3px !important;
    line-height: 1.2 !important;
}

.composer {
    padding: 10px 16px !important;
}

.send-form textarea {
    width: 100%;
}

.composer-actions-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
}

.composer-actions-row .btn {
    margin-top: 0 !important;
}

.close-form {
    margin: 0 !important;
    display: inline-flex !important;
}

.close-form .btn {
    margin-top: 0 !important;
}

@media (max-width: 820px) {
    .msg,
    .msg:has(.msg-media-image) {
        max-width: 92% !important;
    }

    .composer-actions-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .composer-actions-row .btn,
    .close-form {
        width: 100% !important;
    }

    .close-form .btn {
        width: 100% !important;
    }
}

/* v2.8: grupos */
.menu-alert {
    color: #008069 !important;
    font-weight: 800 !important;
}

.group-unread {
    background: #e7fce3 !important;
}

.group-unread .conv-title {
    font-weight: 800 !important;
}

.group-badge {
    background: #25d366 !important;
    color: #083b20 !important;
    font-weight: 800 !important;
}

.group-sender {
    font-size: 12px;
    font-weight: 800;
    color: #008069;
    margin-bottom: 4px;
}

.msg.in .group-sender {
    color: #1f7aec;
}

/* v2.9: correção de rolagem nas páginas internas, especialmente Configurações */
.app-shell {
    overflow: hidden !important;
}

body {
    overflow: hidden !important;
}

.content {
    height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-width: none !important;
    padding: 24px !important;
}

.content .card:last-child {
    margin-bottom: 80px !important;
}

.form textarea {
    min-height: 90px;
}

@media (max-width: 820px) {
    body {
        overflow: auto !important;
    }

    .app-shell {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .content {
        height: auto !important;
        overflow: visible !important;
        padding-bottom: 90px !important;
    }
}

/* v3.0: novas mensagens em atendimentos */
.conversation-unread {
    background: #e7fce3 !important;
}

.conversation-unread .conv-title {
    font-weight: 800 !important;
}

.atendimento-badge {
    background: #25d366 !important;
    color: #083b20 !important;
    font-weight: 800 !important;
}

/* v3.2: correção de quebra/estouro visual dos balões */
.messages {
    align-items: stretch !important;
}

.msg {
    display: flex !important;
    flex-direction: column !important;
    width: fit-content !important;
    max-width: min(560px, 72%) !important;
    min-width: 42px !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

.msg.in {
    align-self: flex-start !important;
}

.msg.out {
    align-self: flex-end !important;
}

.msg .msg-text {
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    min-width: 0 !important;
    white-space: pre-wrap !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.35 !important;
}

.msg-media-image,
.msg-media-video {
    display: block !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.msg-media-image {
    max-height: 320px !important;
}

.msg-media-audio {
    max-width: 100% !important;
}

.msg small {
    max-width: 100% !important;
    white-space: nowrap !important;
    align-self: flex-end !important;
}

.msg:has(.msg-media-image),
.msg:has(.msg-media-video) {
    max-width: min(380px, 72%) !important;
}

.msg:has(.msg-media-image) .msg-text,
.msg:has(.msg-media-video) .msg-text {
    width: 100% !important;
}

@media (max-width: 820px) {
    .msg,
    .msg:has(.msg-media-image),
    .msg:has(.msg-media-video) {
        max-width: 92% !important;
    }
}


.msg.has-media {
    max-width: min(380px, 72%) !important;
}

.msg.has-media .msg-text {
    width: 100% !important;
}

/* v3.3: estrutura interna do balão para impedir conteúdo fora da caixa */
.msg {
    display: block !important;
    width: auto !important;
    max-width: min(560px, 72%) !important;
    min-width: 52px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.msg.in {
    align-self: flex-start !important;
    margin-right: auto !important;
}

.msg.out {
    align-self: flex-end !important;
    margin-left: auto !important;
}

.msg-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: 52px !important;
    padding: 8px 10px 6px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px .5px rgba(11,20,26,.13) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.msg.in .msg-inner {
    background: var(--wa-received) !important;
    border-top-left-radius: 2px !important;
}

.msg.out .msg-inner {
    background: var(--wa-sent) !important;
    border-top-right-radius: 2px !important;
}

.msg-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
}

.msg-media-link,
.msg-media-link img {
    display: block !important;
    max-width: 100% !important;
}

.msg-media-image {
    display: block !important;
    width: auto !important;
    max-width: min(320px, 100%) !important;
    max-height: 320px !important;
    object-fit: contain !important;
    border-radius: 7px !important;
    margin: 0 !important;
}

.msg-media-video {
    display: block !important;
    max-width: min(340px, 100%) !important;
    width: 100% !important;
    border-radius: 7px !important;
}

.msg-media-audio {
    max-width: 100% !important;
}

.msg small {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 5px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    margin: 2px 0 0 !important;
    line-height: 1.2 !important;
}

.msg.has-media {
    max-width: min(360px, 72%) !important;
}

.msg.has-media .msg-inner {
    width: fit-content !important;
}

.msg.has-media .msg-text {
    max-width: 320px !important;
}

@media (max-width: 820px) {
    .msg,
    .msg.has-media {
        max-width: 92% !important;
    }

    .msg-media-image,
    .msg-media-video {
        max-width: 100% !important;
    }

    .msg.has-media .msg-text {
        max-width: 100% !important;
    }
}

/* v3.5: correção definitiva de sobreposição vertical dos balões */
.messages {
    display: block !important;
    padding: 22px 28px !important;
    overflow-y: auto !important;
}

.msg {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: fit-content !important;
    max-width: min(560px, 72%) !important;
    min-width: 52px !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.msg.in {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.msg.out {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.msg-inner {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 52px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px 6px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px .5px rgba(11,20,26,.13) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: static !important;
}

.msg.in .msg-inner {
    background: var(--wa-received) !important;
    border-top-left-radius: 2px !important;
}

.msg.out .msg-inner {
    background: var(--wa-sent) !important;
    border-top-right-radius: 2px !important;
}

.msg-text {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: pre-wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    position: static !important;
}

.msg-media-link {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    position: static !important;
}

.msg-media-image {
    display: block !important;
    width: auto !important;
    max-width: 320px !important;
    max-height: 320px !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
}

.msg-media-video {
    display: block !important;
    width: 320px !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 7px !important;
    margin: 0 0 6px 0 !important;
    position: static !important;
}

.msg-media-audio {
    display: block !important;
    max-width: 100% !important;
    margin: 0 0 6px 0 !important;
    position: static !important;
}

.msg small {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: right !important;
    white-space: nowrap !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    position: static !important;
    clear: both !important;
}

.msg small span {
    display: inline !important;
}

.msg.has-media {
    max-width: min(360px, 72%) !important;
}

.msg.has-media .msg-inner {
    width: auto !important;
}

.msg.has-media .msg-text {
    max-width: 320px !important;
}

.messages::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 820px) {
    .msg,
    .msg.has-media {
        max-width: 92% !important;
    }

    .msg-media-image,
    .msg-media-video {
        max-width: 100% !important;
    }

    .msg.has-media .msg-text {
        max-width: 100% !important;
    }
}


/* v3.7: resposta estilo WhatsApp */
.msg-inner {
    position: relative !important;
    padding-right: 72px !important;
}

.msg-reply-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: rgba(17, 27, 33, 0.08);
    color: #41525d;
    font-size: 12px;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 999px;
    cursor: pointer;
    opacity: .85;
}

.msg-reply-btn:hover {
    background: rgba(17, 27, 33, 0.16);
}

.msg-reply-block {
    border-left: 4px solid #53bdeb;
    background: rgba(17, 27, 33, 0.06);
    border-radius: 6px;
    padding: 7px 9px;
    margin-bottom: 6px;
    max-width: 100%;
}

.msg.out .msg-reply-block {
    border-left-color: #00a884;
    background: rgba(0, 168, 132, 0.10);
}

.msg-reply-author {
    font-size: 12px;
    font-weight: 700;
    color: #008069;
    margin-bottom: 3px;
}

.msg.in .msg-reply-author {
    color: #1f7aec;
}

.msg-reply-text {
    font-size: 12px;
    color: #54656f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--wa-border);
    border-left: 4px solid #008069;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.reply-preview-copy {
    flex: 1;
    min-width: 0;
}

.reply-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: #008069;
    margin-bottom: 3px;
}

.reply-preview-text {
    font-size: 13px;
    color: #54656f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-preview-close {
    border: 0;
    background: transparent;
    color: #667781;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.reply-preview-close:hover {
    color: #111b21;
}

@media (max-width: 820px) {
    .msg-inner {
        padding-right: 10px !important;
    }

    .msg-reply-btn {
        position: static;
        display: inline-block;
        margin-top: 8px;
    }
}


/* v3.8: corrigir fechamento da caixa "Respondendo a" */
.reply-preview[hidden],
.reply-preview.is-hidden {
    display: none !important;
}

.reply-preview:not([hidden]) {
    display: flex !important;
}

/* v4.0: envio de anexos */
.attachment-preview[hidden],
.attachment-preview.is-hidden {
    display: none !important;
}

.attachment-preview:not([hidden]) {
    display: flex !important;
}

.attachment-preview {
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--wa-border);
    border-left: 4px solid #34b7f1;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.attachment-preview-copy {
    flex: 1;
    min-width: 0;
}

.attachment-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: #1f7aec;
    margin-bottom: 3px;
}

.attachment-preview-text {
    font-size: 13px;
    color: #54656f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-preview-close {
    border: 0;
    background: transparent;
    color: #667781;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.send-form.drag-over {
    outline: 2px dashed #34b7f1;
    outline-offset: 4px;
    border-radius: 10px;
}


/* v4.1: ajustar botão Responder para não sobrepor o conteúdo */
.msg-inner {
    position: relative !important;
    padding-right: 92px !important;
}

.msg-reply-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: 12px;
    padding: 6px 10px;
    max-width: 86px;
    white-space: nowrap;
}

.msg-reply-block,
.group-sender {
    max-width: calc(100% - 96px) !important;
}

.msg-reply-block {
    margin-right: 8px;
}

.msg-media,
.msg-media-wrap,
.msg-media-image,
.msg-media-video,
.msg-text,
.msg-inner > small {
    position: relative;
    z-index: 1;
}

@media (max-width: 820px) {
    .msg-inner {
        padding-right: 84px !important;
    }

    .msg-reply-btn {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 5px 9px;
        max-width: 80px;
    }

    .msg-reply-block,
    .group-sender {
        max-width: calc(100% - 84px) !important;
    }
}


/* v4.2: gravação de áudio */
.audio-recorder-box.is-hidden {
    display: none !important;
}

.audio-recorder-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: #fff7f7;
    border: 1px solid #ffd6d6;
    border-left: 4px solid #d84b4b;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.audio-recorder-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a1f1f;
}

.audio-recorder-dot {
    width: 10px;
    height: 10px;
    background: #d84b4b;
    border-radius: 999px;
    display: inline-block;
    animation: audioPulse 1s infinite;
}

.audio-recorder-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

@keyframes audioPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.82); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 820px) {
    .audio-recorder-box {
        flex-direction: column;
        align-items: stretch;
    }

    .audio-recorder-actions {
        flex-direction: column;
        align-items: stretch;
    }
}


/* v4.5: assumir automaticamente no primeiro envio */
.auto-claim-note {
    display: inline-flex;
    align-items: center;
    background: #fff4d6;
    color: #7a5a00;
    border: 1px solid #ffe3a3;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}


/* v4.6: status da conexão WhatsApp no menu */
.wa-connection-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 11px !important;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1;
}

.wa-connection-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    flex: 0 0 auto;
}

.wa-connection-ok {
    background: #e5ffe9;
    border-color: #89d99b;
    color: #1d6b2a !important;
}

.wa-connection-ok .wa-connection-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.16);
}

.wa-connection-error {
    background: #ffe5e5;
    border-color: #f5a3a3;
    color: #a40000 !important;
    animation: waConnectionBlink 1s infinite;
}

.wa-connection-error .wa-connection-dot {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.16);
}

@keyframes waConnectionBlink {
    0%, 100% {
        background: #ffe5e5;
        border-color: #f5a3a3;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, .22);
    }
    50% {
        background: #ffbaba;
        border-color: #dc2626;
        box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
    }
}


/* v4.9: iniciar conversa manualmente */
.new-conversation-box {
    padding: 10px 12px;
    border-bottom: 1px solid var(--wa-border);
    background: #fff;
}

.new-conversation-box details {
    border: 1px solid var(--wa-border);
    border-radius: 10px;
    background: #f7f8fa;
    overflow: hidden;
}

.new-conversation-box summary {
    cursor: pointer;
    padding: 11px 12px;
    font-weight: 700;
    color: var(--wa-green-dark);
    list-style: none;
}

.new-conversation-box summary::-webkit-details-marker {
    display: none;
}

.new-conversation-form {
    padding: 0 12px 12px;
    display: grid;
    gap: 9px;
}

.new-conversation-form label {
    display: grid;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #54656f;
}

.new-conversation-form input,
.new-conversation-form textarea {
    width: 100%;
    border: 1px solid #d1d7db;
    border-radius: 8px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
}

.new-conversation-form textarea {
    resize: vertical;
    min-height: 64px;
}


/* v5.0: busca de contatos sincronizados */
.new-conversation-form input[list] {
    background-image: linear-gradient(90deg, transparent, transparent);
}

.new-conversation-box details[open] summary {
    border-bottom: 1px solid var(--wa-border);
    margin-bottom: 8px;
}

/* v6.0: setores */
.topbar-sector-form { margin: 0; }
.topbar-sector-form select {
    border: 1px solid var(--wa-border);
    border-radius: 999px;
    background: #fff;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--wa-green-dark);
    box-shadow: var(--wa-shadow);
}
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.permissions-list { display: grid; gap: 6px; font-size: 13px; }
.sector-pill {
    display: inline-flex; border-radius: 999px; background: #e5ffe9; color: #1d6b2a;
    border: 1px solid #89d99b; padding: 4px 8px; font-weight: 700; font-size: 12px; margin: 2px;
}
.inline-form { margin: 0; padding: 8px 0; }
@media (max-width: 820px) { .form-grid-2 { grid-template-columns: 1fr; } }


/* v6.5: título por setor e crédito do sistema */
.system-credit {
    position: fixed;
    right: 10px;
    bottom: 6px;
    z-index: 5;
    font-size: 10px;
    line-height: 1.2;
    color: rgba(31, 41, 55, 0.52);
    background: transparent;
    pointer-events: none;
    text-align: right;
    max-width: 420px;
}

.login-body .system-credit {
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 760px) {
    .system-credit {
        position: static;
        margin: 8px 12px;
        text-align: center;
        max-width: none;
        font-size: 9px;
    }
}


/* v7.0: refinamento da página Operadores e posicionamento do crédito */
.app-shell {
    position: relative;
}

.system-credit {
    position: absolute;
    right: 14px;
    bottom: 8px;
    z-index: 4;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 3px 12px rgba(11, 20, 26, .06);
    color: rgba(31, 41, 55, 0.72);
}

.content {
    padding-bottom: 52px !important;
}

.content .card:last-child {
    margin-bottom: 18px !important;
}

.users-page {
    max-width: 1340px !important;
}

.users-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

.users-page-header h2,
.users-list-card h3,
.users-create-card h3 {
    margin: 0;
}

.users-page-header p,
.users-list-card p,
.users-create-card p {
    margin: 6px 0 0;
    color: var(--wa-text-soft);
    font-size: 13px;
}

.users-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.users-stat-box {
    min-width: 120px;
    background: #f7fbfa;
    border: 1px solid #dce9e6;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.users-stat-box strong {
    display: block;
    font-size: 24px;
    line-height: 1;
    color: var(--wa-green-dark);
    margin-bottom: 6px;
}

.users-stat-box span {
    font-size: 12px;
    color: var(--wa-text-soft);
}

.users-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(340px, .95fr);
    gap: 18px;
    align-items: start;
}

.users-list-card,
.users-create-card {
    margin-bottom: 0;
}

.card-head-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #e3ece9;
    border-radius: 12px;
    background: #fff;
}

.operators-table thead th {
    background: #f8fbfb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.operators-table th,
.operators-table td {
    vertical-align: top;
}

.operators-table tbody > tr:nth-child(4n+1),
.operators-table tbody > tr:nth-child(4n+2) {
    background: #fff;
}

.operators-table tbody > tr:nth-child(4n+3),
.operators-table tbody > tr:nth-child(4n+4) {
    background: #fcfefe;
}

.inline-form {
    background: #f8fbfb;
    border: 1px solid #e3ece9;
    border-radius: 12px;
    padding: 14px !important;
    margin: 6px 0 !important;
}

.inline-form .form-grid-2 {
    align-items: start;
}

.permissions-list-sectors {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.permissions-list-sectors label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e3ece9;
    border-radius: 10px;
    background: #fbfdfd;
    font-weight: 500;
}

.permissions-list-sectors input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.users-create-form input[name=password] {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .2px;
}

.users-create-form button,
.inline-form button {
    width: 100%;
}

@media (max-width: 1180px) {
    .users-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .users-page-header {
        flex-direction: column;
    }

    .users-stats {
        width: 100%;
        justify-content: stretch;
    }

    .users-stat-box {
        flex: 1 1 110px;
    }

    .system-credit {
        position: static;
        margin: 8px 12px 12px;
        text-align: center;
        max-width: none;
        border-radius: 12px;
    }
}


/* v7.1: submenu de configurações */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    color: var(--wa-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 4px;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: "▾";
    font-size: 10px;
    margin-left: 6px;
    color: var(--wa-text-soft);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--wa-border);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(11, 20, 26, .18);
    padding: 8px;
    display: none;
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    gap: 4px;
}

.topbar nav .nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--wa-text);
    white-space: nowrap;
}

.topbar nav .nav-dropdown-menu a:hover {
    background: #f0f7f5;
    color: var(--wa-green-dark);
}

@media (max-width: 980px) {
    .nav-dropdown-menu {
        right: auto;
        left: 0;
    }
}


/* v7.2: correção do submenu Configurações */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    top: 100% !important;
    right: 0;
    margin-top: 0;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
    gap: 4px;
}

.nav-dropdown-toggle {
    border-radius: 999px;
}

.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
    color: var(--wa-green-dark);
    background: #f0f7f5;
}


/* v7.3: submenu Configurações com details/summary, estável para clique */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}

.nav-dropdown summary {
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown-toggle {
    border: 0;
    background: transparent;
    color: var(--wa-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 10px;
    cursor: pointer;
    border-radius: 999px;
    user-select: none;
}

.nav-dropdown-toggle::after {
    content: "▾";
    font-size: 10px;
    margin-left: 7px;
    color: var(--wa-text-soft);
}

.nav-dropdown[open] .nav-dropdown-toggle,
.nav-dropdown-toggle:hover {
    color: var(--wa-green-dark);
    background: #f0f7f5;
}

.nav-dropdown[open] .nav-dropdown-toggle::after {
    content: "▴";
}

.nav-dropdown-menu {
    position: absolute;
    top: 100% !important;
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--wa-border);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(11, 20, 26, .18);
    padding: 8px;
    display: grid !important;
    gap: 4px;
    z-index: 9999;
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
    display: none !important;
}

.topbar nav .nav-dropdown-menu a {
    display: block;
    padding: 12px 13px;
    border-radius: 9px;
    color: var(--wa-text);
    white-space: nowrap;
    font-size: 14px;
}

.topbar nav .nav-dropdown-menu a:hover {
    background: #f0f7f5;
    color: var(--wa-green-dark);
}

@media (max-width: 980px) {
    .nav-dropdown-menu {
        right: auto;
        left: 0;
    }
}


/* v7.7: ação de reabrir atendimento pelo histórico */
.inline-action-form {
    margin: 0;
}

.inline-action-form .btn {
    white-space: nowrap;
}


/* v7.8: seletor de emojis e crédito no rodapé cinza */
.composer-input-wrap {
    position: relative;
}

.composer-input-wrap textarea {
    padding-left: 52px !important;
}

.composer-emoji-trigger {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
}

.composer-emoji-trigger:hover,
.composer-emoji-trigger.is-active {
    background: rgba(0, 128, 105, 0.10);
}

.emoji-picker {
    position: absolute;
    left: 8px;
    bottom: calc(100% + 10px);
    width: min(340px, calc(100vw - 60px));
    background: #ffffff;
    border: 1px solid var(--wa-border);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(11,20,26,.18);
    padding: 10px;
    z-index: 30;
}

.emoji-picker.is-hidden {
    display: none;
}

.emoji-picker-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--wa-text-soft);
    margin-bottom: 8px;
    padding: 0 4px;
}

.emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.emoji-item {
    border: 0;
    background: transparent;
    border-radius: 10px;
    min-height: 34px;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.emoji-item:hover {
    background: #f0f2f5;
    transform: scale(1.06);
}

.system-credit {
    position: fixed !important;
    right: 26px !important;
    bottom: 10px !important;
    z-index: 2 !important;
    max-width: calc(100vw - 60px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    color: rgba(31, 41, 55, 0.62) !important;
    text-align: right !important;
    pointer-events: none !important;
}

.login-body .system-credit {
    color: rgba(255, 255, 255, 0.70) !important;
}

@media (max-width: 820px) {
    .composer-input-wrap textarea {
        padding-left: 50px !important;
    }

    .emoji-picker {
        left: 6px;
        right: 6px;
        width: auto;
        bottom: calc(100% + 8px);
    }

    .emoji-picker-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .system-credit {
        position: static !important;
        margin: 8px 12px 12px !important;
        max-width: none !important;
        text-align: center !important;
        font-size: 10px !important;
    }
}


/* v7.9: reposiciona crédito no rodapé cinza, fora da área branca */
body {
    min-height: 100vh;
    padding-bottom: 34px;
}

.app-shell {
    height: calc(100vh - 68px) !important;
    margin: 14px auto 20px !important;
}

.system-credit {
    position: fixed !important;
    right: 24px !important;
    bottom: 8px !important;
    z-index: 1 !important;
    display: block !important;
    max-width: calc(100vw - 48px) !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: right !important;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .system-credit {
        white-space: normal;
        max-width: 420px !important;
    }
}

@media (max-width: 820px) {
    body {
        padding-bottom: 0;
    }

    .app-shell {
        height: auto !important;
        margin: 0 !important;
    }

    .system-credit {
        position: static !important;
        margin: 8px 12px 12px !important;
        max-width: none !important;
        text-align: center !important;
        white-space: normal;
    }
}


/* v9.4: número conectado no botão de status, sem alterar lógica de atualização */
.wa-connection-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.wa-connection-label {
    display: inline-flex;
    align-items: center;
}

.wa-connection-phone {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    opacity: .78;
    margin-left: 2px;
    padding-left: 7px;
    border-left: 1px solid rgba(7, 94, 84, .22);
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .wa-connection-phone {
        display: none;
    }
}


/* v9.5: número como texto principal do botão de status */
.wa-connection-pill .wa-connection-label {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}


/* v9.6: estilos recuperados para Setores e Operadores */



/* v8.3: Operadores com criação em página separada */
.users-page-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
}

    .users-page-header {
        grid-template-columns: 1fr;
        align-items: start;
    }


.users-create-page-card {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}


.operator-actions-details {
    position: relative;
    min-width: 180px;
}


.operator-actions-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--wa-green-dark);
    list-style: none;
}


.operator-actions-details summary::-webkit-details-marker {
    display: none;
}


.operator-actions-details summary::after {
    content: "▾";
    margin-left: 6px;
    font-size: 10px;
}


.operator-actions-details[open] summary::after {
    content: "▴";
}


.operator-actions-details .password-reset-form {
    margin-top: 10px;
}


.list-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: min(520px, 100%);
}


.list-search-form input[type=search] {
    min-width: 280px;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--wa-border);
    border-radius: 10px;
    font-family: inherit;
}


.list-search-form button,
.list-search-form .btn {
    padding: 10px 14px;
    border-radius: 10px;
    margin: 0;
    width: auto;
    white-space: nowrap;
}


    .list-search-form {
        min-width: 0;
        width: 100%;
        justify-content: stretch;
    }


    .list-search-form input[type=search],
    .list-search-form button,
    .list-search-form .btn {
        width: 100%;
    }


.users-page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.users-page-actions .btn,
.users-form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}


    .users-page-actions,
    .users-stats {
        justify-content: flex-start;
    }



/* v8.4: busca em operadores e setores + novo setor em tela separada */
.users-list-head {
    align-items: center;
}

    .users-list-head {
        flex-direction: column;
        align-items: stretch;
    }


/* v9.7: dica no cadastro de operador */
.form-hint {
    margin: -4px 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}


/* v10.8: correção do nome do remetente nos grupos */
.msg .msg-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.group-sender {
    display: block !important;
    width: 100% !important;
    max-width: calc(100% - 96px) !important;
    min-width: 160px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.25 !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
}

.msg.in:has(.group-sender) {
    min-width: 260px !important;
}

@media (max-width: 820px) {
    .group-sender {
        max-width: calc(100% - 82px) !important;
        min-width: 130px !important;
    }

    .msg.in:has(.group-sender) {
        min-width: min(260px, 92%) !important;
    }
}

/* v11.1: salvar contatos por setor */
.new-conversation-box details + details {
    margin-top: 8px;
}

.contact-save-inline {
    margin-top: 6px;
    font-size: 12px;
}

.contact-save-inline summary {
    cursor: pointer;
    color: #008069;
    font-weight: 700;
}

.inline-contact-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    flex-wrap: wrap;
}

.inline-contact-form input {
    min-width: 220px;
    max-width: 320px;
    padding: 8px 10px;
    border: 1px solid #d1d7db;
    border-radius: 8px;
}

.btn.small {
    padding: 8px 12px;
    font-size: 12px;
}

/* v11.5: edição de mensagens e campo único de contato */
.msg-edit-box {
    margin-top: 6px;
    font-size: 12px;
}

.msg-edit-box summary {
    cursor: pointer;
    color: #667781;
    font-weight: 700;
}

.msg-edit-form {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.msg-edit-form textarea {
    min-width: 220px;
    max-width: 360px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid #d1d7db;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

/* v11.8: autocomplete próprio de contatos */
.new-conversation-form label {
    position: relative;
}

.contact-search-results {
    position: absolute;
    z-index: 50;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d1d7db;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    padding: 4px;
}

.contact-search-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.contact-search-item:hover,
.contact-search-item:focus {
    background: #f0f2f5;
}

.contact-search-title {
    font-weight: 700;
    color: #111b21;
    font-size: 13px;
}

.contact-search-meta {
    color: #667781;
    font-size: 12px;
}

.contact-search-empty {
    padding: 10px;
    color: #667781;
    font-size: 12px;
}

/* v12.9: notificação visual de nova mensagem */
.inbound-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    width: min(360px, calc(100vw - 32px));
    display: flex;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border: 1px solid #d1d7db;
    border-left: 5px solid #25d366;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
    overflow: hidden;
    animation: inboundToastIn .18s ease-out;
}

.inbound-toast.is-hiding {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease;
}

.inbound-toast-body {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
}

.inbound-toast-body:hover {
    background: #f0f2f5;
}

.inbound-toast-title {
    color: #111b21;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbound-toast-text {
    color: #3b4a54;
    font-size: 13px;
    line-height: 1.32;
    max-height: 38px;
    overflow: hidden;
}

.inbound-toast-action {
    margin-top: 8px;
    color: #008069;
    font-size: 12px;
    font-weight: 800;
}

.inbound-toast-close {
    width: 38px;
    border: 0;
    border-left: 1px solid #e9edef;
    background: transparent;
    color: #667781;
    font-size: 24px;
    cursor: pointer;
}

.inbound-toast-close:hover {
    background: #f0f2f5;
    color: #111b21;
}

@keyframes inboundToastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
    .inbound-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}

/* v13.0: atualização imediata do badge de novas mensagens */
.conversation-item.conversation-unread {
    background: #d9fdd3;
}

.conversation-item.conversation-unread .atendimento-badge {
    background: #25d366;
    color: #053b2c;
    font-weight: 800;
}

[data-menu-atendimentos].menu-alert {
    font-weight: 800;
}

/* v13.1: badge persistente enquanto o operador permanece na mesma tela */
.conversation-item.conversation-unread {
    background: #d9fdd3 !important;
}

.conversation-item.conversation-unread .atendimento-badge {
    display: inline-flex !important;
    background: #25d366 !important;
    color: #053b2c !important;
    font-weight: 800 !important;
}

.badge.atendimento-badge[hidden] {
    display: none !important;
}

/* v13.6: cores fixas por remetente em grupos */
.group-sender {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.group-sender-color-0 { color: #1f7aec !important; }
.group-sender-color-1 { color: #d93025 !important; }
.group-sender-color-2 { color: #008069 !important; }
.group-sender-color-3 { color: #8e24aa !important; }
.group-sender-color-4 { color: #f57c00 !important; }
.group-sender-color-5 { color: #0b8043 !important; }
.group-sender-color-6 { color: #c2185b !important; }
.group-sender-color-7 { color: #3949ab !important; }
.group-sender-color-8 { color: #00796b !important; }
.group-sender-color-9 { color: #5d4037 !important; }
.group-sender-color-10 { color: #7b1fa2 !important; }
.group-sender-color-11 { color: #0277bd !important; }

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 6px 0 14px;
}

.checkbox-inline {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--wa-text);
}

.checkbox-inline input {
    width: auto !important;
    margin: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 14px;
}

@media (max-width: 720px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* v13.8 - filtro de não lidas, encaminhar, envio de contato e salto para resposta */
.conversation-filter-bar {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    text-decoration: none;
    font-size: 13px;
}

.filter-pill.active {
    font-weight: 700;
    background: rgba(37, 99, 235, 0.10);
}

.msg-forward-box,
.msg-edit-box {
    margin-top: 6px;
}

.msg-forward-box summary,
.contact-card-box summary {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.8;
}

.msg-forward-form,
.contact-card-fields {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.msg-reply-block {
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: 0;
    font: inherit;
}

.message-jump-highlight .msg-inner {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

.contact-card-box {
    margin-bottom: 8px;
}

/* v13.9 - atualização ativa e autocomplete em formulários de encaminhamento/contato */
.conversation-filter-bar {
    flex-wrap: wrap;
}

.msg-forward-form label,
.contact-card-fields label,
.new-conversation-form label {
    position: relative;
    overflow: visible !important;
}

.msg-forward-box,
.msg-forward-form,
.contact-card-box,
.contact-card-fields,
.msg .msg-inner {
    overflow: visible !important;
}

.msg-forward-box[open],
.contact-card-box[open] {
    position: relative;
    z-index: 60;
}

.contact-search-results {
    z-index: 9999 !important;
    min-width: min(360px, 92vw);
}

.msg-forward-form .contact-search-results,
.contact-card-fields .contact-search-results {
    left: 0;
    right: auto;
    width: min(360px, 92vw);
}


/* v13.9.1 - filtros mais compactos e rolagem estável da lista */
.conversation-filter-bar {
    gap: 5px;
    padding: 6px 10px;
}

.filter-pill {
    padding: 4px 7px;
    font-size: 11.5px;
    line-height: 1.1;
    min-height: 24px;
}

.conversation-list {
    scroll-behavior: auto;
}


/* v13.9.3: rolagem estável da lateral de conversas */
.layout {
    height: calc(100vh - 92px);
    min-height: 0;
}
.sidebar {
    min-height: 0;
    overflow: hidden;
}
.conversation-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.chat {
    min-height: 0;
}


.msg-reaction-form {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.msg-reaction-label {
    font-size: 10px;
    color: #6b7280;
    margin-right: 2px;
}

.msg-reaction-form button {
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.msg-reaction-form button:hover {
    background: #fff7ed;
    transform: translateY(-1px);
}

/* v14.0.1 - Reações em balão único */
.message,
.msg-bubble,
.message-actions {
    overflow: visible;
}

.msg-reaction-picker {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-top: 5px;
    margin-right: 4px;
    overflow: visible;
}

.msg-reaction-picker > summary {
    list-style: none;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    user-select: none;
}

.msg-reaction-picker > summary::-webkit-details-marker {
    display: none;
}

.msg-reaction-picker[open] > summary,
.msg-reaction-picker > summary:hover {
    background: #fff7ed;
    transform: translateY(-1px);
}

.msg-reaction-popover {
    position: absolute;
    z-index: 5000;
    left: 0;
    bottom: 32px;
    display: inline-flex;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    white-space: nowrap;
}

.msg-reaction-popover button {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.msg-reaction-popover button:hover {
    background: #f3f4f6;
    transform: scale(1.12);
}


/* v14.1 - Ações compactas e reação registrada */
.msg-inner {
    position: relative;
    overflow: visible;
}

.msg-actions-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    min-height: 24px;
    position: relative;
    z-index: 4;
}

.msg-action-item,
.msg-reaction-picker.msg-action-item,
.msg-edit-box.msg-action-item,
.msg-forward-box.msg-action-item {
    position: relative;
    display: inline-flex;
    margin: 0;
    overflow: visible;
}

.msg-action-item > summary,
.msg-reaction-picker.msg-action-item > summary,
.msg-edit-box.msg-action-item > summary,
.msg-forward-box.msg-action-item > summary {
    list-style: none;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    user-select: none;
}

.msg-action-item > summary::-webkit-details-marker,
.msg-edit-box.msg-action-item > summary::-webkit-details-marker,
.msg-forward-box.msg-action-item > summary::-webkit-details-marker {
    display: none;
}

.msg-action-item[open] > summary,
.msg-action-item > summary:hover {
    background: #fff;
    transform: translateY(-1px);
}

.msg-action-popover,
.msg-edit-form.msg-action-popover,
.msg-forward-form.msg-action-popover {
    position: absolute;
    z-index: 6000;
    left: 0;
    bottom: 30px;
    width: min(280px, 72vw);
    padding: 9px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.20);
}

.msg-forward-form.msg-action-popover label,
.msg-edit-form.msg-action-popover textarea,
.msg-forward-form.msg-action-popover input {
    width: 100%;
}

.msg-reaction-picker.msg-action-item .msg-reaction-popover {
    left: 0;
    bottom: 30px;
}

.msg-reactions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 15px;
    line-height: 1.1;
    width: fit-content;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* v14.1.1 - popovers compactos sem estourar mensagens alinhadas à direita */
.msg.out .msg-action-popover,
.msg.out .msg-edit-form.msg-action-popover,
.msg.out .msg-forward-form.msg-action-popover,
.msg.out .msg-reaction-picker.msg-action-item .msg-reaction-popover {
    left: auto !important;
    right: 0 !important;
}

.msg.in .msg-action-popover,
.msg.in .msg-edit-form.msg-action-popover,
.msg.in .msg-forward-form.msg-action-popover,
.msg.in .msg-reaction-picker.msg-action-item .msg-reaction-popover {
    left: 0 !important;
    right: auto !important;
}

.msg-action-popover,
.msg-edit-form.msg-action-popover,
.msg-forward-form.msg-action-popover,
.msg-reaction-popover {
    max-width: min(280px, calc(100vw - 48px)) !important;
    box-sizing: border-box !important;
}

.msg-edit-form.msg-action-popover textarea {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.msg-forward-form.msg-action-popover .contact-search-results,
.msg-edit-form.msg-action-popover,
.msg-forward-form.msg-action-popover {
    overflow: visible !important;
}


/* v14.1.2: responder junto às ações compactas */
.msg-actions-compact .msg-action-button {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0;
    margin: 0;
    color: inherit;
    box-shadow: none;
}
.msg-actions-compact .msg-action-button:hover,
.msg-actions-compact .msg-action-item > summary:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-1px);
}
.msg-actions-compact .msg-reply-btn {
    position: static;
    float: none;
    inset: auto;
    min-width: 24px;
    max-width: 24px;
    min-height: 24px;
    border-radius: 999px;
    font-size: 13px;
    text-indent: 0;
}
.msg > .msg-reply-btn {
    display: none;
}


/* v14.3: exclusão de mensagens enviadas */
.msg-delete-form.msg-action-item {
    display: inline-flex;
    margin: 0;
    padding: 0;
}
.msg-actions-compact .msg-delete-btn {
    color: #b91c1c;
}
.msg-actions-compact .msg-delete-btn:hover {
    background: #fee2e2;
    border-color: rgba(185, 28, 28, 0.28);
}
.msg .msg-type {
    opacity: .75;
}
.msg .msg-type:has(+ span) {
    margin-right: 3px;
}

/* v14.3.1: status visual imediato para exclusão de mensagens */
.msg.msg-type-deleted .msg-inner,
.msg.msg-type-delete-pending .msg-inner,
.msg.msg-type-delete-failed .msg-inner {
    background: #fee2e2 !important;
    border: 1px solid rgba(185, 28, 28, 0.22);
    color: #7f1d1d;
}
.msg.msg-type-delete-pending .msg-inner {
    background: #fff7ed !important;
    border-color: rgba(234, 88, 12, 0.28);
    color: #7c2d12;
}
.msg.msg-type-deleted .msg-text,
.msg.msg-type-delete-pending .msg-text,
.msg.msg-type-delete-failed .msg-text {
    font-style: italic;
    font-weight: 600;
}
.msg.msg-type-deleted .msg-actions-compact,
.msg.msg-type-delete-pending .msg-actions-compact,
.msg.msg-type-delete-failed .msg-actions-compact {
    display: none;
}
.msg-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(127, 29, 29, 0.08);
    color: inherit;
    font-size: 11px;
}

/* v14.3.2: manter status de exclusão visível sem aguardar reload manual */
.msg.msg-type-delete_pending .msg-inner,
.msg.msg-type-delete-pending .msg-inner {
    background: #fff7ed !important;
    border: 1px solid rgba(234, 88, 12, 0.34) !important;
    color: #7c2d12 !important;
}
.msg.msg-type-deleted .msg-inner {
    background: #fee2e2 !important;
    border: 1px solid rgba(185, 28, 28, 0.30) !important;
    color: #7f1d1d !important;
}
.msg.msg-type-delete_failed .msg-inner,
.msg.msg-type-delete-failed .msg-inner {
    background: #fee2e2 !important;
    border: 1px solid rgba(185, 28, 28, 0.34) !important;
    color: #7f1d1d !important;
}
.msg.msg-type-deleted .msg-text,
.msg.msg-type-delete_pending .msg-text,
.msg.msg-type-delete-pending .msg-text,
.msg.msg-type-delete_failed .msg-text,
.msg.msg-type-delete-failed .msg-text {
    font-style: italic;
    font-weight: 700;
}
.msg.msg-type-deleted .msg-actions-compact,
.msg.msg-type-delete_pending .msg-actions-compact,
.msg.msg-type-delete-pending .msg-actions-compact,
.msg.msg-type-delete_failed .msg-actions-compact,
.msg.msg-type-delete-failed .msg-actions-compact {
    display: none !important;
}


/* v14.4.5 - filtros compactos com nomes completos e filtro "Por mim" */
.conversation-filter-bar {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    padding: 4px 4px !important;
    overflow: hidden;
    align-items: center;
}

.filter-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 2px 3px !important;
    font-size: 9.6px !important;
    line-height: 1 !important;
    min-height: 19px !important;
    white-space: nowrap;
    text-align: center;
}

/* v14.4.6 - filtros ainda menores, mantendo nomenclatura completa em uma linha */
.conversation-filter-bar {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 1px !important;
    padding: 3px 3px !important;
    overflow: hidden !important;
    align-items: center;
}

.filter-pill {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 1px 1px !important;
    font-size: 8.4px !important;
    line-height: 1 !important;
    min-height: 17px !important;
    white-space: nowrap !important;
    text-align: center !important;
    letter-spacing: -0.35px !important;
    border-radius: 999px !important;
}

@media (min-width: 1180px) {
    .filter-pill {
        font-size: 8.8px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

/* delete-conversation-definitive-v14-4-7 */
.delete-conversation-definitive-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    border: 2px solid #dc2626;
    background: #fff;
    color: #dc2626;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.delete-conversation-definitive-btn:hover {
    background: #fee2e2;
    border-color: #b91c1c;
    color: #991b1b;
}

.delete-conversation-definitive-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.delete-conversation-definitive-holder {
    display: inline-flex;
    align-items: center;
}


/* ui-clean-v14-5-0 */
.auto-message-link-v14-5-0,
.auto-message-link-v14-4-8 {
    color: #2563eb !important;
    text-decoration: underline !important;
    font-weight: 600;
    word-break: break-word;
}

.auto-message-link-v14-5-0:hover,
.auto-message-link-v14-4-8:hover {
    color: #1d4ed8 !important;
}

.paste-image-notice-v14-4-8 {
    display: none !important;
}

.paste-image-toast-v14-5-0 {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    background: #eff6ff;
    color: #1d4ed8;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.paste-image-toast-v14-5-0.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ui-attachment-audio-v14-5-1 */
.attachment-preview-pasted-v14-5-1 {
    animation: attachmentPulseV1451 0.8s ease;
}

@keyframes attachmentPulseV1451 {
    0% {
        transform: scale(0.995);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
    35% {
        transform: scale(1);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    }
}

.audio-recorder-box-v14-5-1 {
    width: 100%;
}

.paste-image-toast-v14-5-0,
.paste-image-toast-v14-4-9 {
    display: none !important;
}

/* delete-conversation-definitive-singleton-v14-5-4 */
.delete-conversation-definitive-holder {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    vertical-align: middle;
}

.delete-conversation-definitive-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    border: 2px solid #dc2626;
    background: #fff;
    color: #dc2626;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.delete-conversation-definitive-btn:hover {
    background: #fee2e2;
    border-color: #b91c1c;
    color: #991b1b;
}

.delete-conversation-definitive-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* media-retention-v14-6-0 */
.msg-media-expired {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px dashed #94a3b8;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    line-height: 1.25;
}

.msg-media-expired-icon {
    font-size: 18px;
    flex: 0 0 auto;
}

.msg-media-expired strong {
    display: block;
    color: #334155;
    font-size: 13px;
}

.msg-media-expired small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    word-break: break-word;
}

/* previous-history-v14-8-0 */
.previous-history-block {
    margin: 12px auto 16px;
    padding: 12px;
    max-width: 920px;
    border: 1px dashed #94a3b8;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.previous-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #334155;
}

.previous-history-header strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.previous-history-header small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.previous-history-msg {
    opacity: 0.82;
}

.previous-history-msg .msg-inner {
    border-style: dashed;
}

.previous-history-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.previous-history-current-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px auto;
    max-width: 920px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.previous-history-current-divider::before,
.previous-history-current-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #cbd5e1;
}

/* previous-history-v14-8-1 */
.previous-history-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 920px;
    margin: 14px auto 18px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.previous-history-separator::before,
.previous-history-separator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #cbd5e1;
}

.previous-history-separator span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
}

.previous-history-msg {
    opacity: 0.82;
}

.previous-history-msg .msg-inner {
    border-style: dashed;
}

.previous-history-msg .msg-actions-compact,
.previous-history-msg form,
.previous-history-msg details {
    display: none !important;
}

.previous-history-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* conversation-search-v14-9-0 */
.conversation-search-v14-9-0 {
    padding: 8px 10px;
    margin: 6px 6px 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.conversation-search-row-v14-9-0 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.conversation-search-v14-9-0 input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    outline: none;
}

.conversation-search-v14-9-0 input[type="search"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.conversation-search-v14-9-0 button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.conversation-search-v14-9-0 button:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #b91c1c;
}

.conversation-search-v14-9-0 small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.25;
}

.conversation-search-hidden-v14-9-0 {
    display: none !important;
}

.conversation-search-empty-v14-9-0 {
    display: none;
    margin: 10px 8px;
    padding: 10px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    text-align: center;
}

/* message-search-v14-9-1 */
.message-search-v14-9-1 {
    max-width: 920px;
    margin: 8px auto 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.message-search-main-v14-9-1 {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.message-search-v14-9-1 label {
    display: block;
    flex: 1;
    min-width: 0;
}

.message-search-v14-9-1 label span {
    display: block;
    margin: 0 0 4px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.message-search-v14-9-1 input[type="search"] {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    outline: none;
}

.message-search-v14-9-1 input[type="search"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.message-search-actions-v14-9-1 {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.message-search-actions-v14-9-1 button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.message-search-actions-v14-9-1 button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.message-search-v14-9-1 small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
}

.message-search-match-v14-9-1 .msg-inner {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.message-search-current-v14-9-1 .msg-inner {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.message-search-dim-v14-9-1 {
    opacity: 0.28;
    filter: grayscale(0.35);
}

@media (max-width: 760px) {
    .message-search-main-v14-9-1 {
        align-items: stretch;
        flex-direction: column;
    }

    .message-search-actions-v14-9-1 {
        justify-content: flex-end;
    }
}

/* message-search-v14-9-2 */
.message-search-header-host-v14-9-2 {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

.message-search-v14-9-2 {
    flex: 0 1 420px;
    width: min(420px, 34vw);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: 0;
}

.message-search-main-v14-9-2 {
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-search-v14-9-2 input[type="search"] {
    width: 100%;
    min-width: 180px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    outline: none;
}

.message-search-v14-9-2 input[type="search"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.message-search-v14-9-2 button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.message-search-v14-9-2 button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.message-search-v14-9-2 small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
}

.message-search-mark-v14-9-2 {
    background: #ffeb3b;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.message-search-current-v14-9-2 .message-search-mark-v14-9-2 {
    background: #ff9800;
    color: #111827;
}

.message-search-match-v14-9-2 .msg-inner {
    outline: 1px solid rgba(245, 158, 11, 0.55);
    outline-offset: 2px;
}

.message-search-current-v14-9-2 .msg-inner {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.message-search-dim-v14-9-2 {
    opacity: 0.38;
}

@media (max-width: 900px) {
    .message-search-header-host-v14-9-2 {
        flex-wrap: wrap !important;
    }

    .message-search-v14-9-2 {
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        margin: 6px 0 0;
    }

    .message-search-v14-9-2 small {
        text-align: left;
    }
}

/* message-search-v14-9-3 */
.message-search-v14-9-3 {
    flex: 0 1 420px;
    width: min(420px, 34vw);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    background: transparent;
    border: 0;
}

.message-search-main-v14-9-3 {
    display: flex;
    align-items: center;
    gap: 5px;
}

.message-search-v14-9-3 input[type="search"] {
    width: 100%;
    min-width: 220px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    outline: none;
}

.message-search-v14-9-3 input[type="search"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.message-search-actions-v14-9-3 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.message-search-actions-v14-9-3[hidden] {
    display: none !important;
}

.message-search-v14-9-3 button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.message-search-v14-9-3 button:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.message-search-v14-9-3 small,
.message-search-v14-9-2 small,
.message-search-v14-9-1 small {
    display: none !important;
}

.message-search-mark-v14-9-3 {
    background: #ffeb3b;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.message-search-current-v14-9-3 .message-search-mark-v14-9-3 {
    background: #ff9800;
    color: #111827;
}

.message-search-match-v14-9-3 .msg-inner {
    outline: 1px solid rgba(245, 158, 11, 0.55);
    outline-offset: 2px;
}

.message-search-current-v14-9-3 .msg-inner {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}

.message-search-dim-v14-9-3 {
    opacity: 0.38;
}

@media (max-width: 900px) {
    .message-search-v14-9-3 {
        order: 10;
        flex: 1 1 100%;
        width: 100%;
        margin: 6px 0 0;
    }
}

/* previous-history-v14-8-2 */
.previous-history-subseparator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 880px;
    margin: 10px auto 12px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.previous-history-subseparator::before,
.previous-history-subseparator::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dbe3ed;
}

.previous-history-subseparator span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #dbe3ed;
}

.previous-history-v14-8-2 span {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

/* emoji-picker-v14-12-1 */
.composer-input-wrap {
    position: relative;
}

.composer-emoji-trigger {
    z-index: 5;
}

.emoji-picker {
    z-index: 99999 !important;
}

.emoji-picker.is-hidden,
.emoji-picker[hidden] {
    display: none !important;
}

.emoji-item-v14-12-1 {
    user-select: none;
}

/* emoji-picker-v14-12-2 */
.whatsappti-global-emoji-picker-v14-12-2 {
    position: absolute;
    z-index: 2147483647;
    width: 292px;
    max-width: calc(100vw - 20px);
    max-height: 250px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
}

.whatsappti-global-emoji-picker-v14-12-2[hidden] {
    display: none !important;
}

.whatsappti-global-emoji-header-v14-12-2 {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
}

.whatsappti-global-emoji-grid-v14-12-2 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 205px;
    overflow: auto;
}

.whatsappti-global-emoji-item-v14-12-2 {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.whatsappti-global-emoji-item-v14-12-2:hover {
    background: #e0f2fe;
}

.composer-emoji-trigger.is-active,
[data-emoji-trigger].is-active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

/* emoji-reaction-v14-12-3 */
.composer-input-wrap {
    position: relative;
}

.composer-emoji-trigger,
[data-emoji-trigger] {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.emoji-picker {
    z-index: 2147483646 !important;
}

.emoji-picker.is-hidden,
.emoji-picker[hidden] {
    display: none !important;
}

.emoji-picker-v14-12-3,
.emoji-picker:not(.is-hidden) {
    display: block;
}

.emoji-item-v14-12-3 {
    user-select: none;
}

.msg-inner {
    position: relative;
}

.msg-reactions {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: fit-content;
    min-width: 24px;
    min-height: 20px;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15,23,42,0.10);
    box-shadow: 0 2px 6px rgba(15,23,42,0.14);
    font-size: 15px;
    line-height: 1.1;
}

.msg.out .msg-reactions {
    margin-left: auto;
}

.msg.in .msg-reactions {
    margin-right: auto;
}

/* emoji-picker-v14-12-4 */
.composer-input-wrap {
    position: relative !important;
}

.composer-input-wrap textarea {
    position: relative;
    z-index: 1;
    padding-left: 52px !important;
}

.composer-emoji-trigger,
[data-emoji-trigger] {
    position: absolute;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.whatsappti-emoji-picker-v14-12-4 {
    position: fixed;
    z-index: 2147483647;
    width: 300px;
    max-width: calc(100vw - 20px);
    max-height: 270px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}

.whatsappti-emoji-picker-v14-12-4[hidden] {
    display: none !important;
}

.whatsappti-emoji-title-v14-12-4 {
    margin-bottom: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.whatsappti-emoji-grid-v14-12-4 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    max-height: 220px;
    overflow-y: auto;
}

.whatsappti-emoji-item-v14-12-4 {
    width: 31px;
    height: 31px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.whatsappti-emoji-item-v14-12-4:hover {
    background: #e0f2fe;
}

.composer-emoji-trigger.is-active,
[data-emoji-trigger].is-active {
    background: rgba(0, 128, 105, 0.12) !important;
}

/* emoji-native-v14-12-5 */
.composer-input-wrap {
    position: relative !important;
    overflow: visible !important;
}

.send-form {
    overflow: visible !important;
}

.composer-input-wrap textarea {
    padding-left: 52px !important;
}

.composer-emoji-native-v14-12-5 {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2147483000;
    width: 34px;
    height: 34px;
}

.composer-emoji-native-v14-12-5 summary {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
    user-select: none;
    font-size: 20px;
    line-height: 1;
}

.composer-emoji-native-v14-12-5 summary::-webkit-details-marker {
    display: none;
}

.composer-emoji-native-v14-12-5 summary::marker {
    content: "";
}

.composer-emoji-native-v14-12-5[open] summary,
.composer-emoji-native-v14-12-5 summary:hover {
    background: rgba(0, 128, 105, 0.10);
}

.emoji-native-panel-v14-12-5 {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: min(340px, calc(100vw - 60px));
    max-height: 280px;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
    z-index: 2147483001;
}

.emoji-native-header-v14-12-5 {
    margin-bottom: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.emoji-native-grid-v14-12-5 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    max-height: 230px;
    overflow-y: auto;
}

.emoji-native-item-v14-12-5 {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.emoji-native-item-v14-12-5:hover {
    background: #e0f2fe;
}

/* footer-compact-v14-12-8 */
body {
    padding-bottom: 20px !important;
}

.app-shell {
    margin-bottom: 4px !important;
}

.system-credit {
    bottom: 3px !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
}

@media (min-width: 821px) {
    .app-shell {
        height: calc(100vh - 92px) !important;
        min-height: calc(100vh - 92px) !important;
    }
}

@media (max-width: 820px) {
    body {
        padding-bottom: 0 !important;
    }

    .system-credit {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
    }
}

.is-sending-v14-12-8 {
    opacity: 0.72;
    cursor: wait !important;
}

/* ajuste-rodape-v14-12-10 */
body {
    padding-bottom: 8px !important;
}

.app-shell {
    margin-bottom: 8px !important;
}

.system-credit {
    position: fixed !important;
    right: 20px !important;
    bottom: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    font-size: 10px !important;
    background: transparent !important;
}

@media (max-width: 820px) {
    body {
        padding-bottom: 4px !important;
    }

    .system-credit {
        position: static !important;
        margin-top: 4px !important;
        text-align: center !important;
    }
}

/* corrigir-altura-painel-rodape-v14-12-11 */
@media (min-width: 821px) {
    html,
    body {
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
        padding-bottom: 0 !important;
    }

    body {
        display: flex !important;
        flex-direction: column !important;
    }

    .app-shell {
        flex: 1 1 auto !important;
        height: calc(100vh - 42px) !important;
        min-height: calc(100vh - 42px) !important;
        max-height: calc(100vh - 42px) !important;
        margin-top: 10px !important;
        margin-bottom: 6px !important;
    }

    .app-header {
        flex: 0 0 auto !important;
    }

    .layout {
        height: calc(100% - 68px) !important;
        min-height: 0 !important;
    }

    .sidebar {
        height: 100% !important;
        min-height: 0 !important;
    }

    .conversation-list,
    .group-list {
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .chat,
    .chat-empty {
        height: 100% !important;
        min-height: 0 !important;
    }

    .chat {
        display: flex !important;
        flex-direction: column !important;
    }

    .chat-header {
        flex: 0 0 auto !important;
    }

    .messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    .composer {
        flex: 0 0 auto !important;
    }

    .system-credit {
        position: fixed !important;
        right: 20px !important;
        bottom: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        text-align: right !important;
    }
}

@media (max-width: 820px) {
    html,
    body {
        height: auto !important;
        min-height: 100vh !important;
        overflow: auto !important;
    }

    .app-shell {
        height: auto !important;
        min-height: 100vh !important;
        margin-bottom: 0 !important;
    }

    .system-credit {
        position: static !important;
        margin: 6px 12px !important;
        text-align: center !important;
    }
}


/* visual-operadores-admin-setor-v14-13-5 */
.operator-profile-pill-v14-13-5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.operator-profile-global-v14-13-5 {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #7dd3fc;
}

.operator-profile-sector-admin-v14-13-5 {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.operator-profile-operator-v14-13-5 {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}


/* operator-profile-unified-v14-13-6 */
.operator-profile-pill-v14-13-6 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.operator-profile-global-v14-13-6 {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.operator-profile-sector-admin-v14-13-6 {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.operator-profile-operator-v14-13-6 {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* history-search-layout-fix-v14-13-8 */
body.history-search-fixed-v14-13-8 .chat-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: nowrap !important;
}

body.history-search-fixed-v14-13-8 .chat-header > div:first-child {
    min-width: 0 !important;
}

body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 {
    flex: 0 1 430px !important;
    max-width: 430px !important;
    min-width: 260px !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
}

body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    background: transparent !important;
}

body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
}

body.history-search-fixed-v14-13-8 .messages {
    padding-top: 14px !important;
    margin-top: 0 !important;
}

@media (max-width: 1100px) {
    body.history-search-fixed-v14-13-8 .chat-header {
        flex-wrap: wrap !important;
    }

    body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 {
        order: 20 !important;
        flex: 1 1 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: 0 !important;
    }
}

/* history-search-inline-tuning-v14-13-9 */
body.history-search-fixed-v14-13-8 .chat-header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

body.history-search-fixed-v14-13-8 .chat-header > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 {
    flex: 0 0 320px !important;
    width: 320px !important;
    max-width: 320px !important;
    min-width: 220px !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    align-self: center !important;
}

body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 {
    width: 100% !important;
}

body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input,
body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input[type="search"],
body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

body.history-search-fixed-v14-13-8 .chat-header .btn,
body.history-search-fixed-v14-13-8 .chat-header button,
body.history-search-fixed-v14-13-8 .chat-header a.btn {
    flex-shrink: 0 !important;
}

@media (max-width: 1400px) {
    body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 {
        flex: 0 0 280px !important;
        width: 280px !important;
        max-width: 280px !important;
        min-width: 200px !important;
    }
}

@media (max-width: 1180px) {
    body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 {
        flex: 0 0 240px !important;
        width: 240px !important;
        max-width: 240px !important;
        min-width: 180px !important;
    }
}

/* history-search-force-inline-v14-14-0 */

/* força o cabeçalho do histórico a ficar em uma única linha */
body.history-search-fixed-v14-13-8 .chat-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 260px auto 40px !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
}

/* bloco do nome/status */
body.history-search-fixed-v14-13-8 .chat-header > div:first-child {
    grid-column: 1 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
}

/* slot da busca */
body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 {
    grid-column: 2 !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    align-self: center !important;
    justify-self: start !important;
}

/* caixa da busca */
body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
}

body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input,
body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input[type="search"],
body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input[type="text"] {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
}

/* botão reabrir: 3ª coluna */
body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 + * {
    grid-column: 3 !important;
    justify-self: start !important;
    align-self: center !important;
    white-space: nowrap !important;
}

/* botão fechar: 4ª coluna */
body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8 + * + * {
    grid-column: 4 !important;
    justify-self: start !important;
    align-self: center !important;
}

/* remove quebras estranhas */
body.history-search-fixed-v14-13-8 .chat-header > * {
    min-width: 0 !important;
}

/* telas um pouco menores */
@media (max-width: 1360px) {
    body.history-search-fixed-v14-13-8 .chat-header {
        grid-template-columns: minmax(0, 1fr) 220px auto 40px !important;
    }

    body.history-search-fixed-v14-13-8 .history-search-slot-v14-13-8,
    body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8,
    body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input,
    body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input[type="search"],
    body.history-search-fixed-v14-13-8 .history-search-box-v14-13-8 input[type="text"] {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }
}

/* history-search-header-absolute-v14-14-1 */
body.history-search-absolute-v14-14-1 .history-search-absolute-slot-v14-14-1 input {
    border-radius: 999px !important;
}

body.history-search-absolute-v14-14-1 .messages {
    padding-top: 12px !important;
}

@media (max-width: 1180px) {
    body.history-search-absolute-v14-14-1 .history-search-absolute-slot-v14-14-1 {
        display: none !important;
    }
}


/* history-message-search-v14-14-2 */
.history-chat-header-v14-14-2 {
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

.history-chat-header-v14-14-2 .chat-header-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.history-chat-header-v14-14-2 .chat-header-actions {
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.history-message-search-slot-v14-14-2 {
    flex: 0 0 245px !important;
    width: 245px !important;
    min-width: 190px !important;
    max-width: 245px !important;
    margin: 0 4px 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.history-message-search-slot-v14-14-2 .message-search-v14-9-3 {
    flex: 0 0 245px !important;
    width: 245px !important;
    min-width: 0 !important;
    max-width: 245px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.history-message-search-slot-v14-14-2 .message-search-main-v14-9-3 {
    width: 100% !important;
    gap: 4px !important;
}

.history-message-search-slot-v14-14-2 .message-search-v14-9-3 input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 11px !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
}

.history-message-search-slot-v14-14-2 .message-search-actions-v14-9-3 button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
}

@media (max-width: 1320px) {
    .history-message-search-slot-v14-14-2,
    .history-message-search-slot-v14-14-2 .message-search-v14-9-3 {
        flex-basis: 205px !important;
        width: 205px !important;
        max-width: 205px !important;
    }
}

@media (max-width: 900px) {
    .history-chat-header-v14-14-2 {
        flex-wrap: wrap !important;
    }

    .history-message-search-slot-v14-14-2,
    .history-message-search-slot-v14-14-2 .message-search-v14-9-3 {
        order: 20 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 6px 0 0 !important;
    }
}

/* atendimento-message-search-compact-v14-14-3 */
.chat-header:not(.history-chat-header-v14-14-2) .message-search-v14-9-3 {
    flex: 0 0 210px !important;
    width: 210px !important;
    min-width: 180px !important;
    max-width: 210px !important;
    margin-left: auto !important;
    margin-right: 8px !important;
}

.chat-header:not(.history-chat-header-v14-14-2) .message-search-v14-9-3 input[type="search"] {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 34px !important;
    font-size: 13px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
    box-sizing: border-box !important;
}

.chat-header:not(.history-chat-header-v14-14-2) .message-search-main-v14-9-3 {
    width: 100% !important;
}

@media (max-width: 900px) {
    .chat-header:not(.history-chat-header-v14-14-2) .message-search-v14-9-3 {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 6px 0 0 !important;
    }
}
/* fim-atendimento-message-search-compact-v14-14-3 */

/* history-message-search-compact-v14-14-4 */
.history-message-search-slot-v14-14-2 {
    flex: 0 0 125px !important;
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    margin: 0 4px 0 auto !important;
}

.history-message-search-slot-v14-14-2 .message-search-v14-9-3 {
    flex: 0 0 125px !important;
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
}

.history-message-search-slot-v14-14-2 .message-search-v14-9-3 input[type="search"] {
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    height: 34px !important;
    font-size: 12px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.history-message-search-slot-v14-14-2 .message-search-main-v14-9-3 {
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
}

@media (max-width: 900px) {
    .history-message-search-slot-v14-14-2,
    .history-message-search-slot-v14-14-2 .message-search-v14-9-3,
    .history-message-search-slot-v14-14-2 .message-search-main-v14-9-3,
    .history-message-search-slot-v14-14-2 .message-search-v14-9-3 input[type="search"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }
}
/* fim-history-message-search-compact-v14-14-4 */

/* reaction-whatsapp-visual-v14-15-0 */
.msg,
.previous-history-msg {
    overflow: visible !important;
}

.msg-inner {
    position: relative !important;
    overflow: visible !important;
}

.msg:has(.msg-reactions),
.previous-history-msg:has(.msg-reactions) {
    margin-bottom: 14px !important;
}

.msg-inner:has(.msg-reactions) {
    margin-bottom: 8px !important;
}

.msg-reactions {
    position: absolute !important;
    z-index: 20 !important;
    bottom: -13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 25px !important;
    min-height: 21px !important;
    width: fit-content !important;
    margin: 0 !important;
    padding: 1px 7px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.18) !important;
    font-size: 15px !important;
    line-height: 1.1 !important;
    pointer-events: none !important;
}

.msg.out .msg-reactions {
    right: 8px !important;
    left: auto !important;
}

.msg.in .msg-reactions {
    left: 8px !important;
    right: auto !important;
}
/* fim-reaction-whatsapp-visual-v14-15-0 */

/* groups-delete-search-v14-17-0 */
.group-chat-header-v14-17-0 {
    flex-wrap: nowrap !important;
    gap: 10px !important;
}

.group-chat-header-v14-17-0 .chat-header-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.group-message-search-slot-v14-17-0 {
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 150px !important;
    max-width: 170px !important;
    margin: 0 4px 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.group-message-search-slot-v14-17-0 .message-search-v14-9-3 {
    flex: 0 0 170px !important;
    width: 170px !important;
    min-width: 0 !important;
    max-width: 170px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.group-message-search-slot-v14-17-0 .message-search-main-v14-9-3 {
    width: 100% !important;
    gap: 4px !important;
}

.group-message-search-slot-v14-17-0 .message-search-v14-9-3 input[type="search"] {
    width: 170px !important;
    min-width: 0 !important;
    max-width: 170px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
    font-size: 12px !important;
}

.group-message-search-slot-v14-17-0 .message-search-actions-v14-9-3 button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
}

.group-delete-definitive-form-v14-17-0 {
    flex: 0 0 auto !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.group-delete-definitive-btn-v14-17-0 {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(220, 38, 38, 0.24) !important;
    background: #fff !important;
    color: #dc2626 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 28px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10) !important;
}

.group-delete-definitive-btn-v14-17-0:hover {
    background: #fef2f2 !important;
    border-color: rgba(220, 38, 38, 0.45) !important;
}

@media (max-width: 900px) {
    .group-chat-header-v14-17-0 {
        flex-wrap: wrap !important;
    }

    .group-message-search-slot-v14-17-0,
    .group-message-search-slot-v14-17-0 .message-search-v14-9-3,
    .group-message-search-slot-v14-17-0 .message-search-main-v14-9-3,
    .group-message-search-slot-v14-17-0 .message-search-v14-9-3 input[type="search"] {
        order: 20 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 6px 0 0 !important;
    }

    .group-delete-definitive-form-v14-17-0 {
        margin-left: auto !important;
    }
}
/* fim-groups-delete-search-v14-17-0 */


/* whatsappti-vcard-recebido-css-v14-23-68 */
.wti-vcard-recebido-v142368 {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: min(320px, 100%);
    max-width: 420px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.msg.out .wti-vcard-recebido-v142368 {
    background: rgba(236, 253, 245, 0.95);
}

.wti-vcard-avatar-v142368 {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #0f766e;
    background: linear-gradient(135deg, #d1fae5, #ecfeff);
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.wti-vcard-main-v142368 {
    min-width: 0;
    flex: 1;
}

.wti-vcard-kicker-v142368 {
    font-size: 11px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 2px;
}

.wti-vcard-name-v142368 {
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    word-break: break-word;
}

.wti-vcard-phone-v142368 {
    color: #475569;
    font-size: 13px;
    margin-top: 2px;
}

.wti-vcard-form-v142368 {
    margin: 10px 0 0 0;
}

.wti-vcard-save-btn-v142368 {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: #059669;
    cursor: pointer;
}

.wti-vcard-save-btn-v142368:hover {
    filter: brightness(0.96);
}

@media (max-width: 720px) {
    .wti-vcard-recebido-v142368 {
        max-width: 100%;
        padding: 11px;
    }

    .wti-vcard-save-btn-v142368 {
        width: 100%;
    }
}
/* /whatsappti-vcard-recebido-css-v14-23-68 */

