@media (max-width: 1366px) {
    .table-default {
        font-size: 12.5pt;
        line-height: 1;
        width: 100%;
        text-align: center;
    }

    .table-default td {
        font-size: 12pt;
        border-collapse: collapse;
        line-height: 0.9;
        text-align: center;
    }
}

@media screen and (min-width: 1367px) {
    .table-default {
        font-size: 13.5pt;
        line-height: 3;
        width: 100%;
        text-align: center;
    }

    .table-default td {
        font-size: 13pt;
        border-collapse: collapse;
        line-height: 1.6;
        text-align: center;
    }
}

.padding-70 {
    padding-top: 70px;
}

.padding-50 {
    padding-top: 50px;
}

/*VUE SELECT*/
.vueselect-option {
    padding: 4px 6px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
}

.vueselect-nome {
    font-weight: bold;
    color: black;
    margin-bottom: 4px;
}

.vueselect-descricao {
    font-size: 0.85em;
    color: #666;
    line-height: 1.3;
}

.vueselect-selected {
    font-weight: 500;
}

.vueselect-placeholder {
    color: #999;
}

/*TABELA FLUTUANTE*/
.td-text {
    font-size: 0.85rem;
    color: #343a40;
    text-transform: uppercase;
}

.td-text-muted {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
}

.truncate-text {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-1 {
    line-height: 1.1;
}

.text-silver {
    color: #bdc3c7;
}

/* ═══════════════════════════════════════════════
   SEÇÕES DE FORMULÁRIO / MODAL
   ═══════════════════════════════════════════════ */
.section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.section-box {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
}

/* ═══════════════════════════════════════════════
   VUE SELECT — CUSTOMIZAÇÃO GLOBAL
   ═══════════════════════════════════════════════ */
.vs__dropdown-toggle {
    background-color: #ffffff !important;
}

.vs__dropdown-toggle:hover {
    background-color: #ffffff !important;
    border-color: #ddd !important;
}

.vs__dropdown-option:hover {
    background-color: #f8f9fa !important;
}

.vs__dropdown-option--highlight {
    background-color: #f8f9fa !important;
    color: #333 !important;
}

.vs__dropdown-option--selected {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

.vs__dropdown-menu {
    background-color: white !important;
}

/* opção com nome + descrição */
.assunto-option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.assunto-nome {
    font-weight: bold;
    color: black;
    margin-bottom: 4px;
}

.assunto-descricao {
    font-size: 0.85em;
    color: #666;
    line-height: 1.3;
}

/* legenda de descrição abaixo do select selecionado */
.descricao-legenda {
    display: block;
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 4px;
    padding-left: 2px;
    font-style: italic;
}

/* grupos / categorias */
.group-header {
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-left: 3px solid #3b82f6;
    padding: 6px 12px !important;
}

.tipo-categoria-badge {
    color: #3b82f6;
    font-size: 0.85em;
    margin-right: 2px;
}

/* ═══════════════════════════════════════════════
   TABELA DE ITENS ADICIONADOS (formulários)
   ═══════════════════════════════════════════════ */
.doc-table {
    border-collapse: separate;
    border-spacing: 0 4px;
}

.doc-table thead th {
    border: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
    padding: 4px 8px;
}

.doc-table tbody tr {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.doc-table tbody tr:hover {
    background-color: #f1f7ff;
}

.doc-table tbody td {
    padding: 6px 8px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.doc-table tbody tr:hover td {
    border-top-color: #d1e3ff;
    border-bottom-color: #d1e3ff;
}

.doc-table tbody td:first-child {
    border-left: 1px solid #eee;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.doc-table tbody td:last-child {
    border-right: 1px solid #eee;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.doc-table tbody tr:hover td:first-child {
    border-left-color: #d1e3ff;
}

.doc-table tbody tr:hover td:last-child {
    border-right-color: #d1e3ff;
}

/* ═══════════════════════════════════════════════
   UPLOAD DE ARQUIVO
   ═══════════════════════════════════════════════ */
.arquivo-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.arquivo-zone:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f1ff 0%, #d9e8ff 100%);
}

.arquivo-zone:active {
    border-color: #0d6efd;
    background: #d9e8ff;
}

.arquivo-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.arquivo-icon {
    font-size: 3rem;
    color: #0d6efd;
    display: block;
    margin-bottom: 10px;
}

.arquivo-hint {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    word-break: break-word;
    margin: 0;
}

/* ═══════════════════════════════════════════════
   GRID DE VÍNCULOS (formulários com listas)
   ═══════════════════════════════════════════════ */
.vinculo-col {
    padding-bottom: 0.5rem;
}

.vinculo-col-right {
    border-left: 1px solid #dee2e6;
}

.vinculo-subtitle {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════
   MODAIS — SCROLL INTERNO / ADAPTAÇÃO AO VIEWPORT
   ═══════════════════════════════════════════════ */
.modal-dialog-scrollable {
    max-height: calc(100vh - 2rem);
    margin: 1rem auto;
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-body {
    flex: 1;
    overflow-y: auto;
}

/* ═══════════════════════════════════════════════
   RELATÓRIOS — ESTILOS GLOBAIS
   ═══════════════════════════════════════════════ */
.cursor-pointer {
    cursor: pointer;
}

.label-relatorio {
    font-size: 1.05rem !important;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════════
   ABAS (Nav Pills) — Padrão Modais de Detalhes
   ═══════════════════════════════════════════════ */
.section-abas {
    margin-top: 1.5rem;
}

.section-abas .nav-pills {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.section-abas .nav-pills .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    border-radius: 0;
    padding: 0.5rem 1rem;
    border: none;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.section-abas .nav-pills .nav-link:hover {
    background-color: transparent;
    color: #343a40;
}

.section-abas .nav-pills .nav-link.active {
    background-color: transparent;
    color: #0d6efd;
    font-weight: 700;
    border-bottom: 3px solid #0d6efd;
    margin-bottom: -2px;
    padding-bottom: calc(0.5rem - 3px);
}

.section-abas .tab-content {
    background-color: transparent;
    border: none;
    padding: 1.5rem 0;
    margin-top: 0;
}

.section-abas .tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
