/* ==========================================================================
   Estilos: Simulador TRIC — Corredor Bioceânico de Capricórnio
   Identidade Visual Oficial inspirada no Portal do Corredor (corredorbioceanico.org)
   ========================================================================== */

:root {
    /* Paleta Oficial do Corredor Bioceânico de Capricórnio */
    --primary-navy: #2e426d;
    /* Azul Marinho Corporativo Principal */
    --primary-blue: #23408f;
    /* Azul Oceânico Profundo */
    --accent-blue: #6fb6d4;
    /* Azul Celeste / Plano Mestre */
    --accent-red: #d52d1e;
    /* Vermelho Terracota Institucional */
    --accent-yellow: #ffcd1d;
    /* Amarelo Ouro / Recursos e Atas */
    --accent-green: #69b04e;
    /* Verde Sustentabilidade / Notícias */
    --dark-green: #15803d;
    --light-bg: #f4f8fb;
    /* Fundo da Página (Gelo Suave) */
    --card-bg: #ffffff;
    --border-color: #dbe5ec;
    --text-primary: #1e293b;
    --text-navy: #2e426d;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --danger-red: #d52d1e;
    --warning-orange: #ea580c;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-family: var(--font-body);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
}

/* ==========================================================================
   Header Institucional Oficial (corredorbioceanico.org)
   ========================================================================== */
.header-tric {
    background: #ffffff;
    color: var(--text-primary);
    padding: 12px 28px 16px;
    border-bottom: 2px solid #eaf3f7;
    box-shadow: 0 2px 10px rgba(46, 66, 109, 0.06);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 12px;
}

.paises-flags-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.flag-chip {
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag-svg-chip {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    display: inline-block;
    vertical-align: middle;
}

.flag-svg-icon {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    vertical-align: middle;
}

.flag-svg-mini {
    width: 19px;
    height: 13px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.22);
    display: inline-block;
    vertical-align: middle;
    border-radius: 0;
    margin-right: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.fronteira-flags-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Seletor de Idioma Integrado Oficial: Cápsula, Globo e Slider Deslizante */
.cbc-language-switcher-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 2px 3px 2px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.cbc-language-switcher-wrap:hover {
    border-color: #94a3b8;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.lang-globe-icon {
    font-size: 12px;
    color: var(--primary-navy);
    opacity: 0.85;
}

.cbc-language-chooser {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Indicador deslizante animado (Slider) */
.lang-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 56px;
    height: 24px;
    background: var(--primary-navy);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(46, 66, 109, 0.32);
    z-index: 1;
    pointer-events: none;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.34, 1.25, 0.64, 1);
}

/* Translação para a opção espanhol (56px largura + 2px gap = 58px) */
.cbc-language-chooser[data-lang="es"] .lang-slider,
.cbc-language-chooser:has(#btn-lang-es.active) .lang-slider {
    transform: translateX(58px);
}

.cbc-language-chooser .lang-item {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 24px;
    box-sizing: border-box;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: uppercase;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: color 0.22s ease;
    user-select: none;
    -webkit-appearance: none;
}

.cbc-language-chooser .lang-item:hover {
    color: var(--primary-navy);
}

.lang-flag-mini {
    width: 15px;
    height: 11px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    display: inline-block;
    vertical-align: middle;
    transition: box-shadow 0.22s ease;
}

.cbc-language-chooser .lang-item.active {
    color: #ffffff;
    font-weight: 700;
}

.cbc-language-chooser .lang-item.active:hover {
    color: #ffffff;
}

.cbc-language-chooser .lang-item.active .lang-flag-mini {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 52px;
    height: 56px;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
    cursor: pointer;
}

.header-logo-link:hover {
    width: 184px;
    opacity: 1;
}

.header-logo-img {
    height: 56px;
    width: 182px;
    min-width: 182px;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.header-app-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary-navy);
    line-height: 1.25;
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid var(--accent-blue);
    max-width: 440px;
    letter-spacing: -0.2px;
    transition: border-left-color 0.3s ease;
}

.header-logo-link:hover+.header-app-title {
    border-left-color: #0284c7;
}

@media (max-width: 900px) {
    .header-app-title {
        font-size: 12px;
        padding-left: 8px;
        max-width: 100%;
    }
}

/* Logos Institucionais de Parceria no Cabeçalho */
.header-partner-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.partner-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
}

.partner-logo-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.header-partner-img {
    display: block;
    object-fit: contain;
}

.logo-ontl-header {
    height: 34px;
    width: auto;
}

.logo-infra-header {
    height: 80px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(24%) sepia(28%) saturate(1478%) hue-rotate(182deg) brightness(92%) contrast(90%);
}

.partner-divider {
    width: 1px;
    height: 24px;
    background-color: #cbd5e1;
}

.btn-header-search {
    background-color: #f8fafc;
    color: var(--primary-navy);
    border: 1px solid #cbd5e1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.btn-header-search:hover {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

@media (max-width: 900px) {
    .header-partner-logos {
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
        gap: 12px;
    }

    .logo-ontl-header {
        height: 28px;
    }

    .logo-infra-header {
        height: 64px;
    }
}

/* Menu de Blocos Coloridos Oficiais CBC (Zero Border-Radius) */
.cbc-nav-blocks {
    display: flex;
    align-items: stretch;
    gap: 2px;
    flex-wrap: wrap;
}

.nav-block {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 10px 14px;
    border: none;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.nav-block:hover {
    filter: brightness(0.92);
}

.block-red {
    background-color: #d52d1e;
}

.block-sky {
    background-color: #6fb6d4;
}

.block-navy {
    background-color: #2e426d;
}

.block-yellow {
    background-color: #ffcd1d;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.block-green {
    background-color: #69b04e;
}

.block-search {
    background-color: #f1f5f9;
    color: #475569;
    padding: 10px 14px;
    font-size: 13px;
}

.block-search:hover {
    background-color: #e2e8f0;
    color: #2e426d;
}

/* ==========================================================================
   Banner Panorâmico Oficial do Corredor com as 4 Cifras Estratégicas
   Identidade Visual: corredorbioceanico.org
   ========================================================================== */
.cbc-hero-section {
    width: 100%;
    background-color: #ffffff;
    margin-bottom: 24px;
}

.cbc-hero-container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 20px;
}

.cbc-hero-banner {
    width: 100%;
    min-height: 480px;
    background-size: cover;
    background-position: center 36%;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(46, 66, 109, 0.08);
}

.hero-diagonal-cut {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    height: 46px;
    background-color: #ffffff;
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
    z-index: 10;
}

.hero-location-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(22, 38, 59, 0.82);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cifras-container-inner {
    width: 100%;
    padding: 0 16px 16px 16px;
    z-index: 5;
}

.cifras-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
}

@media (max-width: 1100px) {
    .cbc-hero-banner {
        min-height: auto;
    }

    .cifras-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .cifras-grid {
        grid-template-columns: 1fr;
    }
}

.cifra-card {
    border-radius: 0;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    min-height: 190px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cifra-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.cifra-card h3 {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.cifra-card p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
    color: #ffffff;
    opacity: 0.98;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.cifra-vermelha {
    background-color: #d52d1e;
}

.cifra-celeste {
    background-color: #6fb6d4;
}

.cifra-amarela {
    background-color: #ffcd1d;
}

.cifra-verde {
    background-color: #69b04e;
}

/* ==========================================================================
   Layout Principal (Split View: Simulador + Mapa)
   ========================================================================== */
.main-wrapper {
    max-width: 1680px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.split-container {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 20px;
    min-height: 640px;
}

@media (max-width: 1150px) {
    .split-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Painel de Controle e Parâmetros (Esquerda) — Zero Border Radius
   ========================================================================== */
.simulator-panel {
    background: var(--card-bg);
    border-radius: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset-map {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 0;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-map:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.panel-body {
    padding: 18px;
    overflow-y: auto;
    max-height: 570px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Banner de Diretriz da Gerência */
.gerencia-diretriz-box {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-left: 4px solid #f59e0b;
    border-radius: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diretriz-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gerencia-diretriz-box p {
    font-size: 11.5px;
    color: #78350f;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   Configuração de Trajeto Estilo Google Maps (Menos Cliques e Alta Usabilidade)
   ========================================================================== */
.gmaps-route-card {
    background: #ffffff;
    border: 1px solid #dbe5ec;
    border-radius: 4px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(46, 66, 109, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.gmaps-route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.gmaps-route-header label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.gmaps-flow-badge {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.gmaps-flow-badge.exportacao {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gmaps-flow-badge.importacao {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* O Widget Principal: Trilha + Inputs + Botão Inverter */
.gmaps-route-box {
    display: flex;
    align-items: stretch;
    gap: 10px;
    position: relative;
}

/* Coluna 1: Trilha Visual da Rota (Google Maps) */
.gmaps-trail-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 22px;
    padding: 10px 0;
    flex-shrink: 0;
}

.gmaps-circle-icon {
    width: 13px;
    height: 13px;
    border: 2.5px solid #475569;
    border-radius: 50%;
    background: #ffffff;
    display: block;
}

.gmaps-trail-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    margin: 4px 0;
}

.gmaps-trail-dots span {
    width: 3.5px;
    height: 3.5px;
    background-color: #94a3b8;
    border-radius: 50%;
    display: block;
}

.gmaps-pin-icon {
    font-size: 17px;
    color: #dc2626;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(220, 38, 38, 0.25));
}

/* Coluna 2: Os Inputs de Origem e Destino */
.gmaps-inputs-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.gmaps-input-wrapper {
    position: relative;
    width: 100%;
}

.gmaps-input-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.gmaps-input-field:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.gmaps-input-field.focused {
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.14);
}

.gmaps-flag-slot {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gmaps-field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gmaps-field-label {
    font-size: 9.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.gmaps-field-value {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gmaps-caret {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.gmaps-input-wrapper.open .gmaps-caret {
    transform: rotate(180deg);
    color: #0284c7;
}

.gmaps-search-icon {
    font-size: 13px;
    color: #0284c7;
}

/* Coluna 3: Botão Inverter (Swap) estilo Google Maps */
.gmaps-swap-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-left: 2px;
}

.btn-gmaps-swap {
    width: 38px;
    height: 38px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-gmaps-swap:hover {
    background: #f1f5f9;
    color: #0284c7;
    border-color: #0284c7;
    transform: rotate(180deg);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

/* Dropdown Menu Flutuante */
.gmaps-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #ffffff;
    border: 1px solid #0284c7;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 380px;
    box-sizing: border-box;
    animation: fadeIn 0.15s ease-out;
}

.gmaps-dropdown-header {
    background: #f1f5f9;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.gmaps-dropdown-search-wrap {
    padding: 8px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gmaps-dropdown-search-wrap i {
    color: #94a3b8;
    font-size: 13px;
    flex-shrink: 0;
}

.gmaps-dropdown-search-input {
    flex: 1;
    width: 100%;
    padding: 7px 10px;
    font-size: 12.5px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.gmaps-dropdown-search-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.gmaps-dropdown-list {
    display: flex;
    flex-direction: column;
}

.gmaps-dropdown-country-group {
    background: #f8fafc;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.6px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 47px;
    z-index: 4;
}

.gmaps-dropdown-country-group:first-child {
    border-top: none;
}

.gmaps-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
    box-sizing: border-box;
    width: 100%;
}

.gmaps-dropdown-item:last-child {
    border-bottom: none;
}

.gmaps-dropdown-item:hover {
    background-color: #f0f9ff;
}

.gmaps-dropdown-item.active {
    background-color: #e0f2fe;
    font-weight: 600;
}

.gmaps-dropdown-item .flag-svg-chip {
    flex-shrink: 0;
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.gmaps-dropdown-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.gmaps-dropdown-text strong {
    font-size: 13px;
    color: #0f172a;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
}

.gmaps-dropdown-text small {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}

.gmaps-dropdown-item i.fa-check {
    color: #0284c7;
    font-size: 13px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Paradas Intermediárias no estilo Google Maps Trail */
.gmaps-stops-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gmaps-stop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    animation: fadeIn 0.15s ease-out;
}

.gmaps-stop-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    flex-shrink: 0;
}

.gmaps-stop-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1e293b;
}

.btn-gmaps-remove-stop {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-gmaps-remove-stop:hover {
    color: #e11d48;
    background: #ffe4e6;
}

/* Barra de Ações Rápidas em 1 Clique (Menos Cliques) */
.gmaps-quick-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

.quick-country-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.quick-country-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.quick-country-tab {
    font-family: var(--font-heading);
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quick-country-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.quick-country-tab.active {
    background: #2e426d;
    color: #ffffff;
    border-color: #2e426d;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(46, 66, 109, 0.25);
}

.quick-row,
.quick-destinos-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(2, 132, 199, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    }
}

.highlight-pulse {
    animation: pulseGlow 1.2s ease-out;
    border-color: #0284c7 !important;
}

.quick-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.quick-pills-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.quick-pill {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.quick-pill:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #0f172a;
}

.quick-pill.active {
    background: #2e426d;
    color: #ffffff;
    border-color: #2e426d;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(46, 66, 109, 0.2);
}

.quick-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gmaps-add-stop-row {
    margin-top: 2px;
    display: flex;
    justify-content: flex-start;
}

.btn-add-stop-link {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 700;
    color: #0284c7;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-add-stop-link:hover {
    color: #0369a1;
    background: #f0f9ff;
    text-decoration: underline;
}

.doc-mesa1-card {
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.06);
}

.doc-mesa1-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.map-hint-text {
    font-size: 10.5px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Container de Seleção de Passagens Fronteiriças */
.fronteiras-selection-container {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fronteiras-help-txt {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
}

.passo-status-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.passo-status-card.passo-zoomable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.passo-status-card.passo-zoomable:hover {
    background: #f8fafc;
    border-color: #00933d;
    box-shadow: 0 3px 10px rgba(0, 147, 61, 0.12);
    transform: translateY(-1px);
}

.passo-status-card.passo-zoomable:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.p-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.p-card-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.p-num-badge {
    width: 22px;
    height: 22px;
    border-radius: 0;
    background: #cbd5e1;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
}

.p-num-badge.p-btn-zoom {
    cursor: pointer;
    position: relative;
}

.p-num-badge.p-btn-zoom .p-zoom-ico {
    display: none;
    font-size: 11px;
}

.p-num-badge.p-btn-zoom:hover,
.passo-zoomable:hover .p-num-badge.p-btn-zoom {
    background: #00933d;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(0, 147, 61, 0.35);
}

.p-num-badge.p-btn-zoom:hover .p-num-val,
.passo-zoomable:hover .p-num-badge.p-btn-zoom .p-num-val {
    display: none;
}

.p-num-badge.p-btn-zoom:hover .p-zoom-ico,
.passo-zoomable:hover .p-num-badge.p-btn-zoom .p-zoom-ico {
    display: inline-block;
}

.p-num-badge.active-badge {
    background: #00933d;
    color: #ffffff;
}

.btn-fronteira-zoom-hint {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-fronteira-zoom-hint:hover,
.passo-zoomable:hover .btn-fronteira-zoom-hint {
    background: #00933d;
    border-color: #00933d;
    color: #ffffff;
    transform: scale(1.06);
}

.p-info {
    display: flex;
    flex-direction: column;
}

.p-info strong {
    font-size: 11.5px;
    color: var(--primary-navy);
}

.p-info small {
    font-size: 10px;
    color: var(--text-secondary);
}

.badge-status-obrigatoria {
    background: #dcfce7;
    color: #15803d;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.passo-selecao-box {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.passo-selecao-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.passo-selecao-header strong {
    font-size: 12px;
    color: var(--primary-navy);
}

.passo-selecao-header small {
    font-size: 10.5px;
    color: #b45309;
    display: block;
}

.passos-radio-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-passo-option {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-passo-option:hover {
    border-color: #94a3b8;
}

.card-passo-option.active {
    border-color: #00933d;
    background: #f0fdf4;
    box-shadow: 0 2px 6px rgba(0, 147, 61, 0.12);
}

.card-passo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.card-radio-label strong {
    font-size: 13px;
    color: var(--primary-navy);
}

.badge-alt-pill {
    background: #ede9fe;
    color: #6d28d9;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 0;
}

.card-passo-desc {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.card-passo-desc span {
    font-size: 11px;
    color: #334155;
    font-weight: 500;
}

.card-passo-desc small {
    font-size: 10px;
    color: #64748b;
}

.custom-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background-color: #ffffff;
    color: var(--text-primary);
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}

.custom-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(15, 110, 158, 0.2);
}

/* Dropdown de Tipo de Carga com Ícones Vetoriais (Política Zero Emoji) */
.cargo-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.cargo-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    background-color: #ffffff;
    user-select: none;
}

.cargo-dropdown-trigger:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.cargo-caret {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.cargo-dropdown-wrapper.open .cargo-caret {
    transform: rotate(180deg);
    color: var(--primary-navy);
}

.cargo-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.16), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    z-index: 1000;
    border-radius: 0;
    overflow: hidden;
}

.cargo-dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.3;
}

.cargo-dropdown-option:last-child {
    border-bottom: none;
}

.cargo-dropdown-option.active {
    background-color: #f0fdf4;
    color: #166534;
    font-weight: 700;
    cursor: pointer;
}

.cargo-opt-icon-active {
    color: #15803d;
    font-size: 11px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.cargo-dropdown-option.locked {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    user-select: none;
}

.cargo-opt-icon-lock {
    color: #94a3b8;
    font-size: 11px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* Destaque da Alfândega Selecionada em Cadastramento de Taras */
.tara-card-highlighted {
    border: 2px solid #00933d !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 18px rgba(0, 147, 61, 0.35) !important;
    animation: docCardPulse 1.1s ease-in-out infinite alternate !important;
    position: relative;
    z-index: 5;
}

.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Banner de Aviso */
.banner-aviso {
    background: #eff6ff;
    border-left: 4px solid var(--accent-blue);
    padding: 10px 12px;
    border-radius: 0;
    font-size: 12px;
    color: #1e3a8a;
    display: none;
}

/* ==========================================================================
   Cards de Resumo da Rota
   ========================================================================== */
.route-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.metric-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: rgba(15, 110, 158, 0.12);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.metric-data span {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
}

.metric-data strong {
    font-size: 14px;
    color: var(--primary-navy);
}

.badge-transito-box {
    margin-top: 4px;
}

.badge-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-primary {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

/* Postos de Fronteira */
.fronteiras-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.fronteiras-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fronteira-chip {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Card Completo de Fronteira e Aduana */
.fronteira-card-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fronteira-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fronteira-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fronteira-icon {
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: #fdf2f8;
    color: #bd1b70;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.fronteira-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fronteira-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.fronteira-title-line strong {
    font-size: 13px;
    color: var(--primary-navy);
    font-weight: 700;
}

.fronteira-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
}

.badge-altitude {
    font-size: 10px;
    background: #ede9fe;
    color: #6d28d9;
    padding: 1px 6px;
    border-radius: 0;
    width: fit-content;
    font-weight: 600;
}

.badge-rio {
    font-size: 10px;
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 6px;
    border-radius: 0;
    font-weight: 600;
}

.fronteira-aduanas-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 8px;
    border-radius: 0;
    color: #334155;
}

.fronteira-aduanas-bar i {
    color: #0284c7;
}

.fronteira-docs-panel {
    background: #fbfcfe;
    border: 1px dashed #cbd5e1;
    border-radius: 0;
    padding: 8px 10px;
}

.fronteira-docs-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fronteira-docs-subtitle i {
    color: #00933d;
}

.fronteira-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip-doc-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.chip-doc-btn i {
    color: #64748b;
    font-size: 10px;
    transition: color 0.2s ease;
}

.chip-doc-btn:hover {
    background: #00933d;
    border-color: #00732f;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 147, 61, 0.25);
}

.chip-doc-btn:hover i {
    color: #ffffff;
}

.fronteira-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.btn-ir-documentacao-fronteira {
    flex: 1;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ir-documentacao-fronteira:hover {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.btn-zip-fronteira {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-zip-fronteira:hover {
    background: #00933d;
    border-color: #00732f;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 147, 61, 0.25);
    transform: translateY(-1px);
}

.btn-zip-fronteira:disabled,
.btn-zip-mesa:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-zip-mesa {
    background: #0f6e9e !important;
    color: #ffffff !important;
    border: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-zip-mesa:hover {
    background: #0c577e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 110, 158, 0.3);
}

/* Banner de Filtro Ativo na Documentação */
.doc-filtro-banner {
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    border-radius: 0;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: fadeInDoc 0.3s ease;
}

.doc-filtro-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #065f46;
    font-size: 13px;
}

.doc-filtro-banner-content i {
    font-size: 18px;
    color: #059669;
}

.doc-filtro-banner-content div {
    display: flex;
    flex-direction: column;
}

.doc-filtro-banner-content strong {
    font-size: 13px;
    color: #065f46;
}

.doc-filtro-banner-content span {
    font-size: 12px;
    color: #047857;
}

.btn-limpar-filtro-doc {
    background: #ffffff;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-limpar-filtro-doc:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

/* Efeito de Destaque Pulsante no Card Redirecionado */
.doc-card-highlighted {
    animation: docCardPulse 1.2s ease-in-out infinite alternate !important;
    border: 2px solid #00933d !important;
    position: relative;
    z-index: 10;
}

@keyframes docCardPulse {
    0% {
        box-shadow: 0 0 0 rgba(0, 147, 61, 0.2);
    }

    100% {
        box-shadow: 0 0 24px rgba(0, 147, 61, 0.6);
        border-color: #00e676 !important;
    }
}


/* ==========================================================================
   Mapa Interativo (Direita)
   ========================================================================== */
.map-panel {
    background: var(--card-bg);
    border-radius: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.map-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.map-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.map-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Seletor de Mapa Base no Topo */
.basemap-pill-toggle {
    display: inline-flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 0;
    gap: 3px;
}

.btn-base-pill {
    background: transparent;
    border: none;
    padding: 5px 12px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-base-pill:hover {
    color: var(--primary-navy);
}

.btn-base-pill.active {
    background: #ffffff;
    color: var(--primary-navy);
    box-shadow: 0 1px 3px rgba(46, 66, 109, 0.18);
}

.btn-base-pill.active[data-base="osm"] {
    color: var(--primary-blue);
}

.btn-base-pill.active[data-base="satelite"] {
    color: #0f766e;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 580px;
    background-color: #6fb6d4;
    /* Padrão Temático */
    transition: background-color 0.3s ease;
}

#map.basemap-osm {
    background-color: #f1f5f9 !important;
}

#map.basemap-satelite {
    background-color: #0b111e !important;
}

/* Legenda do Mapa */
.map-legend {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #cbd5e1;
    font-size: 11px;
    max-width: 230px;
    line-height: 1.4;
}

.map-legend h4 {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--primary-navy);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.legend-color {
    width: 18px;
    height: 10px;
    border-radius: 0;
    display: inline-block;
}

/* Popups e Tooltips */
.map-popup {
    padding: 4px;
    max-width: 220px;
}

.popup-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 0;
    display: inline-block;
    margin-bottom: 4px;
}

.tag-porto {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-cidade {
    background: #fef3c7;
    color: #b45309;
}

.tag-fronteira {
    background: #fdf2f8;
    color: #be185d;
}

.map-popup h4 {
    font-size: 14px;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.map-popup p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.map-popup .popup-desc {
    font-size: 11px;
    line-height: 1.3;
}

.btn-popup-select {
    width: 100%;
    margin-top: 8px;
    padding: 6px;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.btn-popup-select:hover {
    background: var(--primary-blue);
}

/* ==========================================================================
   Painel de Documentação e Requisitos (Mockup TRIC)
   ========================================================================== */
.documentation-container {
    background: var(--card-bg);
    border-radius: 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-bottom: 30px;
}

.doc-section-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.doc-section-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-search-box {
    position: relative;
    width: 360px;
    max-width: 100%;
}

.doc-search-box input {
    width: 100%;
    padding: 9px 34px 9px 36px;
    border: 1.5px solid var(--border-color);
    border-radius: 0;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.doc-search-box input:focus {
    border-color: #00933d;
    box-shadow: 0 0 0 3px rgba(0, 147, 61, 0.15);
}

.doc-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.btn-clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 0;
    transition: color 0.15s ease, background 0.15s ease;
}

.btn-clear-search:hover {
    color: #e11d48;
    background: #ffe4e6;
}

/* Dropdown de Autocomplete e Sugestões */
.doc-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 380px;
    overflow-y: auto;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    animation: fadeInDropdown 0.15s ease;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-section-header {
    padding: 8px 12px 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.autocomplete-section-header i {
    color: #00933d;
}

.autocomplete-item {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #f0fdf4;
    border-left-color: #00933d;
}

.autocomplete-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.autocomplete-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: #f8fafc;
    color: #00933d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.autocomplete-item:hover .autocomplete-item-icon,
.autocomplete-item.selected .autocomplete-item-icon {
    background: #00933d;
    color: #ffffff;
    border-color: #00732f;
}

.autocomplete-item-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.autocomplete-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item-desc {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-cat-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Cores por Categoria */
.cat-porte {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.cat-licenca {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.cat-habilitacao {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.cat-restricao {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.cat-seguro {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.cat-fronteira {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

.cat-geral {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

mark.highlight-text {
    background: #fef08a;
    color: #854d0e;
    padding: 0 1px;
    border-radius: 0;
    font-weight: 700;
}

.autocomplete-empty {
    padding: 16px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.autocomplete-empty i {
    font-size: 20px;
    color: #94a3b8;
}

/* Navegação por Abas */
.doc-tabs-nav {
    display: flex;
    overflow-x: auto;
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    padding: 0 10px;
}

.doc-tab-btn {
    padding: 14px 18px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.doc-tab-btn:hover {
    color: var(--primary-navy);
    background: #f8fafc;
}

.doc-tab-btn.active {
    color: var(--primary-navy);
    border-bottom-color: var(--primary-navy);
    background: #f0f4f9;
    font-weight: 700;
}

/* Conteúdo da Aba */
.doc-tab-content {
    padding: 24px;
}

.doc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.category-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-big-icon {
    font-size: 28px;
    color: var(--accent-blue);
    width: 48px;
    height: 48px;
    background: #e0f2fe;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title-box h3 {
    font-size: 16px;
    color: var(--primary-navy);
}

.category-title-box p {
    font-size: 13px;
    color: var(--text-secondary);
}

.mockup-indicator {
    font-size: 12px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 6px 12px;
    border-radius: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Grid de Cards de Documentos */
.doc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .doc-cards-grid {
        grid-template-columns: 1fr;
    }
}

.doc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.doc-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-obrigatorio {
    border-top: 4px solid var(--danger-red);
}

.card-facultativo {
    border-top: 4px solid var(--accent-blue);
}

.doc-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.doc-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-header-left h4 {
    font-size: 15px;
    color: var(--primary-navy);
    font-weight: 700;
}

.doc-orgao {
    font-size: 12px;
    color: var(--text-secondary);
}

.badge-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 0;
    width: fit-content;
}

.doc-validade {
    font-size: 11px;
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 0;
    white-space: nowrap;
}

.doc-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.doc-resumo {
    color: #475569;
    line-height: 1.5;
    text-align: justify;
}

.doc-requisitos-lista ul {
    list-style: none;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.doc-requisitos-lista li {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.doc-requisitos-lista li i {
    color: var(--accent-blue);
    margin-top: 3px;
    font-size: 10px;
}

.doc-normativa-box {
    background: #f8fafc;
    border-radius: 0;
    padding: 8px 10px;
    font-size: 11px;
    color: #334155;
    border-left: 3px solid #94a3b8;
}

.doc-card-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-action-mock {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action-mock:hover {
    background: var(--primary-navy);
    color: #ffffff;
}

.mock-tag {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   Estilos da Documentação Oficial (TRIC / ONTL / ABTI)
   ========================================================================== */
.doc-official-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-official-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.2s ease;
}

.doc-official-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.doc-official-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.doc-official-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.doc-type-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0;
    text-transform: uppercase;
}

.doc-type-badge.badge-etc {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.doc-type-badge.badge-ctc {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.doc-official-body {
    padding: 20px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #334155;
}

.doc-official-body p {
    margin-bottom: 12px;
}

.doc-official-body ul {
    margin: 10px 0 16px 20px;
    padding-left: 0;
}

.doc-official-body li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 4px;
}

.doc-official-body li::marker {
    color: var(--accent-blue);
}

.doc-official-body strong {
    color: var(--primary-navy);
}

.doc-official-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    margin: 14px auto;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.doc-official-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    overflow: hidden;
}

.doc-official-body th {
    background: #f1f5f9;
    color: var(--primary-navy);
    font-weight: 700;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    text-align: left;
}

.doc-official-body td {
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
}

.doc-official-body tr:nth-child(even) td {
    background: #f8fafc;
}

/* Links de Download e Fontes */
.doc-official-body a[download],
.doc-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 5px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin: 4px 4px 4px 0;
    transition: all 0.2s ease;
}

.doc-official-body a[download]:hover,
.doc-download-link:hover {
    background: #dcfce7;
    border-color: #86efac;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(22, 101, 52, 0.15);
}

.doc-official-body a[download]::before,
.doc-download-link::before {
    content: "\f019";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
}

.doc-official-body a[target="_blank"]:not([download]),
.doc-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin: 4px 4px 4px 0;
    transition: all 0.2s ease;
}

.doc-official-body a[target="_blank"]:not([download]):hover,
.doc-source-link:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    text-decoration: underline;
}

.doc-official-body a[target="_blank"]:not([download])::after,
.doc-source-link::after {
    content: "\f08e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 10px;
}

.doc-official-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-official-footer .source-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #475569;
}

/* Sub-grupo Header */
.doc-subgroup-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-navy);
    background: #e2e8f0;
    padding: 10px 16px;
    border-radius: 0;
    margin: 20px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--accent-blue);
}

/* Grid de Cadastramento das Taras */
.taras-intro-box {
    background: #f8fafc;
    border-left: 4px solid var(--accent-blue);
    padding: 14px 16px;
    border-radius: 0;
    font-size: 13px;
    color: #334155;
    margin-bottom: 16px;
    line-height: 1.5;
}

.taras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.tara-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: all 0.2s ease;
}

.tara-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.tara-route-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-navy);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tara-doc-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.tara-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Passo a Passo */
.passo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.passo-item-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.passo-item-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.passo-number-badge {
    background: var(--primary-navy);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.passo-content {
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
}

.passo-content strong {
    color: var(--primary-navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-tric {
    background: var(--primary-navy);
    color: #94a3b8;
    padding: 24px 20px;
    font-size: 12px;
    text-align: center;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.footer-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.footer-logo-link:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.footer-logo-img {
    display: block;
    object-fit: contain;
}

.logo-ontl-footer {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-infra-footer {
    height: 80px;
    width: auto;
}

.footer-text-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.footer-inner a {
    color: #38bdf8;
    text-decoration: none;
}

/* ==========================================================================
   Botões do Marco Estratégico e Mesa 1 (corredorbioceanico.org)
   ========================================================================== */
.btn-pesos-mesa {
    background: linear-gradient(135deg, #23408f 0%, #2e426d 100%);
    color: #ffffff;
    border: none;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(35, 64, 143, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-pesos-mesa:hover {
    background: linear-gradient(135deg, #1b3273 0%, #1e2d4d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 64, 143, 0.35);
}

/* ==========================================================================
   Modal: Critérios Comuns Máximos de Pesos e Dimensões (Mesa 1)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 47, 70, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-title-box i {
    font-size: 26px;
    color: #ffed00;
}

.modal-title-box h3 {
    font-size: 17px;
    font-weight: 700;
}

.modal-title-box p {
    font-size: 12px;
    color: #cbd5e1;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.btn-close-modal:hover {
    opacity: 1;
}

.modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-box-mesa {
    background: #eff6ff;
    border-left: 4px solid var(--accent-blue);
    padding: 12px 14px;
    border-radius: 0;
    font-size: 12px;
    color: #1e3a8a;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.alert-box-mesa i {
    font-size: 16px;
    color: var(--accent-blue);
    margin-top: 2px;
}

.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.table-pesos {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: center;
}

.table-pesos th {
    background: #f8fafc;
    color: var(--primary-navy);
    padding: 10px 12px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.table-pesos th.col-comum {
    background: #ecfdf5;
    color: #065f46;
}

.table-pesos td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.table-pesos tbody tr:hover {
    background-color: #f8fafc;
}

.table-pesos td:first-child {
    text-align: left;
}

.table-pesos .td-comum {
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}

.table-pesos .td-warning {
    background: #fefce8;
    color: #854d0e;
}

.table-pesos .tr-destaque {
    background-color: #f0f9ff;
}

.modal-footer-notes {
    background: #fffbeb;
    border-radius: 0;
    padding: 12px 14px;
    font-size: 11px;
    color: #92400e;
    line-height: 1.5;
}

.modal-footer {
    background: #f8fafc;
    padding: 14px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-primary-mesa {
    background: var(--primary-navy);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-mesa:hover {
    background: var(--primary-blue);
}

/* ==========================================================================
   Botão de Ação: Emitir Extrato
   ========================================================================== */
.action-export-box {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.btn-gerar-extrato {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 47, 70, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-gerar-extrato:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 47, 70, 0.35);
    background: linear-gradient(135deg, #031e2d 0%, #063c5c 100%);
}

.btn-gerar-extrato i {
    font-size: 16px;
    color: #ffed00;
}

/* ==========================================================================
   Modal do Extrato de Simulação
   ========================================================================== */
.modal-card-extrato {
    max-width: 1050px;
}

.modal-header-extrato {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #0c364f 100%);
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-extrato-action {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-extrato-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-extrato-action.btn-imprimir {
    background: #ffed00;
    color: #052f46;
    border: none;
    font-weight: 700;
}

.btn-extrato-action.btn-imprimir:hover {
    background: #ffffff;
}

.modal-body-extrato {
    background: #f8fafc;
    padding: 24px;
}

.extrato-footer-info {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Documento do Extrato (Folha Timbrada Oficial)
   ========================================================================== */
.extrato-documento {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #1e293b;
    font-family: var(--font-family);
}

.extrato-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid var(--primary-navy);
    padding-bottom: 18px;
    gap: 20px;
    flex-wrap: wrap;
}

.extrato-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.extrato-logo {
    width: 52px;
    height: 52px;
    background: var(--primary-navy);
    color: #ffed00;
    font-size: 26px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extrato-brand h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
}

.extrato-brand h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-top: 2px;
}

.extrato-brand p {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.extrato-protocolo-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    padding: 10px 14px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.label-proto {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.num-proto {
    font-size: 14px;
    color: var(--primary-navy);
    font-family: monospace;
}

.data-proto {
    font-size: 10px;
    color: var(--text-secondary);
}

.badge-piloto-proto {
    font-size: 9px;
    background: #d97706;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 0;
    font-weight: 700;
    margin-top: 4px;
    display: inline-block;
}

/* Seções do Extrato */
.extrato-secao {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.secao-titulo {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extrato-grid-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .extrato-grid-kpis {
        grid-template-columns: 1fr 1fr;
    }
}

.kpi-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-secondary);
}

.kpi-valor {
    font-size: 14px;
    color: var(--primary-navy);
    margin: 2px 0;
}

.kpi-valor.text-destaque {
    color: #0284c7;
}

.kpi-sub {
    font-size: 10px;
    color: var(--text-muted);
}

.extrato-subdetalhes {
    background: #f8fafc;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.extrato-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .extrato-grid-2col {
        grid-template-columns: 1fr;
    }
}

.info-card-extrato {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.info-card-extrato p {
    font-size: 13px;
    color: var(--primary-navy);
}

.info-card-extrato small {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.tabela-extrato {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    border: 1px solid #e2e8f0;
}

.tabela-extrato th {
    background: #f1f5f9;
    padding: 8px 10px;
    text-align: left;
    font-weight: 700;
    color: var(--primary-navy);
    border-bottom: 1px solid #cbd5e1;
}

.tabela-extrato td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.grid-pesos-resumo {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .grid-pesos-resumo {
        grid-template-columns: repeat(2, 1fr);
    }
}

.peso-item {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0;
    padding: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.peso-item span {
    font-size: 9px;
    font-weight: 700;
    color: #166534;
}

.peso-item strong {
    font-size: 14px;
    color: #15803d;
    margin: 2px 0;
}

.peso-item small {
    font-size: 10px;
    color: #166534;
}

.extrato-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 600px) {
    .extrato-checklist-grid {
        grid-template-columns: 1fr;
    }
}

.check-item {
    font-size: 11px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-success {
    color: #16a34a;
}

.extrato-footer-bloco {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extrato-carimbo {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}

.extrato-disclaimer {
    font-size: 10px;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.4;
}

/* ==========================================================================
   Estilos de Impressão (@media print)
   ========================================================================== */
@media print {
    body * {
        visibility: hidden;
    }

    #modal-extrato,
    #modal-extrato * {
        visibility: visible;
    }

    #modal-extrato {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        backdrop-filter: none !important;
        display: block !important;
        z-index: 99999;
    }

    .modal-card-extrato {
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        max-height: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .modal-header-extrato,
    .modal-footer,
    .btn-close-modal,
    .modal-header-actions {
        display: none !important;
    }

    .modal-body-extrato {
        padding: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
    }

    .extrato-documento {
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   Estilos de Paradas Intermediárias / Waypoints
   ========================================================================== */
.paradas-box-container {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s;
}

.paradas-box-container:focus-within {
    border-color: #f59e0b;
}

.paradas-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-paradas-pill {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 0;
    transition: all 0.2s;
}

.badge-paradas-active {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.lista-paradas-ativas {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.empty-paradas-msg {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    margin: 0;
    padding: 4px 0;
}

.parada-item-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #f59e0b;
    border-radius: 0;
    padding: 6px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.parada-chip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.parada-badge-num {
    background: #f59e0b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parada-chip-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.parada-chip-info strong {
    font-size: 12px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.parada-chip-info small {
    font-size: 10px;
    color: #64748b;
}

.btn-remove-parada {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 0;
    transition: all 0.2s;
    line-height: 1;
}

.btn-remove-parada:hover {
    color: #ef4444;
    background: #fee2e2;
}

.add-parada-inline {
    display: flex;
    gap: 6px;
}

.custom-select-sm {
    flex: 1;
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    background: #ffffff;
    color: #334155;
    outline: none;
    transition: border-color 0.2s;
}

.custom-select-sm:focus {
    border-color: #f59e0b;
}

.btn-add-parada {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-add-parada:hover {
    background: #d97706;
}

.btn-add-parada:active {
    transform: scale(0.97);
}

/* Tooltip customizada para marcadores de Parada no Mapa */
.stop-tooltip {
    background: #78350f !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    border-radius: 0 !important;
    padding: 3px 7px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.stop-tooltip::before {
    border-top-color: #78350f !important;
}

/* Ações no Popup do Mapa */
.popup-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e1;
}

.btn-pop-action {
    padding: 4px 6px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.15s;
}

.btn-pop-origem {
    background: #00933d;
    color: #ffffff;
}

.btn-pop-origem:hover {
    background: #00732f;
}

.btn-pop-parada {
    background: #f59e0b;
    color: #ffffff;
}

.btn-pop-parada:hover {
    background: #d97706;
}

.btn-pop-destino {
    background: #bd1b70;
    color: #ffffff;
}

.btn-pop-destino:hover {
    background: #9b135b;
}

/* Paradas no Extrato de Simulação */
.extrato-paradas-box {
    margin-top: 6px;
}

.parada-vazia-txt {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

.paradas-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.parada-tag-card {
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 0;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.parada-tag-card .p-num {
    background: #f59e0b;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parada-tag-card strong {
    color: #1e293b;
}

.parada-tag-card small {
    color: #64748b;
}

/* Banner de Aviso de Execução Local file:/// */
.banner-file-protocol {
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #92400e;
    font-size: 12px;
    padding: 8px 24px;
    position: relative;
    z-index: 1000;
}

.banner-file-content {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.banner-file-content i {
    font-size: 15px;
    color: #d97706;
    flex-shrink: 0;
}

.banner-file-content code {
    background: rgba(217, 119, 6, 0.12);
    padding: 1px 5px;
    font-weight: 700;
    font-family: monospace;
}

.btn-fechar-banner-file {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #92400e;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
    padding: 0 4px;
    transition: opacity 0.2s;
}

.btn-fechar-banner-file:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Marcador de Fronteira no Mapa: Seta com Símbolo de Passaporte
   ========================================================================== */
.border-pin-divicon {
    background: transparent !important;
    border: none !important;
}

.border-marker-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.42));
    transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
    transform-origin: bottom center;
}

.border-marker-pin:hover {
    transform: scale(1.22) translateY(-4px);
    z-index: 1000 !important;
}

@keyframes borderMarkerPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.42));
    }

    50% {
        transform: scale(1.35) translateY(-6px);
        filter: drop-shadow(0 0 16px rgba(0, 147, 61, 0.95)) drop-shadow(0 0 25px rgba(0, 147, 61, 0.6));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.42));
    }
}

.border-marker-pin.pulse-active {
    animation: borderMarkerPulse 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 2;
    z-index: 1000 !important;
}

.border-marker-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #db2777 0%, #be185d 50%, #9d174d 100%);
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.border-marker-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #9d174d;
    margin-top: -1.5px;
}

.legend-icon-passport {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #db2777 0%, #9d174d 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 9.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
