/* ==========================
   BOTÃO WAVE SOFTWARE
   ========================== */
.wavebutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #ff5722;
    color: #fff;
    font-size: 0.75rem;     /* igual ao btn-sm */
    font-weight: 600;
    padding: 0.25rem 0.45rem; /* mesmo padding dos botões pequenos */
    border-radius: 4px;     /* arredondado igual */
    border: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
    height: 27px;           /* fixa altura igual aos outros */
    min-width: 32px;        /* mantém proporção */
    padding-top: 7px;
}

.wavebutton i {
    font-size: 0.8rem;
    line-height: 1;
}

.wavebutton-light {
    background: #83868b;
    color: #fff;
}

.wavebutton-light:hover {
    background: #bfc5cc;
}

.wso-tab {
  cursor: pointer;
}
/* Remove caret padrão do Argon/Bootstrap */
.nav-link.has-caret::after {
    display: none !important;
}

/* Estilo da seta custom */
.nav-link .caret {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    margin-left: auto;
    transform: rotate(-45deg); /* seta fechada */
    transition: transform 0.2s ease;
}

/* Gira somente a seta do link aberto */
.nav-link[aria-expanded="true"] .caret {
    transform: rotate(45deg); /* seta aberta */
}

.nav-link .nav-text {
    display: inline-block;
    max-width: 160px;  /* ajusta conforme largura do sidebar */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}


/* Hover */
.wavebutton:hover {
    background: #e64a19;
    color: #fff;
    transform: translateY(-1px);
}

/* Active */
.wavebutton:active {
    background: #d84315;
    transform: scale(0.95);
}

/* Focus */
.wavebutton:focus {
    outline: 2px solid rgba(255, 87, 34, 0.4);
    outline-offset: 2px;
}


/* =======================
   BOTÕES WAVE SOFTWARE
   ======================= */
.waveapp-btn-software {
    display: inline-block;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .01em;
    min-width: 120px;
    padding: 10px 22px;
    box-shadow: 0 2px 8px rgba(24,128,232,0.04);
    transition: background 0.14s, color 0.14s, box-shadow 0.13s;
    border: none;
    margin-right: 10px;
    text-align: center;
    vertical-align: middle;
    outline: none;
    cursor: pointer;
}
.waveapp-btn-software:last-child { margin-right: 0; }

.waveapp-btn-success {
    background: #19c995;
    color: #fff;
}
.waveapp-btn-success:hover,
.waveapp-btn-success:focus { background: #10a072; color: #fff; }

.waveapp-btn-warning {
    background: #ff9800;
    color: #fff;
}
.waveapp-btn-warning:hover,
.waveapp-btn-warning:focus { background: #ec8500; color: #fff; }

.waveapp-btn-danger {
    background: #e23e3e;
    color: #fff;
}
.waveapp-btn-danger:hover,
.waveapp-btn-danger:focus { background: #be2121; color: #fff; }

.action-btn-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 0.7rem;
}
.btn-closeds {
  box-sizing: content-box;
  width: 1.25em;
  height: 1.25em;
  padding: 0.25em;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath stroke='%23fff' stroke-width='2' d='M2 2 L14 14 M14 2 L2 14'/%3E%3C/svg%3E")
    center/1.25em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-closeds:hover {
  opacity: 1;
  transform: scale(1.1);
}

.btn-closeds:focus {
  outline: none;
  box-shadow: none;
}



/* MOBILE — botões em coluna, 100% largura */
@media (max-width: 700px) {
    .action-btn-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 16px 0 0 0;
    }
    .waveapp-btn-software {
        width: 100% !important;
        min-width: 0;
        margin: 0 0 12px 0 !important;
        font-size: 1.15rem;
        padding: 18px 0;
        border-radius: 9px;
        box-shadow: 0 4px 20px rgba(24,128,232,0.09);
    }
    .waveapp-btn-software:last-child { margin-bottom: 0 !important; }
}

/* =======================
   EVENTOS / LISTAS
   ======================= */
.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    font-size: 14px;
}
.event-time {
    width: 50px;
    font-size: 12px;
    color: #6c757d;
    flex-shrink: 0;
    text-align: right;
}
.event-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}
.event-message { font-weight: 600; color: #212529; font-size: 14px; }
.event-detail { font-size: 12px; color: #6c757d; }

/* =======================
   CHARTS
   ======================= */
.chart-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    height: 299px;
    margin: auto;
    text-align: left;
    line-height: normal;
    z-index: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
    outline: none;
    font-family: "Open Sans", sans-serif;
}
.chartjs-render-monitor { font-family: 'Inter', sans-serif; }
.chart-legend { font-size: 13px; color: #374151; }
.chart-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}



@media (max-width: 950px) {

    .table-wso-mobile thead {
        display: none;
    }

    .table-wso-mobile tbody tr {
        display: flex;
        flex-direction: column;
        background: #f9fbff;
        margin-bottom: 16px;
        box-shadow: 0 1px 8px #29e6c511;
        border-radius: 18px;
        padding: 8px 0;
    }

    .table-wso-mobile td {
        border: none !important;
        padding: 10px 20px;
        font-size: 16px;
        background: none !important;
    }

    .usercell {
        justify-content: flex-start;
    }
}

/* =======================
   USER CELLS
   ======================= */
.usercell { display: flex; align-items: center; gap: 12px; }
.avatar-wso {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #cce5fd;
    box-shadow: 0 1px 6px #b6e2fa2b;
    background: #e8f6ff;
}
.user-wso-name {
    font-weight: 700;
    color: #228be6;
    font-size: 0.9rem;
    letter-spacing: .01em;
}
.location-badge {
    display: inline-block;
    background: #e8f6ff;
    color: #228be6;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 2px 10px;
    min-width: 86px;
    text-align: center;
}
.hostname-wso { font-weight: 600; color: #252b36; font-size: 1rem; }
.os-wso { color: #717e96; font-size: 0.9rem; }
.login-wso { color: #2083c9; font-weight: 600; font-size: 1rem; letter-spacing: .01em; }

/* =======================
   CARDS
   ======================= */
.card-wso {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}
.card-wso .card-body { padding: 24px; }
.card-header-wso {
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================
   CARD WSO (fundo transparente)
   ============================ */
.card-wso {
   /* background: transparent !important;
    border: none;
    border-radius: 0.75rem;   /* cantos arredondados */
    box-shadow: 0 2px 6px rgba(0,0,0,.08); /* sombra leve */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header custom */
.card-header-wso {
    background: transparent !important;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(229,231,235,0.5); /* linha discreta */
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Body custom */
.card-body-wso {
    background: transparent !important;
    padding: 1rem 1.25rem;
    flex: 1 1 auto;
}

/* Corrigir fundo branco dos itens */
.card-wso .list-group,
.card-wso .list-group-item {
    background: transparent !important;
    border: none;
}


/* =======================
   CONTAINERS
   ======================= */
.container-wso-fluid {
    width: 100%;
    padding-top: 70px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}
.container-wso-fluid .card { margin: 0 10px; border-radius: 10px; overflow: hidden; }
.container-wso-fluid .card-body { padding: 0 20px; }

/* =======================
   MODAL PREMIUM
   ======================= */
.ws-modal-content {
    border-radius: 22px !important;
    border: none;
    background: #fff;
}
.ws-modal-header {
    background: #f5f8fa;
    border-radius: 22px 22px 0 0;
    border-bottom: 1px solid #e4eaf1;
}
.ws-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #22223b;
}
.ws-nav-tabs .nav-link {
    font-weight: 600;
    color: #4d4d4d;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    padding: 14px 18px 9px 18px;
    font-size: 1rem;
}
.ws-nav-tabs .nav-link.active {
    border-color: #027aff;
    color: #027aff;
    background: #f5f8fa;
    border-radius: 12px 12px 0 0;
}

/* =======================
   LISTAS / CARDS DE OPÇÃO
   ======================= */
.monitor-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    background: #fff;
    transition: box-shadow .2s;
}
.monitor-option-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.monitor-option-card i { color: #6b7280; font-size: 1rem; }
.monitor-option-card span { font-weight: 600; font-size: 0.95rem; color: #374151; }

.list-group-item {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}
.list-group-item .d-flex.gap-4 { gap: 1.5rem !important; }
.list-group-item i {
    min-width: 24px;
    text-align: center;
}


/* =======================
   SWITCH ESTILO WSO
   ======================= */
.monitor-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    vertical-align: middle;
}
.monitor-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: all .25s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 22px; width: 22px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all .25s;
}
.monitor-switch input:checked + .slider {
    background-color: #ff8c2a; /* laranja premium */
    
}
.monitor-switch input:checked + .slider:before {
    transform: translateX(26px);
}

/* Label container */
.monitor-label {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
    width: 100%;
}

/* Texto "Não" (default desligado) */
.monitor-label::after {
    content: "Não";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* Texto "Sim" (apenas quando ligado) */
.monitor-switch input:checked ~ .monitor-label::after {
    content: "Sim";
    left: 0px;
    right: auto;
}


/* Abas estilo underline */



#wsoTabs .nav-link.active {
    color: #15cf50; /* amarelo/laranja para ativo */
}

#wsoTabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background-color: #15cf50;
    border-radius: 2px;
}

#wsoTabs .nav-link:hover {
    color: #e67e22; /* hover laranja */
}


/* Espaçamento extra entre o toggle e o texto */
.monitor-switch {
    margin-right: 12px; /* ajuste o valor conforme desejar */
}

/* Avatar pequeno da tabela */
.employee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Espaço entre avatar e nome */
.employee-name-cell {
    display: flex;
    align-items: center;
    gap: 12px; /* controla o espaço */
}

.switch-handle {
    position:absolute;
    top:4px;
    left:4px;
    width:18px;
    height:18px;
    background:#fff;
    border-radius:10px;
    box-shadow:1px 1px 5px rgba(0,0,0,.2);
    background-image:-webkit-linear-gradient(top,#fff 40%,#f0f0f0);
    background-image:-moz-linear-gradient(top,#fff 40%,#f0f0f0);
    background-image:-o-linear-gradient(top,#fff 40%,#f0f0f0);
    background-image:linear-gradient(to bottom,#fff 40%,#f0f0f0);
    -webkit-transition:left .15s ease-out;
    -moz-transition:left .15s ease-out;
    -o-transition:left .15s ease-out;
    transition:left .15s ease-out
}


.switch-handle:before{
    content:'';
    position:absolute;
    top:50%;
    left:50%;
    margin:-6px 0 0 -6px;
    width:12px;
    height:12px;
    background:#f9f9f9;
    border-radius:6px;
    box-shadow:inset 0 1px rgba(0,0,0,.02);
    background-image:-webkit-linear-gradient(top,#eee,#fff);
    background-image:-moz-linear-gradient(top,#eee,#fff);
    background-image:-o-linear-gradient(top,#eee,#fff);
    background-image:linear-gradient(to bottom,#eee,#fff)
}
.switch-input:checked~.switch-handle{
    left:34px;
    box-shadow:-1px 1px 5px rgba(0,0,0,.2)
}
.switch-green>.switch-input:checked~.switch-label{
    background:#4fb845
}
.switch-orange>.switch-input:checked~.switch-label{
    background:#1faff6
}

.switch {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 56px !important;        /* largura fixa */
    height: 20px !important;       /* altura fixa */
    padding: 3px;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: inset 0 -1px #fff, inset 0 1px 1px rgba(0,0,0,.05);
    cursor: pointer;
    background-image: -webkit-linear-gradient(top,#eee,#fff 25px);
    background-image: -moz-linear-gradient(top,#eee,#fff 25px);
    background-image: -o-linear-gradient(top,#eee,#fff 25px);
    background-image: linear-gradient(to bottom,#eee,#fff 25px);
    flex-shrink: 0; /* evita encolher em layouts responsivos */
}

.switch-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.switch-label {
    position: relative;
    display: block;
    height: inherit;
    font-size: 10px;
    text-transform: uppercase;
    background: #eceeef;
    border-radius: inherit;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.12), inset 0 0 2px rgba(0,0,0,.15);
    -webkit-transition: .15s ease-out;
    -moz-transition: .15s ease-out;
    -o-transition: .15s ease-out;
    transition: .15s ease-out;
    -webkit-transition-property: opacity, background;
    -moz-transition-property: opacity, background;
    -o-transition-property: opacity, background;
    transition-property: opacity, background;
}

.switch-label:after,
.switch-label:before {
    position: absolute;
    top: 50%;
    margin-top: -.5em;
    line-height: 1;
    -webkit-transition: inherit;
    -moz-transition: inherit;
    -o-transition: inherit;
    transition: inherit;
}

.switch-label:before {
    content: attr(data-off);
    right: 9px;
    color: #aaa;
    text-shadow: 0 1px rgba(255,255,255,.5);
}

.switch-label:after {
    content: attr(data-on);
    left: 9px;
    color: #fff;
    text-shadow: 0 1px rgba(0,0,0,.2);
    opacity: 0;
}

.switch-input:checked ~ .switch-label {
    background: #47a8d8;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.15), inset 0 0 3px rgba(0,0,0,.2);
}

.switch-input:checked ~ .switch-label:before {
    opacity: 0;
}

.switch-input:checked ~ .switch-label:after {
    opacity: 1;
}



/* Avatar container */
.avatar-waveserver {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #666;
    font-size: 2rem;
    border-radius: 50%;
    border: 3px solid #ccc;
    overflow: hidden;
}

/* Imagem circular */
.avatar-waveserver .avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Botão da câmera */
.camera-btn {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.camera-btn i {
    font-size: 16px;
    color: #555;
}

.camera-btn:hover {
    background: #f0f0f0;
}


.monitor-wrapper {
    display: flex;
    align-items: center; /* centraliza tudo verticalmente */
    gap: 8px;
}
.wsosmall {
    display: flex;
    align-items: center;
    height: 24px;       /* mesma altura aproximada do switch */
    line-height: 24px;  /* força centralização vertical */
    font-size: 0.75rem;
    padding-top: 7px;
}



@media screen and (max-width:400px){
    .highchart-container.pie .highchart{
        margin-left:auto;
        margin-right:auto;
        float:none
    }
    .highchart-container.pie .sidebar{
        float:none;
        width:100%;
        display:none
    }
}
.highchart-container.chart .switches button button.btn[disabled]{
    opacity:1!important
}


/*Abas*/
.wso-tab {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all .2s ease-in-out;
    text-decoration: none;
}


/* ===============================f
   MAIN CONTENT BASE
   =============================== */




/* Quando o sidebar está escondido */
.sidebar-collapsed ~ .main-content {
    margin-left: 0 !important;
}

/* Quando sidebar está colapsado */
#sidenav-main.sidebar-collapsed ~ .main-content {
    margin-left: 80px !important;
}

/* ===============================
   HEADER (LEFT GROUP)
   =============================== */
.wso-header-left {
    display: flex;
    align-items: center;  /* centraliza verticalmente */
    gap: 10px;            /* espaço entre ícone e texto */
}

/* =========================================
   WSO HEADER TOGGLE — FIX REAL
========================================= */

.wso-header-left #sidebarToggle {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    border-radius: 8px;

    padding: 0;

    cursor: pointer;

    font-size: 18px;

    transition: all 0.2s ease;
}

/* ícone */
.wso-header-left #sidebarToggle i {
    color: #ffffff !important;
    font-size: 18px;
}

/* hover */
.wso-header-left #sidebarToggle:hover {
    background: rgba(255,255,255,0.08);
}

/* hover ícone */
.wso-header-left #sidebarToggle:hover i {
    color: #00ff2d !important;
}

/* active */
.wso-header-left #sidebarToggle:active {
    transform: scale(0.92);
}
.wso-header-left .dashboard-link {
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
}

/* ===============================
   SIDEBAR
   =============================== */


/* Sidebar colapsado (só ícones) */
#sidenav-main.sidebar-collapsed {
    width: 80px !important;
}

/* Esconde textos no colapsado */
#sidenav-main.sidebar-collapsed .nav-link span,
#sidenav-main.sidebar-collapsed .nav-item .nav-text {
    display: none;
}

/* Auto expand hover (abre sidebar e mostra textos, sem mexer main) */
#sidenav-main.sidebar-collapsed:hover {
    width: 270px !important;
}

#sidenav-main.sidebar-collapsed:hover .nav-link span,
#sidenav-main.sidebar-collapsed:hover .nav-item .nav-text {
    display: inline;
}

/* ===============================
   LOGOS
   =============================== */
#sidenav-main .logo-full {
    max-width: 170px;
    height: auto;
    display: block;
    margin-left: 4px;   /* alinha à esquerda */
    margin-right: auto;
}

#sidenav-main .logo-mini {
    width: 40px;
    height: auto;
    display: none;
    margin: 0 auto;
}

/* Troca logos no colapsado */
#sidenav-main.sidebar-collapsed .logo-full {
    display: none;
}
#sidenav-main.sidebar-collapsed .logo-mini {
    display: block;
}

/* >>> Novo: ao passar o mouse, mostra logo full <<< */
#sidenav-main.sidebar-collapsed:hover .logo-full {
    display: block;
}
#sidenav-main.sidebar-collapsed:hover .logo-mini {
    display: none;
}



/* ============================
   NAVBAR EXPANDIDA (Tipo WSO)
   ============================ */
.wso-tabs {
    display: flex;
    align-items: center;
    border-bottom: none !important;
    padding: 12px 20px 12px 0; /* top, right, bottom, left */
    gap: 20px;
    font-weight: 600;
    font-size: 0.95rem;
    justify-content: flex-start; /* garante alinhamento à esquerda */
}


.wso-tab {
    color: #555;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.wso-tab:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

.wso-tab.active {
    background: #fff;
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 2px solid #0d6efd;
}

.wso-tab:hover {
    background: #f8f9fa;
    color: #fff;
}



/* ===============================
   NAVBAR PRINCIPAL
   =============================== */



/* Ícone dentro das abas */
.subheader-nav .wso-tab i {
    margin-right: 10px; /* padrão */
    font-size: 15px;    /* opcional: aumenta ou reduz o ícone */
}


/* Sub-header expandido estilo  */

.subheader-nav {
    background: url('/images/navbar-wso.jpg') no-repeat center center;
    background-size: cover;
    background-position: center -40px;  /* desce 40px */
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.subheader-nav .wso-tabs {
    margin: 0 !important;
    padding-left: 0 !important;
    justify-content: flex-start !important;
}

/* Links de abas */
.subheader-nav .wso-tab {
    color: #ffffff;
    font-size: 12px;
    padding: 10px 7px;   /* aumenta altura */
    text-decoration: none;
    border-radius: 4px 4px 0 0;     /* tira arredondado */
       transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

/* Hover */
.subheader-nav .wso-tab:hover {
    color: #00ff2d; /* texto verde neon */
    background: transparent; /* 🔥 sem retângulo branco */
    border-bottom: 0px solid #00ff2d; /* underline verde neon */
}

/* Aba ativa */
.subheader-nav .wso-tab.active {
    color: #777;
    font-weight: 700;
    background: #f8f9fe; /* 🔥 só ativo tem fundo branco */
   /* border-bottom: 3px solid #00ff2d;*/
   border: none;
}


.subheader-nav {
    margin-bottom: 0 !important;  /* encosta o tab no card */
    padding-bottom: 0 !important;
    
}

.card,
.card-wso {
    margin-top: 0 !important;     /* remove espaçamento de cima */
}

.container,
.container-wso-fluid {
    padding-top: 0 !important;
}

.table td i {
    margin-right: 8px !important;
}

/* Coluna esquerda com borda à direita */
.col-lg-6.border-end {
    border-right: 1px solid #dee2e6 !important; /* cinza claro Bootstrap */
    padding-right: 20px; /* espaço interno */
}

/* Coluna direita para alinhar melhor */
.col-lg-6:last-child {
    padding-left: 20px;
}

/* =========================================
   🔒 FORCE SIDEBAR BACKGROUND (WSO)
========================================= */

#sidenav-main {
    background: #0b1526 !important;
    background-image: none !important;
}

/* Quando o sidebar está visível */
/* Só aplica no desktop (a partir de 992px) */
@media (min-width: 992px) {
    .main-content {
        margin-top: 0 !important;      
        padding-top: 60px;   /* mesma altura da faixa de imagem */
        margin-left: 250px;  /* largura da sidebar */
        transition: margin-left 0.3s ease;
        overflow-x: hidden;  /* evita scroll horizontal */
        position: relative;  /* garante contexto pro ::before ou header-background */
    }
     .main-content-has-bg {
        margin-top: 0 !important;      
        padding-top: 60px;   /* mesma altura da faixa de imagem */
        margin-left: 250px;  /* largura da sidebar */
        transition: margin-left 0.3s ease;
        overflow-x: hidden;  /* evita scroll horizontal */
        position: relative;  /* garante contexto pro ::before ou header-background */
    }
#navbar-main {
   background: url('/images/navbar.jpg') no-repeat center center;
    background-size: cover;          
    /*background-position: center -60px;*/ 
    min-height: 70px;
    
}
/* Cor padrão e hover */
.text-wave {
    color: #f4f9ff;              /* azul padrão Bootstrap */
    transition: color 0.3s ease; /* transição suave */
}

.text-wave:hover {
    color: #31ff00; /* verde Bootstrap */
    cursor: pointer;
}


#sidenav-main {
    width: 270px;
    transition: width 0.3s ease;
    overflow-x: hidden;    /* só esconde horizontal */
    overflow-y: auto;      /* 👈 habilita scroll interno */
    white-space: nowrap;
    position: fixed;       /* 👈 fixa na esquerda */
    top: 0;
    left: 0;
    height: 100%;          /* ocupa altura inteira da tela */
    z-index: 1050;
}


  .divider-end {
    position: relative;
  }
  .divider-end::after {
    content: "";
    position: absolute;
    top: 0;
    right: -5px; /* compensa o gutter do Bootstrap */
    width: 2px;
    height: 100%;
    background-color: #dee2e6; /* cinza claro bootstrap */
  }
}

/* Esconder o toggle em telas menores (mobile) */
@media (max-width: 950px) {

    /* 🔥 REMOVE NAVBAR TOP NO MOBILE */
    #navbar-main {
        display: none !important;
    }

    .text-wave:hover {
        color: #31ff00;
        cursor: pointer;
    }

}

/* ==============================
   TABELAS WSO (Enterprise Style)
   ============================== */


.table-wso thead th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.65rem;
    padding: 12px 16px;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: .02em;
}

.table-wso tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    color: #4b5563;
}

.table-wso tbody tr {
    transition: all 0.18s ease;
    position: relative;
}

/* HOVER PREMIUM */
.table-wso tbody tr:hover {
    background: #f8fafc !important;
    transform: translateX(2px);
}

/* LINHAS MAIS LIMPAS */
.table-wso tbody tr td {
    border-bottom: 1px solid #f1f5f9;
}

/* REMOVE DUPLO VISUAL PESADO */
.table-wso tbody tr:nth-child(even),
.table-wso tbody tr:nth-child(odd) {
    background: transparent;
}

.table-wso tbody tr:last-child td {
    border-bottom: none;
}

/* Colunas alinhadas */
.table-wso th, 
.table-wso td {
    white-space: nowrap;
}

.table-wso td.text-center,
.table-wso th.text-center {
    text-align: center;
}

/* Badge custom */
.table-wso .badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: .02em;
}

/* Botões dentro da tabela */
.table-wso .btn {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* Status */
.badge-status-pending {
    background: #e879f9;
    color: #fff;
}

.badge-status-resolved {
    background: #10b981;
    color: #fff;
}

.badge-status-ignored {
    background: #9ca3af;
    color: #fff;
}

/* Severidade */
.badge-severity-high {
    background: #dc2626;
    color: #fff;
}

.badge-severity-medium {
    background: #f59e0b;
    color: #fff;
}

.badge-severity-low {
    background: #06b6d4;
    color: #fff;
}

/* Centralização de cards grandes */
.card-centered {
    max-width: 1200px;   /* largura máxima */
    margin-left: auto;
    margin-right: auto;
}
.container-alerts {
  max-width: 1200px;   /* largura máxima */
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;     /* remove deslocamento lateral */
  padding-right: 0;
}

/* ==============================
   LIVE SCREENS (Grid + Modal)
   ============================== */
.live-thumb {
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.live-thumb:hover {
    transform: scale(1.02);
}

.device-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: all .2s ease;
}
.device-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.modal-live {
    max-width: 1100px;
}

.live-iframe {
    width: 100%;
    height: 70vh;
    border-radius: .5rem;
    border: none;
}
/* Espaçamento entre botões de auditoria */
.audit-actions .btn {
    margin-right: 6px;   /* espaço entre botões */
}

.audit-actions .btn:last-child {
    margin-right: 0;     /* remove espaço do último */
}

/* separação maior antes dos botões críticos */
.audit-actions .btn-critical {
    margin-left: 12px;   /* respiro maior */
}


/* ===== AUDIT BUTTONS ===== */
.audit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* espaço uniforme entre todos os botões */
}

/* separação maior antes do grupo crítico */
.audit-actions .btn-critical {
    margin-left: 16px !important;
}

/* =========================================
   Modal grande (ajuste visual sem barra visível)
   ========================================= */
.modal-xl {
    max-width: 90vw; /* aproveita mais espaço horizontal */
}

.modal-xl .modal-content {
    max-height: 90vh; /* cabe na tela */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* remove barras externas */
    border-radius: 0.75rem;
}

.modal-xl .modal-header,
.modal-xl .modal-footer {
    flex-shrink: 0; /* fixos no topo/rodapé */
    position: sticky;
    z-index: 10;
}

.modal-xl .modal-header {
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.modal-xl .modal-footer {
    bottom: 0;
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
}

.modal-xl .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none; /* esconde scrollbar Firefox */
}

/* Esconde scroll (Chrome, Edge, Safari) */
.modal-xl .modal-body::-webkit-scrollbar {
    display: none;
}
.bg-gradient-success {
    background: linear-gradient(90deg, #00b37e, #00d69e);
}

.bg-gradient-danger {
    background: linear-gradient(90deg, #dc3545, #f36b6b);
}

.wso-toast-container {
    position: fixed;
    top: 95px !important; /* abaixo do header */
    right: 30px !important;
    z-index: 1080;
}

.toast {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
}

.toast.show {
    animation: fadeInUp 0.6s ease-out;
}
.toast.hide {
    animation: fadeOutDown 0.6s ease-in forwards;
}

@keyframes fadeInUp {
    from {opacity: 0; transform: translateY(-10px);}
    to {opacity: 1; transform: translateY(0);}
}
@keyframes fadeOutDown {
    from {opacity: 1; transform: translateY(0);}
    to {opacity: 0; transform: translateY(-10px);}
}

/* ======================================================
   AJUSTE VISUAL PREMIUM — BOTÕES GRANDES WSO
   ====================================================== */

/* Reforço do estilo enterprise para botões principais */
.waveapp-btn-success,
.waveapp-btn-danger,
.waveapp-btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    min-width: 150px;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

/* Ícone dentro */
.waveapp-btn-success i,
.waveapp-btn-danger i,
.waveapp-btn-warning i {
    margin-right: 6px;
    font-size: 0.95rem;
}

/* Verde - Salvar / Nova Política */
.waveapp-btn-success {
    background: linear-gradient(135deg, #15c39a, #0fa377);
    color: #fff !important;
}
.waveapp-btn-success:hover {
    background: linear-gradient(135deg, #0fa377, #0b8b64);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21,195,154,0.3);
}

/* Vermelho - Cancelar / Excluir */
.waveapp-btn-danger {
    background: linear-gradient(135deg, #f64b4b, #d93434);
    color: #fff !important;
}
.waveapp-btn-danger:hover {
    background: linear-gradient(135deg, #d93434, #b81e1e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246,75,75,0.35);
}

/* Laranja - Ações secundárias */
.waveapp-btn-warning {
    background: linear-gradient(135deg, #ffb300, #f59300);
    color: #fff !important;
}
.waveapp-btn-warning:hover {
    background: linear-gradient(135deg, #f59300, #e68200);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255,179,0,0.3);
}

/* ==========================================================
   WSO REPORTS — ISOLAMENTO VISUAL PREMIUM (sem conflito)
   ========================================================== */

.wso-report .card {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.wso-report .card-header,
.wso-report .card-body {
    background: #fff;
}

.wso-report .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

/* Gráficos */
.wso-report canvas {
    border-radius: 12px;
}

/* Progress bars */
.wso-report .progress {
    height: 22px;
    border-radius: 12px;
    background: #f0f2f6;
    overflow: hidden;
}
.wso-report .progress-bar {
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* Tabela isolada */
.wso-report .table {
    font-size: 0.88rem;
    border-collapse: separate;
    border-spacing: 0;
}
.wso-report .table thead th {
    background: #f9fafb;
    color: #4b5563;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}
.wso-report .table tbody tr:hover {
    background: #f8faff;
}
.wso-report .table td {
    padding: 0.8rem 1rem;
}

/* Botões de exportação isolados */
.wso-report .btn-outline-primary,
.wso-report .btn-outline-danger {
    border-width: 1.5px;
    font-weight: 600;
}
.wso-report .btn-outline-primary:hover {
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: #fff;
}
.wso-report .btn-outline-danger:hover {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    color: #fff;
}

/* Header premium */
.wso-report .page-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
}
.wso-report .text-muted {
    color: #64748b !important;
}



/* 🔧 Corrige visibilidade do botão "Novo Usuário" no topo */
.btn-gradient {
    background: linear-gradient(90deg, #007bff, #6610f2);
    color: #fff !important;
    border: none;
    transition: all 0.2s ease-in-out;
    opacity: 1 !important;
}

.btn-gradient:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px);
}

/* Remove estilos globais que deixam botões "brancos" invisíveis */
button.btn-gradient[disabled],
a.btn-gradient.disabled {
    opacity: 0.6 !important;
    filter: none !important;
    pointer-events: none;
}

/* ===========================================
   WSO — Configurações estilo WSO Corporate
   =========================================== */
.wso-config-panel {
    background-color: #f2f4f8;
}

/* Pills */
.config-pill {
    background-color: #fff;
    color: #2a2d38;
    border: 1px solid #dee2e7;
    border-radius: 50px;
    padding: 0.45rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}
.config-pill:hover {
    color: #0d6efd;
    border-color: #b8c3e3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Cards */
.config-card {
    background-color: #ffffff;
    border: 1px solid #e4e7ed;
    transition: all 0.25s ease;
}
.config-card:hover {
    border-color: #bfc8e6;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Ícones de seção */
.config-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef1fa;
    color: #4e54c8;
    font-size: 1.2rem;
}

/* Botões internos */
.config-card .btn-light {
    background-color: #f7f8fc;
    border-color: #e2e5ef;
}
.config-card .btn-light:hover {
    background-color: #eef1fb;
    border-color: #b9c2f3;
}

/* Títulos e tipografia */
.wso-config-panel h5 {
    letter-spacing: -0.2px;
}
.wso-config-panel .text-muted {
    color: #6c758a !important;
}

.wso-4,
.wso-4 {
  margin-bottom: 1.5rem !important;
  padding-top: 2px;
}


/* ===============================
   💎 WSO Premium Subscription Cards (WaveApp Style)
   =============================== */

.card.rounded-4 {
  border-radius: 1rem !important;
}

.hover-shadow {
  transition: all 0.25s ease-in-out;
}

.hover-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

.card-header.bg-gradient {
  background: linear-gradient(90deg, #0047ab 0%, #006eff 100%) !important;
  border-bottom: none;
}

.btn-gradient-primary {
  background: linear-gradient(90deg, #0053d6 0%, #007bff 100%);
  color: #fff !important;
  border: none;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 83, 214, 0.25);
}

.btn-gradient-primary:hover {
  background: linear-gradient(90deg, #0062ff 0%, #0047ab 100%);
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(0, 83, 214, 0.3);
}

.btn-outline-primary.active {
  background-color: #0047ab !important;
  color: #fff !important;
  border-color: #0047ab !important;
}

.text-primary {
  color: #0053d6 !important;
}

.card-body ul li i {
  font-size: 1rem;
}

.card-body ul li {
  line-height: 1.6;
}

.card .display-6 {
  font-size: 2rem;
  font-weight: 700;
}

small.text-muted {
  font-size: 0.875rem;
}

.shadow-sm {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.06) !important;
}

.rounded-4 img {
  filter: grayscale(0.1);
  transition: all 0.2s ease;
}

.rounded-4 img:hover {
  filter: grayscale(0);
  transform: scale(1.03);
}

.transition-all {
  transition: all 0.25s ease;
}

.card-body {
  background-color: #fff;
}

/* Ajuste para header fixo + container fluido */
.container-fluid.pb-5 {
  padding-bottom: 3rem !important;
}

.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.alert strong {
    font-size: 15px;
}
.progress {
    height: 6px;
    background-color: rgba(0,0,0,0.1);
}
.progress-bar {
    transition: width 0.6s ease;
}






/* =======================================================
   🎨 Drawer de Teste Grátis (Estilo Premium WSO)
   ======================================================= */

#trialDrawer {
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(0.4,0,0.2,1), opacity .3s ease;
}

.offcanvas.show {
  visibility: visible !important;
  transform: translateX(0) !important;
}

.offcanvas-backdrop.show {
  background-color: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(3px);
}




/* ============================================================
   🔹 FAQ - Seta estilo WSO, canto direito fixo e fluido
   ============================================================ */
#trialFAQ {
  margin-top: 1rem;
}

#trialFAQ .accordion-item {
  border: none;
  border-top: 1px solid #e2e3e5;
}

/* Cabeçalho FAQ */
#trialFAQ .accordion-button {
  position: relative;
  background: transparent !important;
  color: #212529;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 2.8rem 1.25rem 0.75rem;
  border: none;
  box-shadow: none !important;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
  display: block !important; /* impede o flex do Bootstrap */
  width: 100%;
  text-align: left;
}

#trialFAQ .accordion-button:hover {
  background: #f9fafb;
}

/* Ícone estilo Teramind (seta > no canto direito) */
#trialFAQ .accordion-button .faq-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(-0deg);
  color: #000;
  font-style: normal;
  font-size: 26px;
  line-height: 1;
  transition: all 0.3s ease;
  opacity: 0.8;
  pointer-events: none;
}

/* Estado expandido (gira e fica 100% visível) */
#trialFAQ .accordion-button:not(.collapsed) .faq-icon {
  transform: translateY(-50%) rotate(90deg);
  opacity: 1;
}

/* Corpo do acordeão */
#trialFAQ .accordion-body {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  padding: 0 0 1.25rem 0.75rem;
  transition: all 0.25s ease-in-out;
}

/* Links */
#trialFAQ a {
  color: #f78d24;
  font-weight: 600;
  text-decoration: underline;
}
#trialFAQ a:hover {
  color: #9ca1a9;
  text-decoration: none;
}


/* ============================================================
   🔹 Card flutuante — proporção e estilo idêntico ao WSO
   ============================================================ */
.trial-card {
  position: relative;
  z-index: 10;
  width: 640px;                     /* 🔹 largura idêntica */
  max-width: 90%;                   /* responsivo */
  margin: -50px auto 20px auto;     /* centralizado e flutuando */
  border-radius: 8px;              /* 🔹 bordas mais arredondadas */
  background: #fff;
  padding: 48px 40px;               /* espaçamento interno maior */
box-shadow: 0 0 6px 2px rgba(0, 0, 0, .2);
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.trial-card:hover {
  transform: translateY(-2px);
box-shadow: 0 0 6px 2px rgba(0, 0, 0, .2);
}

/* Texto */
.trial-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.4rem;
  text-align: center;
}

/* Input */
.trial-card input.form-control {
  border: 1px solid #ddd;
  height: 54px;
  font-size: 0.95rem;
  text-align: center;
  border-radius: 50px;
  box-shadow: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.trial-card input.form-control:focus {
  border-color: #f78d24;
 box-shadow: 0 0 6px 2px rgba(0, 0, 0, .2);
}

/* Botão */
.trial-card .btn-warning {
  background-color: #f78d24;
  border: none;
  color: #fff;
  height: 50px;
  border-radius: 50px;
  font-weight: 600;
  width: 100%;
  transition: background 0.25s ease, transform 0.25s ease;
}
.trial-card .btn-warning:hover {
  background-color: #e67a10;
  transform: translateY(-2px);
}

/* Mensagem de segurança */
.trial-card .text-muted {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  text-align: center;
  color: #6c757d !important;
}
.trial-card .text-muted i {
  color: #999;
}

/* Responsivo */
@media (max-width: 768px) {
  .trial-card {
    width: 100%;
    border-radius: 16px;
    padding: 36px 24px;
    margin-top: -50px;
  }
}


/* ============================================================
   🔹 Header Trial - Centralização e espaçamento WSO refinado
   ============================================================ */
.trial-hero-content {
  margin-top: 2px; /* 🔹 sobe o bloco, equilibrando com o logo */
  text-align: center;
}

.trial-hero-content .modal-title {
  font-size: 28px;
  line-height: 38px !important;
  color: #fff;
  font-weight: 333;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  margin-bottom: 14px;
}

.trial-hero-content p {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.9;
  color: #fff;
  margin-bottom: 0;
}

/* ============================================================
   🔹 WSO Carousel - fixo e nivelado (não sobe nem desce)
   ============================================================ */
.wso-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wso-carousel .carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Itens sobrepostos (fade sem deslocar altura) */
.wso-carousel .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wso-carousel .carousel-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Setas */
.wso-carousel-prev,
.wso-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.25s ease;
  z-index: 10;
}

.wso-carousel-prev:hover,
.wso-carousel-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.wso-carousel-prev { left: 10px; }
.wso-carousel-next { right: 10px; }

.wso-carousel-arrow {
  font-size: 2rem;
  color: #999;
  user-select: none;
}

/* Texto e estrelas */
.wso-carousel p {
  max-width: 80%;
  margin: 0 auto;
  color: #555;
}

.wso-carousel .text-warning i {
  color: #f78d24 !important;
}

/* Mantém todos os textos com largura e altura equilibradas */
.wso-carousel .carousel-item {
  min-height: 130px;
}

.wso-carousel p.fw-medium {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  text-align: center;
  max-width: 420px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wso-carousel p.fw-semibold {
  font-size: 0.95rem;
  color: #333;
  margin-top: 6px;
}

.wso-carousel p.fw-semibold span {
  color: #6c757d;
}
.partners-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.partner-logo {
  height: 38px;
  filter: grayscale(15%) brightness(1.05);
  transition: all 0.25s ease;
}

.partner-logo:hover {
  filter: none;
  transform: translateY(-2px);
}

.partners-section .d-flex {
  gap: 48px; /* 🔹 Aumenta a distância entre os logos */
}



/* ============================================================
   🔹 Hero com curva inferior inclinada (estilo WSO)
   ============================================================ */
.trial-hero {
  position: relative;
  overflow: hidden;
}

/* 🔸 Curva inferior (shape decorativo) */
.trial-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  /* A mágica: forma curva via clip-path */


  /* Inclinação leve */
  transform: rotate(-1deg);
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.05);
  z-index: 5;
}
/* ============================================================
   🔹 Navbar WSO — Alinhamento central, direito e responsivo
   ============================================================ */
.navbar-nav-wso {
  display: flex;
  align-items: center;         /* Centraliza verticalmente */
  justify-content: flex-end;   /* Empurra tudo pro lado direito */
  gap: 1rem;                   /* Espaçamento entre os elementos */
  margin-left: auto;           /* Garante posição à direita */
  height: 100%;                /* Ocupa altura total da barra */
}

/* 🔸 Mantém altura consistente com a barra principal */
.wso-header,
.wso-header-left,
.navbar-top,
.navbar-nav-wso {

}

/* 🔹 Corrige padding interno das barras que usam flex */
.wso-header.d-flex,
.navbar-top.d-flex {
  align-items: center !important;
}

/* ============================================================
   🔹 Alinhamento auxiliar (uso opcional)
   ============================================================ */
.align-items-right-wso {
  display: flex;
  align-items: center;         /* Centraliza verticalmente */
  justify-content: flex-end;   /* Alinha grupo à direita */
}

/* ============================================================
   🔹 Estilo interno dos elementos da navbar
   ============================================================ */
.navbar-nav-wso a,
.navbar-nav-wso button {
  display: inline-flex;
  align-items: center;
  color: #444;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.navbar-nav-wso a:hover,
.navbar-nav-wso button:hover {
  color: #0fb773; /* Verde tecnológico padrão WSO */
}

/* ============================================================
   🔹 Avatar + texto (usuário logado)
   ============================================================ */
.navbar-nav-wso .user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-nav-wso .user-info img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

/* ============================================================
   🔹 Responsividade — centraliza itens em telas menores
   ============================================================ */
@media (max-width: 991px) {
  .navbar-nav-wso {
    justify-content: center !important;
    margin-left: 0;
    width: 100%;
    gap: 0.75rem;
  }
}


/* ============================================================
   🔹 Botão Padrão WSO (variante success / demo / premium)
   ============================================================ */
.btn-wso {
  background: linear-gradient(5deg, #8000ff 0%, #a212ca 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  color: #fff;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.25s ease-in-out;
}

/* ✅ Cor principal Wave Server One (verde tecnológico) */
.btn-success-wso {
  background: linear-gradient(9deg, #05ff75 0%, #0bb558 100%);
  color: #fff !important;
}

.btn-success-wso:hover {
  background: linear-gradient(135deg, #1be99b 0%, #12ca7f 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

.btn-success-wso:active {
  background: linear-gradient(135deg, #10a769 0%, #0c8e5b 100%);
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 🔹 Tamanho pequeno (btn-sm-wso) */
.btn-sm-wso {
  font-size: 0.875rem;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

/* 🔹 Estado desabilitado */
.btn-wso:disabled,
.btn-wso.disabled {
  background: #b8e5cf !important;
  color: #fff !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 🔹 Ícones dentro do botão */
.btn-wso i {
  font-size: 0.95rem;
  margin-right: 0.35rem;
  opacity: 0.9;
  transition: transform 0.25s ease;
}

.btn-wso:hover i {
  transform: translateX(2px);
}

/* ============================================================
   🔹 Botão Wave (gradiente roxo / destaque marketing)
   ============================================================ */
.btn-wave {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(90deg, #5e72e4, #ca28bb);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  margin-bottom: 20px;
}

.btn-wave:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(121, 40, 202, 0.4);
}

/* ============================================================
   🔹 Botões Sociais (Google / Facebook / GitHub / SSO)
   ============================================================ */
.btn-social {
  width: 100%;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-social i {
  font-size: 20px;
  margin-right: 10px;
  filter: grayscale(1);
}

/* 🌐 Google */
.btn-social.google {
  background: #ffffff;
  color: #333;
  border: 1px solid #ccc;
}

.btn-social.google:hover {
  background: #f3f3f3;
}

/* 📘 Facebook */
.btn-social.facebook {
  background: #3b5998;
  color: #ffffff;
}

.btn-social.facebook:hover {
  background: #334d84;
}

/* 🐙 GitHub */
.btn-social.github {
  background: #24292e;
  color: #ffffff;
}

.btn-social.github:hover {
  background: #1b1f23;
}

/* 🔒 SSO (Single Sign-On corporativo) */
.btn-social.sso {
  background: #000000;
  color: #ffffff;
}

/* ============================================================
   🔹 Botão à Direita da Navbar (ajuste fino)
   ============================================================ */
.btn-rights {
  margin-left: auto !important;  /* Empurra o botão pro extremo direito */
  display: flex;
  align-items: center;           /* Centraliza verticalmente */
  justify-content: flex-end;     /* Garante alinhamento horizontal */
  height: 100%;
}

/* ============================================================
   🔹 Pop-up Fullscreen para Capturas de Tela
   ============================================================ */
.snapshot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.25s ease;
}

.snapshot-popup {
  position: relative;
  max-width: 95%;
  max-height: 90%;
}

.snapshot-full-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  animation: zoomIn 0.25s ease;
}

.btn-close-popup {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #fff;
  color: #333;
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.btn-close-popup:hover {
  background: #0fb773;
  color: #fff;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* ==========================================================================
   WSO PREMIUM UI — PRICING CARDS (Planos) 
   Última atualização: 2025-11-06
   Responsável: Wave (assistente)
   ========================================================================= */

.wso-pricing-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 32px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.04);
    transition: all .25s ease;
}
.wso-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 64px rgba(0,0,0,0.09);
}

/* Títulos */
.wso-pricing-title {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #374151;
}

.wso-pricing-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

/* Preços */
.wso-price-unit {
    font-size: 38px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.wso-price-total {
    font-size: 15px;
    font-weight: 600;
    color: #4b5563;
}
.wso-price-unit small {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    margin-left: -4px;
}
/* Divisor */
.wso-divider {
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* Lista de Features */
.wso-pricing-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 28px;
}
.wso-pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #374151;
}
.wso-pricing-list li::before {
    content: "✔";
    color: #2563eb;
    font-weight: 700;
}

/* Botões (harmonizados) */
.wso-pricing-btn {
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    text-align: center;
}



/* ==========================================================================
   WSO PREMIUM UI — BADGE DE DESTAQUE (Mais Popular, Recomendado, etc.)
   ========================================================================= */

/* Cor corporativa para elementos de destaque */
.bg-primary-wso {
    background: #6a25eb; /* Azul WSO */
    color: #ffffff;
}

/* Badge flutuante utilizada em cards de planos */
.badget-wso {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    font-size: 12px;
    letter-spacing: .4px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    z-index: 3;
    white-space: nowrap;
}


.wso-price-total-line {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-top: 6px;
}


.wso-price-billing-note {
    font-size: 14px;
    color: #6b7280;
    margin-top: -4px;
}


.btn-price-wso {
    font-size: 0.875rem;
    position: relative;
    letter-spacing: 0.025em;
    text-transform: none;
    will-change: transform;
    transition: 0.15s;
}

.btn-primary-price-wso {
    background-color: #fe6f00;
    border-color: #fe6f00;
    color: #fff;
}

.wso-plan-description {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.55;
}
/* ==== TOGGLE PRICING WSO ==== */
.wso-toggle-wrapper {
    background: #ffffff;
    border: 1px solid #d6dae1;
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wso-toggle-btn {
    border: none;
    background: transparent;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    color: #4a4a4a;
    transition: all .25s ease-in-out;
}

.wso-toggle-btn.active {
    background: #4977ff;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(73,120,255,0.35);
}

.wso-economy-badge {
    background: #2d2d2d;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    position: absolute;
    top: -8px;
    right: -18px;
    pointer-events: none;
}
/* ==== WSO SLIDE TOGGLE ==== */
.wso-toggle-slide {
    position: relative;
    background: #ffffff;
    border-radius: 40px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: 1px solid #d6d9e0;
    user-select: none;
    width: auto;
}

.wso-toggle-slide .wso-toggle-option {
    position: relative;
    padding: 10px 38px;
    border-radius: 40px;
    background: transparent;
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
    z-index: 2;
    transition: color .25s ease-in-out;
}

.wso-toggle-slide .wso-toggle-option.active {
    color: #ffffff;
}

.wso-toggle-slide .wso-toggle-track {
    position: absolute;
    height: 38px;
    width: 50%;
    border-radius: 40px;
    background: #4d73ff;
    top: 4px;
    left: 4px;
    transition: transform .30s ease-in-out;
    z-index: 1;
}

/* Slide para anual */
.wso-toggle-slide.yearly .wso-toggle-track {
    transform: translateX(100%);
}

/* Badge */
.wso-toggle-badge {
    background: #ff008b;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    position: absolute;
    top: -12px;
    right: -20px;
    line-height: normal;
    pointer-events: none;
}

/* ✅ Cursor Fix */
.wso-toggle-option:hover,
.wso-toggle-slide:hover {
    cursor: pointer;
}

#update-seats {
    border: 1px solid #d1d9e6;
    height: 42px;
    font-size: 16px;
    padding-right: 10px;
}

#update-seats:focus {
    border-color: #4b73ff;
    box-shadow: 0 0 0 3px rgba(75, 115, 255, .25);
}


/* ✅ Reativa as setas nos inputs type=number mesmo com Argon carregado */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: auto !important;
    margin: 0 !important;
}

input[type=number] {
    -moz-appearance: auto !important;
    appearance: auto !important;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.snapshot-block {
  width: 180px;
  transition: all .2s ease;
}

.snapshot-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.snapshot-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all .25s ease;
}

.snapshot-thumb:hover {
  transform: scale(1.05);
  filter: brightness(0.95);
}

.snapshot-meta {
  background: #fff;
  border-top: 1px solid #eee;
  border-radius: 0 0 .5rem .5rem;
}

.cursor-pointer { 
  cursor: pointer; 
}

#snapshotLightbox img[src=""] {
  display: none !important;
}

#snapshotLightbox .close-btn {
  display: none !important;
}

.snapshot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snapshot-popup {
  position: relative;
  max-width: 95%;
  max-height: 90vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.snapshot-full-img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  object-fit: contain;
}

.btn-close-popup {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.btn-close-popup:hover {
  background: rgba(255,255,255,0.4);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 32px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.4);
}

.nav-btn.prev { left: 25px; }
.nav-btn.next { right: 25px; }

.section-title {
    position: relative;
    padding-bottom: 6px;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e88e5, #42a5f5);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 999px;
}

/* ================================================
   WSO — Botões Premium de Exportação (PDF/CSV)
   ================================================ */

.btn-wso-export {
    background: linear-gradient(90deg, #5719d2, #42a5f5);
    color: #fff !important;
    padding: 7px 22px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.25);
    transition: all .25s ease-in-out;
    border: none;
}

.btn-wso-export:hover {
    background: linear-gradient(90deg, #0d47a1, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(13, 71, 161, 0.35);
}

.btn-wso-export i {
    font-size: 1.1rem;
}

/* =========================================================
   MODAL LIVE VIEW — VIEWPORT REAL (Teramind-like)
   ========================================================= */

.modal-body {
    height: calc(100vh - 140px); /* header + respiro */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    padding: 0;
}

/* =========================================================
   WSO – Snapshot Interval (Inline Premium Control)
   ========================================================= */

.wso-snapshot-interval {
  font-size: 14px;
  color: #2c2f36;
}

/* Label */
.wso-snapshot-label {
  font-weight: 500;
  color: #3a3f45;
  white-space: nowrap;
}

/* Select custom */
.wso-select-interval {
  min-width: 150px;
  padding: 8px 36px 8px 14px;

  font-size: 14px;
  font-weight: 500;
  color: #1f2937;

  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;

  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Hover */
.wso-select-interval:hover {
  border-color: #9ca3af;
}

/* Focus */
.wso-select-interval:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Disabled (caso use depois) */
.wso-select-interval:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Mobile fine tuning */
@media (max-width: 576px) {
  .wso-snapshot-interval {
    flex-wrap: wrap;
    gap: 6px;
  }

  .wso-select-interval {
    width: 100%;
  }
}

/* =========================================================
   WSO – Snapshot Interval (Refino de Layout)
   ========================================================= */

/* Container com respiro inferior */
.wso-snapshot-interval-vertical {
  padding-bottom: 14px; /* espaço antes do email/botão */
}

/* Select mais curto e elegante */
.wso-snapshot-interval-vertical .wso-select-interval {
  max-width: 180px;   /* controla o comprimento */
  padding-top: 7px;
  padding-bottom: 7px;
}

/* ==========================================================
   WSO – FIX GLOBAL DATATABLES ALIGNMENT
   Corrige "Exibir / Pesquisar" colado nas bordas
========================================================== */

/* Wrapper geral */
.dataTables_wrapper {
    width: 100%;
}

/* Remove margin negativa do Bootstrap */
.dataTables_wrapper .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Padding interno padrão (alinha com cards) */
.dataTables_wrapper .row > div {
    padding-left: 1.25rem;   /* 20px */
    padding-right: 1.25rem;
}

/* Primeira linha (Exibir / Pesquisar) */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

/* Texto do "Exibir" */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    color: #525f7f;
}

/* Input de busca */
.dataTables_wrapper .dataTables_filter input {
    margin-left: .5rem;
    border-radius: .5rem;
}

/* Select do "Exibir" */
.dataTables_wrapper .dataTables_length select {
    margin: 0 .4rem;
    border-radius: .5rem;
}

/* Paginação */
.dataTables_wrapper .dataTables_paginate {
    padding: 1rem 1.25rem 0 1.25rem;
}

/* Info (Mostrando X de Y) */
.dataTables_wrapper .dataTables_info {
    padding: .75rem 1.25rem;
    color: #8898aa;
}

/* Responsivo: evita quebra feia */
@media (max-width: 768px) {
    .dataTables_wrapper .row > div {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}
/* ==========================================================
   WSO – DATATABLES VERTICAL SPACING (FINAL)
========================================================== */

/* Espaço superior do bloco Exibir / Pesquisar */
.dataTables_wrapper > .row:first-child {
    padding-top: 1rem;
    padding-bottom: .75rem;
}

/* Espaço entre filtros e tabela */
.dataTables_wrapper table {
    margin-top: .75rem !important;
}

/* Espaço inferior da tabela */
.dataTables_wrapper > .row:last-child {
    margin-top: .75rem;
}

/* Ajuste fino dentro de cards */
.card-body .dataTables_wrapper {
    margin-top: .25rem;
}


.activity-progress{
    width:100%;
    height:10px;
    background:#e9edf3;
    border-radius:20px;
    overflow:hidden;
    position:relative;
}

.activity-bar{
    position:absolute;
    left:0;
    top:0;
    height:100%;
    border-radius:20px;

    background: linear-gradient(
        90deg,
        #f63b9a 0%,
        #60a5fa 50%,
        #93c5fd 100%
    );
}

.top-user-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #f1f3f6;
}

.top-user-row:last-child{
    border-bottom:none;
}

.top-user-avatar{
    width:36px;
    height:36px;
    border-radius:50%;
    margin-right:10px;
}

.top-user-name{
    font-weight:500;
    color:#374151;
}

.top-user-score{
    font-weight:600;
    color:#1d4ed8;
    background:rgba(59,130,246,0.08);
    padding:4px 10px;
    border-radius:8px;
}

.heatmap-wrapper {
    display: flex;
    justify-content: center; /* 🔥 CENTRALIZA */
    align-items: center;
    gap: 12px;
}

.heatmap-y-axis{
    position:relative;
    width:40px;
    height:214px; /* mesma altura do heatmap */
    font-size:12px;
    color:#6b7280;
}

.heatmap-y-axis span{
    position:absolute;
    right:0;
}

/* posições visuais iguais à imagem de referência */

.heatmap-y-axis span:nth-child(1){ top:0%; }      /* 100% */
.heatmap-y-axis span:nth-child(2){ top:22%; }     /* 75% */
.heatmap-y-axis span:nth-child(3){ top:40%; }     /* 60% */
.heatmap-y-axis span:nth-child(4){ top:68%; }     /* 25% */
.heatmap-y-axis span:nth-child(5){ top:88%; }     /* 20% */



.activity-heatmap{
    display:grid;
    grid-template-columns:repeat(15,18px);
    grid-template-rows:repeat(10,18px);
    gap:3px;
}


.heat-cell{
    width:16px;
    height:16px;
    border-radius:3px;
    background:#f7f9fb;
    transition:background .2s ease;
}





.heatmap-x-axis{
    display:grid;
    grid-template-columns:repeat(14,18px);
    gap:4px;
    margin-top:8px;
    font-size:12px;
    color:#6b7280;
}

.heatmap-x-axis span{
    text-align:center;
    white-space:nowrap;
}


.chart-containerwave{
    position:relative;
    width:100%;
    height:240px;
}

.chart-containerwave canvas{
    position:absolute;
    inset:0;
    width:100% !important;
    height:100% !important;
}


.card-header-wave{
    padding:16px 20px 12px 20px;
    display:flex;
    align-items:center;
    font-weight:600;
    font-size:15px;
    border-bottom:1px solid #eef2f7;
    background:#ffffff;
}



.wso-activity-table {
    table-layout: fixed;
    width: 100%;
}

.wso-activity-table th:nth-child(1),
.wso-activity-table td:nth-child(1){
    width: 30%;
}

.wso-activity-table th:nth-child(2),
.wso-activity-table td:nth-child(2){
    width: 15%;
}

.wso-activity-table th:nth-child(3),
.wso-activity-table td:nth-child(3){
    width: 15%;
    text-align:center;
}

.wso-activity-table th:nth-child(4),
.wso-activity-table td:nth-child(4){
    width: 10%;
    text-align:center;
}

.wso-activity-table th:nth-child(5),
.wso-activity-table td:nth-child(5){
    width: 12%;
    text-align:right;
}

.wso-activity-table th:nth-child(6),
.wso-activity-table td:nth-child(6){
    width: 18%;
    text-align:right;
}

.wso-activity-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.btn-success-WSO {
    color: #fff;
    border-color: #e39131;
    background-color: #e39131;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}





.live-player-wrapper {
    position: relative;
    width: 100%;
    height: 85vh;
    background: #0b1220;
    display: flex;
    flex-direction: column;
}

.live-player-controls {
    min-height: 60px;                 /* 🔥 AUMENTA ALTURA */
    padding: 10px 16px;               /* 🔥 MAIS RESPIRO */
    border-bottom: 1px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-player-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-canvas {
    transition: transform 0.2s ease;
    transform-origin: center center;
}

.btn-close-custom {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #000;
    opacity: 0.7;
}

.btn-close-custom:hover {
    opacity: 1;
}


.live-capture-btn i {
    font-size: 28px;
    color: #fff;
    opacity: 0.85;
    transition: all 0.2s ease;
    cursor: pointer; /* 🔥 garante a mão */
}

/* 🔥 REMOVE QUALQUER FUNDO/BOX DO BOTÃO CAMERA */
.live-capture-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    position: relative; /* 🔥 essencial pro pulse */
}

/* 🔥 ÍCONE LIMPO E GRANDE */
.live-capture-btn i {
    font-size: 22px;
    color: #ffffff;
    opacity: 0.85;
    transition: all 0.2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}
/* 🔥 HOVER */
.live-capture-btn:hover i {
    opacity: 1;
    transform: scale(1.15);
}


.live-capture-btn.recording i {
    color: #ff3b3b;
    opacity: 1;
}

/* 🔥 efeito pulsando real */
.live-capture-btn.recording::after {
    content: '';
    position: absolute;

    width: 32px;
    height: 32px;

    border-radius: 50%;
    border: 2px solid rgba(255, 59, 59, 0.6);

    animation: recPulse 1.2s infinite;
}

@keyframes recPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220,53,69,0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220,53,69,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220,53,69,0);
    }
}

.snapshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: none;

    background: rgba(0,0,0,0.6);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.2s;
}

.snapshot-nav:hover {
    background: rgba(0,0,0,0.9);
}

.snapshot-prev {
    left: 15px;
}

.snapshot-next {
    right: 15px;
}


/* ===============================
   WSO EMPLOYEE LIST (TERAMIND STYLE)
=============================== */

/* HEADER */
.wso-header-row {
    display: grid;
    grid-template-columns: 20px 1.4fr 80px minmax(120px, 2fr) 60px 50px;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

/* ROW */
.wso-employee-row {
    display: grid;
    grid-template-columns: 20px 1.4fr 80px minmax(120px, 2fr) 60px 50px;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    transition: background 0.15s ease;
}

.wso-employee-row:hover {
    background: #f8fafc;
}

/* COLUNAS */

.wso-col-menu {
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
}

.wso-col-name {
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wso-col-time {
    font-size: 12px;
    color: #9ca3af;
}

/* BARRA (AGORA GARANTIDA) */
.wso-col-bar {
    width: 100%;
}

.wso-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

/* segmentos */
.wso-bar-prod {
    background: #3b82f6;
    height: 100%;
    display: block;
    transition: width 0.4s ease;
}

.wso-bar-idle {
    background: #f59e0b;
    height: 100%;
    display: block;
    transition: width 0.4s ease;
}

/* PERCENTUAL */
.wso-col-percent {
    text-align: right;
    font-weight: 600;
    color: #111827;
}

/* DELTA */
.wso-col-delta {
    text-align: right;
    font-size: 12px;
    font-weight: 600;
}

.wso-col-delta.up {
    color: #16a34a;
}

.wso-col-delta.down {
    color: #dc2626;
}

/* ===============================
   SCROLL PREMIUM
=============================== */

.wso-scroll {
    max-height: 320px;
    overflow-y: auto;
}

.wso-scroll::-webkit-scrollbar {
    width: 6px;
}

.wso-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 6px;
}

.wso-scroll::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ==========================================
   CARD ONLINE — HERDAR PADRÃO DOS CARDS
========================================== */

.card-online {
    /* 🔥 igual aos outros cards */
    background: #fff;
    border-radius: 0.5rem; /* rounded-3 */
    border: none;

    /* 🔥 mesma sombra */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);

    /* 🔥 mesma margem */
    margin-bottom: 1.5rem;

    overflow: hidden;
}

/* HEADER */
.card-online .card-header-wso {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

/* BADGE */
.card-online .badge-wso {
    background: #0d6efd;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}

/* TABELA */
.card-online .table-wso td {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}



/* ==========================================
   SNAPSHOT WAVE (ISOLADO - PREMIUM BALANCE)
========================================== */

.snapshot-wave #snapshotsContainer {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    gap: 10px; /* 🔥 mais respiro */
    padding: 8px;

    scroll-behavior: smooth;
}

/* item */
.snapshot-wave #snapshotsContainer > div {
    flex: 0 0 auto;
    width: 130px; /* 🔥 tamanho ideal */
    padding: 4px !important;
}

/* imagem */
.snapshot-wave #snapshotsContainer img {
    width: 130px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
}

/* texto */
.snapshot-wave #snapshotsContainer .small {
    font-size: 11px; /* 🔥 mais legível */
    line-height: 1.3;
    margin-top: 2px !important;
}

/* scrollbar */
.snapshot-wave #snapshotsContainer::-webkit-scrollbar {
    height: 6px;
}

.snapshot-wave #snapshotsContainer::-webkit-scrollbar-thumb {
    background: #c1c9d2;
    border-radius: 10px;
}

.snapshot-wave #snapshotsContainer::-webkit-scrollbar-thumb:hover {
    background: #9aa7b5;
}


/* SNAPSHOT WAVE - TIPOGRAFIA AJUSTADA */

.snapshot-wave .snapshot-meta {
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
}

.snapshot-wave .snapshot-meta i {
    font-size: 10px;
}

/* ==========================
   WSO RISK CARD (ENTERPRISE)
========================== */

.wso-risk-card {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* HEADER */
.wso-risk-header {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff, #f9fafb);
}

/* ==========================
   ITEM
========================== */

.wso-risk-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.wso-risk-item:last-child {
    border-bottom: none;
}

/* HOVER */
.wso-risk-item:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

/* ==========================
   ROW
========================== */

.wso-risk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ESQUERDA (rank + nome) */
.wso-risk-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* RANK */
.wso-risk-rank {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 6px;
}

/* NOME */
.wso-risk-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

/* ==========================
   SCORE (BADGE STYLE)
========================== */

.wso-risk-score-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ==========================
   BARRA
========================== */

.wso-risk-bar {
    width: 100%;
    height: 6px;
    background: #eef2f7;
    border-radius: 999px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

/* FILL */
.wso-risk-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s ease;
    position: relative;
}

/* GLOW EFFECT */
.wso-risk-fill::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 18px;
    background: rgba(255,255,255,0.4);
    filter: blur(6px);
}

/* ==========================
   LABEL
========================== */

.wso-risk-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.4px;
}

/* ==========================
   CORES
========================== */

/* LOW */
.wso-risk-low {
    color: #10b981;
}

.wso-risk-score-badge.wso-risk-low {
    background: rgba(16,185,129,0.1);
    color: #10b981;
}

.wso-risk-fill.wso-risk-low {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* MEDIUM */
.wso-risk-medium {
    color: #f59e0b;
}

.wso-risk-score-badge.wso-risk-medium {
    background: rgba(245,158,11,0.1);
    color: #f59e0b;
}

.wso-risk-fill.wso-risk-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* CRITICAL */
.wso-risk-critical {
    color: #ef4444;
}

.wso-risk-score-badge.wso-risk-critical {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.wso-risk-fill.wso-risk-critical {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ==========================
   TOP USER (DESTAQUE)
========================== */

.wso-risk-item.top-risk {
    background: rgba(239,68,68,0.04);
    border-radius: 10px;
}

.wso-risk-item.top-risk .wso-risk-name {
    font-weight: 700;
}

/* ==========================
   INLINE LAYOUT (NOVO)
========================== */

.wso-risk-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* NOME */
.wso-risk-user {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 160px;
}

/* BARRA ocupa espaço */
.wso-risk-bar-wrap {
    flex: 1;
}

/* SCORE direita */
.wso-risk-score-wrap {
    min-width: 50px;
    text-align: right;
}

/* BARRA MAIS FINA E ALINHADA */
.wso-risk-bar {
    height: 5px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

/* FILL */
.wso-risk-fill {
    height: 100%;
    border-radius: 999px;
}


/* =====================================================
   WSO EVENT TIMELINE — RESPONSIVE (ENTERPRISE READY)
===================================================== */

/* ==========================
   BASE GRID (DESKTOP)
========================== */
.event-grid {
    display: grid;
    align-items: center;

    grid-template-columns:
        minmax(180px, 1.2fr)   /* timestamp */
        minmax(140px, 1fr)     /* employee */
        minmax(140px, 1fr)     /* computer */
        minmax(160px, 1fr)     /* type */
        2fr;                   /* description */

    padding: 10px 16px;
    font-size: 12.5px;
    column-gap: 10px;
}

/* ==========================
   HEADER
========================== */
.event-header {
    background: #f9fafb;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

/* ==========================
   ROWS
========================== */
.event-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.event-row:hover {
    background: #f9fafb;
}

/* ==========================
   SCROLL AREA
========================== */
.event-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: auto; /* 👈 adiciona */
}

/* 🔥 ISOLAMENTO CORRETO */
.event-scroll .event-grid {
    min-width: 900px;
}
/* Scroll estilo SaaS */
.event-scroll::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.event-scroll::-webkit-scrollbar-thumb {
 background: #d1d5db;
    border-radius: 10px;
}

.event-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* ==========================
   COLUMN STYLES
========================== */
.col-ts {
    color: #6b7280;
}

.col-user {
    color: #111827;
    font-weight: 600;
}

.col-device {
    color: #6b7280;
}

.col-type {
    color: #6b7280;
}

.col-desc {
    color: #111827;
}

/* ==========================
   TABLET (<= 992px)
========================== */
@media (max-width: 992px) {

    .event-grid {
        grid-template-columns:
            minmax(140px, 1fr)
            minmax(120px, 1fr)
            minmax(140px, 1fr)
            1fr;
    }

    .col-device {
        display: none;
    }

}

/* ==========================
   MOBILE (<= 576px)
========================== */

/* ==========================
   SCROLL HORIZONTAL + VERTICAL
========================== */

.event-scroll {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: auto;

    padding: 8px 12px; /* 👈 AQUI */
}


/* ==========================
   KPI CARDS — PREMIUM UI
========================== */

.kpi-card {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 18px 20px;

    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;

    transition: all 0.2s ease;
}

.kpi-sub {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* Ícone */
.kpi-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    font-size: 18px;
}

/* Conteúdo */
.kpi-content {
    display: flex;
    flex-direction: column;
}

/* Número */
.kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

/* Label */
.kpi-label {
    font-size: 11px;
    color: #6b7280;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 4px;
}

/* ONLINE */
.live-dot.online {
    background: #10b981;
    animation: pulse 1.5s infinite;
}

/* OFFLINE */
.live-dot.offline {
    background: #ef4444;
    animation: none;
}

/* animação */
@keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.6); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* ======================================================
   🔷 KPI CARD
====================================================== */

.wso-kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 18px;

    border-radius: 12px;
    background: #ffffff;

    border: 1px solid #eef2f7;

    box-shadow: 0 4px 20px rgba(0,0,0,0.04);

    transition: all .2s ease;
}

.wso-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.wso-kpi-content .kpi-sub {
    margin-top: 2px;     /* 🔥 aproxima do valor */
    line-height: 1.2;
    display: block;
}

/* ======================================================
   🎯 KPI ICON (BASE)
====================================================== */

.wso-kpi-icon {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    color: #fff;

    position: relative;

    flex-shrink: 0;

    box-shadow: 0 4px 14px rgba(0,0,0,0.08);

    transition: all 0.25s ease;
}

/* hover leve */
.wso-kpi-card:hover .wso-kpi-icon {
    transform: scale(1.05);
}

/* ícone sempre acima */
.wso-kpi-icon i {
    position: relative;
    z-index: 2;
    font-size: 18px;
}

/* glow sempre atrás */
.wso-kpi-icon::after {
    content: "";
    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 12px;

    opacity: 0.6;
    z-index: 0;
}

/* ======================================================
   🎨 VARIAÇÕES DE COR
====================================================== */

/* SUCCESS (online) */
.wso-kpi-icon-success {
    background: linear-gradient(135deg, #10b981, #22c55e);

    box-shadow:
        0 6px 18px rgba(16,185,129,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.wso-kpi-icon-success::after {
    background: radial-gradient(circle, rgba(16,185,129,0.25), transparent 70%);
}

/* PRODUCTIVITY (azul) */
.wso-kpi-icon-productivity {
    background: linear-gradient(135deg, #2563eb, #60a5fa);

    box-shadow:
        0 6px 18px rgba(37,99,235,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.wso-kpi-icon-productivity::after {
    background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 70%);
}

/* ALERT (vermelho) */
.wso-kpi-icon-alert {
    background: linear-gradient(135deg, #dc2626, #ef4444);

    box-shadow:
        0 6px 18px rgba(220,38,38,0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.wso-kpi-icon-alert::after {
    background: radial-gradient(circle, rgba(239,68,68,0.35), transparent 70%);
}

/* PRIMARY */
.wso-kpi-icon-primary {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);

    box-shadow: 0 6px 18px rgba(59,130,246,0.25);
}

.wso-kpi-icon-primary::after {
    background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
}

/* INFO */
.wso-kpi-icon-info {
    background: linear-gradient(135deg, #06b6d4, #67e8f9);

    box-shadow: 0 6px 18px rgba(6,182,212,0.25);
}

.wso-kpi-icon-info::after {
    background: radial-gradient(circle, rgba(6,182,212,0.25), transparent 70%);
}

/* WARNING */
.wso-kpi-icon-warning {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);

    box-shadow: 0 6px 18px rgba(245,158,11,0.25);
}

.wso-kpi-icon-warning::after {
    background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 70%);
}

/* ======================================================
   ⚠️ ALERT PULSE (somente quando necessário)
====================================================== */

.wso-kpi-icon-alert.pulse {
    animation: alertPulse 1.6s infinite;
}

@keyframes alertPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ======================================================
   🧠 KPI CONTENT
====================================================== */

.wso-kpi-content {
    display: flex;
    flex-direction: column;
    justify-content: center;   /* 🔥 centraliza vertical */
    gap: 2px;                  /* 🔥 controla espaçamento */
}
.wso-kpi-content {
    align-items: flex-start; /* 🔥 força alinhamento correto */
}
.wso-kpi-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.wso-kpi-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.wso-kpi-total {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

.wso-kpi-separator {
    margin: 0 4px;
    color: #9ca3af;
}

/* ======================================================
   🏢 HEADER DEPARTAMENTO
====================================================== */

.wso-department-header {
    padding: 16px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.wso-department-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.wso-department-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wso-department-meta .separator {
    color: #d1d5db;
}

/* =========================================
   🚀 WSO STATUS FINAL (ALINHADO)
========================================= */

.wso-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    font-size: 12px;
    font-weight: 600;

    padding: 6px 12px;
    border-radius: 999px;

    min-width: 90px; /* 🔥 deixa todos iguais */
}

/* DOT */
.wso-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* ========================
   ONLINE
======================== */
.wso-status-online {
    background: rgba(34,197,94,0.15);
    color: #16a34a;
}

.wso-status-online .wso-status-dot {
    background: #22c55e;
    animation: wso-status-pulse 1.6s infinite;
}

/* ========================
   OFFLINE (CORRIGIDO)
======================== */
.wso-status-offline {
    background: rgba(148,163,184,0.15); /* 🔥 antes tava muito morto */
    color: #475569; /* 🔥 mais contraste */
}

.wso-status-offline .wso-status-dot {
    background: #64748b; /* 🔥 mais visível */
}

/* ANIMAÇÃO */
@keyframes wso-status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ANIMAÇÃO */
@keyframes wsoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(34,197,94,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0);
    }
}

.activity-progress {
    width: 100%;
    height: 8px;

    background: #eef2f7;

    border-radius: 999px;

    overflow: hidden;

    margin-top: 6px;
}

/* 🔥 BARRA */
.activity-bar {
    height: 100%;

    border-radius: 999px;

    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);

    position: relative;

    transition: width .4s ease;
}

/* 🔥 DOT FINAL (efeito premium) */
.activity-dot {
    position: absolute;

    right: 0;
    top: 50%;

    transform: translate(50%, -50%);

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #3b82f6;

    box-shadow: 0 0 8px rgba(59,130,246,0.6);
}

/* 🔥 HOVER */
.activity-progress:hover .activity-bar {
    filter: brightness(1.1);
}

/* =========================
   WSO TABLE FONT CONTROL
========================= */

.wso-risk-table {
    font-size: 13px;
}

.wso-risk-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.wso-risk-table td {
    font-size: 13px;
}

/* ========================================
   🧠 WSO RISK INDICATOR (ISOLADO)
======================================== */

.wso-risk-indicator {
    width: 48px;
    height: 48px;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    transition: all 0.2s ease;
}

/* 🟢 LOW (SEM RISCO) */
.wso-risk-indicator--low {
       background: linear-gradient(135deg, #eb2525, #fa7560);
    color: #ffffff;
}

/* 🟠 MÉDIO */
.wso-risk-indicator--medium {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
}

/* 🔴 ALTO / CRÍTICO */
.wso-risk-indicator--high {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}


/* =========================================
   🔒 WSO ACTIVITY TABLE (ISOLADO TOTAL)
========================================= */

.wso-activity-scope {
    max-height: 1520px;
    overflow-y: auto;
    overflow-x: auto;
}

/* =========================
   RESET DO GLOBAL (CRÍTICO)
========================= */
@media (max-width: 950px) {

    .wso-activity-scope .table-wso thead {
        display: table-header-group !important;
    }

    .wso-activity-scope .table-wso tbody tr {
        display: table-row !important;
        flex-direction: unset !important;
        background: inherit !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .wso-activity-scope .table-wso td {
        display: table-cell !important;
        font-size: 13px !important;
        padding: 8px 10px !important;
    }

    .wso-activity-scope .table-wso th {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }
}

/* =========================
   CONTROLE DE LAYOUT
========================= */

.wso-activity-scope table {
    min-width: 900px;
}

.wso-activity-scope td,
.wso-activity-scope th {
    white-space: nowrap;
}

/* =========================
   SCROLL PREMIUM
========================= */

.wso-activity-scope::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.wso-activity-scope::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

.wso-activity-scope::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.wso-eye-gradient {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wso-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    border-radius: 6px;
    font-size: 12px;
}

.wso-badge-success {
    background: #22c55e;
    color: #fff;
}

.wso-badge-off {
    background: #f3f4f6;
    color: #9ca3af;
}

/* =========================
   WSO RISK TABLE FIX
========================= */

@media (max-width: 950px) {

    .wso-risk-scope .table-wso thead {
        display: table-header-group !important;
    }

    .wso-risk-scope .table-wso tbody tr {
        display: table-row !important;
        flex-direction: unset !important;
    }

    .wso-risk-scope .table-wso td {
        display: table-cell !important;
    }

}

.wso-risk-scope {
    overflow-x: auto;
}


@media (max-width: 950px) {

    .row.align-items-end {
        flex-direction: column;
        gap: 10px;
    }

    .row.align-items-end > [class*="col-"] {
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 100%;
    }

}

@media (max-width: 950px) {

    .wso-activity-scope .table-wso thead {
        display: table-header-group !important;
    }

    .wso-activity-scope .table-wso tbody tr {
        display: table-row !important;
    }

    .wso-activity-scope .table-wso td {
        display: table-cell !important;
    }

}

/* ================================
   👥 TABELA FUNCIONÁRIOS (WSO)
================================ */

.wso-table-employees {
    font-size: 13px;
}

.wso-table-employees th {
    font-size: 11px;
    letter-spacing: .5px;
}

.wso-table-employees td {
    font-size: 13px;
}

/* nome mais destacado */
.wso-table-employees .wso-td-name {
    font-size: 13px;
    font-weight: 600;
}

/* email mais leve */
.wso-table-employees .wso-td-email {
    font-size: 12px;
    color: #6b7280;
}

/* mobile */
@media (max-width: 768px) {

    .wso-table-employees {
        font-size: 12px;
    }

    .wso-table-employees th {
        font-size: 10px;
    }

    .wso-table-employees td {
        font-size: 12px;
    }

    .wso-table-employees .wso-td-name {
        font-size: 12px;
    }

    .wso-table-employees .wso-td-email {
        font-size: 11px;
    }

}

/* =========================================
   🔒 WSO DEPARTMENT TABS (ISOLADO)
========================================= */

.wso-department-tabs {
    width: 100%;
}

/* MOBILE */
@media (max-width: 991px) {

    .wso-department-tabs {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        background: #020617;
        border-radius: 8px;
    }

    .wso-department-tabs .wso-tab {
        width: 100%;
        padding: 12px 14px;
        border-radius: 6px;
        background: rgba(255,255,255,0.03);
    }

    .wso-department-tabs .wso-tab.active {
        background: #1d4ed8;
        color: #fff;
    }

    .wso-department-tabs-mobile button {
        background: #020617;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
    }

}

/* DESKTOP — mantém padrão atual */
@media (min-width: 992px) {

    .wso-department-tabs {
        flex-direction: row !important;
        background: transparent;
    }

}


/* =========================================
   🚀 WSO SIDEBAR TOGGLE — PREMIUM UX
========================================= */

#sidenav-main .wso-sidebar-toggle-btn {
    width: 44px;
    height: 44px;

    display: flex; /* ✅ SEM !important */

    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border: 1px solid rgba(0,0,0,0.04);

    border-radius: 12px;

    padding: 0 !important;

    margin-left: 8px;

    cursor: pointer;

    box-shadow: 
        0 2px 6px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.6);

    transition: all 0.25s cubic-bezier(.4,0,.2,1);
}


/* remove lixo bootstrap */
#sidenav-main .wso-sidebar-toggle-btn .navbar-toggler-icon {
    display: none !important;
}


/* ÍCONE */
#sidenav-main .wso-toggle-icon i {
    font-size: 18px;
    color: #344054;

    transition: all 0.25s ease;
}


/* HOVER — efeito premium */
#sidenav-main .wso-sidebar-toggle-btn:hover {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px rgba(0,0,0,0.10),
        inset 0 1px 0 rgba(255,255,255,0.8);
}


/* ACTIVE — clique */
#sidenav-main .wso-sidebar-toggle-btn:active {
    transform: scale(0.92);

    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.08);
}


/* ICON ANIMATION (opcional futuramente) */
#sidenav-main .wso-sidebar-toggle-btn:hover i {
    transform: rotate(90deg);
    color: #111827;
}


/* MOBILE AJUSTE */
@media (max-width: 768px) {

    #sidenav-main .wso-sidebar-toggle-btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

}

/* =========================================
   🚀 WSO SIDEBAR PREMIUM UI
========================================= */

#sidenav-main {
    border-right: 1px solid rgba(255,255,255,0.04);
}


/* =========================
   NAV LINKS BASE
========================= */

#sidenav-main .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;
    margin: 4px 8px;

    border-radius: 10px;

    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;

    transition: all 0.2s ease;
}


/* =========================
   ÍCONES
========================= */

#sidenav-main .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 15px;

    opacity: 0.8;
    transition: all 0.2s ease;
}


/* =========================
   HOVER
========================= */

#sidenav-main .nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;

    transform: translateX(2px);
}

#sidenav-main .nav-link:hover i {
    opacity: 1;
}


/* =========================
   ACTIVE (ITEM ATUAL)
========================= */

#sidenav-main .nav-link.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;

    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

#sidenav-main .nav-link.active i {
    color: #fff;
    opacity: 1;
}


/* =========================
   SUBMENU
========================= */

#sidenav-main .sub-nav {
    margin-left: 8px;
    padding-left: 10px;

    border-left: 1px solid rgba(255,255,255,0.06);
}

#sidenav-main .sub-nav .nav-link {
    font-size: 13px;
    padding: 8px 12px;

    color: #94a3b8;
}

#sidenav-main .sub-nav .nav-link:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}


/* =========================
   CARET (setinha)
========================= */

#sidenav-main .caret {
    transition: transform 0.2s ease;
    opacity: 0.6;
}

#sidenav-main .nav-link[aria-expanded="true"] .caret {
    transform: rotate(90deg);
    opacity: 1;
}

/* =========================================
   WSO SIDEBAR TOGGLE — FIX FINAL
========================================= */

/* 🔴 ESCONDE EM TABLET + DESKTOP */
@media (min-width: 768px) {
    #sidenav-main .wso-sidebar-toggle-btn {
        display: none !important;
    }
}

/* 🟢 MOSTRA SOMENTE EM MOBILE REAL */
@media (max-width: 767px) {
    #sidenav-main .wso-sidebar-toggle-btn {
        display: flex !important;
    }
}



/* =========================
   SEÇÃO HEADER (tipo "Relatórios")
========================= */

#sidenav-main .nav-item.text-muted {
    color: #64748b !important;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* =========================
   LOGO AREA
========================= */

#sidenav-main .navbar-brand {

    margin-bottom: 10px;
}

/* =========================================
   WSO SIDEBAR LOGO — OVERRIDE ARGON
========================================= */

#sidenav-main.navbar-vertical .navbar-brand img {
    height: 42px !important;
    max-height: none !important;
    width: auto !important;
    object-fit: contain;
}

/* =========================
   SCROLLBAR PREMIUM
========================= */

#sidenav-main::-webkit-scrollbar {
    width: 6px;
}

#sidenav-main::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}


/* =========================
   MOBILE AJUSTE
========================= */

@media (max-width: 768px) {

    #sidenav-main .nav-link {
        font-size: 15px;
        padding: 12px 16px;
    }

}


@media (max-width: 768px) {

    .event-grid {
        font-size: 11px;
    }

    .col-desc {
        white-space: normal;
        line-height: 1.4;
    }

}

/* Tablet */
@media (max-width: 1200px) {
    #sidenav-main .logo-full {
        max-width: 100px;
    }
}

/* Mobile — FORCE OVERRIDE GLOBAL */
@media (max-width: 768px) {
    html body #sidenav-main .logo-full {
        max-width: 120px !important;
        width: 120px !important;
        min-width: 120px !important;
        height: auto !important;
    }
}


/* =========================================
   🔥 FIX LOGO MOBILE (HEADER)
========================================= */

@media (max-width: 767px) {

    #navbar-main .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);

        display: flex;
        justify-content: center;
        align-items: center;

        width: auto;
        margin: 0;
    }

    #navbar-main .navbar-brand img {
        max-width: 110px;
        height: auto;
    }

}

/* =========================================
   🔥 WSO MOBILE LOGO — FINAL CORRETO
========================================= */
@media (max-width: 767px) {

    #navbar-main .container-fluid {
        height: 100%;
        display: flex;
        align-items: center;
    }

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

    #navbar-main {
        position: relative;
        height: 70px; /* garante altura */
    }

    .wso-mobile-logo {
        position: absolute;
        top: 50%;
        left: 50%;

        transform: translate(-50%, -50%); /* 🔥 centralização REAL */

        display: block;
        z-index: 10;
    }

    .wso-mobile-logo img {
        max-width: 130px;
        height: auto;
    }

}

/* =========================================
   🔥 FIX COLLAPSE HEADER MOBILE
========================================= */

@media (max-width: 767px) {

    #sidenav-main .navbar-collapse-header {
        display: block !important;
    }

}

@media (max-width: 991px) {
    #departmentTabsNav {
        display: none;
    }

    #departmentTabsNav.wso-open {
        display: flex !important;
        flex-direction: column;
    }
}

@media (max-width: 991px) {

    #departmentTabsNav {
        display: none;
        transition: all 0.25s ease;
    }

    #departmentTabsNav.wso-open {
        display: flex !important;
        flex-direction: column;
    }

    .wso-chevron {
        transition: transform 0.2s ease;
    }

    #wsoTabsToggle.active .wso-chevron {
        transform: rotate(180deg);
    }

}
/* =========================================
   🔥 FIX MENU MOBILE — EMPLOYEE
========================================= */

@media (max-width: 991px) {

    #employeeTabsNav {
        display: none;
    }

    #employeeTabsNav.wso-open {
        display: flex !important;
        flex-direction: column;
    }

}

/* =========================================
   🚀 WSO FORM — ISOLADO (SEM CONFLITO)
========================================= */

.wso-form {
    max-width: 880px;
}

/* CARD */
.wso-form .card {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    border: none;
}

/* SECTIONS */
.wso-form-section {
    margin-bottom: 40px;
}

.wso-form-title {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* INPUT (ISOLADO) */
.wso-form .wso-input {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;

    padding-left: 0;
    padding-right: 0;

    background: transparent;

    font-size: 15px;

    box-shadow: none;
}

/* FOCUS */
.wso-form .wso-input:focus {
    outline: none;
    box-shadow: none;
    border-bottom: 1px solid #2563eb;
}

/* SELECT */
.wso-form select.wso-input {
    cursor: pointer;
}

/* LABEL */
.wso-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
}

/* FOOTER */
.wso-form-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}

/* BOTÃO (NÃO CONFLITA COM OS SEUS) */
.wso-form .wso-btn-submit {
    background: linear-gradient(135deg, #15c39a, #0fa377);
    color: #fff;

    border: none;
    border-radius: 10px;

    padding: 10px 28px;

    font-weight: 600;

    transition: all 0.2s ease;
}

.wso-form .wso-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16,185,129,0.25);
}

/* CANCEL */
.wso-form .wso-btn-cancel {
    color: #9ca3af;
    text-decoration: none;
}

.wso-form .wso-btn-cancel:hover {
    color: #374151;
}

/* MOBILE */
@media (max-width: 768px) {

    .wso-form-section {
        margin-bottom: 28px;
    }

    .wso-form .wso-btn-submit {
        width: 100%;
    }

}

/* =========================================
   🚀 WSO FORM PREMIUM V3 — 10/10 SaaS UIX
========================================= */

/* BASE */
body {
    background: #f3f5f9;
}

/* WRAP */
.wso-form-wrap {
    max-width: 920px;
    margin: auto;
}

/* HEADER */
.wso-form-title {
    font-weight: 700;
    font-size: 22px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wso-form-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* CARD */
.wso-form-card {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e6eaf0;
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
    transition: all .25s ease;
    position: relative;
}

.wso-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.wso-form-card:hover {
    box-shadow: 0 28px 60px rgba(0,0,0,0.08);
}

/* SECTION */
.wso-form-section {
    margin-bottom: 40px;
}

.wso-form-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: .6px;
    margin-bottom: 20px;
}

/* INPUT GROUP */
.wso-input-group {
    position: relative;
}

/* FLOAT LABEL */
.wso-input-group label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

/* INPUT */
.wso-input-premium {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    background: #f9fafb;
    transition: all .2s ease;
}

/* HOVER */
.wso-input-premium:hover {
    border-color: #d1d5db;
    background: #fff;
}

/* FOCUS */
.wso-input-premium:focus {
    background: #ffffff;
    border-color: #22c55e;
    box-shadow:
        0 0 0 3px rgba(34,197,94,0.15),
        0 4px 12px rgba(34,197,94,0.08);
    outline: none;
}

/* PLACEHOLDER */
.wso-input-premium::placeholder {
    color: #9ca3af;
}

/* TEXTAREA */
textarea.wso-input-premium {
    resize: none;
}

/* SELECT PREMIUM (REAL FIX) */
.wso-select-premium {
    width: 100%;
    appearance: none;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    padding: 12px 40px 12px 14px;
    font-size: 14px;

    background: #f9fafb;

    transition: all .2s ease;

    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' fill='%236b7280' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 6 5-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

/* HOVER */
.wso-select-premium:hover {
    border-color: #d1d5db;
    background: #fff;
}

/* FOCUS */
.wso-select-premium:focus {
    background: #fff;
    border-color: #22c55e;
    box-shadow:
        0 0 0 3px rgba(34,197,94,0.15),
        0 4px 12px rgba(34,197,94,0.08);
}

/* ACTIONS */
.wso-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid #eef2f7;
}

/* PRIMARY BUTTON */
.wso-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 12px;

    transition: all .2s ease;

    box-shadow: 0 8px 22px rgba(34,197,94,0.30);
}

/* HOVER */
.wso-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(34,197,94,0.40);
}

/* CLICK */
.wso-btn-primary:active {
    transform: scale(0.96);
}

/* LOADING STATE (PREPARADO) */
.wso-btn-primary.loading {
    pointer-events: none;
    opacity: .7;
}

/* SECONDARY */
.wso-btn-secondary {
    background: #f3f4f6;
    border: none;
    color: #374151;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all .2s ease;
}

.wso-btn-secondary:hover {
    background: #e5e7eb;
}

/* DIVIDER SUAVE ENTRE SECTIONS */
.wso-form-section + .wso-form-section {
    border-top: 1px dashed #eef2f7;
    padding-top: 28px;
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .wso-form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .wso-btn-primary,
    .wso-btn-secondary {
        width: 100%;
    }
}
.wso-form-section-title {
    margin-top: 12px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef2f7;
}
/* primeira section (remove colado no topo do card) */
.wso-form-card .wso-form-section:first-child {
    margin-top: 10px;
}


/* =========================================
   🚀 WSO INTELLIGENCE UPGRADE
========================================= */

.wso-intelligence-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e6edf5;
}

.wso-intelligence-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.wso-intelligence-subtitle {
    font-size: 13px;
    color: #64748b;
}

/* BADGE */
.wso-badge-success {
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

/* MODULE CARD */
.wso-module-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    transition: all .2s ease;
}

.wso-module-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* TOGGLE ROW */
.wso-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6px;
    border-radius: 8px;
    transition: all .15s ease;
}

.wso-toggle-row:hover {
    background: #f8fafc;
}

/* BOTÃO PRINCIPAL */
.wso-btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff;
}

.wso-btn-primary:hover {
    box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}


/* HEADER PREMIUM WSO */
.wso-section-header {
    display: flex;
    flex-direction: column;
}

.wso-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.wso-section-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

/* BADGE CONTADOR PREMIUM */
.wso-badge-counter {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}




/* CONTADOR PREMIUM */
.wso-counter-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    padding: 4px 10px;
    border-radius: 999px;

    display: inline-block;
    min-width: 28px;
    text-align: center;
}






/* ACTION BUTTONS PREMIUM */
.wso-action-btn {
    border-radius: 8px;
    padding: 6px 10px;
    transition: all .15s ease;
}

/* VIEW */
.wso-action-view {
    border: 1px solid #38bdf8;
    color: #0284c7;
    background: #f0f9ff;
}

.wso-action-view:hover {
    background: #0284c7;
    color: #fff;
}

/* EDIT */
.wso-action-edit {
    border: 1px solid #6366f1;
    color: #4f46e5;
    background: #eef2ff;
}

.wso-action-edit:hover {
    background: #4f46e5;
    color: #fff;
}

/* DELETE */
.wso-action-delete {
    border: 1px solid #ef4444;
    color: #dc2626;
    background: #fef2f2;
}

.wso-action-delete:hover {
    background: #dc2626;
    color: #fff;
}



/* =========================================
   🚀 EMPLOYEE ROW PREMIUM
========================================= */

.wso-employee-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* AVATAR */
.wso-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;

    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.wso-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO */
.wso-employee-info {
    display: flex;
    flex-direction: column;
}

/* NOME */
.wso-employee-name {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: all .15s ease;
}

.wso-employee-name:hover {
    color: #2563eb;
}


/* =========================================
   🔗 WSO LINK ENTITY (FINAL)
========================================= */

.wso-link-entity {
    display: inline-flex;             /* 🔥 ocupa altura da célula */
    align-items: center;          /* 🔥 centraliza vertical */
    gap: 6px;

   

    text-decoration: none;
    font-weight: 600;
    color: #0f172a;

    transition: all .15s ease;
}

/* ÍCONE */
.wso-link-entity i {
    font-size: 14px;
    flex-shrink: 0;
}

/* TEXTO */
.wso-link-entity span {
    display: inline-block;
}

/* HOVER */
.wso-link-entity:hover {
    color: #2563eb;
}

/* OPCIONAL: HOVER SUAVE NA LINHA */
.table tbody tr:hover .wso-link-entity {
    color: #2563eb;
}

/* =========================================
   🚀 FIX GLOBAL DE ALINHAMENTO (WSO)
========================================= */


/* COLUNA CENTRAL */
.table-wso tbody td.text-center {
    text-align: center;
}

/* =========================================
   🎯 ALIGN SYSTEM — CENTRALIZA TUDO
========================================= */

/* GARANTE ALTURA UNIFORME */
.table-wso tbody tr {
    height: 72px;
}

/* CENTRALIZA TODAS AS CÉLULAS */
.table-wso tbody td {
    vertical-align: middle !important;
}

/* =========================================
   EMPLOYEE SNAPSHOTS — RESPIRO LATERAL
========================================= */

.wso-employee-snapshots-wrap {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

@media (min-width: 1200px) {
    .wso-employee-snapshots-wrap {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}



/* =========================================
   WSO REPORT TOOLBAR PREMIUM
========================================= */

.wso-report-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px) auto;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.wso-report-toolbar-left h4 {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.wso-report-toolbar-left small {
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
}

.wso-report-toolbar-center {
    display: flex;
    justify-content: center;
}

.wso-report-filter-form {
    width: 100%;
}

.wso-report-filter-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 8px;
}

.wso-report-filter-box {
    position: relative;
}

.wso-report-filter-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
}

.wso-report-filter-select {
    height: 52px;
    padding-left: 42px !important;
    padding-right: 42px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    transition: all .2s ease;
}

.wso-report-filter-select:hover {
    border-color: rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08);
}

.wso-report-filter-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

.wso-report-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 1199px) {
    .wso-report-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .wso-report-toolbar-center,
    .wso-report-toolbar-right {
        justify-content: flex-start;
    }

    .wso-report-toolbar-right {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .wso-report-toolbar {
        padding: 16px;
        border-radius: 16px;
        gap: 16px;
    }

    .wso-report-toolbar-left h4 {
        font-size: 1.15rem;
    }

    .wso-report-filter-select {
        height: 48px;
        font-size: 14px;
    }

    .wso-report-toolbar-right {
        width: 100%;
    }

    .wso-report-toolbar-right .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}


/* =========================================
   WSO PDF LOADING MODAL — ISOLADO
========================================= */

#pdfLoadingModal .modal-dialog {
    max-width: 560px;
}

#pdfLoadingModal .modal-content.wso-pdf-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.18);
}

#pdfLoadingModal .modal-body {
    padding: 28px 30px;
    background: #fff;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

#pdfLoadingModal .wso-pdf-loader {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 0;
    flex: 0 0 74px;
}

#pdfLoadingModal .wso-pdf-loader-ring {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 4px solid rgba(239, 68, 68, 0.12);
    border-top-color: #dc2626;
    animation: wsoPdfSpin 1s linear infinite;
}

#pdfLoadingModal .wso-pdf-loader i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #dc2626;
}

#pdfLoadingModal .wso-pdf-progress {
    width: 100%;
    height: 10px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

#pdfLoadingModal .wso-pdf-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
    transition: width .45s ease;
}

#pdfLoadingModal h5,
#pdfLoadingModal p,
#pdfLoadingModal .small,
#pdfLoadingModal .text-muted,
#pdfLoadingModal .fw-bold {
    color: inherit;
}

#pdfLoadingModal .text-muted {
    color: #64748b !important;
}

@keyframes wsoPdfSpin {
    to {
        transform: rotate(360deg);
    }
}




/* =========================================
   WSO DELETE REPORTS BUTTON — ISOLADO
========================================= */

.wso-btn-delete-reports {
    background: linear-gradient(135deg, #ff9f1a, #f97316) !important;
    border: 1px solid #f97316 !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.22);
    transition: all .18s ease;
}

.wso-btn-delete-reports:hover {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border-color: #ea580c !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.28);
}

.wso-btn-delete-reports:focus,
.wso-btn-delete-reports:active {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    border-color: #ea580c !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.18) !important;
}

/* =========================================
   DEPARTMENTS INDEX — ISOLAMENTO DE BADGES
========================================= */

.wso-dept-badge-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 44px;
}

.wso-dept-badge-wrap-count {
    justify-content: center;
}

.wso-dept-badge-wrap-status {
    justify-content: center;
}

.wso-dept-counter-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 46px;
    height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    line-height: 1 !important;
    white-space: nowrap;
    vertical-align: middle !important;
}

.wso-dept-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    min-width: 120px;
    height: 30px;
    padding: 0 16px;
    border-radius: 999px;
    line-height: 1 !important;
    white-space: nowrap;
    vertical-align: middle !important;
}

.wso-dept-status .wso-status-dot {
    position: relative;
    top: 0;
    flex: 0 0 auto;
}



/* =========================================
   WSO PRODUCTIVITY TABLE — ISOLADO
========================================= */

.wso-productivity-table-wrap {
    overflow-x: auto;
}

.wso-productivity-table {
    min-width: 980px;
}

.wso-productivity-table th:nth-child(1),
.wso-productivity-table td:nth-child(1) {
    width: 70px;
}

.wso-productivity-table th:nth-child(2),
.wso-productivity-table td:nth-child(2) {
    width: 240px;
}

.wso-productivity-table th:nth-child(3),
.wso-productivity-table td:nth-child(3) {
    width: 180px;
}

.wso-productivity-table th:nth-child(4),
.wso-productivity-table td:nth-child(4) {
    width: 420px;
}

.wso-productivity-table th:nth-child(5),
.wso-productivity-table td:nth-child(5) {
    width: 260px;
}

/* PRODUTIVIDADE */
.wso-prod-cell {
    display: flex;
    align-items: center;
    width: 100%;
}

.wso-prod-bar {
    width: 100%;
    height: 18px;
    background: #edf2f7;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.wso-prod-bar-fill {
    height: 100%;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    min-width: 54px;
    transition: width .35s ease;
}

.wso-prod-bar-fill.is-high {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.wso-prod-bar-fill.is-medium {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.wso-prod-bar-fill.is-low {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.wso-prod-bar-text {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    white-space: nowrap;
}

/* INDICADOR */
.wso-indicator-cell {
    display: grid;
    grid-template-columns: 58px 1fr 42px;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.wso-indicator-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.wso-indicator-label.is-high {
    color: #16a34a;
}

.wso-indicator-label.is-medium {
    color: #d97706;
}

.wso-indicator-label.is-low {
    color: #dc2626;
}

.wso-indicator-track {
    width: 100%;
    height: 8px;
    background: #e9eef5;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.wso-indicator-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .35s ease;
}

.wso-indicator-fill.is-high {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.wso-indicator-fill.is-medium {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.wso-indicator-fill.is-low {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.wso-indicator-percent {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}

/* LINHAS */
.wso-productivity-table tbody tr:hover {
    background: #f8fbff !important;
}

/* MOBILE */
@media (max-width: 950px) {
    .wso-productivity-table {
        min-width: 980px;
    }
}

/* =========================================
   WSO WEB ACTIVITIES — ISOLAMENTO FINAL
========================================= */

.wso-webactivities-card {
    overflow: hidden;
}

.wso-webactivities-card .card-body {
    padding: 18px 18px 0 18px !important;
}

.wso-webactivities-scope {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

.wso-webactivities-table {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
}

/* reset do global desta tela */
.wso-webactivities-table th,
.wso-webactivities-table td {
    white-space: nowrap;
    vertical-align: middle !important;
}

/* coluna 1 */
.wso-webactivities-table th:nth-child(1),
.wso-webactivities-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

/* coluna 2 */
.wso-webactivities-table th:nth-child(2),
.wso-webactivities-table td:nth-child(2) {
    width: 190px;
}

/* coluna 3 */
.wso-webactivities-table th:nth-child(3),
.wso-webactivities-table td:nth-child(3) {
    width: 150px;
}

/* coluna 4 */
.wso-webactivities-table th:nth-child(4),
.wso-webactivities-table td:nth-child(4) {
    width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* coluna 5 */
.wso-webactivities-table th:nth-child(5),
.wso-webactivities-table td:nth-child(5) {
    width: 130px;
    text-align: center;
}

/* coluna 6 */
.wso-webactivities-table th:nth-child(6),
.wso-webactivities-table td:nth-child(6) {
    width: 130px;
    text-align: center;
}

/* coluna 7 */
.wso-webactivities-table th:nth-child(7),
.wso-webactivities-table td:nth-child(7) {
    width: 150px;
    text-align: center;
}

/* coluna 8 */
.wso-webactivities-table th:nth-child(8),
.wso-webactivities-table td:nth-child(8) {
    width: 170px;
    text-align: center;
}

/* link do domínio sem quebrar layout */
.wso-webactivities-table td:nth-child(4) a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* badge centralizado */
.wso-webactivities-table td:nth-child(7) span.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

/* rodapé alinhado com o corpo */
.wso-webactivities-card .card-footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

@media (max-width: 991px) {
    .wso-webactivities-card .card-body {
        padding: 14px 14px 0 14px !important;
    }

    .wso-webactivities-card .card-footer {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* =========================================
   WSO RISK TABLE — RESET REAL DO GLOBAL
========================================= */

.wso-risk-scope {
    overflow-x: auto;
    overflow-y: hidden;
}

.wso-risk-scope .wso-risk-table {
    width: max-content;
    min-width: 1700px;
    table-layout: auto !important;
}

/* mata o nth-child global da .table-wso */
.wso-risk-scope .wso-risk-table th,
.wso-risk-scope .wso-risk-table td {
    width: auto !important;
    white-space: nowrap;
    vertical-align: middle !important;
}

/* mata o flex global dentro das células */
.wso-risk-scope .wso-risk-table tbody td > div,
.wso-risk-scope .wso-risk-table tbody td > a,
.wso-risk-scope .wso-risk-table tbody td > span {
    display: inline-flex !important;
    align-items: center;
}

.wso-risk-scope .wso-risk-table tbody td.text-end {
    display: table-cell !important;
    text-align: right !important;
}

.wso-risk-scope .wso-risk-table tbody td.text-end .wavebutton,
.wso-risk-scope .wso-risk-table tbody td.text-end form {
    display: inline-flex !important;
    vertical-align: middle;
}

/* larguras reais só da risk table */
.wso-risk-scope .wso-risk-table th:nth-child(1),
.wso-risk-scope .wso-risk-table td:nth-child(1) { min-width: 60px; }

.wso-risk-scope .wso-risk-table th:nth-child(2),
.wso-risk-scope .wso-risk-table td:nth-child(2) { min-width: 190px; }

.wso-risk-scope .wso-risk-table th:nth-child(3),
.wso-risk-scope .wso-risk-table td:nth-child(3) { min-width: 120px; }

.wso-risk-scope .wso-risk-table th:nth-child(4),
.wso-risk-scope .wso-risk-table td:nth-child(4),
.wso-risk-scope .wso-risk-table th:nth-child(5),
.wso-risk-scope .wso-risk-table td:nth-child(5),
.wso-risk-scope .wso-risk-table th:nth-child(6),
.wso-risk-scope .wso-risk-table td:nth-child(6),
.wso-risk-scope .wso-risk-table th:nth-child(7),
.wso-risk-scope .wso-risk-table td:nth-child(7),
.wso-risk-scope .wso-risk-table th:nth-child(8),
.wso-risk-scope .wso-risk-table td:nth-child(8),
.wso-risk-scope .wso-risk-table th:nth-child(9),
.wso-risk-scope .wso-risk-table td:nth-child(9),
.wso-risk-scope .wso-risk-table th:nth-child(10),
.wso-risk-scope .wso-risk-table td:nth-child(10),
.wso-risk-scope .wso-risk-table th:nth-child(11),
.wso-risk-scope .wso-risk-table td:nth-child(11),
.wso-risk-scope .wso-risk-table th:nth-child(12),
.wso-risk-scope .wso-risk-table td:nth-child(12) { min-width: 110px; }

.wso-risk-scope .wso-risk-table th:nth-child(13),
.wso-risk-scope .wso-risk-table td:nth-child(13) { min-width: 100px; }

.wso-risk-scope .wso-risk-table th:nth-child(14),
.wso-risk-scope .wso-risk-table td:nth-child(14) { min-width: 140px; }

.wso-risk-scope .wso-risk-table th:nth-child(15),
.wso-risk-scope .wso-risk-table td:nth-child(15) { min-width: 150px; }

.wso-risk-scope .wso-risk-table th:nth-child(16),
.wso-risk-scope .wso-risk-table td:nth-child(16) { min-width: 120px; }


/* =========================================
   WSO RISK TABLE — OVERRIDE FINAL DO GLOBAL
========================================= */

.wso-risk-scope .wso-risk-table tbody tr {
    height: auto !important;
    transform: none !important;
}

.wso-risk-scope .wso-risk-table tbody tr:hover {
    transform: none !important;
}

.wso-risk-scope .wso-risk-table th,
.wso-risk-scope .wso-risk-table td {
    padding: 12px 14px !important;
}

.wso-risk-scope .wso-risk-table thead th {
    background: #f9fafb !important;
    color: #374151 !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #e5e7eb !important;
}

.wso-risk-scope .wso-risk-table tbody td {
    color: #4b5563 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.wso-risk-scope .wso-risk-table tbody tr:nth-child(even),
.wso-risk-scope .wso-risk-table tbody tr:nth-child(odd) {
    background: transparent !important;
}



.main-content .wso-risk-wrapper {
    overflow-x: auto !important;
    display: block;
}


/* =========================
   WSO RETENTION AUDIT PREMIUM
========================= */

.wso-retention-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px 26px;
    background:
        radial-gradient(circle at top right, rgba(220,53,69,.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(13,110,253,.10), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.wso-retention-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #dc3545;
    margin-bottom: 10px;
}

.wso-retention-hero__title {
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}

.wso-retention-hero__subtitle {
    font-size: .95rem;
    color: #64748b;
    max-width: 860px;
}

.wso-kpi-premium-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.wso-kpi-premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.wso-kpi-premium-card__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.wso-kpi-premium-card__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.wso-kpi-premium-card__value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
    letter-spacing: -.03em;
}

.wso-kpi-premium-card__hint {
    font-size: 13px;
    color: #94a3b8;
}

.wso-kpi-premium-card__icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.20);
}

.wso-kpi-premium-card--danger .wso-kpi-premium-card__icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.wso-kpi-premium-card--warning .wso-kpi-premium-card__icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.wso-kpi-premium-card--success .wso-kpi-premium-card__icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.wso-retention-filter-card {
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.wso-retention-table-card {
    overflow: hidden;
}

.wso-retention-table thead th {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.wso-retention-path {
    max-width: 540px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
    line-height: 1.45;
}

.wso-retention-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wso-retention-badge--type {
    color: #7c3aed;
    background: rgba(124, 58, 237, .10);
    border: 1px solid rgba(124, 58, 237, .14);
}

.wso-retention-badge--reason {
    color: #dc2626;
    background: rgba(220, 38, 38, .08);
    border: 1px solid rgba(220, 38, 38, .12);
}

.wso-retention-operator {
    font-weight: 700;
    letter-spacing: .04em;
    color: #475569;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .wso-retention-hero {
        padding: 22px 20px;
        border-radius: 22px;
    }

    .wso-retention-hero__title {
        font-size: 1.2rem;
    }

    .wso-kpi-premium-card__inner {
        padding: 20px;
    }

    .wso-retention-path {
        max-width: 100%;
    }
}

/* =========================================================
   WSO • Modal Categorias de Produtividade
========================================================= */

#modalNovaCategoria .modal-dialog {
    max-width: 780px;
    width: calc(100% - 1.5rem);
    margin: 1.75rem auto;
}

#modalNovaCategoria .modal-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.20);
    background: #ffffff;
    height: auto !important;
    min-height: unset !important;
}

#modalNovaCategoria .modal-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    border-bottom: 0;
    align-items: flex-start;
}

#modalNovaCategoria .modal-title {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0;
}

#modalNovaCategoria .modal-header .btn-close {
    margin: 0;
    opacity: 1;
    filter: invert(1) grayscale(100%) brightness(200%);
    box-shadow: none !important;
}

#modalNovaCategoria .modal-body {
    padding: 1.5rem !important;
    background: #ffffff;
    height: auto !important;
    min-height: unset !important;
    flex: 0 0 auto !important;
}

#modalNovaCategoria .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 0;
    background: #ffffff;
}

/* Badge azul do bloco informativo dentro do modal */
#modalNovaCategoria .modal-body .rounded-4.p-3 {
    border-radius: 16px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid #1d4ed8 !important;
    padding: 1rem 1rem !important;
    margin-bottom: .25rem;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

#modalNovaCategoria .modal-body .rounded-4.p-3 .small,
#modalNovaCategoria .modal-body .rounded-4.p-3 .fw-semibold,
#modalNovaCategoria .modal-body .rounded-4.p-3 div,
#modalNovaCategoria .modal-body .rounded-4.p-3 span,
#modalNovaCategoria .modal-body .rounded-4.p-3 p {
    color: #ffffff !important;
}

#modalNovaCategoria .form-label {
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .45rem;
}

#modalNovaCategoria .form-control,
#modalNovaCategoria .form-select {
    min-height: 48px;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    box-shadow: none;
    padding: .75rem .95rem;
}

#modalNovaCategoria textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

#modalNovaCategoria .form-control:focus,
#modalNovaCategoria .form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

#modalNovaCategoria .btn.btn-light {
    background: #ffffff;
    border: 1px solid #dbe3ee;
    color: #334155;
    font-weight: 600;
    min-height: 44px;
}

#modalNovaCategoria .btn.btn-primary {
    font-weight: 700;
    min-height: 44px;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

#modalNovaCategoria .fa-plus-circle {
    font-size: 1.15rem;
}

@media (max-width: 767.98px) {
    #modalNovaCategoria .modal-dialog {
        max-width: calc(100% - 1rem);
        margin: .75rem auto;
    }

    #modalNovaCategoria .modal-header,
    #modalNovaCategoria .modal-body,
    #modalNovaCategoria .modal-footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #modalNovaCategoria .modal-footer {
        flex-direction: column;
        gap: .75rem;
    }

    #modalNovaCategoria .modal-footer .btn {
        width: 100%;
    }
}


/* =========================================================
   WSO • Productivity Categories Pills
========================================================= */

.table-wso .wso-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: .45rem .95rem;
    border-radius: 999px !important;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    border: 1px solid transparent;
    box-shadow: none !important;
    background-image: none !important;
    text-shadow: none !important;
    white-space: nowrap;
}

.table-wso .wso-pill-number {
    min-width: 70px;
}

.table-wso .wso-pill-success {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

.table-wso .wso-pill-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.table-wso .wso-pill-neutral {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

.table-wso .wso-pill-info {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #bfdbfe !important;
}

.table-wso .wso-pill-active {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

.table-wso .wso-pill-inactive {
    background: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}


/* =========================
   WSO SYSTEM VERSION PREMIUM
========================= */

.wso-system-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px 28px;
    background:
        radial-gradient(circle at top right, rgba(13,110,253,.10), transparent 24%),
        radial-gradient(circle at bottom left, rgba(25,135,84,.08), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.wso-system-hero__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wso-system-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 10px;
}

.wso-system-hero__title {
    font-size: 1.75rem;
    line-height: 1.05;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
}

.wso-system-hero__subtitle {
    font-size: .97rem;
    color: #64748b;
    max-width: 780px;
}

.wso-version-overview-card,
.wso-changelog-card {
    overflow: hidden;
}

.wso-version-overview__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.wso-version-overview__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.wso-version-overview__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.wso-version-overview__version {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: #0f172a;
    margin-bottom: 12px;
}

.wso-version-overview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: .95rem;
}

.wso-version-health {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.wso-version-health__chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(25,135,84,.10);
    color: #198754;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wso-version-health__text {
    color: #64748b;
    font-size: .95rem;
    line-height: 1.6;
}

.wso-changelog-item {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 0 0 22px 0;
}

.wso-changelog-item:last-child {
    padding-bottom: 0;
}

.wso-changelog-item__line {
    position: absolute;
    left: 15px;
    top: 38px;
    bottom: -6px;
    width: 2px;
    background: linear-gradient(180deg, rgba(13,110,253,.18) 0%, rgba(148,163,184,.18) 100%);
}

.wso-changelog-item:last-child .wso-changelog-item__line {
    display: none;
}

.wso-changelog-item__marker {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37,99,235,.20);
}

.wso-changelog-item:not(.is-current) .wso-changelog-item__marker {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: none;
}

.wso-changelog-item__content {
    flex: 1;
    min-width: 0;
    padding: 2px 0 0 0;
}

.wso-changelog-item__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.wso-changelog-item__title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.wso-changelog-item__date {
    font-size: .86rem;
    color: #64748b;
}

.wso-changelog-item__notes {
    color: #475569;
    line-height: 1.7;
    font-size: .94rem;
}

.wso-kpi-premium-card--primary .wso-kpi-premium-card__icon {
    background: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
}

.wso-kpi-premium-card--dark .wso-kpi-premium-card__icon {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

@media (max-width: 991px) {
    .wso-system-hero {
        padding: 22px 20px;
        border-radius: 20px;
    }

    .wso-system-hero__grid,
    .wso-version-overview__top,
    .wso-changelog-item__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .wso-system-hero__title {
        font-size: 1.35rem;
    }

    .wso-version-overview__version {
        font-size: 1.8rem;
    }
}





