:root {
    --wcom-primary: #6c3df4;
    --wcom-primary-dark: #5630ce;
    --wcom-primary-soft: #f1edff;
    --wcom-sidebar: #0f1724;
    --wcom-sidebar-2: #101827;
    --wcom-bg: #f5f7fb;
    --wcom-surface: #ffffff;
    --wcom-text: #1b2433;
    --wcom-muted: #6d7788;
    --wcom-border: #e4e8ef;
    --wcom-success: #16865c;
    --wcom-success-soft: #e9f7f1;
    --wcom-danger: #c84545;
    --wcom-danger-soft: #fff0f0;
    --wcom-warning: #9a6a09;
    --wcom-warning-soft: #fff7df;
    --wcom-info: #2878d4;
    --wcom-info-soft: #edf6ff;
    --wcom-radius: 14px;
    --wcom-radius-lg: 20px;
    --wcom-shadow: 0 12px 36px rgba(15, 23, 42, .08);
    --wcom-sidebar-width: 252px;
    --wcom-sidebar-collapsed-width: 82px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    font-size: 17px;
}

body {
    background: var(--wcom-bg);
    color: var(--wcom-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.wcom-app {
    min-height: 100vh;
}

.wcom-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--wcom-sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    background: linear-gradient(180deg, var(--wcom-sidebar) 0%, #0b1220 100%);
    color: white;
}

.wcom-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wcom-brand, .wcom-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wcom-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1;
}

.wcom-login-brand > div:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.wcom-brand strong, .wcom-login-brand strong {
    font-size: 19px;
}

.wcom-brand span, .wcom-login-brand span {
    font-size: 19px;
    font-weight: 400;
}

.wcom-brand small, .wcom-login-brand small {
    margin-top: 6px;
    color: #c8bbff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.wcom-brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: linear-gradient(145deg, #8b5cff, #5a22df);
    box-shadow: 0 10px 26px rgba(90, 34, 223, .35);
    color: white;
    font-size: 22px;
    font-weight: 800;
}

.wcom-brand-mark-lg {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    font-size: 28px;
}

.wcom-menu {
    display: grid;
    gap: 7px;
    margin-top: 34px;
}

    .wcom-menu a, .wcom-menu-disabled {
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 48px;
        padding: 0 13px;
        border-radius: 11px;
        color: #aeb8c8;
        font-size: 15px;
        font-weight: 650;
    }

        .wcom-menu a:hover, .wcom-menu a.active {
            background: rgba(108, 61, 244, .18);
            color: white;
        }

.wcom-menu-disabled {
    opacity: .55;
}

    .wcom-menu-disabled em {
        margin-left: auto;
        font-size: 10px;
        font-style: normal;
        letter-spacing: .08em;
    }

.wcom-menu-icon {
    width: 22px;
    flex: 0 0 22px;
    text-align: center;
    font-size: 19px;
}

.wcom-menu-text {
    white-space: nowrap;
}

.wcom-sidebar-toggle {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    color: #dce3ee;
    font-size: 24px;
    line-height: 1;
}

    .wcom-sidebar-toggle:hover {
        background: rgba(255,255,255,.10);
        color: white;
    }

body.wcom-sidebar-collapsed .wcom-sidebar {
    width: var(--wcom-sidebar-collapsed-width);
    padding-left: 14px;
    padding-right: 14px;
}

body.wcom-sidebar-collapsed .wcom-main {
    margin-left: var(--wcom-sidebar-collapsed-width);
}

body.wcom-sidebar-collapsed .wcom-brand-row {
    flex-direction: column;
}

body.wcom-sidebar-collapsed .wcom-brand {
    justify-content: center;
}

body.wcom-sidebar-collapsed .wcom-brand-text,
body.wcom-sidebar-collapsed .wcom-menu-text,
body.wcom-sidebar-collapsed .wcom-menu-disabled em,
body.wcom-sidebar-collapsed .wcom-user-text,
body.wcom-sidebar-collapsed .wcom-link-button {
    display: none;
}

body.wcom-sidebar-collapsed .wcom-sidebar-toggle {
    width: 42px;
}

body.wcom-sidebar-collapsed .wcom-menu a,
body.wcom-sidebar-collapsed .wcom-menu-disabled {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

body.wcom-sidebar-collapsed .wcom-menu-icon {
    width: auto;
    flex-basis: auto;
}

body.wcom-sidebar-collapsed .wcom-user {
    justify-content: center;
}

body.wcom-sidebar-collapsed .wcom-sidebar-footer {
    display: flex;
    justify-content: center;
}

.wcom-sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.wcom-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcom-user-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2a3444;
    font-weight: 800;
}

.wcom-user-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

    .wcom-user-text strong {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wcom-user-text span {
        margin-top: 3px;
        color: #8995a7;
        font-size: 11px;
    }

.wcom-link-button {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #9da7b8;
    font-size: 13px;
}

    .wcom-link-button:hover {
        color: white;
    }

.wcom-main {
    min-height: 100vh;
    margin-left: var(--wcom-sidebar-width);
    transition: margin-left .18s ease;
}

.wcom-page {
    max-width: 1800px;
    margin: 0 auto;
    padding: 28px;
}

.wcom-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .wcom-page-header h1 {
        margin: 4px 0 5px;
        font-size: 32px;
        letter-spacing: -.035em;
    }

    .wcom-page-header p {
        margin: 0;
        color: var(--wcom-muted);
        font-size: 15px;
    }

.wcom-eyebrow {
    color: #c6b3ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.wcom-eyebrow-dark {
    color: var(--wcom-primary);
}

.wcom-card {
    border: 1px solid var(--wcom-border);
    border-radius: var(--wcom-radius-lg);
    background: var(--wcom-surface);
    box-shadow: 0 2px 10px rgba(15,23,42,.04);
    overflow: hidden;
}

.wcom-card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--wcom-border);
}

    .wcom-card-header.compact > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .wcom-card-header strong {
        font-size: 15px;
    }

    .wcom-card-header span {
        color: var(--wcom-muted);
        font-size: 12px;
    }

.wcom-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.wcom-search-form {
    display: flex;
    min-width: 420px;
    gap: 8px;
}

.wcom-search {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--wcom-border);
    border-radius: 11px;
    background: white;
    outline: none;
}

    .wcom-search:focus {
        border-color: #a993ff;
        box-shadow: 0 0 0 3px rgba(108,61,244,.10);
    }

.wcom-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

    .wcom-filters a {
        padding: 9px 12px;
        border: 1px solid var(--wcom-border);
        border-radius: 999px;
        background: white;
        color: var(--wcom-muted);
        font-size: 12px;
        font-weight: 700;
    }

        .wcom-filters a:hover, .wcom-filters a.active {
            border-color: #bbaaff;
            background: var(--wcom-primary-soft);
            color: var(--wcom-primary);
        }

.wcom-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 750;
    font-size: 13px;
    transition: .15s ease;
}

.wcom-button-primary {
    background: var(--wcom-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(108,61,244,.20);
}

    .wcom-button-primary:hover {
        background: var(--wcom-primary-dark);
    }

.wcom-button-secondary {
    border-color: var(--wcom-border);
    background: white;
    color: var(--wcom-text);
}

.wcom-button-success {
    background: var(--wcom-success);
    color: white;
}

.wcom-button-danger-outline {
    border-color: #efcaca;
    background: white;
    color: var(--wcom-danger);
}

    .wcom-button-danger-outline:hover {
        background: var(--wcom-danger-soft);
    }

.wcom-button-block {
    width: 100%;
}

.wcom-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 650;
}

.wcom-alert-danger {
    background: var(--wcom-danger-soft);
    color: var(--wcom-danger);
}

.wcom-alert-success {
    background: var(--wcom-success-soft);
    color: var(--wcom-success);
}

.wcom-attendance-grid {
    display: grid;
    grid-template-columns: 320px minmax(430px, 1fr) 310px;
    gap: 16px;
    min-height: calc(100vh - 205px);
}

.wcom-conversation-list, .wcom-chat-panel, .wcom-detail-panel {
    min-height: 0;
}

.wcom-conversation-scroll, .wcom-chat-scroll {
    overflow-y: auto;
}

.wcom-conversation-scroll {
    max-height: calc(100vh - 292px);
}

.wcom-conversation-item {
    display: block;
    padding: 15px 16px;
    border-bottom: 1px solid #eef1f5;
    transition: .12s ease;
}

    .wcom-conversation-item:hover {
        background: #fafbfe;
    }

    .wcom-conversation-item.active {
        background: #f3f0ff;
        box-shadow: inset 3px 0 0 var(--wcom-primary);
    }

.wcom-conversation-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .wcom-conversation-line strong {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 15px;
    }

    .wcom-conversation-line time {
        color: var(--wcom-muted);
        font-size: 11px;
    }

.wcom-conversation-company {
    margin-top: 3px;
    color: #535f70;
    font-size: 13px;
    font-weight: 650;
}

.wcom-conversation-preview {
    margin-top: 7px;
    color: var(--wcom-muted);
    font-size: 12.5px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wcom-conversation-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

    .wcom-conversation-bottom small {
        color: #8b94a2;
        font-size: 10px;
        text-transform: uppercase;
    }

.wcom-status {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .02em;
}

.status-1 {
    background: var(--wcom-primary-soft);
    color: var(--wcom-primary);
}

.status-2 {
    background: var(--wcom-warning-soft);
    color: var(--wcom-warning);
}

.status-3 {
    background: #edf6ff;
    color: #2878d4;
}

.status-4 {
    background: #eef2f7;
    color: #475569;
}

.status-5 {
    background: var(--wcom-danger-soft);
    color: var(--wcom-danger);
}

.wcom-chat-panel {
    display: flex;
    flex-direction: column;
}

.wcom-chat-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--wcom-border);
}

.wcom-chat-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.wcom-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--wcom-primary-soft);
    color: var(--wcom-primary);
    font-weight: 850;
}

.wcom-chat-identity > div:last-child {
    display: flex;
    flex-direction: column;
}

.wcom-chat-identity strong {
    font-size: 16px;
}

.wcom-chat-identity span {
    margin-top: 3px;
    color: var(--wcom-muted);
    font-size: 12px;
}

.wcom-chat-scroll {
    flex: 1;
    max-height: calc(100vh - 292px);
    padding: 20px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
}

.wcom-message-row {
    display: flex;
    margin-bottom: 12px;
}

    .wcom-message-row.cliente {
        justify-content: flex-end;
    }

    .wcom-message-row.theo {
        justify-content: flex-start;
    }

.wcom-message {
    max-width: min(78%, 650px);
    padding: 11px 13px 9px;
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(15,23,42,.05);
}

.wcom-message-row.cliente .wcom-message {
    border-bottom-right-radius: 5px;
    background: #e7f7ec;
}

.wcom-message-row.theo .wcom-message {
    border: 1px solid #edf0f4;
    border-bottom-left-radius: 5px;
    background: white;
}

.wcom-message-origin {
    margin-bottom: 5px;
    color: var(--wcom-muted);
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .10em;
}

.wcom-message-text {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.45;
}

.wcom-message-meta {
    margin-top: 6px;
    color: #8993a1;
    font-size: 10.5px;
    text-align: right;
}

.wcom-message-error {
    margin-top: 6px;
    color: var(--wcom-danger);
    font-size: 10.5px;
    font-weight: 700;
}

.wcom-detail-panel {
    padding: 18px;
}

.wcom-detail-head {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--wcom-border);
}

    .wcom-detail-head h2 {
        margin: 4px 0 0;
        font-size: 21px;
        letter-spacing: -.025em;
    }

.wcom-detail-section {
    padding: 13px 0;
    border-bottom: 1px solid #eef1f4;
}

    .wcom-detail-section label {
        display: block;
        margin-bottom: 4px;
        color: var(--wcom-muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .wcom-detail-section strong {
        font-size: 14px;
        font-weight: 720;
    }

    .wcom-detail-section span {
        display: block;
        margin-top: 4px;
        color: var(--wcom-muted);
        font-size: 12px;
    }

    .wcom-detail-section.summary p {
        margin: 0;
        color: #4f5968;
        font-size: 13px;
        line-height: 1.5;
    }

.wcom-block-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 16px 0 10px;
    padding: 12px;
    border-radius: 11px;
    background: var(--wcom-danger-soft);
    color: var(--wcom-danger);
}

    .wcom-block-box strong {
        font-size: 13px;
    }

    .wcom-block-box span {
        font-size: 12px;
    }

.wcom-empty {
    padding: 30px 18px;
    color: var(--wcom-muted);
    text-align: center;
    font-size: 14px;
}

.wcom-empty-large {
    display: grid;
    min-height: 460px;
    place-items: center;
}

.wcom-login-body {
    min-height: 100vh;
    background: white;
}

.wcom-login-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(560px, 58%) minmax(420px, 42%);
}

.wcom-login-hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    padding: 48px 62px 32px;
    background: linear-gradient(135deg, #172e68 0%, #253f92 48%, #5430d8 100%);
    color: white;
}

    .wcom-login-hero::before {
        position: absolute;
        right: -330px;
        bottom: -300px;
        width: 820px;
        height: 650px;
        content: "";
        border: 8px solid rgba(180,164,255,.17);
        border-radius: 56px;
        transform: rotate(-24deg);
    }

.wcom-login-copy {
    position: relative;
    z-index: 1;
    max-width: 610px;
    margin: auto 0;
}

    .wcom-login-copy h1 {
        max-width: 590px;
        margin: 13px 0 16px;
        font-size: clamp(40px, 4.3vw, 66px);
        line-height: 1.01;
        letter-spacing: -.055em;
    }

    .wcom-login-copy p {
        max-width: 540px;
        margin: 0;
        color: #d9e0ff;
        font-size: 17px;
        line-height: 1.55;
    }

.wcom-login-foot {
    position: relative;
    z-index: 1;
    color: #b8c1e2;
    font-size: 10px;
}

.wcom-login-form-area {
    display: grid;
    place-items: center;
    padding: 38px;
    background: white;
}

.wcom-login-card {
    width: min(100%, 390px);
}

.wcom-login-card-head {
    margin-bottom: 26px;
}

    .wcom-login-card-head h2 {
        margin: 7px 0 6px;
        font-size: 31px;
        letter-spacing: -.035em;
    }

    .wcom-login-card-head p {
        margin: 0;
        color: var(--wcom-muted);
        font-size: 13px;
    }

.wcom-form {
    display: grid;
    gap: 16px;
}

.wcom-field label {
    display: block;
    margin-bottom: 7px;
    color: #364152;
    font-size: 11px;
    font-weight: 750;
}

.wcom-field input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dfe4ec;
    border-radius: 11px;
    outline: none;
}

    .wcom-field input:focus {
        border-color: #a893ff;
        box-shadow: 0 0 0 3px rgba(108,61,244,.10);
    }

@media (max-width: 1180px) {
    .wcom-attendance-grid {
        grid-template-columns: 290px 1fr;
    }

    .wcom-detail-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    :root {
        --wcom-sidebar-width: 0px;
    }

    .wcom-sidebar {
        display: none;
    }

    .wcom-main {
        margin-left: 0;
    }

    .wcom-page {
        padding: 18px;
    }

    .wcom-attendance-grid {
        grid-template-columns: 1fr;
    }

    .wcom-conversation-scroll, .wcom-chat-scroll {
        max-height: none;
    }

    .wcom-search-form {
        min-width: 100%;
    }

    .wcom-login-page {
        grid-template-columns: 1fr;
    }

    .wcom-login-hero {
        display: none;
    }

    .wcom-login-form-area {
        min-height: 100vh;
    }
}

/* ==========================================================
   PADRÃO VISUAL WCOMTICKETS ADMIN
   Tipografia e marca alinhadas ao administrativo
   ========================================================== */

:root {
    --wcom-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--wcom-font-family);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Marca do sidebar no mesmo padrão do WCOMTickets Admin */
.wcom-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.wcom-brand-icon {
    display: inline-flex;
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #8255ff, #5528dd);
    box-shadow: 0 9px 24px rgba(108, 61, 244, 0.32);
}

    .wcom-brand-icon i {
        color: #ffffff;
        font-size: 23px;
        line-height: 1;
    }

.wcom-brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1;
}

.wcom-brand-name {
    display: flex;
    align-items: baseline;
    color: #ffffff;
    font-family: var(--wcom-font-family);
    font-size: 18px;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

    .wcom-brand-name strong {
        color: inherit;
        font-size: inherit;
        font-weight: 700;
        letter-spacing: inherit;
    }

    .wcom-brand-name span {
        margin: 0;
        color: inherit;
        font-size: inherit;
        font-weight: 400;
        letter-spacing: inherit;
    }

.wcom-brand-text small {
    margin-top: 3px;
    color: #c8bbff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.wcom-menu a,
.wcom-menu-disabled {
    font-weight: 600;
}

.wcom-menu-icon i {
    width: 20px;
    color: currentColor;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.wcom-sidebar-toggle i {
    font-size: 15px;
    line-height: 1;
}

.wcom-link-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

    .wcom-link-button i {
        width: 17px;
        font-size: 14px;
        text-align: center;
    }

/* Login no mesmo padrão tipográfico do WCOMTickets Admin */
.wcom-login-page {
    grid-template-columns: minmax(590px, 58%) minmax(430px, 42%);
}

.wcom-login-hero {
    padding: 50px 66px 34px;
}

.wcom-login-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.wcom-login-brand-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #8b5cff, #5a22df);
    box-shadow: 0 14px 34px rgba(36, 13, 111, 0.3);
}

    .wcom-login-brand-icon i {
        color: #ffffff;
        font-size: 26px;
        line-height: 1;
    }

.wcom-login-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.wcom-login-brand-name {
    display: flex;
    align-items: baseline;
    color: #ffffff;
    font-family: var(--wcom-font-family);
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

    .wcom-login-brand-name strong {
        color: inherit;
        font-size: inherit;
        font-weight: 700;
        line-height: inherit;
        letter-spacing: inherit;
    }

    .wcom-login-brand-name span {
        margin: 0;
        color: inherit;
        font-size: inherit;
        font-weight: 400;
        line-height: inherit;
        letter-spacing: inherit;
    }

.wcom-login-brand-text small {
    margin-top: 4px;
    color: #c8bbff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.18em;
}

.wcom-login-copy {
    position: relative;
    z-index: 2;
    width: min(100%, 590px);
    max-width: none;
    margin: auto 0;
    padding: 30px 0 18px;
}

.wcom-login-kicker {
    display: block;
    margin-bottom: 14px;
    color: #c0aaff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wcom-login-kicker-dark {
    margin-bottom: 16px;
    color: #6137f4;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.wcom-login-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 3.55vw, 58px);
    font-weight: 700;
    line-height: 1.01;
    letter-spacing: -0.045em;
}

    .wcom-login-title span {
        color: #7c55f8;
    }

.wcom-login-description {
    max-width: 535px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    line-height: 1.5;
}

.wcom-login-foot {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.55;
}

.wcom-login-form-area {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    background: #ffffff;
}

.wcom-login-card {
    width: min(100%, 520px);
}

.wcom-login-card-head {
    margin-bottom: 38px;
}

    .wcom-login-card-head h2 {
        margin: 0;
        color: #142653;
        font-size: 48px;
        font-weight: 700;
        letter-spacing: -0.045em;
    }

    .wcom-login-card-head p {
        margin: 17px 0 0;
        color: #7f8ba7;
        font-size: 12px;
        line-height: 1.6;
    }

.wcom-form {
    display: block;
}

.wcom-field + .wcom-field {
    margin-top: 24px;
}

.wcom-field label {
    display: block;
    margin-bottom: 10px;
    color: #16264f;
    font-size: 12px;
    font-weight: 700;
}

.wcom-login-input {
    position: relative;
}

    .wcom-login-input input {
        width: 100%;
        height: 56px;
        min-height: 56px;
        padding: 0 58px 0 20px;
        border: 1px solid #dce2ef;
        border-radius: 13px;
        outline: none;
        background: #ffffff;
        color: #16264f;
        font-size: 13px;
        transition: border-color 180ms ease, box-shadow 180ms ease;
    }

        .wcom-login-input input:focus {
            border-color: #6c3df4;
            box-shadow: 0 0 0 4px rgba(108, 61, 244, 0.11);
        }

        .wcom-login-input input::placeholder {
            color: #98a2b8;
        }

.wcom-login-input-icon {
    position: absolute;
    top: 50%;
    right: 19px;
    transform: translateY(-50%);
    color: #46577b;
    font-size: 15px;
    pointer-events: none;
}

.wcom-login-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 22px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(90deg, #5830df 0%, #6c31f4 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(93, 47, 225, 0.22);
    cursor: pointer;
}

/* Evita pesos sintetizados diferentes dos usados no Admin */
.wcom-page-header h1,
.wcom-card-header strong,
.wcom-conversation-line strong,
.wcom-conversation-company,
.wcom-chat-identity strong,
.wcom-detail-head h2,
.wcom-detail-section strong,
.wcom-status,
.wcom-button,
.wcom-filters a {
    font-weight: 700;
}

.wcom-message-origin,
.wcom-eyebrow,
.wcom-detail-section label {
    font-weight: 700;
}

@media (max-width: 1120px) {
    .wcom-login-page {
        grid-template-columns: 1fr;
    }

    .wcom-login-hero {
        display: none;
    }

    .wcom-login-form-area {
        padding: 40px 24px;
    }
}

@media (max-width: 560px) {
    .wcom-login-form-area {
        align-items: flex-start;
        padding: 50px 22px 30px;
    }

    .wcom-login-card-head h2 {
        font-size: 26px;
    }
}


/* ==========================================================
   MODAL DE CONFIRMAÇÃO
   ========================================================== */

.wcom-no-scroll {
    overflow: hidden;
}

.wcom-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

    .wcom-modal.is-open {
        display: flex;
    }

.wcom-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.wcom-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    overflow: hidden;
    border: 1px solid var(--wcom-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    animation: wcomModalEnter 180ms ease;
}

.wcom-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 24px;
}

.wcom-modal-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--wcom-danger-soft);
    color: var(--wcom-danger);
    font-size: 18px;
}

.wcom-modal-title-wrap {
    min-width: 0;
    flex: 1;
}

.wcom-modal-header h2 {
    margin: 0;
    color: var(--wcom-text);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.wcom-modal-header p {
    margin: 8px 0 0;
    color: var(--wcom-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.wcom-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 17px 24px;
    border-top: 1px solid var(--wcom-border);
    background: var(--wcom-surface-soft);
}

.wcom-button-danger {
    border-color: var(--wcom-danger);
    background: var(--wcom-danger);
    color: #ffffff;
}

    .wcom-button-danger:hover {
        background: #b92e2e;
        color: #ffffff;
    }

@keyframes wcomModalEnter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 560px) {
    .wcom-modal {
        padding: 14px;
    }

    .wcom-modal-header {
        padding: 20px;
    }

    .wcom-modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 15px 20px 20px;
    }

        .wcom-modal-footer .wcom-button {
            width: 100%;
        }
}


/* =============================================================
   WCOM.SDR.Web - Atendimentos: ajuste visual para notebooks
   Acrescentar AO FINAL do wwwroot/css/wcom-sdr.css atual.
   Nao altera JavaScript, endpoints, funcionalidades ou outras telas.
   ============================================================= */

/* Oculta a linha "WCOM SDR" acima de "Atendimentos", sem editar Razor. */
.wcom-page:has(.wcom-attendance-grid) .wcom-page-header .wcom-eyebrow {
    display: none;
}

/* Deixa o titulo mais proximo da barra de filtros em qualquer tela. */
.wcom-page:has(.wcom-attendance-grid) .wcom-page-header {
    margin-bottom: 14px;
}

/* Ajustes moderados: telas de notebook/monitores compactos. */
@media (min-width: 861px) and (max-width: 1600px) {
    .wcom-page:has(.wcom-attendance-grid) {
        padding: 16px 18px;
    }

        .wcom-page:has(.wcom-attendance-grid) .wcom-page-header {
            gap: 12px;
            margin-bottom: 12px;
        }

            .wcom-page:has(.wcom-attendance-grid) .wcom-page-header h1 {
                margin: 0 0 3px;
                font-size: 26px;
            }

            .wcom-page:has(.wcom-attendance-grid) .wcom-page-header p {
                font-size: 12.5px;
                line-height: 1.4;
            }

        .wcom-page:has(.wcom-attendance-grid) .wcom-toolbar {
            gap: 8px 12px;
            margin-bottom: 12px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-search-form {
            min-width: 0;
            width: min(100%, 350px);
            gap: 7px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-search,
        .wcom-page:has(.wcom-attendance-grid) .wcom-button {
            min-height: 36px;
            font-size: 12px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-search {
            padding-inline: 11px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-button {
            padding-inline: 12px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-filters {
            gap: 5px;
        }

            .wcom-page:has(.wcom-attendance-grid) .wcom-filters a {
                padding: 7px 9px;
                font-size: 11px;
                white-space: nowrap;
            }

        .wcom-page:has(.wcom-attendance-grid) .wcom-attendance-grid {
            gap: 12px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-card {
            border-radius: 14px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-card-header {
            padding: 12px 14px;
        }

            .wcom-page:has(.wcom-attendance-grid) .wcom-card-header strong {
                font-size: 13px;
            }

            .wcom-page:has(.wcom-attendance-grid) .wcom-card-header span {
                font-size: 10.5px;
            }

        .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-item {
            padding: 10px 12px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-line strong {
            font-size: 13px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-company {
            margin-top: 2px;
            font-size: 11.5px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-bottom {
            margin-top: 7px;
            gap: 5px;
        }

            .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-line time,
            .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-bottom small {
                font-size: 10px;
            }

        .wcom-page:has(.wcom-attendance-grid) .wcom-status {
            min-height: 21px;
            padding: 2px 7px;
            font-size: 10px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-chat-header {
            min-height: 58px;
            padding: 10px 12px;
            gap: 8px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-avatar {
            width: 35px;
            height: 35px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-chat-identity strong {
            font-size: 14px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-chat-identity span {
            font-size: 11px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-chat-scroll {
            padding: 12px 14px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-message-row {
            margin-bottom: 8px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-message {
            padding: 8px 10px;
            border-radius: 12px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-message-text {
            font-size: 13px;
            line-height: 1.4;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-message-origin {
            margin-bottom: 3px;
            font-size: 9px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-message-meta {
            margin-top: 4px;
            font-size: 9.5px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-detail-panel {
            padding: 12px 14px;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-detail-head {
            padding-bottom: 10px;
        }

            .wcom-page:has(.wcom-attendance-grid) .wcom-detail-head h2 {
                font-size: 17px;
            }

        .wcom-page:has(.wcom-attendance-grid) .wcom-detail-section {
            padding: 9px 0;
        }

            .wcom-page:has(.wcom-attendance-grid) .wcom-detail-section label {
                font-size: 9px;
            }

            .wcom-page:has(.wcom-attendance-grid) .wcom-detail-section strong {
                overflow-wrap: anywhere;
                font-size: 12px;
            }

            .wcom-page:has(.wcom-attendance-grid) .wcom-detail-section span,
            .wcom-page:has(.wcom-attendance-grid) .wcom-detail-section.summary p {
                font-size: 11px;
                line-height: 1.4;
            }

        .wcom-page:has(.wcom-attendance-grid) .wcom-chat-panel textarea {
            font-size: 12.5px;
        }
}

/* Em notebooks, mantem os tres paineis dentro da area util da janela.
   Cada painel rola separadamente. O campo de resposta fica visivel. */
@media (min-width: 1181px) and (max-width: 1600px) {
    .wcom-page:has(.wcom-attendance-grid) {
        display: flex;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        overflow: hidden;
    }

        .wcom-page:has(.wcom-attendance-grid) > .wcom-page-header,
        .wcom-page:has(.wcom-attendance-grid) > .wcom-toolbar {
            flex-shrink: 0;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-attendance-grid {
            flex: 1 1 auto;
            grid-template-columns: minmax(240px, 24%) minmax(0, 1fr) minmax(240px, 23%);
            min-height: 0;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-list {
            display: flex;
            min-height: 0;
            flex-direction: column;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-conversation-scroll {
            flex: 1 1 auto;
            min-height: 0;
            max-height: none;
            overflow-y: auto;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-chat-panel {
            min-height: 0;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-chat-scroll {
            flex: 1 1 auto;
            min-height: 0;
            max-height: none;
            overflow-y: auto;
        }

        .wcom-page:has(.wcom-attendance-grid) .wcom-detail-panel {
            min-height: 0;
            overflow-y: auto;
        }
}
