
/*Chamados*/
.modal-title {
    font-weight: 600;
}

.alert-light {
    border-left: 4px solid #17a2b8;
}

.badge-danger {
    font-size: 11px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    line-height: 1;
    padding: 3px 6px;
}

.modal-caso-fabrica {
    max-width: 95vw;
    height: 95vh;
}

    .modal-caso-fabrica .modal-content {
        height: 95vh;
    }

    .modal-caso-fabrica .modal-body {
        overflow-y: auto;
        background: #ffffff;
        padding: 8px 16px;
    }

    .modal-caso-fabrica .modal-content {
        background: #ffffff;
        border: none;
        border-radius: 12px;
    }

    .modal-caso-fabrica .modal-header {
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 12px 12px 0 0;
        padding: 8px 24px;
    }

    .modal-caso-fabrica .modal-title {
        font-weight: 700;
        font-size: 1.25rem;
        color: #111827;
    }

    .modal-caso-fabrica .caso-card {
        position: relative;
        background: #f4f6f9;
        border: 1px solid #e2e6eb;
        border-radius: 12px;
        padding: 8px 16px 10px;
        margin-bottom: 8px;
        box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
        transition: box-shadow .18s ease, transform .18s ease;
        overflow: hidden;
    }

    .modal-caso-fabrica .caso-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: #e5e7eb;
    }

    .modal-caso-fabrica .caso-card:has(.caso-num-info)::before { 
        background: #3b82f6; 

    }
    .modal-caso-fabrica .caso-card:has(.caso-num-ok)::before   { 
        background: #22c55e; 

    }
    .modal-caso-fabrica .caso-card:has(.caso-num-desc)::before {
        background: #8b5cf6;

    }

    .modal-caso-fabrica .caso-card.caso-card-dados::before {
        background: #f59e0b;
    }

    .modal-caso-fabrica .caso-card-dados .caso-ico-info {
        color: #f59e0b;
    }

    .modal-caso-fabrica .caso-card-dados .caso-num-info {
        background: #f59e0b;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, .14);
    }

    .modal-caso-fabrica .caso-card:hover {
        box-shadow: 0 6px 18px rgba(16, 24, 40, .08);
        transform: translateY(-1px);
    }

    .modal-caso-fabrica .caso-card-head {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 7px;
        padding-bottom: 5px;
        border-bottom: 1px solid #f1f3f5;
    }

    .modal-caso-fabrica .caso-card-head h6 {
        margin: 0;
        font-weight: 700;
        color: #111827;
        font-size: 1.02rem;
        letter-spacing: .2px;
    }

    .modal-caso-fabrica .caso-ico {
        font-size: 1.05rem;
        flex: 0 0 auto;
    }

    .modal-caso-fabrica .caso-ico-info { 
        color: #3b82f6; 

    }
    .modal-caso-fabrica .caso-ico-ok   { 
        color: #22c55e; 

    }
    .modal-caso-fabrica .caso-ico-desc { 
        color: #8b5cf6; 

    }

    .modal-caso-fabrica .caso-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 9px;
        color: #fff;
        font-size: .85rem;
        font-weight: 700;
        flex: 0 0 auto;
    }

    .modal-caso-fabrica .caso-num-info {
        background: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
    }
    .modal-caso-fabrica .caso-num-ok   {
        background: #22c55e;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
    }
    .modal-caso-fabrica .caso-num-desc {
        background: #8b5cf6;
        box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
    }

    .modal-caso-fabrica label {
        font-weight: 600;
        font-size: .72rem;
        letter-spacing: .4px;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 2px;
    }

    .modal-caso-fabrica .req { 
        color: #ef4444; 

    }
    .modal-caso-fabrica .opc {
        color: #9ca3af;
        font-weight: 400;
        font-size: .8rem;
    }

    .modal-caso-fabrica .caso-card-body .row + .row {
        margin-top: 6px;

    }
    .modal-caso-fabrica .caso-card-body .form-group { 
        margin-bottom: 0; 

    }

    .modal-caso-fabrica .form-control,
    .modal-caso-fabrica .select2-container--default .select2-selection--single {
        background-color: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 9px;
        color: #1f2937;
        height: 36px;
        padding-left: 14px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
        transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    }

    .modal-caso-fabrica .form-control:hover,
    .modal-caso-fabrica .select2-container--default .select2-selection--single:hover {
        border-color: #9aa3af;
    }

    .modal-caso-fabrica .form-control::placeholder {
        color: #9ca3af;

    }

    .modal-caso-fabrica .form-control:focus,
    .modal-caso-fabrica .select2-container--default.select2-container--focus .select2-selection--single {
        background-color: #ffffff;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
    }

    .modal-caso-fabrica .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 34px;
        padding-left: 0;
        color: #1f2937;
    }
    .modal-caso-fabrica .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 34px;
    }
    .modal-caso-fabrica .select2-container { 
        width: 100% !important;

    }

    .modal-caso-fabrica .caso-prioridade {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        background: #dcfce7;
        color: #15803d;
        font-weight: 600;
        font-size: .8rem;
        padding: 7px 14px;
        border-radius: 999px;
    }

    .modal-caso-fabrica .caso-prioridade::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
    }

    .modal-caso-fabrica .caso-prioridade.badge-warning {
        background: #fef3c7;
        color: #b45309;
    }

    .modal-caso-fabrica .caso-prioridade.badge-danger {
        background: #fee2e2;
        color: #b91c1c;
    }

    .modal-caso-fabrica .ctx-chat-resumo {
        background: #eef2ff;
        border: 1px solid #c7d2fe;
        border-radius: 10px;
        color: #3730a3;
    }

    .modal-caso-fabrica .modal-footer {
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        border-radius: 0 0 12px 12px;
        padding: 10px 20px;
    }

    .modal-caso-fabrica .modal-footer .btn {
        border-radius: 9px;
        font-weight: 600;
        padding: 9px 20px;
    }

    .modal-caso-fabrica .modal-footer .btn-success {
        box-shadow: 0 4px 12px rgba(34, 197, 94, .25);
    }

    .modal-caso-fabrica .caso-card-body .mt-3 {
        margin-top: 8px !important;
    }


.caso-card:has(.note-editor.note-frame.fullscreen) {
    transform: none !important;
    transition: none !important;
}

.note-editor.note-frame.fullscreen {
    z-index: 2060 !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

.note-editor.note-frame.fullscreen .note-editing-area {
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

.note-editor.note-frame.fullscreen .note-editable {
    height: 100% !important;
    overflow: auto !important;
}
.dt-title {
    font-weight: 600;
    line-height: 1.2;
}

.dt-sub {
    font-size: 12px;
    opacity: .75;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.dt-col-tempo .tempo-tarefa-atual {
    font-size: 11px;
    line-height: 14px;
    margin-top: 2px;
    font-weight: 600;
    white-space: nowrap;
    color: #1e7e34;
}

.badge-soft {
    padding: .25rem .5rem;
    border-radius: .5rem;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,.08);
}

.cell-nowrap {
    white-space: nowrap;
}

.row-clickable {
    cursor: pointer;
}
.modal-dialog.modal-full .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}
.modal-dialog.modal-full .modal-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.modal-dialog.modal-full {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
}

    .modal-dialog.modal-full .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .modal-dialog.modal-full .modal-body {
        overflow: hidden;
    }

.timeline {
    position: relative;
    padding-left: 0; /* <<< não empurra a timeline inteira */
    margin-top: 8px;
}

    /* trilho */
    .timeline:before {
        content: "";
        position: absolute;
        left: 14px;
        top: 6px;
        bottom: 6px;
        width: 2px;
        background: #e5e7eb;
    }

/* cada item cria o "gutter" (onde fica a bolinha) */
.timeline-item {
    position: relative;
    padding: 10px 0 10px 64px; /* <<< recuo REAL do conteúdo/card */
}

/* bolinha sempre no trilho, fora do card */
.timeline-marker {
    position: absolute;
    left: 7px; /* 14px (trilho) - 7px (meio da bolinha) */
    top: 22px; /* alinha com o topo do card */
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #0ea5e9;
    border: 3px solid #e0f2fe;
    box-shadow: 0 0 0 2px #fff;
    z-index: 2;
}

/* (opcional) conector do trilho até o card */
.timeline-item:after {
    content: "";
    position: absolute;
    left: 16px;
    top: 28px;
    width: 34px;
    height: 2px;
    background: #e5e7eb;
}

/* card */
.timeline-content {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 12px;
    width: auto; /* <<< importante: NÃO força 100% */
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.timeline-user {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #111827;
}

.timeline-meta {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.timeline-body {
    font-size: 13px;
    color: #111827;
    line-height: 1.35;
}

/* alterna marcador */
.timeline-item:nth-child(even) .timeline-marker {
    background: #64748b; /* cinza */
    border-color: #e2e8f0;
}

/* alterna um detalhe do card (borda esquerda) */
.timeline-content {
    border-left: 4px solid #0ea5e9; /* padrão azul */
}

.timeline-item:nth-child(even) .timeline-content {
    border-left-color: #94a3b8; /* cinza */
}

/* opcional: leve fundo diferente no card par */
.timeline-item:nth-child(even) .timeline-content {
    background: #fbfdff; /* quase branco */
}

.anexos-grid {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.anexo-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    max-width: 240px;
}

    .anexo-item:hover {
        border-color: #cfd6e3;
        box-shadow: 0 1px 6px rgba(0,0,0,.06);
    }

.anexo-file i {
    font-size: 16px;
    opacity: .85;
}

.anexo-nome {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.anexo-img {
    padding: 0;
    width: 72px;
    height: 72px;
    overflow: hidden;
}

    .anexo-img img {
        width: 72px;
        height: 72px;
        object-fit: cover;
        display: block;
    }

#popup-img {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 999999;
    padding: 16px;
}

    #popup-img .img-toolbar {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin-bottom: 10px;
    }

        #popup-img .img-toolbar button {
            border: 0;
            border-radius: 8px;
            padding: 8px 10px;
            cursor: pointer;
        }

    #popup-img .img-container {
        height: calc(100% - 60px);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: auto;
    }

#popup-img-el {
    max-width: 95%;
    max-height: 95%;
    transform-origin: center;
}

.modal-task-header {
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.task-details-card {
    border: 1px solid #eef1f5;
    background: #e7e7e7;
}

.task-section-title {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.tarefa-descricao {
    color: #495057;
    line-height: 1.45;
    font-size: 14px;
}

.task-section-title--primary {
    color: #1f2d3d;
    font-size: 14px;
}

.task-timeline-card {
    border: 1px solid #e7edf4;
    background: #fff;
}
/* Header com cara de barra + sombra */
.modal-task-header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

    /* ✅ “marca” lateral do bloco de RESUMO */
    .modal-task-header::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: #0d6efd;
    }

/* pílula RESUMO */
.task-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(13,110,253,.10);
    color: #0d6efd;
}

/* mais discreta */
/* badge padrão para grid */
.dt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px; /* altura consistente */
    padding: 0 10px; /* respiro lateral */
    border-radius: 999px; /* pill */
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    min-width: 110px; /* <<< ajusta aqui */
}

/* se quiser: badges menores (ex: SLA/GUT) */
.dt-badge-sm {
    min-width: 80px;
}

/* =========================================================
   FLUXO — VOLTA 1 LINHA + mantém níveis + trilho + tracinho
   (override seguro, só .fluxo-tree)
========================================================= */
.fluxo-tree {
    --gutter: 28px;
    --branch-x: 14px;
    --stub: 18px;
}

    /* item + indent */
    .fluxo-tree .fluxo-item {
        position: relative;
        padding: 10px 10px 10px calc(var(--gutter) + var(--fluxo-indent, 0px));
        border-radius: 10px;
    }

    /* trilho vertical */
    .fluxo-tree .fluxo-branch {
        position: absolute;
        left: calc(var(--branch-x) + var(--fluxo-indent, 0px));
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: #e6eaf2;
        border-radius: 2px;
        z-index: 0;
        pointer-events: none;
    }

    /* tracinho horizontal */
    .fluxo-tree .fluxo-item::before {
        content: "";
        position: absolute;
        left: calc(var(--branch-x) + var(--fluxo-indent, 0px));
        top: 22px;
        width: var(--stub);
        height: 2px;
        background: #e6eaf2;
        border-radius: 2px;
        opacity: .9;
        z-index: 0;
        pointer-events: none;
    }

    /* conteúdo acima das linhas */
    .fluxo-tree .fluxo-main {
        position: relative;
        z-index: 1;
        width: 100%;
        min-width: 0;
    }

    /* ======= VOLTA “1 LINHA” (o que tu tinha antes) ======= */
    .fluxo-tree .fluxo-row {
        display: grid;
        grid-template-columns: 520px 1fr 84px; /* esquerda | meio | botão */
        align-items: center;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .fluxo-tree .fluxo-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

        .fluxo-tree .fluxo-left .fluxo-titulo {
            font-weight: 700;
            color: #1f2a37;
            max-width: 320px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .fluxo-tree .fluxo-mid {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
        white-space: nowrap; /* <<< crucial pra não quebrar linha */
    }

        .fluxo-tree .fluxo-mid .fluxo-meta {
            font-size: 12px;
            color: #6b7280;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            .fluxo-tree .fluxo-mid .fluxo-meta.resp {
                width: 180px;
                text-align: right;
            }

            .fluxo-tree .fluxo-mid .fluxo-meta.data {
                width: 150px;
                text-align: right;
            }

            .fluxo-tree .fluxo-mid .fluxo-meta.tempo {
                width: 110px;
                text-align: right;
            }

    .fluxo-tree .fluxo-dot {
        color: #adb5bd;
        flex: 0 0 auto;
    }

    .fluxo-tree .fluxo-right {
        justify-self: end;
    }

    /* badge % não pode “quebrar” */
    .fluxo-tree .fluxo-pct {
        flex: 0 0 auto;
    }

    /* progress mini fixo */
    .fluxo-tree .fluxo-progress-mini {
        width: 64px;
        height: 3px;
        border-radius: 999px;
        background: #e9ecef;
        overflow: hidden;
        flex: 0 0 auto;
        opacity: .95;
    }

        .fluxo-tree .fluxo-progress-mini .bar {
            height: 100%;
            border-radius: 999px;
            background: currentColor;
        }

        .fluxo-tree .fluxo-progress-mini.risk-ok {
            color: #0d6efd;
        }

        .fluxo-tree .fluxo-progress-mini.risk-warn {
            color: #ffc107;
        }

        .fluxo-tree .fluxo-progress-mini.risk-bad {
            color: #dc3545;
        }

        .fluxo-tree .fluxo-progress-mini.risk-na {
            color: #adb5bd;
        }

/* responsivo: some o “meio” e mantém botão */
@media (max-width: 1200px) {
    .fluxo-tree .fluxo-row {
        grid-template-columns: 1fr 84px;
    }

    .fluxo-tree .fluxo-mid {
        display: none;
    }

    .fluxo-tree .fluxo-left .fluxo-titulo {
        max-width: 520px;
    }
}

.note-editor.note-frame .note-editable {
    min-height: 160px !important;
}
#mdl-tarefa #tarefa-split {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
    #mdl-tarefa #tarefa-left,
    #mdl-tarefa #tarefa-right {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
    }
    /* Botões flutuantes topo/fim dentro da modal */
    #mdl-tarefa .scroll-jump {
        position: fixed; /* fica fixo na tela */
        right: 22px;
        bottom: 22px;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

        #mdl-tarefa .scroll-jump .btn {
            width: 38px;
            height: 38px;
            border-radius: 999px;
            box-shadow: 0 6px 18px rgba(0,0,0,.12);
            opacity: .92;
        }

            #mdl-tarefa .scroll-jump .btn:hover {
                opacity: 1;
            }

            #mdl-tarefa .scroll-jump .btn:focus {
                box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
            }
        /* opcional: esconde quando não precisa */
        #mdl-tarefa .scroll-jump.is-hidden {
            display: none;
        }
    /* ===== CHAT (MODAL TAREFA) — baseado no chat.css ===== */
    #mdl-tarefa #box-chat-mensagens {
        margin-bottom: 16px;
    }
    /* container que rola */
    #mdl-tarefa #chat-mensagens-lista {
        background: #e5ddd5; /* igual chat */
        border: 1px solid #eef0f3;
        border-radius: 10px;
        padding: 16px;
        overflow-y: auto;
        overflow-x: hidden;
    }
        /* msg base */
        #mdl-tarefa #chat-mensagens-lista .msg {
            max-width: 60%;
            padding: 10px;
            margin: 8px 0;
            border-radius: 8px;
            background: #fff;
            position: relative;
        }
            /* atendente (eu) */
            #mdl-tarefa #chat-mensagens-lista .msg.eu {
                background: #dcf8c6;
                margin-left: auto;
            }
            /* cliente (outro) */
            #mdl-tarefa #chat-mensagens-lista .msg.outro {
                background: #fff;
                margin-right: auto;
            }
        /* texto e hora */
        #mdl-tarefa #chat-mensagens-lista .msg-texto {
            position: relative;
            word-break: break-word;
            word-wrap: break-word;
        }

        #mdl-tarefa #chat-mensagens-lista .msg-hora {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            font-size: 11px;
            color: #666;
            width: 100%;
        }
        /* imagem */
        #mdl-tarefa #chat-mensagens-lista .chat-thumb {
            max-width: 120px;
            max-height: 120px;
            border-radius: 6px;
            cursor: pointer;
            transition: opacity .2s;
        }

            #mdl-tarefa #chat-mensagens-lista .chat-thumb:hover {
                opacity: .8;
            }
        /* arquivo */
        #mdl-tarefa #chat-mensagens-lista .chat-file {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
        }

            #mdl-tarefa #chat-mensagens-lista .chat-file i {
                font-size: 18px;
                color: #555;
            }
        /* áudio */
        #mdl-tarefa #chat-mensagens-lista .chat-audio-wrapper {
            margin-top: 6px;
            width: 260px;
        }

            #mdl-tarefa #chat-mensagens-lista .chat-audio-wrapper audio {
                width: 100%;
                height: 34px;
            }
    /* wrapper por tarefa no histórico do caso */
    .case-task {
        border: 1px solid #e9ecef;
        border-radius: 10px;
        padding: 10px 12px;
        margin-top: 10px;
        background: #fff;
    }

    .case-task-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

    .case-task-title {
        font-weight: 700;
        font-size: 14px;
        margin: 0;
    }

    .case-task-meta {
        font-size: 12px;
        color: #6c757d;
    }

    .case-task-actions .btn {
        padding: 2px 8px;
        font-size: 12px;
    }

    .case-task-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .case-task-left {
        min-width: 0;
    }

    .case-task-chips {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        flex-wrap: nowrap; /* mantém lado a lado */
        white-space: nowrap;
        margin-left: auto; /* garante colar na direita */
    }
    /* imagens dentro da timeline */
    .timeline-body img,
    .timeline-content img,
    .anexos-grid img {
        max-width: 100%;
        height: auto;
    }

    .note-editable img {
        cursor: zoom-in;
        max-width: 100%;
        border-radius: 8px;
        transition: opacity .15s;
    }

        .note-editable img:hover {
            opacity: .85;
        }

        .note-editable img:focus,
        .note-editable img.note-selected-image {
            outline: none !important;
        }

    .note-image-popover,
    .note-popover {
        display: none !important;
    }
    /* quando a descrição vem com <img> dentro do HTML (print colado) */
    .timeline-body img {
        display: block;
        max-height: 320px;
        object-fit: contain;
        border-radius: 8px;
        cursor: zoom-in;
    }

    #tarefa-descricao img {
        display: block;
        max-height: 320px;
        object-fit: contain;
        border-radius: 8px;
        cursor: zoom-in;
        transition: opacity .15s;
    }

        #tarefa-descricao img:hover {
            opacity: .85;
        }

    .tarefa-split {
        display: flex;
        width: 100%;
        gap: 0;
    }

    .tarefa-pane {
        min-width: 320px;
    }

    .tarefa-left {
        flex: 1 1 auto;
    }

    .tarefa-right {
        flex: 0 0 40%;
        max-width: 70%;
        border-left: 1px solid #eef1f4;
        padding-left: 12px;
    }
    /* ajuda a clicar no divisor */
    .tarefa-divider {
        width: 12px; /* um pouco maior pra arrastar fácil */
        cursor: col-resize;
        position: relative;
        background: transparent;
    }

        .tarefa-divider::before {
            content: "";
            position: absolute;
            left: 50%;
            top: 0;
            transform: translateX(-50%);
            width: 2px;
            height: 100%;
            background: #e2e8f0;
            border-radius: 2px;
        }
    /* feedback visual ao arrastar */
    .tarefa-split.is-dragging {
        user-select: none;
    }

        .tarefa-split.is-dragging .tarefa-divider::before {
            background: #94a3b8;
        }

    .case-task-scripts {
        margin-top: 4px;
        font-size: 12px;
        color: #6c757d;
        display: flex;
        gap: 6px;
        align-items: center;
        flex-wrap: wrap;
    }

        .case-task-scripts .label {
            color: #03a9f3;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .6px;
            font-size: 11px;
        }

        .case-task-scripts .script-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #f1f3f5;
            border: 1px solid #e9ecef;
            border-radius: 999px;
            padding: 3px 10px;
            line-height: 1.3;
            max-width: 260px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
        }
        .case-task-scripts a.script-chip {
            color: #0277ad;
            font-weight: 600;
            font-size: 11.5px;
            letter-spacing: .2px;
            text-decoration: none;
            cursor: pointer;
            background: linear-gradient(135deg, #e6f6fe 0%, #d2eefc 100%);
            border-color: #b3e2fa;
        }
            .case-task-scripts a.script-chip::before {
                content: "";
                width: 12px;
                height: 12px;
                flex: 0 0 auto;
                background: currentColor;
                -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6z'/%3E%3C/svg%3E") center / contain no-repeat;
                mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0L19.2 12l-4.6-4.6L16 6l6 6-6 6z'/%3E%3C/svg%3E") center / contain no-repeat;
                opacity: .75;
            }

            .case-task-scripts a.script-chip:hover {
                color: #fff;
                background: linear-gradient(135deg, #29bdff 0%, #03a9f3 100%);
                border-color: #03a9f3;
                transform: translateY(-1px);
                box-shadow: 0 4px 10px rgba(3, 169, 243, .35);
            }

                .case-task-scripts a.script-chip:hover::before {
                    opacity: 1;
                }
        .case-task-scripts .script-chip-mais {
            cursor: pointer;
            font-weight: 700;
            font-size: 11.5px;
            color: #03a9f3;
            background: #fff;
            border: 1px dashed #7fd3fb;
        }
            .case-task-scripts .script-chip-mais:hover {
                background: linear-gradient(135deg, #29bdff 0%, #03a9f3 100%);
                color: #fff;
                border-color: #03a9f3;
                border-style: solid;
                transform: translateY(-1px);
                box-shadow: 0 4px 10px rgba(3, 169, 243, .35);
            }
        .case-task-scripts .script-chip-oculto {
            display: none;
        }
        .case-task-scripts .script-chip-revelado {
            animation: scriptChipIn .25s ease both;
        }
@keyframes scriptChipIn {
    from {
        opacity: 0;
        transform: translateY(4px) scale(.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

    body.modal-open #mdl-tarefa.modal.show {
        padding-right: 0 !important;
    }
    /* e garante que o body não ganha padding-right */
    body.modal-open {
        padding-right: 0 !important;
    }

    #mdl-tarefa #tarefa-left {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    #mdl-tarefa #card-detalhes {
        flex: 0 0 auto;
    }

    #mdl-tarefa #box-timeline {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

        #mdl-tarefa #box-timeline .card-body {
            flex: 1 1 auto;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

    #mdl-tarefa #timeline-atividades {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
    }

    .btn-fab-novo-chamado {
        position: fixed;
        right: 22px;
        bottom: 22px;
        border-radius: 999px;
        width: 54px;
        height: 54px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1060;
        box-shadow: 0 10px 25px rgba(0,0,0,.18);
    }

    .dataTable tbody tr {
        transition: background-color 0.15s ease, box-shadow 0.15s ease;
    }

        .dataTable tbody tr.row-hover td {
            background: #eef5ff !important;
        }

            .dataTable tbody tr.row-hover td:first-child {
                box-shadow: inset 4px 0 0 #7fb3ff;
            }

        .dataTable tbody tr.row-selected td {
            background: #dcecff !important;
            border-top: 1px solid #9fc4ff !important;
            border-bottom: 1px solid #9fc4ff !important;
        }

            .dataTable tbody tr.row-selected td:first-child {
                box-shadow: inset 5px 0 0 #2f80ed;
            }

        .dataTable tbody tr.row-selected:hover td {
            background: #dcecff !important;
        }
    /* ===== ÁREA DA PÁGINA / CARD ===== */
    html, body {
        min-height: 100%;
    }

    .card-chamados-full,
    .card-chamados-full .card-body {
        display: flex;
        flex-direction: column;
    }

    .card-chamados-full {
        min-height: calc(100vh - 185px);
    }

        .card-chamados-full .card-body {
            min-height: calc(100vh - 225px);
        }

    #myTabContent {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

        #myTabContent > .tab-pane {
            flex: 1 1 auto;
            min-height: calc(100vh - 300px);
        }

    #div-table,
    #div-table-solicitacoes-encaminhado,
    #div-table-solicitacoes-concluidos {
        min-height: calc(100vh - 300px);
    }
    /* deixa wrapper da DataTable ocupar mais espaço */
    .dataTables_wrapper {
        min-height: calc(100vh - 320px);
        display: flex;
        flex-direction: column;
    }

        .dataTables_wrapper .dataTables_info {
            margin-top: auto;
        }
    /* ===== LINHAS ===== */
    .dataTable tbody tr {
        transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

        .dataTable tbody tr.row-hover td {
            background: #eef5ff !important;
        }

            .dataTable tbody tr.row-hover td:first-child {
                box-shadow: inset 4px 0 0 #7fb3ff;
            }

        .dataTable tbody tr.row-selected {
            position: relative;
            z-index: 2;
        }

            .dataTable tbody tr.row-selected td {
                background: #dcebff !important;
                border-top: 1px solid #8eb9ff !important;
                border-bottom: 1px solid #8eb9ff !important;
            }

                .dataTable tbody tr.row-selected td:first-child {
                    box-shadow: inset 6px 0 0 #1f6fda;
                }

                .dataTable tbody tr.row-selected td:last-child {
                    box-shadow: inset -1px 0 0 #8eb9ff;
                }

            .dataTable tbody tr.row-selected:hover td {
                background: #dcebff !important;
            }
    /* ===== TOOLBAR DE AÇÕES ===== */
    .toolbar-acoes-chamado {
        position: absolute;
        z-index: 60;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 16px;
        background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
        border: 1px solid #a9c6f1;
        box-shadow: 0 14px 30px rgba(31, 80, 145, 0.22), 0 2px 8px rgba(31, 80, 145, 0.10);
        white-space: nowrap;
        animation: fadeToolbarChamado 0.18s ease;
    }

        .toolbar-acoes-chamado::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -8px;
            width: 14px;
            height: 14px;
            background: #f4f8ff;
            border-right: 1px solid #a9c6f1;
            border-bottom: 1px solid #a9c6f1;
            transform: translateX(-50%) rotate(45deg);
        }

        .toolbar-acoes-chamado.toolbar-bottom::after {
            top: -8px;
            bottom: auto;
            transform: translateX(-50%) rotate(225deg);
        }

    .btn-acao-chamado {
        border: 0;
        border-radius: 999px;
        padding: 8px 14px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition: all .15s ease;
        box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
    }

        .btn-acao-chamado:hover {
            transform: translateY(-1px) scale(1.02);
            filter: brightness(0.98);
        }

        .btn-acao-chamado.primario {
            background: #2f80ed;
            color: #fff;
            box-shadow: 0 6px 14px rgba(47, 128, 237, 0.28);
        }

            .btn-acao-chamado.primario:hover {
                background: #1f6fda;
            }

        .btn-acao-chamado.secundario {
            background: #eaf2ff;
            color: #2f80ed;
        }

            .btn-acao-chamado.secundario:hover {
                background: #dcecff;
            }

        .btn-acao-chamado.alerta {
            background: #fff0df;
            color: #c96b00;
        }

            .btn-acao-chamado.alerta:hover {
                background: #ffe4c2;
            }

        .btn-acao-chamado.neutro {
            background: #f3f4f6;
            color: #374151;
        }

            .btn-acao-chamado.neutro:hover {
                background: #e5e7eb;
            }

        .btn-acao-chamado.sucesso {
            background: #1f9d55;
            color: #fff;
            box-shadow: 0 6px 14px rgba(31, 157, 85, 0.28);
        }

            .btn-acao-chamado.sucesso:hover {
                background: #178a48;
            }

    @keyframes fadeToolbarChamado {
        from {
            opacity: 0;
            transform: translateY(6px) scale(.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    #dataTable tbody tr.row-status-em-execucao td,
    #dataTable-solicitacoes-encaminhado tbody tr.row-status-em-execucao td,
    #dataTable-solicitacoes-concluidos tbody tr.row-status-em-execucao td {
        background: #fff8e1 !important;
    }

    #dataTable tbody tr.row-status-em-execucao,
    #dataTable-solicitacoes-encaminhado tbody tr.row-status-em-execucao,
    #dataTable-solicitacoes-concluidos tbody tr.row-status-em-execucao {
        border-left: 4px solid #f39c12;
    }

    .timeline-item-contestacao .timeline-content {
        border: 1px solid #f5c2c7;
        background: #fff5f5;
    }

    .timeline-marker-contestacao {
        background: #dc3545 !important;
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    }

    .timeline-content-contestacao .timeline-user {
        color: #b02a37;
        font-weight: 600;
    }

    .timeline-badge-contestacao {
        display: inline-block;
        margin-left: 8px;
        padding: 2px 8px;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        background: #dc3545;
        border-radius: 999px;
        vertical-align: middle;
    }

    .chamados-tabs {
        border-bottom: none !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px;
        background: #f3f6fa;
        border: 1px solid #dfe6ee;
        border-radius: 14px;
    }

        .chamados-tabs .nav-item {
            margin-bottom: 0 !important;
        }

        .chamados-tabs .nav-link {
            border: none !important;
            border-radius: 10px;
            color: #5f6b7a;
            font-weight: 500;
            padding: 10px 18px;
            background: transparent;
            transition: all .2s ease;
            position: relative;
        }

            .chamados-tabs .nav-link:hover {
                background: rgba(255,255,255,.65);
                color: #1f2d3d;
            }

            .chamados-tabs .nav-link.active,
            .chamados-tabs .nav-link.active:hover,
            .chamados-tabs .nav-link.active:focus {
                background: #ffffff !important;
                color: #1f2d3d !important;
                border: none !important;
                box-shadow: 0 2px 8px rgba(31,45,61,.08);
            }

                .chamados-tabs .nav-link.active::after {
                    content: "";
                    position: absolute;
                    left: 14px;
                    right: 14px;
                    bottom: 6px;
                    height: 3px;
                    border-radius: 999px;
                    background: #1fa2e1;
                }

        .chamados-tabs .badge {
            margin-left: 4px;
            border-radius: 999px;
            padding: 3px 7px;
            font-size: 11px;
            font-weight: 700;
            vertical-align: middle;
        }

    .timeline-item-atividade-cliente .timeline-content {
        border: 1px solid #8fd0ff;
        background: #f3faff;
    }

    .timeline-marker-atividade-cliente {
        background: #1da1f2;
        box-shadow: 0 0 0 4px rgba(29, 161, 242, 0.18);
    }

    .timeline-badge-atividade-cliente {
        display: inline-flex;
        align-items: center;
        margin-left: 8px;
        padding: 3px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        background: #1da1f2;
        color: #fff;
    }

    .inline-imagem-wrap {
        margin: 8px 0;
    }

    .inline-imagem-texto {
        display: block;
        max-width: 320px;
        width: auto;
        height: auto;
        border-radius: 8px;
        cursor: pointer;
    }

    .row-hover-detalhes {
        cursor: default;
    }

    .popover {
        max-width: 460px;
    }

    .popover-body {
        font-size: 13px;
        line-height: 1.4;
    }

    .campo-foco-ativo {
        border-color: #ff7a45 !important;
        box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.20) !important;
        outline: none !important;
        transition: border-color 0.12s ease, box-shadow 0.12s ease;
    }

    .select2-container--default .select2-selection.campo-foco-ativo,
    .note-editor.campo-foco-ativo {
        border-color: #ff7a45 !important;
        box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.20) !important;
        outline: none !important;
        transition: border-color 0.12s ease, box-shadow 0.12s ease;
    }

    .mr-links-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 4px;
    }

        .mr-links-list a {
            word-break: break-all;
        }
    /* =========================
   DASHBOARD /chamados
========================= */
    #dashboard-chamados.chamados-dashboard {
        margin-top: 14px;
    }

    #dashboard-chamados .chamados-dashboard-loading {
        min-height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #6c757d;
    }

    /* Cards do menu de chamados — layout compacto (mesmo padrão da Home) */
    .chamados-menu-card {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        min-height: 66px;
        border-radius: 14px !important;
        text-align: left;
        gap: 12px;
        padding: 12px 14px !important;
        transition: all .18s ease;
    }

        .chamados-menu-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
        }

        .chamados-menu-card .iconAbase {
            width: 42px;
            height: 42px;
            min-width: 42px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px !important;
            background: rgba(3, 169, 243, 0.14);
            color: #03a9f3;
            flex-shrink: 0;
            transition: transform .2s ease;
        }

        .chamados-menu-card:hover .iconAbase {
            transform: scale(1.08);
        }

        .chamados-menu-card > div:not(.iconAbase) {
            flex: 1;
            min-width: 0;
            text-align: left;
        }

        .chamados-menu-card .card-title {
            font-size: 13px !important;
            font-weight: 700 !important;
            margin-bottom: 2px !important;
            text-align: left !important;
            line-height: 1.25 !important;
            white-space: normal !important;
        }

        .chamados-menu-card small {
            display: block;
            font-size: 11px;
            line-height: 1.25;
        }

    #dashboard-chamados .cd-card {
        background: #fff;
        border: 1px solid #e9edf4;
        border-radius: 16px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
        overflow: hidden;
        height: 100%;
    }

    #dashboard-chamados .cd-card-body {
        padding: 14px 16px;
    }

    #dashboard-chamados .cd-hero {
        border: 0;
        background: linear-gradient(135deg, #05a9f3 0%, #2580e8 55%, #4f6fff 100%);
        color: #fff;
        position: relative;
        overflow: hidden;
    }

        #dashboard-chamados .cd-hero:before {
            content: "";
            position: absolute;
            right: -35px;
            top: -45px;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: rgba(255,255,255,.10);
        }

        #dashboard-chamados .cd-hero:after {
            content: "";
            position: absolute;
            right: 36px;
            bottom: -50px;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: rgba(255,255,255,.08);
        }

        #dashboard-chamados .cd-hero .cd-card-body {
            position: relative;
            z-index: 1;
        }

    #dashboard-chamados .cd-eyebrow {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        opacity: .9;
        margin-bottom: 8px;
    }

    #dashboard-chamados .cd-title {
        font-size: 28px;
        line-height: 1.1;
        font-weight: 700;
        margin-bottom: 8px;
    }

    #dashboard-chamados .cd-subtitle {
        font-size: 14px;
        opacity: .96;
        margin-bottom: 16px;
    }

    #dashboard-chamados .cd-chip-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    #dashboard-chamados .cd-chip {
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.18);
        color: #fff;
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 600;
    }

    #dashboard-chamados .cd-section-title {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        #dashboard-chamados .cd-section-title small {
            font-size: 12px;
            color: #94a3b8;
            font-weight: 600;
        }

    #dashboard-chamados .cd-radar-list,
    #dashboard-chamados .cd-rank-list,
    #dashboard-chamados .cd-activity-list,
    #dashboard-chamados .cd-bar-list,
    #dashboard-chamados .cd-trend-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #dashboard-chamados .cd-radar-item,
    #dashboard-chamados .cd-rank-item,
    #dashboard-chamados .cd-trend-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid #edf2f7;
        border-radius: 12px;
        background: #fafbfd;
        padding: 12px 14px;
    }

    #dashboard-chamados .cd-radar-label,
    #dashboard-chamados .cd-rank-main {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #374151;
        font-size: 13px;
        font-weight: 600;
    }

    #dashboard-chamados .cd-radar-value,
    #dashboard-chamados .cd-rank-value {
        font-size: 18px;
        line-height: 1;
        font-weight: 700;
        color: #111827;
    }

    #dashboard-chamados .cd-kpi {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 78px;
    }

    #dashboard-chamados .cd-kpi-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        flex: 0 0 52px;
    }

    #dashboard-chamados .cd-kpi-label {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 2px;
        font-weight: 600;
    }

    #dashboard-chamados .cd-kpi-value {
        font-size: 28px;
        font-weight: 700;
        line-height: 1;
        color: #111827;
        margin-bottom: 4px;
    }

    #dashboard-chamados .cd-kpi-help {
        font-size: 12px;
        color: #94a3b8;
    }

    #dashboard-chamados .cd-kpi-info .cd-kpi-icon {
        background: rgba(5,169,243,.12);
        color: #05a9f3;
    }

    #dashboard-chamados .cd-kpi-success .cd-kpi-icon {
        background: rgba(0,194,146,.12);
        color: #00c292;
    }

    #dashboard-chamados .cd-kpi-warning .cd-kpi-icon {
        background: rgba(254,194,9,.18);
        color: #d39e00;
    }

    #dashboard-chamados .cd-kpi-danger .cd-kpi-icon {
        background: rgba(224,49,49,.12);
        color: #e03131;
    }

    #dashboard-chamados .cd-kpi-purple .cd-kpi-icon {
        background: rgba(124,58,237,.12);
        color: #7c3aed;
    }

    #dashboard-chamados .cd-kpi-slate .cd-kpi-icon {
        background: rgba(71,85,105,.12);
        color: #475569;
    }

    #dashboard-chamados .cd-bar-item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px 12px;
        align-items: center;
    }

    #dashboard-chamados .cd-bar-label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

    #dashboard-chamados .cd-bar-value {
        font-size: 12px;
        color: #64748b;
        font-weight: 700;
    }

    #dashboard-chamados .cd-bar-track {
        grid-column: 1 / -1;
        width: 100%;
        height: 10px;
        border-radius: 999px;
        overflow: hidden;
        background: #eef2f7;
    }

    #dashboard-chamados .cd-bar-fill {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #05a9f3 0%, #2f80ed 100%);
    }

    #dashboard-chamados .cd-rank-badge {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        background: #eef6ff;
        color: #2580e8;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        flex: 0 0 28px;
    }

    #dashboard-chamados .cd-rank-sub {
        font-size: 11px;
        color: #94a3b8;
        margin-top: 2px;
        font-weight: 600;
    }

    #dashboard-chamados .cd-activity-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        border: 1px solid #edf2f7;
        border-radius: 14px;
        background: #fff;
        padding: 12px;
    }

    #dashboard-chamados .cd-activity-bullet {
        width: 12px;
        height: 12px;
        margin-top: 6px;
        border-radius: 50%;
        background: #05a9f3;
        flex: 0 0 12px;
        box-shadow: 0 0 0 4px rgba(5,169,243,.10);
    }

    #dashboard-chamados .cd-activity-title {
        font-size: 13px;
        color: #111827;
        font-weight: 700;
        margin-bottom: 2px;
    }

    #dashboard-chamados .cd-activity-desc {
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 4px;
    }

    #dashboard-chamados .cd-activity-meta {
        font-size: 11px;
        color: #94a3b8;
        font-weight: 600;
    }


    #dashboard-chamados .cd-col {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    #dashboard-chamados .cd-col-bar {
        width: 100%;
        max-width: 42px;
        min-height: 12px;
        border-radius: 12px 12px 4px 4px;
        background: linear-gradient(180deg, #05a9f3 0%, #2f80ed 100%);
        box-shadow: 0 6px 12px rgba(37, 128, 232, .18);
    }

    #dashboard-chamados .cd-col-value {
        font-size: 12px;
        font-weight: 700;
        color: #111827;
    }

    #dashboard-chamados .cd-col-label {
        font-size: 11px;
        color: #94a3b8;
        font-weight: 600;
    }

    #dashboard-chamados .cd-empty {
        border: 1px dashed #dbe4ee;
        border-radius: 14px;
        background: #fafcff;
        padding: 18px;
        text-align: center;
        color: #94a3b8;
        font-size: 13px;
    }

    @media (max-width: 991px) {
        #dashboard-chamados .cd-title {
            font-size: 23px;
        }

        #dashboard-chamados .cd-kpi-value {
            font-size: 24px;
        }
    }

    #dashboard-chamados .cd-trend-legend {
        display: flex;
        gap: 16px;
        align-items: center;
        margin-bottom: 14px;
        flex-wrap: wrap;
    }

    #dashboard-chamados .cd-legend-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: #64748b;
        font-weight: 600;
    }

    #dashboard-chamados .cd-legend-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
    }

    #dashboard-chamados .cd-evolucao-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 2px;
        margin-right: 4px;
        vertical-align: middle;
    }

    #dashboard-chamados .cd-legend-open {
        background: linear-gradient(180deg, #05a9f3 0%, #2f80ed 100%);
    }

    #dashboard-chamados .cd-legend-closed {
        background: linear-gradient(180deg, #00c292 0%, #00a36c 100%);
    }

    #dashboard-chamados .cd-trend-columns-double {
        min-height: 250px;
    }


    #dashboard-chamados .cd-col-bar-group {
        width: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
    }

    #dashboard-chamados .cd-col-bar-item {
        flex: 1 1 0;
        max-width: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    #dashboard-chamados .cd-col-bar-open {
        width: 100%;
        border-radius: 10px 10px 4px 4px;
        background: linear-gradient(180deg, #05a9f3 0%, #2f80ed 100%);
        box-shadow: 0 6px 12px rgba(37, 128, 232, .18);
    }

    #dashboard-chamados .cd-col-bar-closed {
        width: 100%;
        border-radius: 10px 10px 4px 4px;
        background: linear-gradient(180deg, #00c292 0%, #00a36c 100%);
        box-shadow: 0 6px 12px rgba(0, 163, 108, .18);
    }

    #dashboard-chamados .cd-col-mini-value {
        font-size: 11px;
        font-weight: 700;
        color: #111827;
        line-height: 1;
    }

    #dashboard-chamados .cd-trend-columns {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 14px;
        height: 260px;
        padding-top: 8px;
    }

    #dashboard-chamados .cd-trend-columns-double {
        height: 260px;
    }

    #dashboard-chamados .cd-col {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }

    #dashboard-chamados .cd-col-bar-wrap {
        width: 100%;
        flex: 1;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    #dashboard-chamados .cd-col-bar-wrap-double {
        width: 100%;
        flex: 1;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    #dashboard-chamados .cd-col-bar-group {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
    }

    #dashboard-chamados .cd-col-bar-item {
        flex: 1 1 0;
        max-width: 26px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    #dashboard-chamados .cd-col-bar {
        width: 100%;
        min-height: 0;
    }

    #dashboard-chamados .cd-col-bar-open {
        width: 100%;
        border-radius: 10px 10px 4px 4px;
        background: linear-gradient(180deg, #05a9f3 0%, #2f80ed 100%);
        box-shadow: 0 6px 12px rgba(37, 128, 232, .18);
    }

    #dashboard-chamados .cd-col-bar-closed {
        width: 100%;
        border-radius: 10px 10px 4px 4px;
        background: linear-gradient(180deg, #00c292 0%, #00a36c 100%);
        box-shadow: 0 6px 12px rgba(0, 163, 108, .18);
    }

    #dashboard-chamados .cd-col-mini-value {
        font-size: 11px;
        font-weight: 700;
        color: #111827;
        line-height: 1;
    }

    #dashboard-chamados .cd-col-label {
        font-size: 11px;
        color: #94a3b8;
        font-weight: 600;
        margin-top: 2px;
    }
    /* =========================
   DASHBOARD - BASE
   ========================= */
    /* =========================
   DASHBOARD GERENCIAL
   ========================= */

    #dashboard-gerencial-chamados {
        min-height: 220px;
    }

        #dashboard-gerencial-chamados .cd-card {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
            border: 1px solid #e9eef5;
            overflow: hidden;
            height: 100%;
        }

        #dashboard-gerencial-chamados .cd-card-body {
            padding: 20px;
        }

        #dashboard-gerencial-chamados .cd-hero-gerencial {
            border-radius: 18px;
            overflow: hidden;
            background: linear-gradient(135deg, #05a9f3 0%, #2580e8 55%, #4f6fff 100%);
            color: #fff;
            position: relative;
        }

            #dashboard-gerencial-chamados .cd-hero-gerencial::before {
                content: "";
                position: absolute;
                right: -35px;
                top: -45px;
                width: 180px;
                height: 180px;
                border-radius: 50%;
                background: rgba(255,255,255,.10);
            }

            #dashboard-gerencial-chamados .cd-hero-gerencial::after {
                content: "";
                position: absolute;
                right: 36px;
                bottom: -50px;
                width: 120px;
                height: 120px;
                border-radius: 50%;
                background: rgba(255,255,255,.08);
            }

            #dashboard-gerencial-chamados .cd-hero-gerencial .cd-card-body {
                position: relative;
                z-index: 1;
            }

        #dashboard-gerencial-chamados .cd-eyebrow {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .08em;
            opacity: .9;
            margin-bottom: 8px;
            color: rgba(255,255,255,.88);
        }

        #dashboard-gerencial-chamados .cd-title {
            font-size: 28px;
            line-height: 1.1;
            font-weight: 700;
            margin-bottom: 8px;
            color: #fff;
        }

        #dashboard-gerencial-chamados .cd-subtitle {
            font-size: 14px;
            opacity: .96;
            margin-bottom: 16px;
            color: #fff;
        }

        #dashboard-gerencial-chamados .cd-chip-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        #dashboard-gerencial-chamados .cd-chip {
            background: rgba(255,255,255,.14);
            border: 1px solid rgba(255,255,255,.18);
            color: #fff;
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 12px;
            font-weight: 600;
        }

        #dashboard-gerencial-chamados .cd-section-title {
            font-size: 15px;
            font-weight: 700;
            color: #111827;
            margin-bottom: 14px;
            display: flex;
            flex-direction: column;
        }

            #dashboard-gerencial-chamados .cd-section-title small {
                font-size: 12px;
                color: #94a3b8;
                font-weight: 600;
                margin-top: 4px;
            }

        #dashboard-gerencial-chamados .cd-radar-list,
        #dashboard-gerencial-chamados .cd-rank-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #dashboard-gerencial-chamados .cd-radar-item,
        #dashboard-gerencial-chamados .cd-rank-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            background: #fafbfd;
            padding: 12px 14px;
        }

        #dashboard-gerencial-chamados .cd-radar-item-left,
        #dashboard-gerencial-chamados .cd-rank-main {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #374151;
            font-size: 13px;
            font-weight: 600;
        }

        #dashboard-gerencial-chamados .cd-radar-item-value,
        #dashboard-gerencial-chamados .cd-rank-value {
            font-size: 18px;
            line-height: 1;
            font-weight: 700;
            color: #111827;
        }

        #dashboard-gerencial-chamados .cd-kpi-col {
            margin-bottom: 18px;
        }

        #dashboard-gerencial-chamados .cd-kpi {
            background: #fff;
            border: 1px solid #e9eef5;
            border-radius: 16px;
            padding: 18px;
            height: 100%;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
        }

        #dashboard-gerencial-chamados .cd-kpi-head {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }

        #dashboard-gerencial-chamados .cd-kpi-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            flex: 0 0 52px;
        }

        #dashboard-gerencial-chamados .cd-kpi-title {
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
        }

        #dashboard-gerencial-chamados .cd-kpi-value {
            font-size: 28px;
            font-weight: 700;
            line-height: 1;
            color: #111827;
            margin-bottom: 4px;
        }

        #dashboard-gerencial-chamados .cd-kpi-desc {
            font-size: 12px;
            color: #94a3b8;
        }

        #dashboard-gerencial-chamados .cd-kpi-info .cd-kpi-icon {
            background: rgba(5,169,243,.12);
            color: #05a9f3;
        }

        #dashboard-gerencial-chamados .cd-kpi-success .cd-kpi-icon {
            background: rgba(0,194,146,.12);
            color: #00c292;
        }

        #dashboard-gerencial-chamados .cd-kpi-warning .cd-kpi-icon {
            background: rgba(254,194,9,.18);
            color: #d39e00;
        }

        #dashboard-gerencial-chamados .cd-kpi-danger .cd-kpi-icon {
            background: rgba(224,49,49,.12);
            color: #e03131;
        }

        #dashboard-gerencial-chamados .cd-kpi-purple .cd-kpi-icon {
            background: rgba(124,58,237,.12);
            color: #7c3aed;
        }

        #dashboard-gerencial-chamados .cd-kpi-slate .cd-kpi-icon {
            background: rgba(71,85,105,.12);
            color: #475569;
        }

        #dashboard-gerencial-chamados .cd-breadcrumb {
            margin-top: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            align-items: center;
        }

        #dashboard-gerencial-chamados .cd-breadcrumb-item {
            border: 0;
            background: rgba(255,255,255,.14);
            color: #fff;
            border-radius: 999px;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
        }

            #dashboard-gerencial-chamados .cd-breadcrumb-item.active {
                background: rgba(255,255,255,.24);
                font-weight: 700;
            }

        #dashboard-gerencial-chamados .cd-breadcrumb-sep {
            color: rgba(255,255,255,.82);
            font-size: 12px;
        }

        #dashboard-gerencial-chamados .cd-rank-item-clickable {
            cursor: pointer;
            transition: transform .15s ease, box-shadow .15s ease;
        }

            #dashboard-gerencial-chamados .cd-rank-item-clickable:hover {
                transform: translateY(-1px);
                box-shadow: 0 10px 18px rgba(15, 23, 42, .08);
            }

        #dashboard-gerencial-chamados .cd-chart-days {
            display: flex;
            align-items: flex-end;
            gap: 26px;
            overflow-x: auto;
            padding: 8px 0 4px;
        }


        #dashboard-gerencial-chamados .cd-chart-bars {
            height: 220px;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 10px;
        }

        #dashboard-gerencial-chamados .cd-chart-bar-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        #dashboard-gerencial-chamados .cd-chart-bar {
            width: 26px;
            border-radius: 10px 10px 0 0;
            min-height: 4px;
        }

        #dashboard-gerencial-chamados .cd-chart-bar-open {
            background: #2d9bf0;
        }

        #dashboard-gerencial-chamados .cd-chart-bar-close {
            background: #10b981;
        }

        #dashboard-gerencial-chamados .cd-chart-value {
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
        }

        #dashboard-gerencial-chamados .cd-chart-value-open {
            color: #1d4ed8;
        }

        #dashboard-gerencial-chamados .cd-chart-value-close {
            color: #059669;
        }


        #dashboard-gerencial-chamados .cd-chart-legend {
            font-size: 14px;
            color: #64748b;
            font-weight: 600;
        }

        #dashboard-gerencial-chamados .cd-chart-legend-dot {
            font-size: 10px;
            vertical-align: middle;
        }

        #dashboard-gerencial-chamados .cd-chart-legend-open {
            color: #2d9bf0;
        }

        #dashboard-gerencial-chamados .cd-chart-legend-close {
            color: #10b981;
        }

        #dashboard-gerencial-chamados .cd-chart-day-group {
            min-width: 58px;
            text-align: center;
        }

        #dashboard-gerencial-chamados .cd-chart-day-label {
            margin-top: 10px;
            font-size: 13px;
            font-weight: 700;
            color: #64748b;
        }

        #dashboard-gerencial-chamados .cd-rank-list-scroll {
            max-height: 720px;
            overflow-y: auto;
            padding-right: 4px;
        }

        #dashboard-gerencial-chamados .text-purple {
            color: #7c3aed !important;
        }

        #dashboard-gerencial-chamados .cd-kanban-board {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            padding: 4px 0 8px;
        }

        #dashboard-gerencial-chamados .cd-kanban-column {
            min-width: 260px;
            max-width: 260px;
            background: #f8fafc;
            border: 1px solid #e5edf7;
            border-radius: 16px;
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        #dashboard-gerencial-chamados .cd-kanban-column-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        #dashboard-gerencial-chamados .cd-kanban-column-title {
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
        }

        #dashboard-gerencial-chamados .cd-kanban-column-total {
            min-width: 32px;
            height: 32px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #e2e8f0;
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
        }

        #dashboard-gerencial-chamados .cd-kanban-column-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #dashboard-gerencial-chamados .cd-kanban-card {
            background: #fff;
            border: 1px solid #e5edf7;
            border-radius: 14px;
            padding: 12px;
            box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
        }

        #dashboard-gerencial-chamados .cd-kanban-card-title {
            font-size: 13px;
            font-weight: 700;
            color: #111827;
            margin-bottom: 4px;
        }

        #dashboard-gerencial-chamados .cd-kanban-card-subtitle,
        #dashboard-gerencial-chamados .cd-kanban-empty {
            font-size: 12px;
            color: #64748b;
        }

        #dashboard-gerencial-chamados .cd-kanban-card-total {
            margin-top: 10px;
            font-size: 22px;
            font-weight: 700;
            line-height: 1;
            color: #2563eb;
        }


    #filtro-dashboard-gerencial-solucao + .select2,
    #filtro-dashboard-gerencial-modulo + .select2 {
        width: 100% !important;
    }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-selection--multiple,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-selection--multiple {
            min-height: 38px;
            max-height: 38px;
            overflow-y: auto;
            border: 1px solid #ced4da;
            border-radius: 4px;
            padding: 2px 28px 2px 6px;
            background: #fff;
        }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-selection__rendered,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-selection__rendered {
            display: block !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-left: 0 !important;
        }

    #dashboard-gerencial-chamados .cd-kpi-grid-gerencial {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin-bottom: 16px;
    }

        #dashboard-gerencial-chamados .cd-kpi-grid-gerencial .cd-kpi {
            min-height: 96px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            border-radius: 14px;
            border: 1px solid #edf0f5;
            background: #fff;
        }

        #dashboard-gerencial-chamados .cd-kpi-grid-gerencial .cd-kpi-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            font-size: 18px;
        }

        #dashboard-gerencial-chamados .cd-kpi-grid-gerencial .cd-kpi-body {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        #dashboard-gerencial-chamados .cd-kpi-grid-gerencial .cd-kpi-label {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.2;
        }

        #dashboard-gerencial-chamados .cd-kpi-grid-gerencial .cd-kpi-value {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.1;
            color: #0f172a;
            margin-top: 4px;
        }

    #dashboard-gerencial-chamados .cd-kpi-secondary .cd-kpi-icon {
        background: #eef2f7;
        color: #475569;
    }

    #dashboard-gerencial-chamados .cd-rank-item-clickable {
        cursor: pointer;
    }

        #dashboard-gerencial-chamados .cd-rank-item-clickable:hover {
            background: #f8fafc;
        }

    #dashboard-gerencial-chamados .cd-kanban {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    #dashboard-gerencial-chamados .cd-kanban-col {
        min-width: 280px;
        max-width: 280px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
    }

    #dashboard-gerencial-chamados .cd-kanban-col-header {
        padding: 12px 14px;
        font-weight: 600;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    #dashboard-gerencial-chamados .cd-kanban-badge {
        background: #e9eefb;
        color: #2f5fd0;
        border-radius: 999px;
        padding: 2px 10px;
        font-size: 12px;
        font-weight: 700;
    }

    #dashboard-gerencial-chamados .cd-kanban-col-body {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 520px;
        overflow-y: auto;
    }

    #dashboard-gerencial-chamados .cd-kanban-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px 12px;
    }

    #dashboard-gerencial-chamados .cd-kanban-card-title {
        font-weight: 600;
        margin-bottom: 6px;
        font-size: 13px;
        color: #111827;
        line-height: 1.3;
    }

    #dashboard-gerencial-chamados .cd-kanban-card-meta {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.35;
    }

    #dashboard-gerencial-chamados .cd-empty-kanban {
        padding: 8px 0;
        font-size: 12px;
    }

    #btn-limpar-filtro-solucao,
    #btn-limpar-filtro-modulo {
        font-size: 12px;
        text-decoration: none;
    }

        #btn-limpar-filtro-solucao:hover,
        #btn-limpar-filtro-modulo:hover {
            text-decoration: underline;
        }

    @media (max-width: 991.98px) {
        #btn-dashboard-gerencial-aplicar {
            width: 100%;
        }
    }

    #btn-selecionar-todas-solucoes,
    #btn-limpar-filtro-solucao,
    #btn-selecionar-todos-modulos,
    #btn-limpar-filtro-modulo {
        font-size: 12px;
        text-decoration: none;
    }

        #btn-selecionar-todas-solucoes:hover,
        #btn-limpar-filtro-solucao:hover,
        #btn-selecionar-todos-modulos:hover,
        #btn-limpar-filtro-modulo:hover {
            text-decoration: underline;
        }

    .dashboard-filtro-acoes {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        min-height: 18px;
    }

        .dashboard-filtro-acoes .btn-link {
            font-size: 12px;
            line-height: 1;
            text-decoration: none;
        }

            .dashboard-filtro-acoes .btn-link:hover {
                text-decoration: underline;
            }

    #filtro-dashboard-gerencial-solucao + .select2,
    #filtro-dashboard-gerencial-modulo + .select2 {
        width: 100% !important;
    }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-selection--multiple,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-selection--multiple {
            min-height: 38px;
            max-height: 38px;
            overflow-y: auto;
            border: 1px solid #ced4da;
            border-radius: 4px;
            padding: 2px 28px 2px 6px;
            background: #fff;
        }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-selection__rendered,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-selection__rendered {
            display: block !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-left: 0 !important;
        }


    #filtro-dashboard-gerencial-solucao + .select2,
    #filtro-dashboard-gerencial-modulo + .select2 {
        width: 100% !important;
    }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-selection--multiple,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-selection--multiple {
            min-height: 68px;
            max-height: 68px;
            overflow-y: auto;
            border: 1px solid #ced4da;
            border-radius: 4px;
            padding: 4px 8px;
            background: #fff;
        }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-selection__rendered,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-selection__rendered {
            display: flex !important;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 4px;
            padding-left: 0 !important;
            white-space: normal;
        }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-selection__choice,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-selection__choice {
            margin-top: 0 !important;
            margin-right: 0 !important;
            max-width: 100%;
            font-size: 12px;
        }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-search--inline,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-search--inline {
            display: inline-flex !important;
        }

        #filtro-dashboard-gerencial-solucao + .select2 .select2-search__field,
        #filtro-dashboard-gerencial-modulo + .select2 .select2-search__field {
            margin-top: 4px !important;
            min-width: 120px !important;
        }

    #filtro-op-solucao + .select2,
    #filtro-op-modulo + .select2 {
        width: 100% !important;
    }

        #filtro-op-solucao + .select2 .select2-selection--multiple,
        #filtro-op-modulo + .select2 .select2-selection--multiple {
            min-height: 68px;
            max-height: 68px;
            overflow-y: auto;
            border: 1px solid #ced4da;
            border-radius: 4px;
            padding: 4px 8px;
            background: #fff;
        }

        #filtro-op-solucao + .select2 .select2-selection__rendered,
        #filtro-op-modulo + .select2 .select2-selection__rendered {
            display: flex !important;
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 4px;
            padding-left: 0 !important;
            white-space: normal;
        }

        #filtro-op-solucao + .select2 .select2-selection__choice,
        #filtro-op-modulo + .select2 .select2-selection__choice {
            margin-top: 0 !important;
            margin-right: 0 !important;
            max-width: 100%;
            font-size: 12px;
        }

        #filtro-op-solucao + .select2 .select2-search--inline,
        #filtro-op-modulo + .select2 .select2-search--inline {
            display: inline-flex !important;
        }

        #filtro-op-solucao + .select2 .select2-search__field,
        #filtro-op-modulo + .select2 .select2-search__field {
            margin-top: 4px !important;
            min-width: 120px !important;
        }

    .select2-container--default .select2-results > .select2-results__options {
        max-height: 280px;
        overflow-y: auto;
    }

    #dashboard-gerencial-chamados .cd-rank-list {
        max-height: 320px;
        overflow-y: auto;
        padding-right: 4px;
    }

        #dashboard-gerencial-chamados .cd-rank-list .cd-rank-item {
            flex-shrink: 0;
        }

    #dashboard-chamados .cd-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
    }

    #dashboard-chamados .cd-title-wrap {
        min-width: 0;
        flex: 1 1 auto;
    }

    #dashboard-chamados .cd-hero-filter {
        width: 320px;
        max-width: 100%;
        position: relative;
        z-index: 3;
    }

    #dashboard-chamados .cd-hero-filter-label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 6px;
        color: rgba(255,255,255,.92);
    }

    #dashboard-chamados #dashboard-chamados-atendente + .select2 {
        width: 100% !important;
    }

        #dashboard-chamados #dashboard-chamados-atendente + .select2 .select2-selection {
            min-height: 40px;
            border: 1px solid rgba(255,255,255,.28);
            background: rgba(255,255,255,.14);
            color: #fff;
        }

        #dashboard-chamados #dashboard-chamados-atendente + .select2 .select2-selection__rendered,
        #dashboard-chamados #dashboard-chamados-atendente + .select2 .select2-selection__placeholder,
        #dashboard-chamados #dashboard-chamados-atendente + .select2 .select2-selection__arrow {
            color: #fff;
        }

    #dashboard-chamados .cd-rank-list-scroll-sm {
        max-height: 720px;
        overflow-y: auto;
        padding-right: 4px;
    }

    #dashboard-chamados .cd-kanban-board-dashboard {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding: 4px 0 8px;
    }

    #dashboard-chamados .cd-kanban-column {
        min-width: 270px;
        max-width: 270px;
        background: #f8fafc;
        border: 1px solid #e5edf7;
        border-radius: 16px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    #dashboard-chamados .cd-kanban-column-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    #dashboard-chamados .cd-kanban-column-title {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
    }

    #dashboard-chamados .cd-kanban-column-total {
        min-width: 32px;
        height: 32px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #e2e8f0;
        color: #0f172a;
        font-size: 13px;
        font-weight: 700;
    }

    #dashboard-chamados .cd-kanban-column-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #dashboard-chamados .cd-kanban-card {
        background: #fff;
        border: 1px solid #e5edf7;
        border-radius: 14px;
        padding: 12px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    }

    #dashboard-chamados .cd-kanban-card-title {
        font-size: 13px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 4px;
    }

    #dashboard-chamados .cd-kanban-card-subtitle,
    #dashboard-chamados .cd-kanban-empty {
        font-size: 12px;
        color: #64748b;
    }

    @media (max-width: 991.98px) {
        #dashboard-chamados .cd-title-row {
            flex-direction: column;
        }

        #dashboard-chamados .cd-hero-filter {
            width: 100%;
        }
    }


    .timeline-badge-visivel-cliente {
        display: inline-block;
        margin-left: 8px;
        padding: 2px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 600;
        background: #e6f4ea;
        color: #1e7e34;
        border: 1px solid #b7dfc3;
    }

    #preview-anexos {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-start;
        margin-top: 8px;
    }

    .preview-item {
        position: relative;
        width: 92px;
        height: 92px;
        min-width: 92px;
        max-width: 92px;
        min-height: 92px;
        max-height: 92px;
        border: 1px solid #d9dee7;
        border-radius: 10px;
        overflow: hidden;
        background-color: #f6f8fb;
        flex: 0 0 92px;
    }

    .preview-item-image {
        cursor: zoom-in; /* ou pointer */
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

        .preview-item-image:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

    .preview-hover {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        opacity: 0;
        transition: opacity 0.18s ease;
        pointer-events: none;
        z-index: 1;
    }

    .preview-item-image:hover .preview-hover {
        opacity: 1;
    }

    .preview-eye {
        font-size: 22px;
        line-height: 1;
        color: #fff;
    }

    .preview-hover-text {
        font-size: 12px;
        font-weight: 600;
        color: #fff;
        background: rgba(255,255,255,0.15);
        padding: 2px 8px;
        border-radius: 12px;
    }

    .preview-remove {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #ef4444;
        color: #fff;
        font-size: 13px;
        line-height: 22px;
        text-align: center;
        cursor: pointer;
        z-index: 2;
    }

    .preview-item.file {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px;
    }

        .preview-item.file .file-icon {
            font-size: 24px;
            line-height: 1;
        }

        .preview-item.file .file-ext {
            font-size: 11px;
            font-weight: 700;
            color: #4b5563;
            text-align: center;
            word-break: break-word;
        }
    /* Novo layout fluxo V2 (Linha única) */
    .fluxo-v2 {
        padding: 20px;
        background: #fafafa;
        border-radius: 8px;
        font-family: 'Inter', sans-serif;
    }

    .fluxo-v2-title {
        font-weight: 600;
        font-size: 15px;
        margin-bottom: 25px;
        color: #374151;
    }

    .fluxo-v2-item {
        position: relative;
        margin-bottom: 16px;
    }
    /* Linhas de conexão */
    .fluxo-v2-line-v {
        position: absolute;
        width: 2px;
        background-color: #94a3b8;
        z-index: 1;
    }

    .fluxo-v2-line-h {
        position: absolute;
        height: 2px;
        background-color: #94a3b8;
        z-index: 1;
    }

    .fluxo-v2-dot {
        position: absolute;
        top: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #fff;
        border: 2px solid #94a3b8;
        transform: translateY(-50%);
        z-index: 2;
    }
    /* Conteúdo na mesma linha */
    .fluxo-v2-row {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #fff;
        border: 1px solid #f3f4f6;
        border-radius: 8px;
        padding: 6px 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.02);
        position: relative;
        z-index: 3;
        min-height: 50px;
    }

    .fluxo-v2-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 6px;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        min-width: 140px;
        justify-content: flex-start;
    }

    .fluxo-v2-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        background-color: #eee;
        border: 1px solid #e5e7eb;
        flex-shrink: 0;
    }

    .fluxo-v2-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        white-space: nowrap;
    }

    .fluxo-v2-name {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
    }

    .fluxo-v2-lbl {
        color: #6b7280;
        font-size: 12px;
    }

    .fluxo-v2-status-row {
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .fluxo-v2-spacer {
        flex-grow: 1;
        border-bottom: 1px dashed #e5e7eb;
        margin: 0 15px;
    }

    .fluxo-v2-btn-abrir {
        background: #fff;
        border: 1px solid #d1d5db;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 13px;
        color: #374151;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        white-space: nowrap;
    }

        .fluxo-v2-btn-abrir:hover {
            background: #f3f4f6;
        }

    .fluxo-v2-tempo {
        color: #059669;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    /* =========================
   DASHBOARD OPERACIONAL
   ========================= */

    #dashboard-operacional.chamados-dashboard {
        margin-top: 14px;
    }

    #dashboard-operacional .chamados-dashboard-loading {
        min-height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #6c757d;
    }

    #dashboard-operacional .cd-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
        border: 1px solid #e9eef5;
        overflow: hidden;
        height: 100%;
    }

    #dashboard-operacional .cd-card-body {
        padding: 20px;
    }

    #dashboard-operacional .cd-hero {
        border-radius: 16px;
        overflow: hidden;
        background: linear-gradient(135deg, #05a9f3 0%, #2580e8 55%, #4f6fff 100%);
        color: #fff;
        position: relative;
        border: 0;
    }

        #dashboard-operacional .cd-hero::before {
            content: "";
            position: absolute;
            right: -35px;
            top: -45px;
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: rgba(255,255,255,.10);
        }

        #dashboard-operacional .cd-hero::after {
            content: "";
            position: absolute;
            right: 36px;
            bottom: -50px;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: rgba(255,255,255,.08);
        }

        #dashboard-operacional .cd-hero .cd-card-body {
            position: relative;
            z-index: 1;
        }

    #dashboard-operacional .cd-eyebrow {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        opacity: .9;
        margin-bottom: 8px;
        color: rgba(255,255,255,.88);
    }

    #dashboard-operacional .cd-title {
        font-size: 26px;
        line-height: 1.1;
        font-weight: 700;
        margin-bottom: 8px;
        color: #fff;
    }

    #dashboard-operacional .cd-chip-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    #dashboard-operacional .cd-chip {
        background: rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.18);
        color: #fff;
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 600;
    }

    #dashboard-operacional .cd-section-title {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 14px;
        display: flex;
        flex-direction: column;
    }

        #dashboard-operacional .cd-section-title small {
            font-size: 12px;
            color: #94a3b8;
            font-weight: 600;
            margin-top: 4px;
        }
    /* KPI GRID */

    #dashboard-operacional .cd-kpi-grid-gerencial {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
        margin-bottom: 16px;
    }

        #dashboard-operacional .cd-kpi-grid-gerencial .cd-kpi {
            min-height: 96px;
            padding: 14px 16px;
            display: flex;
            align-items: center;
            border-radius: 14px;
            border: 1px solid #edf0f5;
            background: #fff;
            box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
        }

        #dashboard-operacional .cd-kpi-grid-gerencial .cd-kpi-icon {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            font-size: 18px;
            flex: 0 0 42px;
        }

        #dashboard-operacional .cd-kpi-grid-gerencial .cd-kpi-body {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        #dashboard-operacional .cd-kpi-grid-gerencial .cd-kpi-label {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.2;
        }

        #dashboard-operacional .cd-kpi-grid-gerencial .cd-kpi-value {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.1;
            color: #0f172a;
            margin-top: 4px;
        }

        #dashboard-operacional .cd-kpi-grid-gerencial .cd-kpi-help {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 3px;
        }

    #dashboard-operacional .cd-kpi-info .cd-kpi-icon {
        background: rgba(5,169,243,.12);
        color: #05a9f3;
    }

    #dashboard-operacional .cd-kpi-success .cd-kpi-icon {
        background: rgba(0,194,146,.12);
        color: #00c292;
    }

    #dashboard-operacional .cd-kpi-primary .cd-kpi-icon {
        background: rgba(47,128,237,.12);
        color: #2f80ed;
    }

    #dashboard-operacional .cd-kpi-warning .cd-kpi-icon {
        background: rgba(254,194,9,.18);
        color: #d39e00;
    }

    #dashboard-operacional .cd-kpi-danger .cd-kpi-icon {
        background: rgba(224,49,49,.12);
        color: #e03131;
    }
    /* SCROLL LIST CONTAINER */

    #dashboard-operacional .op-scroll-list {
        max-height: 440px;
        overflow-y: auto;
        padding-right: 4px;
    }

        #dashboard-operacional .op-scroll-list::-webkit-scrollbar {
            width: 5px;
        }

        #dashboard-operacional .op-scroll-list::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 999px;
        }

        #dashboard-operacional .op-scroll-list::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 999px;
        }

            #dashboard-operacional .op-scroll-list::-webkit-scrollbar-thumb:hover {
                background: #94a3b8;
            }
    /* RANK / SOLUTIONS LIST */

    #dashboard-operacional .cd-rank-item {
        border: 1px solid #edf2f7;
        border-radius: 12px;
        background: #fafbfd;
        padding: 12px 14px;
        margin-bottom: 8px;
    }

    #dashboard-operacional .cd-rank-title {
        font-size: 14px;
        font-weight: 700;
        color: #1f2a37;
    }

    #dashboard-operacional .cd-rank-meta {
        font-size: 12px;
        color: #6b7280;
    }
    /* BAR LIST */

    #dashboard-operacional .cd-bar-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #dashboard-operacional .cd-bar-item {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px 12px;
        align-items: center;
    }

    #dashboard-operacional .cd-bar-label {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
    }

    #dashboard-operacional .cd-bar-value {
        font-size: 12px;
        color: #64748b;
        font-weight: 700;
    }

    #dashboard-operacional .cd-bar-track {
        grid-column: 1 / -1;
        width: 100%;
        height: 8px;
        border-radius: 999px;
        overflow: hidden;
        background: #eef2f7;
    }

    #dashboard-operacional .cd-bar-fill {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #05a9f3 0%, #2f80ed 100%);
    }
    /* EMPTY */

    #dashboard-operacional .cd-empty {
        border: 1px dashed #dbe4ee;
        border-radius: 14px;
        background: #fafcff;
        padding: 18px;
        text-align: center;
        color: #94a3b8;
        font-size: 13px;
    }
    /* KANBAN */

    #dashboard-operacional .cd-kanban {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    #dashboard-operacional .cd-kanban-col {
        min-width: 260px;
        max-width: 260px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
    }

    #dashboard-operacional .cd-kanban-col-header {
        padding: 10px 14px;
        font-weight: 700;
        font-size: 13px;
        color: #0f172a;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    #dashboard-operacional .cd-kanban-badge {
        background: #e9eefb;
        color: #2f5fd0;
        border-radius: 999px;
        padding: 2px 10px;
        font-size: 12px;
        font-weight: 700;
    }

    #dashboard-operacional .cd-kanban-col-body {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 480px;
        overflow-y: auto;
    }

    #dashboard-operacional .cd-kanban-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 10px 12px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
        transition: box-shadow .15s ease;
    }

        #dashboard-operacional .cd-kanban-card:hover {
            box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
        }

    #dashboard-operacional .cd-kanban-card-active {
        border-left: 3px solid #05a9f3;
        background: #f0f9ff;
    }

    #dashboard-operacional .cd-kanban-card-title {
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 13px;
        color: #111827;
        line-height: 1.3;
    }

    #dashboard-operacional .cd-kanban-card-meta {
        font-size: 12px;
        color: #6b7280;
        line-height: 1.4;
    }

    #dashboard-operacional .cd-empty-kanban {
        padding: 8px 0;
        font-size: 12px;
        text-align: center;
        color: #94a3b8;
    }

    @media (max-width: 991.98px) {
        #dashboard-operacional .cd-title {
            font-size: 22px;
        }

    #dashboard-operacional .cd-kpi-grid-gerencial .cd-kpi-value {
        font-size: 24px;
    }
}
#dashboard-chamados .cd-kpi-clicavel:hover {
    background: rgba(0,0,0,.03);
    border-radius: 10px;
    transition: background .15s;
}

.cd-kpi-lista-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}

.cd-kpi-lista-item:last-child {
    border-bottom: none;
}

.cd-kpi-lista-item:hover {
    background: #f8fafc;
}

#mdl-nova-tarefa .modal-dialog {
    max-width: 75vw;
    width: 75vw;
}
#mdl-template-formulario .modal-dialog {
    max-width: 75vw;
    width: 75vw;
}
#card-detalhes .card-body {
    max-height: var(--detalhes-altura, 42vh);
    overflow-y: auto;
    overflow-x: hidden;
}

.detalhes-resize {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    cursor: row-resize;
    color: #adb5bd;
    font-size: 12px;
    border-top: 1px solid #eef1f5;
    border-radius: 0 0 8px 8px;
    background: #f8f9fa;
    user-select: none;
}

    .detalhes-resize:hover,
    .detalhes-resize.is-dragging {
        color: #2f80ed;
        background: #eaf2ff;
    }
.btn-filtro-concluido {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #ced4da;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: #6c757d;
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1.4;
}
    .btn-filtro-concluido:hover {
        border-color: #adb5bd;
        color: #343a40;
        background: #f8f9fa;
    }
    .btn-filtro-concluido.ativo[data-valor=""] {
        border-color: #495057;
        background: #495057;
        color: #fff;
    }
    .btn-filtro-concluido.ativo[data-valor="aberto"] {
        border-color: #2F80ED;
        background: #8ccfe975;
        color: #207af3;
    }
    .btn-filtro-concluido.ativo[data-valor="encerrado"] {
        border-color: #28a745;
        background: #eaf7ed;
        color: #1a6e30;
    }
#ano-concluidos + .select2-container .select2-selection--single {
    border: 1.5px solid #ced4da;
    border-radius: 999px;
    padding: 4px 14px;
    height: auto;
    background: #fff;
    transition: all .15s ease;
}
    #ano-concluidos + .select2-container .select2-selection--single:hover {
        border-color: #adb5bd;
        background: #f8f9fa;
    }
#ano-concluidos + .select2-container .select2-selection__rendered {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.4;
    padding: 0;
}
#ano-concluidos + .select2-container .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}
#ano-concluidos + .select2-container--open .select2-selection--single {
    border-color: #495057;
    color: #343a40;
}
.select2-dropdown {
    border: 1.5px solid #ced4da;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
}
.select2-results__option {
    color: #6c757d;
    padding: 6px 14px;
}
.select2-results__option--highlighted {
    background: #2f80ed !important;
    color: #fff !important;
}
.select2-results__option[aria-selected="true"] {
    background: #eaf2ff !important;
    color: #2f80ed !important;
}
#ano-concluidos + .select2-container {
    width: 92px !important;
    margin-left: 0 !important;
}

    #ano-concluidos + .select2-container .select2-selection--single {
        position: relative;
        border: 1.5px solid #ced4da;
        border-radius: 999px;
        padding: 4px 26px 4px 28px;
        height: auto;
        min-height: unset;
        background: #fff;
        transition: all .15s ease;
    }
        #ano-concluidos + .select2-container .select2-selection--single:before {
            content: "\f133";
            font-family: "Font Awesome 6 Free";
            font-weight: 400;
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: #6c757d;
        }
    #ano-concluidos + .select2-container .select2-selection__rendered {
        font-size: 12px;
        font-weight: 600;
        color: #6c757d;
        line-height: 1.4;
        padding: 0;
    }
    #ano-concluidos + .select2-container .select2-selection__arrow {
        height: 100%;
        top: 0;
        right: 9px;
    }
.painel-filtros-chamados {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .painel-filtros-chamados.aberto {
        right: 0;
    }

.painel-filtros-chamados-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.painel-filtros-chamados-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.painel-filtros-chamados-footer {
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
}

.overlay-filtros-chamados {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1049;
}

.painel-filtros-label {
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.painel-filtros-datas {
    gap: 8px;
}
.painel-filtros-chamados .form-group {
    margin-bottom: 10px;
}

.painel-filtros-label {
    display: block;
    margin-bottom: 4px;
    color: #6c757d;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.painel-filtro-linha {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
    .painel-filtro-linha .form-control,
    .painel-filtro-linha .select2-container {
        flex: 1;
        width: 100% !important;
    }

    .painel-filtro-linha .select2-selection {
        height: 31px !important;
        border: 1px solid #ced4da !important;
        border-radius: 3px !important;
    }

    .painel-filtro-linha .select2-selection__rendered {
        line-height: 29px !important;
        font-size: 12px;
    }

    .painel-filtro-linha .select2-selection__arrow {
        height: 29px !important;
    }

    .painel-filtro-linha .btn-limpar-filtro {
        width: 31px;
        min-width: 31px;
        height: 31px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* ===== DASHBOARD DE INDICADORES ===== */
#dashboard-indicadores-chamados .cd-card {
    background: #fff;
    border: 1px solid #e9edf4;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
    overflow: hidden;
    height: 100%;
}

#dashboard-indicadores-chamados .cd-card-body {
    padding: 14px 16px;
}

#dashboard-indicadores-chamados .cd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

    #dashboard-indicadores-chamados .cd-section-title small {
        font-size: 12px;
        color: #94a3b8;
        font-weight: 600;
        margin-top: 4px;
    }

#dashboard-indicadores-chamados .cd-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    #dashboard-indicadores-chamados .cd-kpi-grid {
        grid-template-columns: 1fr;
    }
}

#dashboard-indicadores-chamados .cd-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

#dashboard-indicadores-chamados .cd-kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex: 0 0 52px;
}

#dashboard-indicadores-chamados .cd-kpi-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 2px;
    font-weight: 600;
}

#dashboard-indicadores-chamados .cd-kpi-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

#dashboard-indicadores-chamados .cd-kpi-info .cd-kpi-icon {
    background: rgba(5,169,243,.12);
    color: #05a9f3;
}

#dashboard-indicadores-chamados .cd-kpi-success .cd-kpi-icon {
    background: rgba(0,194,146,.12);
    color: #00c292;
}

#dashboard-indicadores-chamados .cd-kpi-info .ind-title-icon,
#dashboard-indicadores-chamados .ind-title-icon-info {
    color: #05a9f3;
}

#dashboard-indicadores-chamados .ind-title-icon-success {
    color: #00c292;
}

#dashboard-indicadores-chamados .ind-title-icon-purple {
    color: #7c3aed;
}

/* Lista de barras horizontais */
#dashboard-indicadores-chamados .ind-bar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Altura fixa com scroll quando a lista é grande */
#dashboard-indicadores-chamados .ind-scroll {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 8px;
}

    #dashboard-indicadores-chamados .ind-scroll::-webkit-scrollbar {
        width: 8px;
    }

    #dashboard-indicadores-chamados .ind-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    #dashboard-indicadores-chamados .ind-scroll::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 999px;
    }

        #dashboard-indicadores-chamados .ind-scroll::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

#dashboard-indicadores-chamados .ind-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr auto;
    align-items: center;
    gap: 12px;
}

#dashboard-indicadores-chamados .ind-bar-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#dashboard-indicadores-chamados .ind-bar-nome {
    font-size: 13px;
    font-weight: 700;
    color: #1f2a37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dashboard-indicadores-chamados .ind-bar-pos {
    display: inline-block;
    min-width: 24px;
    color: #94a3b8;
    font-weight: 700;
}

#dashboard-indicadores-chamados .ind-bar-uni {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 24px;
}

#dashboard-indicadores-chamados .ind-bar-track {
    height: 12px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

#dashboard-indicadores-chamados .ind-bar-fill {
    height: 100%;
    border-radius: 999px;
    min-width: 4px;
    transition: width .4s ease;
}

#dashboard-indicadores-chamados .ind-fill-info {
    background: linear-gradient(90deg, #05a9f3 0%, #2580e8 100%);
}

#dashboard-indicadores-chamados .ind-fill-success {
    background: linear-gradient(90deg, #12c48b 0%, #00a884 100%);
}

#dashboard-indicadores-chamados .ind-fill-purple {
    background: linear-gradient(90deg, #a78bfa 0%, #7c3aed 100%);
}

#dashboard-indicadores-chamados .ind-bar-num {
    font-size: 14px;
    font-weight: 700;
    color: #1f2a37;
    text-align: right;
    min-width: 44px;
    font-variant-numeric: tabular-nums;
}

#dashboard-indicadores-chamados .cd-empty {
    border: 1px dashed #dbe4ee;
    border-radius: 14px;
    background: #fafcff;
    padding: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ---- KPIs (4 cards com variação + sparkline) ---- */
#dashboard-indicadores-chamados .ind-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1199px) {
    #dashboard-indicadores-chamados .ind-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    #dashboard-indicadores-chamados .ind-kpi-grid {
        grid-template-columns: 1fr;
    }
}

#dashboard-indicadores-chamados .ind-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

#dashboard-indicadores-chamados .ind-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex: 0 0 48px;
}

#dashboard-indicadores-chamados .ind-kpi-icon-info { background: rgba(5,169,243,.12); color: #05a9f3; }
#dashboard-indicadores-chamados .ind-kpi-icon-success { background: rgba(0,194,146,.12); color: #00c292; }
#dashboard-indicadores-chamados .ind-kpi-icon-purple { background: rgba(124,58,237,.12); color: #7c3aed; }
#dashboard-indicadores-chamados .ind-kpi-icon-amber { background: rgba(245,158,11,.15); color: #d97706; }

#dashboard-indicadores-chamados .ind-kpi-body {
    flex: 1 1 auto;
    min-width: 0;
}

#dashboard-indicadores-chamados .ind-kpi-label {
    font-size: 12.5px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 2px;
}

#dashboard-indicadores-chamados .ind-kpi-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.05;
    color: #111827;
}

#dashboard-indicadores-chamados .ind-kpi-var {
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 4px;
}

#dashboard-indicadores-chamados .ind-var-up { color: #00a884; }
#dashboard-indicadores-chamados .ind-var-down { color: #e03131; }
#dashboard-indicadores-chamados .ind-var-neutral { color: #94a3b8; }

#dashboard-indicadores-chamados .ind-kpi-spark {
    width: 92px;
    height: 46px;
    flex: 0 0 92px;
}

@media (max-width: 575px) {
    #dashboard-indicadores-chamados .ind-kpi-spark { display: none; }
}

/* ---- Cabeçalho de card com ação "Ver mais" ---- */
#dashboard-indicadores-chamados .ind-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

    #dashboard-indicadores-chamados .ind-card-head .cd-section-title {
        margin-bottom: 0;
    }

#dashboard-indicadores-chamados .ind-vermais {
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #2580e8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
}

    #dashboard-indicadores-chamados .ind-vermais:hover {
        background: #f1f6ff;
    }

#dashboard-indicadores-chamados .ind-subhead {
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
}

/* ---- Gráficos ---- */
#dashboard-indicadores-chamados .ind-chart {
    width: 100%;
    height: 320px;
}

#dashboard-indicadores-chamados .ind-donut-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#dashboard-indicadores-chamados .ind-donut {
    width: 190px;
    height: 260px;
    flex: 0 0 190px;
}

#dashboard-indicadores-chamados .ind-donut-legenda {
    flex: 1 1 200px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#dashboard-indicadores-chamados .ind-legenda-item {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}

#dashboard-indicadores-chamados .ind-legenda-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

#dashboard-indicadores-chamados .ind-legenda-nome {
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dashboard-indicadores-chamados .ind-legenda-perc {
    color: #94a3b8;
    font-weight: 600;
    min-width: 42px;
    text-align: right;
}

#dashboard-indicadores-chamados .ind-legenda-qtd {
    color: #1f2a37;
    font-weight: 700;
    min-width: 48px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- KPI clicável (satisfação) ---- */
#dashboard-indicadores-chamados .ind-kpi-clicavel {
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
    position: relative;
}

    #dashboard-indicadores-chamados .ind-kpi-clicavel:hover {
        box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
        transform: translateY(-1px);
    }

#dashboard-indicadores-chamados .ind-kpi-dica {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: #d97706;
    margin-top: 4px;
}

    #dashboard-indicadores-chamados .ind-kpi-clicavel:hover .ind-kpi-dica {
        display: block;
    }

#dashboard-indicadores-chamados .ind-title-icon-danger {
    color: #e03131;
}

#dashboard-indicadores-chamados .ind-fill-danger {
    background: linear-gradient(90deg, #f87171 0%, #e03131 100%);
}

#dashboard-indicadores-chamados .ind-card-body-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#dashboard-indicadores-chamados .ind-chart-flex {
    flex: 1 1 auto;
    height: auto;
    min-height: 200px;
}

#dashboard-indicadores-chamados .ind-preso-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

#dashboard-indicadores-chamados .ind-preso-stat {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
}

#dashboard-indicadores-chamados .ind-preso-stat-valor {
    font-size: 22px;
    font-weight: 700;
    color: #b91c1c;
    line-height: 1.1;
}

#dashboard-indicadores-chamados .ind-preso-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 2px;
}

#dashboard-indicadores-chamados .ind-preso-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
}

#dashboard-indicadores-chamados .ind-preso-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

    #dashboard-indicadores-chamados .ind-preso-row:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

#dashboard-indicadores-chamados .ind-preso-main {
    min-width: 0;
    flex: 1 1 auto;
}

#dashboard-indicadores-chamados .ind-preso-titulo {
    font-size: 13px;
    font-weight: 700;
    color: #1f2a37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dashboard-indicadores-chamados .ind-preso-sub {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#dashboard-indicadores-chamados .ind-preso-dot {
    margin: 0 4px;
}

#dashboard-indicadores-chamados .ind-preso-badge {
    flex: 0 0 auto;
    font-size: 11px;
}

/* ---- Modal de avaliações ---- */
.ind-aval-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ind-aval-item {
    border: 1px solid #edf2f7;
    border-radius: 12px;
    background: #fafbfd;
    padding: 12px 14px;
}

.ind-aval-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.ind-aval-estrelas {
    letter-spacing: 1px;
}

.ind-aval-estrelas .ind-star-on {
    color: #f59e0b;
}

.ind-aval-estrelas .ind-star-off {
    color: #d1d5db;
}

.ind-aval-nota {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.ind-aval-data {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
}

.ind-aval-cliente {
    font-size: 14px;
    font-weight: 700;
    color: #1f2a37;
}

.ind-aval-uni {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.ind-aval-atendente {
    margin-top: 3px;
    font-size: 12px;
    color: #64748b;
}

.ind-aval-atendente strong {
    color: #334155;
}

.ind-aval-filtros {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.ind-aval-parecer {
    margin-top: 4px;
    font-size: 13px;
    color: #475569;
    white-space: pre-wrap;
    word-break: break-word;
}

.ind-aval-sem {
    font-style: italic;
    color: #a0aec0;
}

body.theme-dark .ind-aval-item {
    background-color: var(--dt-bg-2) !important;
    border-color: var(--dt-border) !important;
}

body.theme-dark .ind-aval-cliente,
body.theme-dark .ind-aval-parecer {
    color: var(--dt-text) !important;
}

body.theme-dark .ind-aval-atendente strong {
    color: var(--dt-text) !important;
}

body.theme-dark .ind-aval-filtros {
    border-bottom-color: var(--dt-border) !important;
}
/* =========================
   DASHBOARD GERENCIAL - ENTRADA DE DEMANDA
   ========================= */
#dashboard-gerencial-demanda .cd-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    border: 1px solid #e9eef5;
    overflow: hidden;
    height: 100%;
}

#dashboard-gerencial-demanda .cd-card-body {
    padding: 20px;
}

#dashboard-gerencial-demanda .cd-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
}

#dashboard-gerencial-demanda .cd-section-title small {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 4px;
}

#dashboard-gerencial-demanda .cd-demanda-chart {
    width: 100%;
    height: 340px;
}

#dashboard-gerencial-demanda .cd-demanda-kpi {
    border: 1px solid #e9eef5;
    border-radius: 12px;
    padding: 12px 14px;
    height: 100%;
    background: #fbfdff;
}

#dashboard-gerencial-demanda .cd-demanda-kpi-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .3px;
}

#dashboard-gerencial-demanda .cd-demanda-kpi-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

#dashboard-gerencial-demanda .cd-demanda-kpi-desc {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 600;
}

#dashboard-gerencial-demanda .cd-demanda-var-up {
    color: #e03131;
}

#dashboard-gerencial-demanda .cd-demanda-var-down {
    color: #00c292;
}

#dashboard-gerencial-demanda .cd-demanda-var-flat {
    color: #94a3b8;
}

#dashboard-gerencial-demanda .cd-empty {
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}
