html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
 /* margin-bottom: 60px;*/
}

tr.selected {
    background-color: darkgray !important;
}
tr.group {
    background-color: #f3f3f3;
    font-weight: bold;
}

.paddingZero{
    padding:0px;
}

.env-badge {
    margin-left: 0.75rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Estilo para o botão de logout no menu lateral */
.sidebar .nav-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logout-item {
    margin-top: auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 0.5rem;
}

.logout-item .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.logout-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.logout-item .nav-link i {
    margin-right: 0.5rem;
}

/* Estilos para barras de progresso na grid de hibridação */
.progress-container {
    min-width: 120px;
    padding: 4px 0;
}

.progress-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.progress-value {
    font-size: 0.9rem;
    color: #495057;
    margin-top: 4px;
    text-align: center;
    font-weight: 500;
}

/* Garantir que as barras de progresso funcionem bem em tabelas */
table.dataTable td .progress-container {
    white-space: nowrap;
}

table.dataTable td .progress {
    margin: 0;
}

/* ============================================
   ESTILOS RESPONSIVOS - MOBILE/TABLET
   ============================================ */

/* Ocultar grid em mobile/tablet */
@media (max-width: 992px) {
    .device-mobile .dataTables_wrapper,
    .device-tablet .dataTables_wrapper {
        display: none;
    }
}

/* Exibir cards em mobile/tablet */
.device-mobile .cards-container,
.device-tablet .cards-container {
    display: block;
}

.device-desktop .cards-container {
    display: none;
}

/* Container de cards */
.cards-container {
    display: none;
    padding: 0;
}

.card-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.card-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.card-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.card-item-actions {
    display: flex;
    gap: 8px;
}

.card-item-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.card-item-field {
    display: flex;
    flex-direction: column;
}

.card-item-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-item-value {
    font-size: 0.95rem;
    color: #212529;
    font-weight: 500;
}

.card-item-progress {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.card-item-progress .progress-container {
    min-width: 100%;
}

/* Badges em cards */
.card-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* Modais fullscreen em mobile */
@media (max-width: 576px) {
    .device-mobile .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .device-mobile .modal-content {
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .device-mobile .modal-header {
        border-radius: 0;
        padding: 16px;
        border-bottom: 1px solid #dee2e6;
    }

    .device-mobile .modal-body {
        padding: 16px;
        overflow-y: auto;
        flex: 1;
    }

    .device-mobile .modal-footer {
        border-radius: 0;
        padding: 16px;
        border-top: 1px solid #dee2e6;
    }

    /* Botões de navegação em mobile */
    .device-mobile .modal-footer .btn-navigation {
        flex: 1;
        margin: 0 4px;
    }
}

/* Tablet - modais com margem */
@media (min-width: 577px) and (max-width: 992px) {
    .device-tablet .modal-dialog {
        margin: 20px auto;
        max-width: 90%;
    }
}

/* Ajustes de formulário em mobile */
.device-mobile .form-group {
    margin-bottom: 16px;
}

.device-mobile .form-control,
.device-mobile .form-select {
    font-size: 18px; /* Legível em viewport mobile (Chrome device mode) */
    padding: 10px 12px;
}

.device-mobile select.form-control option,
.device-mobile select.form-select option {
    font-size: 20px !important;
    line-height: 1.8 !important;
    padding: 12px 14px !important;
}

/* Combos nas telas Inicio (Florescimento, Toalete, Hibridação) e modais – texto completo visível */
.content .card .card-body select.form-control,
.content .card .card-body select.form-select,
.modal .card-body select.form-control,
.modal .card-body select.form-select,
.modal select.form-control,
.modal select.form-select {
    min-height: 38px;
    line-height: 1.5;
    height: auto;
    font-size: 15px;
}

.content .card .card-body select.form-control option,
.content .card .card-body select.form-select option,
.modal select.form-control option,
.modal select.form-select option {
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 10px 12px !important;
}

.device-mobile .btn {
    padding: 10px 16px;
    font-size: 16px;
}

/* Loading em cards */
.cards-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.cards-loading i {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cards-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Toast simplificado para mobile */
.device-mobile .toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
}

.device-mobile .toast {
    font-size: 14px;
    padding: 12px 16px;
}

/* Modais com cards no mobile */
.device-mobile .modal-body .grid-card,
.device-tablet .modal-body .grid-card {
    display: none;
}

.device-mobile .modal-body .cards-container,
.device-tablet .modal-body .cards-container {
    display: block;
}

.device-mobile .modal-body .filtros-card,
.device-tablet .modal-body .filtros-card {
    display: block;
}

.cards-container .card-item {
    cursor: pointer;
}

/* Custom AdminLTE */

/* ============================
   SIDEBAR – CUSTOM STYLE
============================ */

/* Background da sidebar */
.main-sidebar {
    background-color: #f9fafb !important;
    border-right: 1px solid #dee2e6;
    box-shadow: none !important;
}

/* Remove borda e sombra do brand-link */
[class*=sidebar-dark] .brand-link {
    border-bottom: none !important;
    box-shadow: none !important;
}



    /* Hover */
    .nav-sidebar .nav-link:hover {
        background-color: rgba(22, 162, 73, 0.5) !important;
        color: #ffffff !important;
    }

        /* Ícones no hover */
        .nav-sidebar .nav-link:hover .nav-icon {
            color: #ffffff !important;
        }

    /* Link ativo – SEM opacidade */
    .nav-sidebar .nav-link.active {
        background-color: #16a249 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

        /* Ícones do item ativo */
        .nav-sidebar .nav-link.active .nav-icon {
            color: #ffffff !important;
        }

/* Remove qualquer sombra residual */
.nav-sidebar .nav-link,
.nav-sidebar .nav-item {
    box-shadow: none !important;
}

/* Submenu (treeview) */
.nav-treeview > .nav-item > .nav-link {
    padding-left: 2.5rem;
    font-size: 0.85rem;
}

    /* Hover no submenu */
    .nav-treeview > .nav-item > .nav-link:hover {
        background-color: rgba(22, 162, 73, 0.4) !important;
    }

    /* Ativo no submenu */
    .nav-treeview > .nav-item > .nav-link.active {
        background-color: #16a249 !important;
    }

/* Remove efeito "glow" do AdminLTE */
.nav-sidebar > .nav-item > .nav-link:focus,
.nav-sidebar > .nav-item > .nav-link:active {
    box-shadow: none !important;
}


/* KPI Cards */
.dashboard-kpi {
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    min-height: 140px;
}

.dashboard-kpi .d-flex > div:first-child {
    min-height: 3.5em;
}

/* Ícones KPI */
.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Módulos */
.module-card {
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

    .module-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    }

/* Ícones Módulos */
.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cores soft */
.bg-primary-soft {
    background: #eef2ff;
}

.bg-success-soft {
    background: #ecfdf5;
}

.bg-purple-soft {
    background: #f5f3ff;
}

.text-purple {
    color: #7c3aed;
}






.tmgpe-header-filters {
    position: relative;
    top: 5px;
}

#planoTable thead input {
    width: 100%;
    font-size: 11px;
}

#planoTable th,
#planoTable td {
    white-space: nowrap;
}

h1 {
    font-size: 1.5em;
    color: #343A40;
    padding: 1em 0 0 0.3em;
    font-family: 'Poppins', sans-serif !important;
}

[class*=sidebar-dark-] {
    background-color: #003159;
}


/*#003159*/

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .wizard-steps .step {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: #dee2e6;
        color: #6c757d;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

        .wizard-steps .step.active {
            background: #003159;
            color: #fff;
        }

.wizard-step {
    display: none;
}

    .wizard-step.active {
        display: block;
    }

.dropzone {
    border: 2px dashed #003159;
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    color: #003159;
    cursor: pointer;
}

    .dropzone:hover {
        background: #f8f9fa;
    }

td {
    position: relative;
}

.edit-icon {
    display: none;
    cursor: pointer;
    margin-left: 6px;
    color: #6c757d;
}

td:hover .edit-icon {
    display: inline;
}

.save-icon {
    cursor: pointer;
    margin-left: 6px;
    color: #28a745;
}

.inline-input {
    width: calc(100% - 30px);
    display: inline-block;
}


/* ================================
   SIDEBAR – CONTAINER
================================ */

.main-sidebar {
    background-color: #f9fafb !important;
    border-right: 1px solid #dee2e6 !important;
    box-shadow: none !important;
}

/* Remove sombras globais */
.main-header,
.content-wrapper,
.main-footer,
.control-sidebar,
.card,
.dropdown-menu,
.navbar {
    box-shadow: none !important;
}

/* ================================
   LINKS E ÍCONES
================================ */

.main-sidebar .nav-sidebar .nav-link {
    color: #16a249 !important;
    font-size: 0.875rem;
    box-shadow: none !important;
    /* Transições suaves */
    transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

/* Ícones */
.main-sidebar .nav-sidebar .nav-icon {
    color: #16a249 !important;
    transition: color 0.25s ease;
}

/* Hover → verde com opacidade */
.main-sidebar .nav-sidebar .nav-link:hover {
    background-color: rgba(22, 162, 73, 0.5) !important;
    color: #ffffff !important;
    padding-left: 1.25rem;
}

    /* Hover → ícones */
    .main-sidebar .nav-sidebar .nav-link:hover .nav-icon {
        color: #ffffff !important;
    }

/* Link ativo → verde sólido (SEM opacidade) */
.main-sidebar .nav-sidebar .nav-link.active {
    background-color: #16a249 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

    /* Ícone ativo */
    .main-sidebar .nav-sidebar .nav-link.active .nav-icon {
        color: #ffffff !important;
    }

/* ================================
   BRAND / LOGO
================================ */

/* Remove borda do brand-link */
[class*=sidebar-dark] .brand-link {
    border-bottom: none !important;
    background-color: #f9fafb !important;
}

/* Texto do brand */
.brand-link,
.brand-link .brand-text {
    color: #16a249 !important;
}

/* ================================
   AJUSTES EXTRAS
================================ */

/* Evita deslocamento visual em submenus */
.nav-sidebar .nav-treeview {
    padding-left: 0.5rem;
}


.brand-link {
    display: flex;
    align-items: center; /* centraliza vertical */
    justify-content: center; /* centraliza horizontal */
    padding: 0.75rem 1rem; /* ajuste fino se necessário */
}

    /* Garante que o span não force alinhamento */
    .brand-link .brand-text {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Opcional: controla o tamanho do logo */
    .brand-link img {
        max-height: 32px; /* ajuste conforme seu layout */
        width: auto;
    }

/* Bootstrap Icons na sidebar */
.nav-sidebar .nav-icon {
    font-size: 1rem;
    line-height: 1;
    margin-right: 0.5rem;
    opacity: 0.9;
    transition: color 0.25s ease;
}

/* Hover / ativo */
.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
}

/* Timeline clean */
.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .timeline > li {
        position: relative;
        padding-left: 40px;
        margin-bottom: 20px;
    }

    .timeline:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #dee2e6;
        left: 18px;
        margin: 0;
        border-radius: 2px;
    }

    .timeline > li > i {
        position: absolute;
        left: 10px;
        top: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 10px;
        color: #fff;
    }

.timeline-item {
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.timeline-header {
    font-size: 14px;
    margin: 0;
}

.timeline .time {
    float: right;
    font-size: 12px;
    color: #6c757d;
}

table.dataTable.table-sm > thead > tr > th:not(.sorting_disabled) {
    padding-right: 31px !important;
}

#modal-adicionar-cruzamento .dataTables_wrapper {
    width: 100%;
}

#modal-adicionar-cruzamento #grid-cruzamento-pendente th.col-codigo-solicitacao-elegivel,
#modal-adicionar-cruzamento #grid-cruzamento-pendente td.col-codigo-solicitacao-elegivel {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 280px;
}

tr {
    cursor: pointer;
}

.nav-badge.nav-item-q-notificacoes {
    background-color: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-item-q-notificacoes:empty {
    display: none;
}

.tmgpe-header-filters {
    gap: 8px;
    margin-right: 12px;
}

    .tmgpe-header-filters .tmgpe-filter {
        border-radius: 6px;
        border: 1px solid #dcdcdc;
        background-color: #fff;
    }

        .tmgpe-header-filters .tmgpe-filter:focus {
            box-shadow: none;
            border-color: #6c757d;
        }

.tmgpe-btn-apply {
    padding: 10px 10px;
    height: 31px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}


.tmgpe-filter-sm {
    width: 93px;
    min-width: 93px;
}

.tmgpe-filter-lg {
    width: 143px;
    min-width: 143px;
}


.tmgpe-toast-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1055;
}

.tmgpe-lock-animation {
    width: 100%;
    height: 195px;
    overflow: hidden;
    text-align: center;
    background: url('/dist/img/loading-lock.gif') no-repeat center center
}


[class*=sidebar-dark] .user-panel {
    border-bottom: 1px solid #d4d4d4;
}

[class*=sidebar-dark-] .user-panel a:hover {
    color: #000;
}

/* Botão Pesquisar e Filtrar – ícone e texto centralizados */
.btn-search {
    background-color: #22262A;
    color: #fff;
    border-radius: 5px;
    border: none;
    transition: all .2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.btn-search i {
    margin: 0;
    vertical-align: middle;
}

    .btn-search:hover {
        background-color: #1b1f23;
        color: #fff;
    }

/* Botão Adicionar */
.btn-add {
    background-color: #16A249;
    color: #fff;
    border-radius: 5px;
    border: none;
    transition: all .2s ease-in-out;
}

    .btn-add:hover {
        background-color: #138a3f;
        color: #fff;
    }

/* Botões Próximo e Voltar */
.btn-nav {
    background-color: #FFFFFF;
    color: #636363;
    border-radius: 5px;
    border: 1px solid #E1E1E1;
    transition: all .2s ease-in-out;
}

    .btn-nav:hover {
        background-color: #f5f5f5;
        color: #363636;
    }
