﻿:root {
    --bs-primary: #174498;
}
[data-bs-theme="dark"] .accordion-button::after {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.navbar {
    background-color: #174498;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 1);
}
/* Provide sufficient contrast against white background */
a {
  color: #1d70b8;
}
[data-bs-theme="dark"] a {
  color: #72b7df;
}
a:hover,
a:focus {
  color: #23527c;
}
[data-bs-theme="dark"] a:hover,
[data-bs-theme="dark"] a:focus {
  color: rgba(255, 255, 255, 1);
}
.btn-primary {
  color: #fff;
  background-color: #05476d;
  border-color: #0b2d49;
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: #0b2d49;
}

.btn-primary:hover {
  background-color: #0b2d49;
  border-color: #0b2d49;
}

.btn-primary:focus,
.btn-primary.focus {
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(11, 45, 73, 0.3);
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(11, 45, 73, 0.3);
}

.btn-outline-primary {
  color: #0b2d49;
  border-color: #0b2d49;
}
[data-bs-theme="dark"] .btn-outline-primary {
  color: white;
  border-color: white;
}
.btn-outline-primary:hover {
  background-color: #0b2d49;
  border-color: #0b2d49;
  color: white;
}
[data-bs-theme="dark"] .btn-outline-primary:hover {
  background-color: #0b2d49;
  border-color: white;
  color: white;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(11, 45, 73, 0.3);
  background-color: #0b2d49;
  color: white;
}

.btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(11, 45, 73, 0.3);
  background-color: #0b2d49;
  color: white;
}

.btn-link {
  color: var(--bs-primary);
}
[data-bs-theme="dark"] .btn-link {
  color: white;
}
[data-bs-theme="dark"] .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.8);
  color: rgba(255, 255, 255, 0.8);
}
[data-bs-theme="dark"] .btn-outline-dark:hover,
[data-bs-theme="dark"] .btn-outline-dark:focus {
  border-color: rgba(255, 255, 255, 1);
  color: rgba(255, 255, 255, 1);
  background-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .btn-outline-danger {
  color: rgba(255, 255, 255, 0.85);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #05476d;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

body {
  min-height: 100vh;
}

.flex-grow {
  flex: 1 1 auto;
}

footer {
  position: relative;
  background-color: var(--bs-tertiary-bg);
  height: 100%;
  padding-bottom: 20px;
  padding-top: 10px;
  margin-top: 20px;
}

footer:after {
  background: #05476d;
  position: absolute;
  content: "";
  height: 5px;
  right: 0;
  left: 0;
  top: 0;
}

footer .container {
  background-color: transparent;
  padding-top: 1rem;
}

footer a {
  text-decoration: underline;
}

footer ul > li {
  padding-bottom: 10px;
}

footer img.brand {
  max-width: 180px;
  min-width: 120px;
}

.dropdown-menu.dropdown-menu-block {
  padding: 10px;
}

.account-box {
  min-width: 260px;
  margin-top: 4px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}
.card.link-card {
  height: 4rem;
  background-color: #fbfbfb;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 0.5rem;
  border-color: #e0e0e0;
}
[data-bs-theme="dark"] .card.link-card {
  background-color: var(--bs-body-bg);
}
.card.link-card:hover {
  box-shadow: 2px 2px 5px #e0e0e0;
  border-color: grey;
  transition: all 0.2s ease;
}
[data-bs-theme="dark"] .card.link-card:hover {
  box-shadow: 2px 2px 5px var(--bs-body-bg);
  transition: all 0.2s ease;
}
.card.link-card.active:hover {
  box-shadow: none;
}

.card.link-card a {
  color: inherit;
  text-decoration: none;
}
.card-title-icon {
  height: 32px;
  width: 32px;
  vertical-align: -0.4em;
  filter: brightness(0.1);
}
[data-bs-theme="dark"] .card-title-icon {
  filter: none;
}
.validation-summary-errors li {
  list-style: none;
}

.validation-summary-errors ul {
  padding: 0;
  margin: 0;
}

/*simple-datatables overrides*/

.datatable-table {
  border-collapse: collapse;
}
[data-bs-theme="dark"] .pagination button {
  color: white;
}
[data-bs-theme="dark"] .table-primary a {
  color: var(
    --bs-table-color-state,
    var(--bs-table-color-type, var(--bs-table-color))
  );
}

/*version cards*/
.version-image-card {
  min-height: 200px;
  background-size: cover;
  border-color: darkgray;
  transition: all 0.2s ease;
}
.version-image-card:hover {
  filter: brightness(1.2);
  box-shadow: 2px 2px 5px #222222;
}
[data-bs-theme="dark"] .version-image-card:hover {
  box-shadow: 2px 2px 5px #444444;
}
.version-image-card a {
  text-decoration: none;
  color: white;
}
.version-image-card .card-footer {
  border: none;
}
/* blocos no estilo swagger */
.opblock {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.opblock-summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    border-left: 4px solid #61affe;
    border-radius: 6px;
}

    .opblock-summary:hover {
        border-color: #cbd5e1;
    }

/* badge esquerda (você já usa); só reforçando tipografia */
.opblock-summary-filetype {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: .25rem .5rem;
    font-weight: 700;
    font-size: .75rem;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* nome do arquivo */
.opblock-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* actions à direita */
.opblock-actions {
    margin-left: auto;
    display: flex;
    gap: .35rem;
}

/* botões “pill” no estilo swagger */
.btn-sw {
    --b: #61affe;
    color: #0b5ed7;
    background: #fff;
    border: 1px solid var(--b);
    border-radius: .375rem;
    padding: .25rem .5rem;
    line-height: 1;
}

    .btn-sw:hover {
        background: var(--b);
        color: #fff;
    }

.btn-icon {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* opcional: micro no caminho abaixo do nome */
.file-path-small {
    font-size: .7rem;
    line-height: 1.1rem;
    color: #6c757d;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Garante que o link não expanda além da navbar */
.navbar .nav-link {
    display: flex;
    align-items: center;
}
/* === BOTÃO AJUDA === */
.btn-ajuda {
    background-color: #005ca9; /* azul institucional SP */
    color: #fff !important; /* texto branco */
    border-style: solid;
    border-color: black;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    height: 36px;
    line-height: 1.2;
    height: 60px
}

    .btn-ajuda:hover,
    .btn-ajuda:focus {
        background-color: #004b8a; /* tom mais escuro no hover */
        color: #fff;
        text-decoration: none;
    }

    /* Ícone e texto alinhados */
    .btn-ajuda i {
        font-size: 1rem;
        margin-right: 4px;
    }

/* ========== AJUDA TABS – MOBILE FIRST (quebra em linhas) ========== */
#ajudaModal .nav-tabs {
    display: flex;
    flex-wrap: wrap; /* quebra por padrão */
    overflow-x: visible; /* sem scroll por padrão */
    scrollbar-width: thin;
}

    #ajudaModal .nav-tabs .nav-item {
        flex: 1 1 100%; /* cada aba ocupa uma linha no mobile */
    }

    #ajudaModal .nav-tabs .nav-link {
        background-color: #f2f2f2;
        color: #333;
        border: 1px solid #ddd;
        border-bottom: none;
        padding: 6px 10px;
        font-size: 0.92rem;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 4px; /* pouco espaço entre ícone e texto */
        white-space: normal !important; /* permite quebrar o texto */
        justify-content: flex-start;
        margin-bottom: 4px; /* espaço entre linhas */
        transition: background-color .15s ease-in-out;
    }

        #ajudaModal .nav-tabs .nav-link.active,
        #ajudaModal .nav-tabs .nav-item.show .nav-link {
            background-color: #004d26; /* verde escuro */
            color: #fff !important;
            border-color: #004d26;
            font-weight: 600;
        }

        #ajudaModal .nav-tabs .nav-link:hover {
            background-color: #e6e6e6;
            color: #000;
        }

        #ajudaModal .nav-tabs .nav-link i {
            font-size: 0.95rem;
            margin-right: 4px; /* ícone pertinho do texto */
        }

/* ========== DESKTOP (>= md): uma linha, com scroll se necessário ========== */
@media (min-width: 1068px) {
    #ajudaModal .nav-tabs {
        flex-wrap: nowrap !important; /* não quebra em telas maiores */
        overflow-x: auto !important; /* scroll horizontal se faltar espaço */
    }

        #ajudaModal .nav-tabs .nav-item {
            flex: 0 0 auto; /* largura natural das abas */
        }

        #ajudaModal .nav-tabs .nav-link {
            white-space: nowrap !important; /* não quebra o texto */
            margin-bottom: 0; /* remove espaço extra */
        }
}

.limited-col {
    max-width: 100px !important; /* valor que você quiser */
    flex: 0 0 auto; /* impede de esticar além do max-width */
}
/* Card de configuração de coluna de resultado */
.col-result-card .card-header {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-result-card .card-body {
    font-size: 0.8rem;
}

/* Deixa os campos bem compactos no mobile */
.col-result-card .form-label,
.col-result-card .form-check-label {
    font-size: 0.75rem;
}
/* Estado inicial: fora de cena e opaco */
.card-anim {
    opacity: 0;
    transform: translateY(20px);
}

    .card-anim.card-anim-left {
        transform: translateX(-40px);
    }

    .card-anim.card-anim-right {
        transform: translateX(40px);
    }

    .card-anim.card-anim-top {
        transform: translateY(-40px);
    }

    .card-anim.card-anim-bottom {
        transform: translateY(40px);
    }

/* Animação base */
@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translate3d(var(--card-anim-x, 0), var(--card-anim-y, 20px), 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.card-anim-start {
    animation: cardEnter 0.5s ease-out forwards;
}

/* Fonte menor e responsiva */
.integration-table th,
.integration-table td {
    font-size: clamp(10px, 0.9vw, 13px);
    white-space: nowrap;
}

    /* Header ligeiramente mais destacado */
    .integration-table th span {
        font-size: clamp(11px, 1vw, 14px);
    }

    /* Ícones de ordenação compactos */
    .integration-table th i {
        font-size: clamp(11px, 1vw, 14px);
    }

/* Input dos filtros ainda menor */
.integration-table input.integration-col-filter {
    font-size: clamp(10px, 0.9vw, 13px);
    padding-top: 1px;
    padding-bottom: 1px;
}
.gifw-bottom-modal-header {
    height: 20px;
    font-size: clamp(10px, 0.9vw, 13px);
}

.integration-table th {
    vertical-align: top !important;
}

.integration-col-filter {
    min-width: 130px;
    width: 100%;
    font-size: 0.8rem;
    padding: 4px 6px;
    border-radius: 4px;
}

.gifw-integration-toolbar {
    position: absolute;
    top: 372.1px;
    /*top: 336.1px;*/
    left: 0.5em;
    z-index: 2000;
}

.gifw-integration-main-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 4px;
    background: #1e88e5; /* mesmo azul dos botões padrões */
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}








/* Cada opção dentro do menu */
.gifw-integration-item {
    background: #005eb8;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap; /* não quebrar em 200 linhas */
}

    /* Ícone das opções */
/* Aumenta um pouco a largura dos itens do menu */
.gifw-integration-menu .gifw-integration-item {
    min-width: 140px; /* ajuste principal */
    max-width: 180px; /* evita ficar gigante no futuro */
    white-space: nowrap; /* impede quebrar linhas */
    overflow: hidden; /* evita texto espirrar */
    text-overflow: ellipsis; /* ... quando o nome for grande */
    padding: 6px 10px; /* só melhora legibilidade */
    justify-content: flex-start;
}

/* Mantém o container alinhado corretamente */
.gifw-integration-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gifw-integration-main-btn i {
    font-size: 1.5rem; /* ajuste aqui */
}
.toast-container,
.toast {
    z-index: 99999 !important;
}