/* TIPOGRAFIA E CORES GERAIS */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #f9f9f9;
  color: #333;
}

main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 10px;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #004080;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
}

/* CABEÇALHO */
/* ================= HEADER ================= */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 25px;
    background: linear-gradient(135deg, #041525, #0b2a47);
    color: #fff;

    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.logo a{
    color:#fff;
    text-decoration:none;
    font-size:24px;
    font-weight:700;
    white-space:nowrap;
}
.logo-link {
    display: inline-flex;    /* Transforma o link em um container flexível que se comporta como texto inline */
    align-items: center;     /* Alinha o texto e o SVG perfeitamente pelo centro vertical */
    gap: 6px;                /* Cria um espaçamento controlado entre o texto e o ícone (substituindo o espaço fixo) */
    text-decoration: none;   /* Opcional: remove o sublinhado do link */
    color: #ffffff;          /* Opcional: define a cor do texto RAB para branco também */
}

.main-nav{
    display:flex;
    gap:30px;
}

.main-nav a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    padding:6px 0;
    border-bottom:2px solid transparent;
    transition:.2s;
}

.main-nav a:hover{
    border-color:#fff;
}

.user-menu{
    display:flex;
    align-items:center;
    gap:15px;
    font-size:14px;
    white-space:nowrap;
}

.user-menu span{
    opacity:.9;
}

.user-menu a{
    color:#fff;
    text-decoration:none;
}

.user-menu a:hover{
    text-decoration:underline;
}


.mobile-menu-btn{
    display:none;
}
.user-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
    padding: 8px 0;
    z-index: 1000;
}

/* Texto escuro */
.user-menu.open a,
.user-menu.open span {
    color: #1f2937;       /* cinza escuro */
    width: 100%;
    padding: 12px 18px;
    text-align: left;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #ececec;
    transition: background .2s;
    box-sizing: border-box;
}

/* Nome do usuário */
.user-menu.open span {
    font-weight: 700;
    color: #041525;
}

/* Hover */
.user-menu.open a:hover {
    background: #f5f7fa;
    color: #0056b3;
}

/* Último item sem borda */
.user-menu.open a:last-child {
    border-bottom: none;
}
@media (max-width:768px){

.site-header{
    height:70px;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    padding:0 15px;
}

.logo{
    width:auto;
}

.main-nav{
    display:none;
}

.mobile-menu-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    font-size:22px;
    cursor:pointer;
}

.user-menu{
    display:none;
}

.user-menu.open{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:70px;
    right:10px;
    width:220px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 8px 25px rgba(0,0,0,.18);
    padding:10px 0;
    z-index:1000;
}

.user-menu.open a,
.user-menu.open span{

    width:100%;
    padding:12px 18px;
    text-align:left;
    border-bottom:1px solid #eee;
}

.user-menu.open a:last-child{
    border-bottom:none;
}
}





/* CTA */
.cta {
  text-align: center;
  margin-top: 40px;
}

.cta a {
  background: #004080;
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 8px;
  transition: background 0.3s;
}

.cta a:hover {
  background: #003060;
}



/* ALERTAS */
.alert {
  max-width: 400px;
  margin: 20px auto;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 0.95em;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
}
#map {
  width: 100%;
  height: 500px;
  margin: 30px 0;
  border-radius: 8px;
}

/* Specific override to fix user role select layout inside table */
.user-role-form {
  display: inline; /* prevent full-width block form */
  margin: 0;
  padding: 0;
  border: none !important;
  width: auto !important; /* override any global form width */
}

.user-role-form select {
  width: auto;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.suggest-icon {
    cursor: pointer;
    color: #007bff; /* A nice blue color for the icon */
    margin-left: 5px;
}
.suggest-icon:hover {
    color: #0056b3;
}


/* Estilos do Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Garante que o modal fique acima de outros elementos */
    visibility: hidden; /* Controlado por JS */
    opacity: 0;      /* Controlado por JS */
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(-50px); /* Para animação */
    transition: transform 0.3s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
}

.modal-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.confirm-btn {
    background-color: #041525;
    color: white;
}

.confirm-btn:hover {
    background-color: #0056b3;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #5a6268;
}


/* Adicione alguns estilos para o autocomplete (opcional, do jQuery UI) */
        .ui-autocomplete {
            max-height: 200px;
            overflow-y: auto;
            overflow-x: hidden;
            background-color: #fff;
            border: 1px solid #ccc;
            list-style: none;
            padding: 0;
            margin: 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            z-index: 1001; /* Garante que fique acima do modal, se necessário */
        }
        .ui-autocomplete .ui-menu-item {
            padding: 8px 12px;
            cursor: pointer;
            border-bottom: 1px solid #eee;
        }
        .ui-autocomplete .ui-menu-item:last-child {
            border-bottom: none;
        }
        .ui-autocomplete .ui-menu-item:hover,
        .ui-autocomplete .ui-state-active {
            background-color: #f0f0f0;
            color: #333;
        }

       .moderation-action-form {
    display: inline-block;
    margin: 2px !important;
    padding: 0 !important;
    width: 75px !important;
}

.moderation-approve-btn,
.moderation-reject-btn {
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.moderation-approve-btn {
    background-color: #28a745;
}

.moderation-approve-btn:hover {
    background-color: #218838;
}

.moderation-reject-btn {
    background-color: #dc3545;
}

.moderation-reject-btn:hover {
    background-color: #c82333;
}



.home-search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: #f9f9f9;
    padding: 40px 20px;
}

.home-search-box {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.main-title {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #333;
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.search-button {
    padding: 12px 30px;
    font-size: 16px;
    background-color: #006699;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.search-button i {
    margin-right: 8px;
}

.advanced-link {
    margin-top: 15px;
}

.advanced-link a {
    font-size: 14px;
    color: #555;
    text-decoration: underline;
}







    .search-form {
        max-width: 900px;
        margin: 0 auto;
    }

    .main-field {
        text-align: center;
        margin: 20px auto;
    }

    .main-field input[type=text] {
        width: 60%;
        padding: 10px;
        font-size: 18px;
    }

    .other-fields {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .other-fields label {
        flex: 1 1 250px;
        display: flex;
        flex-direction: column;
        font-size: 14px;
    }

    .other-fields input[type=text] {
        padding: 6px;
        font-size: 16px;
    }

   /* button[type=submit] {
        display: block;
        margin: 20px auto;
        padding: 12px 30px;
        width: 160px;
        font-size: 16px;
        background-color: #041525;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    } 

    button[type=submit]:hover {
        background-color: #005fa3;
    }*/

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 30px;
    }

    th, td {
        border: 1px solid #ccc;
        padding: 8px;
    }

    th {
        background-color: #f0f0f0;
    }
    
    .actions-icons {
    display: inline-grid;
    gap: 15px;
}
    
    @media (max-width:700px){

table,
thead,
tbody,
th,
td,
tr{

    display:block;
}

thead{

    display:none;
}

table{

    border:none;
}

tr{
    
    border-radius:10px;
    margin-bottom:20px;
    background:#fff;
    overflow:hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #ededed;
    height: 100% !important;
}

td{

    display:flex;
    justify-content:space-between;
    align-items:center;

    border:none;
    border-bottom:1px solid #eee;

    padding:10px 15px;
}

td:last-child{

    border-bottom:none;
}

td:before{

    content:attr(data-label);

    font-weight:bold;

    color:#555;

    margin-right:20px;
}

td img{

    max-width:120px;
    height:auto;
}

.results-table {
    background: unset !important;
    box-shadow: unset !important;
}

    .actions-cell {
        justify-content: space-between;
    }

    .actions-icons {
        display: flex;
        align-items: center;
        gap: 16px;
    }


}

    
    .pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a,
.pagination strong {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 2px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.pagination strong {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}


.aircraft-search-form {
    max-width: 900px;
    margin: 0 auto 30px;
}

.aircraft-search-form button {
        display: block;
        margin: 20px auto;
        padding: 12px 30px;
        width: 160px;
        font-size: 16px;
        background-color: #041525;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
}

.aircraft-search-form .search-main {
    display: flex;
    gap: 12px;
    align-items: center;
}

.aircraft-search-form .main-field {
    flex: 1;
}

.aircraft-search-form .main-field input{
    width:100%;
    height:46px;
    margin:0;
}

.aircraft-search-form .btn-search{

    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    height:46px;
    padding:0 24px;
    margin:0 !important;
    width:auto !important;
}

.aircraft-search-form .btn-search:hover {
    background: #0055aa;
}

.aircraft-search-form .advanced-search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #004080;
    font-weight: 600;
    cursor: pointer;
}

.aircraft-search-form #advanced-arrow {
    display: inline-block;
    transition: transform .25s ease;
}

.aircraft-search-form #advanced-arrow.open {
    transform: rotate(90deg);
}

.aircraft-search-form .other-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 15px;
    transition: max-height .35s ease, opacity .35s ease;
}

.aircraft-search-form .other-fields.open {
    max-height: 700px;
    opacity: 1;
}

.aircraft-search-form .other-fields input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .aircraft-search-form .search-main {
        flex-direction: column;
    }

    .aircraft-search-form .btn-search {
        width: 100%;
    }
    
    
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.results-table thead th {
    background:#041525;
    color:#fff;
    border-bottom:2px solid #d7dde5;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    border: none;
}

.results-table tbody td {
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
}

.results-table tbody tr:last-child td{
    border-bottom: none;
}

.results-table tbody tr{
    transition: background .2s ease;
    height: 86px;
}

.results-table tbody tr:hover{
    background: #f8fbff;
}

.results-table td[data-label="Matrícula"]{
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    white-space: nowrap;
}
.results-table td[data-label="Matrícula"] a {
    font-size: 16px;
    font-weight: 700;
    color: #003366;
    white-space: nowrap;
    text-decoration: none;
}
.results-table td[data-label="Operador"]{
    color: #555;
}

.results-table td[data-label="Ano"]{
    text-align: center;
}

.results-table img{

    width: 110px;
    border-radius: 8px;

    transition: transform .25s;

    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.results-table img:hover{

    transform: scale(1.08);
}

.suggest-icon{

    color:#848689;

    cursor:pointer;

    transition:.2s;
}

.suggest-icon:hover{

    color:#ff9800;
}

.profile-form {
    max-width: 520px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.profile-form h3 {
    margin-top: 0;
    color: #041525;
}


.profile-form input:disabled {
    background: #f2f2f2;
    color: #777;
}

.profile-form button {
    margin-top: 22px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #041525;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.profile-form button:hover {
    background: #0b2a47;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 6px;
    align-items: center;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4fb;
    color: #003366;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #cfe0f2;
}

.filter-badge strong {
    font-weight: 700;
}

.filter-badge a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    border-radius: 50%;
    background: #d8e7f6;
    color: #003366;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}

.filter-badge a:hover {
    background: #003366;
    color: #fff;
}

.clear-filters {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    margin-left: 6px;
}

.clear-filters:hover {
    color: #003366;
    text-decoration: underline;
}



.home-hero {
    background: linear-gradient(135deg, #041525, #0b2a47);
    color: #fff;
    padding: 70px 20px;
    border-radius: 0 0 24px 24px;
}

.home-hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.home-hero h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.home-hero p {
    font-size: 18px;
    opacity: .9;
    margin-bottom: 30px;
}

.home-search-form {
    display: flex;
    gap: 12px;
    max-width: 650px;
    margin: 0 auto;
    align-items: center;
}

.home-search-form input {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    margin-bottom: 0px !important;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    box-sizing: border-box;
    text-transform: uppercase;
}

.home-search-form button {
    display: block;
    width: 160px;
    height: 52px;
    padding: 0 28px;
    background-color: #041525;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
/* button[type=submit] {
        display: block;
        margin: 20px auto;
        padding: 12px 30px;
        width: 160px;
        font-size: 16px;
        background-color: #041525;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    } */

.home-advanced-link {
    display: inline-block;
    margin-top: 18px;
    color: #fff;
    text-decoration: underline;
}

.home-stats {
    max-width: 1100px;
    margin: -35px auto 45px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    z-index: 2;
}

.home-stats strong{
    font-size:34px;
    font-weight:700;
    color:#003366;
    display:block;
    line-height:1;
    font-variant-numeric:tabular-nums;
}

.stat-card {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.stat-card strong {
    display: block;
    font-size: 26px;
    color: #041525;
}

.stat-card span {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 14px;
}

.latest-aircraft {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-header h2 {
    margin: 0;
    color: #041525;
}

.section-header a {
    color: #004080;
    text-decoration: none;
    font-weight: 600;
}

.featured-aircraft-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    box-shadow: 0 5px 18px rgba(0,0,0,.12);
    margin-bottom: 28px;
    transition: .25s;
}

.featured-aircraft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.featured-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    background: #f2f2f2;
}

.featured-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.latest-label {
    display: inline-block;
    width: fit-content;
    background: #e8f1fb;
    color: #004080;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.featured-info h3 {
    font-size: 34px;
    color: #003366;
    margin: 0 0 10px;
    white-space: nowrap;
}

.featured-info p {
    font-size: 18px;
    margin: 0 0 12px;
}

.featured-info small {
    color: #777;
}

.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}

.aircraft-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    color: #222;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    transition: .25s;
}

.aircraft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,.15);
}

.aircraft-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    display: block;
    background: #f2f2f2;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 6px;
    color: #003366;
    white-space: nowrap;
}

.card-body p {
    margin: 0;
    font-weight: 600;
}

.card-body small {
    color: #666;
}

.purchase-date {
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}



/* Últimas ocorrências na página inicial */

.latest-incidents {
    margin: 45px 0 35px;
    padding: 0 20px;
}

.latest-incidents .section-header {
    margin-bottom: 20px;
}

.incident-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.incident-home-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.incident-home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.10);
}

.incident-home-image {
    display: block;
    height: 145px;
    overflow: hidden;
    background: #edf1f5;
}

.incident-home-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.incident-home-body {
    padding: 13px;
}

.incident-home-body h3 {
    margin: 0 0 7px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.incident-home-body h3 a {
    color: #004080;
    text-decoration: none;
}

.incident-home-body h3 a:hover {
    text-decoration: underline;
}

.incident-home-type {
    margin-bottom: 12px;
    color: #303b48;
    font-size: 0.92rem;
    font-weight: 700;
}

.incident-home-meta {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 8px;
    color: #657181;
    font-size: 0.83rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.incident-home-meta i {
    flex: 0 0 14px;
    margin-top: 3px;
    color: #718096;
}

.incident-home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    color: #0056a6;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.incident-home-link:hover {
    text-decoration: underline;
}



@media (max-width: 900px) {
    .incident-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .incident-home-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .incident-home-image {
        height: 190px;
    }
}


@media (max-width: 800px) {
    .home-search-form {
        flex-direction: column;
    }

    .home-search-form button {
        width: 100%;
    }

    .home-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }

    .featured-aircraft-card {
        grid-template-columns: 1fr;
    }

    .featured-image img {
        height: 220px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 500px) {
    .home-hero {
        padding: 45px 15px;
    }

    .home-hero h1 {
        font-size: 28px;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }
}

.not-found-log {
    max-width: 1000px;
    margin: 25px auto;
}

.not-found-day {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}

.not-found-day h3 {
    margin: 0 0 12px;
    color: #041525;
}

.not-found-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.not-found-badges span {
    background: #eef4fb;
    color: #003366;
    border: 1px solid #cfe0f2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}


    /*.auth-message {
    max-width: 520px;
    margin: 60px auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}*/

.auth-message h2 {
    color: #041525;
}

.auth-message strong {
    display: block;
    margin: 15px 0;
    color: #004080;
}

.auth-message a {
    display: inline-block;
    margin-top: 20px;
    background: #041525;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
}


.auth-message{
    max-width:400px;
    margin:30px auto;
    background:#fff;
    border-radius:14px;
    padding:35px;
    text-align:center;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.auth-message.error {
    color: #8d2424;
    background: #fcecec;
}
.auth-message.success {
    color: #176331;
    background: #eaf7ef;
}

.auth-icon{
    font-size:64px;
    margin-bottom:20px;
}

.auth-icon.success{
    color:#28a745;
}

.auth-icon.error{
    color:#dc3545;
}

.auth-message h2{
    margin-bottom:15px;
    color:#041525;
}

.auth-message p{
    color:#666;
    font-size:16px;
    line-height:1.6;
    margin-bottom:30px;
}

.btn-primary{
    display:inline-block;
    background:#041525;
    color:#fff;
    padding:12px 28px;
    border-radius:8px;
    text-decoration:none;
    transition:.25s;
    box-sizing: border-box;
    text-align: center;
}

.btn-primary:hover{
    background:#0b2b48;
    transform:translateY(-2px);
}
.auth-icon.success {
    color: green;
    font-size: 40px;
}
.link-button a {
    display: inline-block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #004080;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
}
.link-button :hover {
    background: #003060;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.profile-form select,
.profile-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

@media (max-width: 700px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

.auth-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.auth-actions a {
    display: inline-block;
    background: #041525;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
}

.auth-actions a:hover {
    background: #0b2a47;
}



/* IMPORT MODELS */
.import-models-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.import-info {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.07);
}

.import-current-total {
    margin-top: 20px;
    padding: 18px;
    background: #f5f7fa;
    border-radius: 8px;
    text-align: center;
}

.import-current-total strong {
    display: block;
    font-size: 32px;
    color: #041525;
}

.import-action-form {
    margin-top: 25px;
    text-align: center;
}

.sync-models-btn {
    border: 0;
    background: #041525;
    color: #fff;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.sync-models-btn:hover {
    opacity: .9;
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.import-stat {
    background: #f5f7fa;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
}

.import-stat strong {
    display: block;
    font-size: 28px;
    color: #041525;
}

.import-stat span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.import-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.import-actions a {
    padding: 10px 16px;
    background: #041525;
    color: #fff;
    border-radius: 7px;
    text-decoration: none;
}

.import-errors {
    margin-top: 25px;
    padding: 20px;
    background: #fff3f3;
    border: 1px solid #efcaca;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .import-stats {
        grid-template-columns: 1fr;
    }
}

.results-table tr.has-incomplete-info {
    position: relative;
}

.operator-cell {
    position: relative;
}

.cell-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- TELA GRANDE (DESKTOP) --- */
@media screen and (min-width: 701px) {
    /* Fazemos a linha (TR) ter posicionamento relativo para segurar o aviso */
    tr.has-incomplete-info {
        position: relative;
    }
    
    /* Forçamos uma folga no fundo da linha para o texto não sobrepor a aeronave de baixo */
    tr.has-incomplete-info td {
        padding-bottom: 28px !important; 
    }

    .record-incomplete-info {
        position: absolute;
        left: 15px;
        bottom: 5px;
        right: 15px; /* Faz ele esticar de uma ponta a outra da tabela */
        white-space: nowrap;
        padding: 3px 10px;
        font-size: 11px;
        color: #7a6a3a;
        background: #fff8df;
        border-left: 3px solid #d6bd6a;
        border-radius: 3px;
        z-index: 2;
        pointer-events: none; /* Garante que cliques passem através dele se necessário */
    }
}

/* --- TELA PEQUENA (MOBILE < 700px) --- */
@media screen and (max-width: 700px) {
    .record-incomplete-info {
        display: block;
        margin-top: 8px; /* Fica logo abaixo do nome do Operador no card */
        padding: 5px 8px;
        font-size: 11px;
        color: #7a6a3a;
        background: #fff8df;
        border-left: 3px solid #d6bd6a;
        border-radius: 3px;
        white-space: normal; /* Quebra linha no celular se a tela for muito estreita */
        width: 100%;
        box-sizing: border-box;
    }
}




.record-incomplete-info span {
    margin-left: 8px;
    opacity: .75;
}

/* Manage Photos Admin */
.moderation-approve-btn,
.moderation-reject-btn {
    border: none;
    padding: 7px 12px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    margin: 2px;
}

.moderation-approve-btn {
    background: #198754;
}

.moderation-reject-btn {
    background: #dc3545;
}
.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;

    background: #dc3545;
    color: #fff;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* manage_model_aliases */
.admin-page {
    max-width: 1000px;
    margin: 35px auto;
    padding: 0 20px;
}

.alias-form-card {
    margin: 25px 0;
    padding: 22px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
}

.alias-form-card h3 {
    margin-top: 0;
}

.alias-form-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.alias-form-card input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccd4dc;
    border-radius: 7px;
    box-sizing: border-box;
}

.alias-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn-secondary {
    display: inline-block;
    padding: 11px 18px;
    color: #344054;
    background: #eef1f4;
    border-radius: 7px;
    text-decoration: none;
}

.alias-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 25px 0 15px;
}

.alias-search-form input {
    flex: 1;
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid #ccd4dc;
    border-radius: 7px;
}

.alias-search-form button {
    padding: 10px 18px;
}

.alias-search-form a {
    color: #004080;
}

.alias-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.alias-delete-form {
    display: inline;
    margin: 0;
}

.alias-edit-btn,
.alias-delete-btn {
    display: inline-block;
    padding: 7px 11px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.alias-edit-btn {
    color: #004080;
    background: #eef5fc;
}

.alias-delete-btn {
    color: #fff;
    background: #c93b3b;
}

.admin-alert {
    margin: 16px 0;
    padding: 12px 15px;
    border-radius: 7px;
}

.admin-alert.success {
    color: #176331;
    background: #eaf7ef;
}

.admin-alert.error {
    color: #8d2424;
    background: #fcecec;
}

@media (max-width: 700px) {
    .alias-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .alias-actions {
        justify-content: flex-end;
    }
}

/* auto complete model advanced_search */
.ui-autocomplete {
    max-width: 420px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px;
    background: #fff;
    border: 1px solid #d9e0e7;
    border-radius: 9px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    z-index: 99999 !important;
}

.ui-autocomplete .ui-menu-item {
    margin: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
    padding: 0;
    border: 0;
}

.ui-autocomplete .ui-state-active {
    margin: 0;
    border: 0;
    background: #f1f5f9;
    color: inherit;
}

.model-suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 11px;
    border-radius: 6px;
    cursor: pointer;
}

.model-suggestion-name {
    color: #041525;
    font-size: 14px;
    font-weight: 700;
}

.model-suggestion-official {
    color: #64748b;
    font-size: 12px;
}


/* messages */
.message {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 16px 20px;
    margin: 20px 0;

    border-radius: 8px;
    border-left: 5px solid;

    font-size: 15px;
    line-height: 1.6;

    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.message i {
    font-size: 22px;
    margin-top: 2px;
}

.message h4 {
    margin: 0 0 6px;
    font-size: 18px;
}

.message p {
    margin: 0;
}
.message-success{
    background:#eefaf1;
    border-color:#2e7d32;
    color:#1b5e20;
}

.message-success i{
    color:#2e7d32;
}
.message-error{
    background:#fff2f2;
    border-color:#d32f2f;
    color:#b71c1c;
}

.message-error i{
    color:#d32f2f;
}
.message-warning{
    background:#fff9e8;
    border-color:#f9a825;
    color:#8d6e00;
}

.message-warning i{
    color:#f9a825;
}
.message-info{
    background:#eef7ff;
    border-color:#1976d2;
    color:#0d47a1;
}

.message-info i{
    color:#1976d2;
}
.search-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.search-total {
    white-space: nowrap;
}

.status-filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.status-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}

.status-filter-badge strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.status-filter-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.status-filter-badge.active {
    box-shadow: 0 0 0 2px currentColor;
    font-weight: 600;
}

.status-normal {
    color: #167c2b;
    background: #eaf8ee;
    border-color: #8bc98b;
}

.status-reserved {
    color: #0b5ed7;
    background: #e7f2ff;
    border-color: #6ea8fe;
}

.status-warning {
    color: #8a6100;
    background: #fff8e5;
    border-color: #e5bb3d;
}

.status-danger {
    color: #b71c1c;
    background: #fdecec;
    border-color: #e57373;
}

.status-default {
    color: #555;
    background: #f2f2f2;
    border-color: #ccc;
}

@media (max-width: 700px) {
    .search-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .status-filter-badges {
        width: 100%;
    }
}
.search-summary-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    width: 100%;
}

.filter-toggle{
    display:flex;
    align-items:center;
    gap:8px;

    padding:8px 14px;

    border:1px solid #ddd;
    border-radius:999px;

    background:#fff;

    cursor:pointer;

    transition:.2s;
}

.filter-toggle:hover{
    background:#f5f5f5;
}

.filter-toggle.active{
    border-color:#0d6efd;
    color:#0d6efd;
}

.filter-count{

    min-width:22px;
    height:22px;

    border-radius:50%;

    background:#ececec;

    font-size:.75rem;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;
}

.filter-toggle.active .filter-count{
    background:#0d6efd;
    color:#fff;
}

.status-filter-badges{
    margin-top:15px;
}  



/************** company detail ************/
.company-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 56px;
    color: #263746;
}

.company-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #718292;
    font-size: 13px;
}

.company-breadcrumb a {
    color: #356a95;
    text-decoration: none;
}

.company-breadcrumb a:hover {
    text-decoration: underline;
}

.company-hero {
    margin-bottom: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7ed;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(37, 57, 73, .08);
}

.company-cover {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    background: #dce4e9;
}

.company-cover > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-cover-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(14, 30, 43, .86) 0%,
            rgba(14, 30, 43, .30) 52%,
            rgba(14, 30, 43, .08) 100%
        );
}

.company-identity {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 28px;
    left: 32px;
    display: flex;
    align-items: flex-end;
    gap: 22px;
}

.company-logo {
    display: flex;
    flex: 0 0 118px;
    width: 118px;
    height: 118px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 4px solid rgba(255, 255, 255, .85);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .24);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.company-heading {
    min-width: 0;
    color: #fff;
}

.company-heading-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.company-type-badge,
.company-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.company-type-badge {
    background: rgba(255, 255, 255, .92);
    color: #315b7d;
}

.company-official-badge {
    background: #2e91c9;
    color: #fff;
}

.company-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.05;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}

.company-location {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
}

.company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 22px;
}

.company-btn {
    display: inline-flex;
    gap: 8px;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    box-sizing: border-box;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.company-btn:hover {
    transform: translateY(-1px);
}

.company-btn-primary {
    background: #236fa5;
    color: #fff;
}

.company-btn-primary:hover {
    background: #1c608f;
    color: #fff;
}

.company-btn-secondary {
    background: #fff;
    border-color: #cfdae2;
    color: #315b7d;
}

.company-btn-secondary:hover {
    background: #f4f8fb;
    border-color: #9fb6c8;
}

.company-btn-full {
    width: 100%;
}

.company-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.company-main-column,
.company-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.company-section,
.company-side-card {
    background: #fff;
    border: 1px solid #dfe7ed;
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(37, 57, 73, .055);
}

.company-section {
    padding: 25px;
}

.company-side-card {
    padding: 22px;
}

.company-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.company-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #4b83aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.company-section h2,
.company-side-card h2 {
    margin: 0;
    color: #253d50;
    font-size: 22px;
    line-height: 1.2;
}

.company-side-card h2 {
    font-size: 19px;
}

.company-description {
    color: #4d6171;
    font-size: 15px;
    line-height: 1.75;
}

.company-empty-content {
    padding: 22px;
    background: #f6f9fb;
    border: 1px dashed #cad7e0;
    border-radius: 12px;
    text-align: center;
}

.company-empty-content h3 {
    margin: 0 0 7px;
    color: #38556c;
    font-size: 16px;
}

.company-empty-content p {
    margin: 0;
    color: #748594;
    line-height: 1.5;
}

.company-airport-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    background: #f5f9fc;
    border: 1px solid #d9e5ed;
    border-radius: 14px;
}

.company-airport-code {
    display: flex;
    height: 72px;
    align-items: center;
    justify-content: center;
    background: #2d668f;
    border-radius: 11px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .06em;
}

.company-airport-info h3 {
    margin: 0 0 5px;
    color: #29465d;
    font-size: 17px;
}

.company-airport-info p {
    margin: 0;
    color: #667b8b;
}

.company-airport-category {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    background: #e5eef4;
    border-radius: 999px;
    color: #526f83;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.company-card-link {
    color: #246c9e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.company-count-badge {
    display: inline-flex;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: #eaf2f7;
    border-radius: 999px;
    color: #386885;
    font-size: 13px;
    font-weight: 800;
}

.company-aircraft-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.company-aircraft-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7ed;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.company-aircraft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(39, 63, 80, .12);
}

.company-aircraft-image {
    height: 125px;
    overflow: hidden;
    background: #e3e9ed;
}

.company-aircraft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-aircraft-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.company-aircraft-body strong {
    color: #245f89;
    font-size: 16px;
}

.company-aircraft-body span {
    overflow: hidden;
    color: #647786;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.company-related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #dfe7ed;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
}

.company-related-card:hover {
    background: #f6f9fb;
}

.company-related-logo {
    display: flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #e8f0f5;
    border-radius: 9px;
    color: #326789;
    font-size: 20px;
    font-weight: 800;
}

.company-related-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-related-card > div:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.company-related-card strong {
    overflow: hidden;
    color: #304b60;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-related-card span {
    color: #798895;
    font-size: 12px;
}

.company-contact-list {
    margin: 18px 0 0;
}

.company-contact-list > div {
    padding: 13px 0;
    border-bottom: 1px solid #edf1f4;
}

.company-contact-list > div:first-child {
    padding-top: 0;
}

.company-contact-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.company-contact-list dt {
    margin-bottom: 4px;
    color: #82909a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.company-contact-list dd {
    margin: 0;
    color: #41596b;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.company-contact-list a {
    color: #276f9f;
    text-decoration: none;
}

.company-stat-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.company-stat-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f4;
}

.company-stat-list > div:last-child {
    border-bottom: 0;
}

.company-stat-list strong {
    color: #276b98;
    font-size: 20px;
}

.company-stat-list span {
    color: #6f818f;
    font-size: 12px;
    text-align: right;
}

.company-claim-card {
    background:
        linear-gradient(
            145deg,
            #f4f9fd,
            #ffffff
        );
    border-color: #c9deeb;
}

.company-claim-card p,
.company-contribution-card p,
.company-official-card p {
    margin: 12px 0 18px;
    color: #667a89;
    font-size: 14px;
    line-height: 1.55;
}

.company-claim-card small {
    display: block;
    margin-top: 9px;
    color: #85929c;
    font-size: 11px;
    text-align: center;
}

.company-official-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0f8fc;
    border-color: #c4e0ee;
}

.company-official-icon {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: #2f8dbf;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
}

.company-official-card p {
    margin-bottom: 0;
}

.company-contribution-actions {
    display: grid;
    gap: 9px;
}

.company-not-found {
    padding: 60px 25px;
    background: #fff;
    border: 1px solid #dfe7ed;
    border-radius: 16px;
    text-align: center;
}

@media (max-width: 920px) {
    .company-content-grid {
        grid-template-columns: 1fr;
    }

    .company-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-aircraft-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .company-page {
        width: min(100% - 20px, 1180px);
        padding-top: 14px;
    }

    .company-cover {
        min-height: 360px;
    }

    .company-identity {
        right: 18px;
        bottom: 20px;
        left: 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .company-logo {
        flex-basis: 86px;
        width: 86px;
        height: 86px;
    }

    .company-heading h1 {
        font-size: 30px;
    }

    .company-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .company-section {
        padding: 18px;
    }

    .company-sidebar {
        display: flex;
    }

    .company-airport-card {
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 15px;
    }

    .company-airport-code {
        height: 62px;
        font-size: 16px;
    }

    .company-card-link {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid #dce6ec;
    }

    .company-aircraft-grid,
    .company-related-grid {
        grid-template-columns: 1fr;
    }

    .company-aircraft-image {
        height: 180px;
    }
}

@media (max-width: 420px) {
    .company-actions {
        grid-template-columns: 1fr;
    }
}
/*
|--------------------------------------------------------------------------
| Capa colaborativa da empresa
|--------------------------------------------------------------------------
*/

.company-cover-empty > img {
    filter: grayscale(100%);
}

.company-cover-empty .company-cover-overlay {
    background:
        linear-gradient(
            to top,
            rgba(21, 38, 52, .82) 0%,
            rgba(21, 38, 52, .20) 45%,
            rgba(21, 38, 52, .04) 100%
        );
}

.company-cover-contribution {
    position: absolute;
    z-index: 3;
    top: 38%;
    left: 50%;
    display: flex;
    width: min(450px, calc(100% - 40px));
    align-items: center;
    gap: 15px;
    padding: 12px 13px;
    background: rgb(255 255 255 / 14%);
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 13px;
    color: #36566e;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(20, 40, 55, .16);
    backdrop-filter: blur(5px);
    transform: translate(-50%, -58%);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.company-cover-contribution:hover {
    background: #ffffff75;
    color: #285878;
    box-shadow: 0 14px 36px rgba(20, 40, 55, .22);
    transform: translate(-50%, -60%);
}

.company-cover-contribution-icon {
    display: flex;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: #eaf3f9;
    border-radius: 11px;
    color: #2a709e;
    font-size: 19px;
}

.company-cover-contribution-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.company-cover-contribution-content strong {
    color: #d9d9d9;
    font-size: 15px;
    line-height: 1.3;
}

.company-cover-contribution-content small {
    color: #11c4cf;
    font-size: 12px;
    line-height: 1.45;
}

.company-cover-manage {
    position: absolute;
    z-index: 5;
    top: 18px;
    right: 18px;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(20, 39, 54, .68);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    backdrop-filter: blur(4px);
    transform: translateY(-4px);
    transition:
        opacity .18s ease,
        transform .18s ease,
        background-color .18s ease;
}

.company-cover:hover .company-cover-manage,
.company-cover-manage:focus {
    opacity: 1;
    transform: translateY(0);
}

.company-cover-manage:hover {
    background: rgba(20, 39, 54, .88);
    color: #fff;
}
.company-airport-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: rgba(32, 80, 116, .92);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

@media (max-width: 680px) {
    .company-cover-contribution {
        top: 30%;
        align-items: flex-start;
        padding: 14px;
        transform: translate(-50%, -50%);
        box-sizing: border-box;
    }

    .company-cover-contribution:hover {
        transform: translate(-50%, -42%);
        box-sizing: border-box;
    }

    .company-cover-contribution-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .company-cover-contribution-content strong {
        font-size: 13px;
    }

    .company-cover-contribution-content small {
        font-size: 11px;
    }

    .company-cover-manage {
        top: 12px;
        right: 12px;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 450px) {
    .company-cover-contribution {
        width: calc(100% - 50px);
    }

    .company-cover-contribution-icon {
        display: none;
    }

    .company-cover-manage {
        max-width: calc(100% - 24px);
        font-size: 11px;
    }
}
@media (max-width: 680px) {
    .company-cover-empty {
        min-height: 440px;
    }

    .company-cover-empty .company-identity {
        bottom: 18px;
    }
}

/************ aircraft detail *******/

    .aircraft-detail {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 60px;
}

.aircraft-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    color: #687786;
    font-size: 14px;
}

.aircraft-breadcrumb a {
    color: #1769aa;
    text-decoration: none;
}

.aircraft-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.aircraft-detail-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #637587;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.aircraft-detail-header h1 {
    margin: 0;
    color: #173f67;
    font-size: clamp(38px, 6vw, 65px);
    line-height: 1;
}

.aircraft-detail-model {
    margin: 10px 0 0;
    color: #455b6f;
    font-size: 22px;
}

.aircraft-status {
    min-width: 180px;
    padding: 14px 18px;
    background: #eef7ff;
    border: 1px solid #cfe4f7;
    border-radius: 10px;
}

.aircraft-status span {
    display: block;
    margin-bottom: 3px;
    color: #607487;
    font-size: 12px;
    text-transform: uppercase;
}

.aircraft-status strong {
    color: #174a7e;
}

.aircraft-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr);
    gap: 28px;
    align-items: start;
}

.aircraft-main-image {
    overflow: hidden;
    background: #f1f4f6;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
}

.aircraft-main-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/*.aircraft-photo-contribute {
    display: block;
    padding: 13px 18px;
    background: #eef7ff;
    color: #1769aa;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}*/
.aircraft-photo-contribute {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    padding: 13px 18px;
    background: #eef7ff;
    border: 0;
    color: #1769aa;
    font: inherit;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.aircraft-data-card {
    padding: 24px;
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(19, 54, 87, .07);
}

.aircraft-data-card h2 {
    margin: 0 0 18px;
    color: #173f67;
}

.aircraft-data-list {
    margin: 0;
}

.aircraft-data-list > div {
    padding: 13px 0;
    border-bottom: 1px solid #edf1f4;
}

.aircraft-data-list > div:last-child {
    border-bottom: 0;
}

.aircraft-data-list dt {
    color: #758493;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.aircraft-data-list dd {
    margin: 4px 0 0;
    color: #263746;
    font-size: 16px;
    font-weight: 600;
}

.aircraft-section {
    margin-top: 45px;
}
.aircraft-section-title {
    min-width: 0;
}
.aircraft-section-label {
    display: block;
    margin-bottom: 4px;
    color: #6e7f8e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.aircraft-section-heading h2 {
    margin: 0;
    color: #173f67;
    font-size: 25px;
    line-height: 1.25;
}

.aircraft-section-count {
    flex-shrink: 0;
    padding: 6px 11px;
    background: #eef4f9;
    border-radius: 20px;
    color: #536a7d;
    font-size: 13px;
    white-space: nowrap;
}

.aircraft-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.aircraft-section-heading span {
    color: #6e7f8e;
    font-size: 13px;
}

.aircraft-section-heading h2 {
    margin: 4px 0 0;
    color: #173f67;
}

.aircraft-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.aircraft-gallery a {
    overflow: hidden;
    border-radius: 10px;
}

.aircraft-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .2s ease;
}

.aircraft-gallery a:hover img {
    transform: scale(1.04);
}

.aircraft-collaboration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px;
    background: #f1f7fd;
    border: 1px solid #d8e8f6;
    border-radius: 14px;
}

.aircraft-collaboration h2 {
    margin: 0 0 8px;
    color: #173f67;
}

.aircraft-collaboration p {
    max-width: 700px;
    margin: 0;
    color: #51677a;
    line-height: 1.65;
}

.aircraft-collaboration-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .aircraft-detail-header,
    .aircraft-collaboration {
        flex-direction: column;
    }

    .aircraft-summary-grid {
        grid-template-columns: 1fr;
    }

    .aircraft-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aircraft-collaboration-actions {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .aircraft-gallery {
        grid-template-columns: 1fr;
    }

    .aircraft-collaboration-actions {
        flex-direction: column;
    }
}



.aircraft-operation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.aircraft-operation-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 215px;
    padding: 25px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(19, 54, 87, .06);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.aircraft-operation-card:hover {
    transform: translateY(-2px);
    border-color: #c8dae9;
    box-shadow: 0 10px 28px rgba(19, 54, 87, .1);
}

.aircraft-operation-card-icon {
    display: flex;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #eef6fc;
    border-radius: 14px;
    color: #1769aa;
    font-size: 25px;
}

.aircraft-operation-card-image {
    flex: 0 0 130px;
    overflow: hidden;
    border-radius: 11px;
}

.aircraft-operation-card-image img {
    display: block;
    width: 130px;
    height: 105px;
    object-fit: cover;
}

.aircraft-operation-card-body {
    min-width: 0;
    flex: 1;
}

.aircraft-operation-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.aircraft-operation-card-label {
    color: #6d8090;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.aircraft-community-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background: #eef8f0;
    border: 1px solid #cce6d1;
    border-radius: 20px;
    color: #347348;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.aircraft-operation-card h3 {
    margin: 0 0 9px;
    color: #173f67;
    font-size: 21px;
    line-height: 1.3;
}

.aircraft-operation-card p {
    margin: 0 0 12px;
    color: #5b6f80;
    font-size: 14px;
    line-height: 1.6;
}

.aircraft-operation-description {
    color: #718292 !important;
    font-size: 13px !important;
}

.aircraft-operation-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.aircraft-operation-codes span {
    display: inline-flex;
    padding: 4px 8px;
    background: #edf3f8;
    border-radius: 5px;
    color: #40586c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
}

.aircraft-operation-link,
.aircraft-operation-contribute {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: #1769aa;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.aircraft-operation-link:hover,
.aircraft-operation-contribute:hover {
    text-decoration: underline;
}

.aircraft-operation-contribute span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    background: #1769aa;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    line-height: 1;
}
 .aircraft-main-image-link {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    cursor: zoom-in;
}

.aircraft-main-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aircraft-image-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 12px;
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.68);
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    pointer-events: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.aircraft-main-image-link:hover .aircraft-image-zoom {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .aircraft-image-zoom {
        right: 10px;
        bottom: 10px;
        padding: 7px 10px;
    }
}

/*
|--------------------------------------------------------------------------
| Completude da ficha
|--------------------------------------------------------------------------
*/

.aircraft-completeness {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 22px;
    padding: 24px;
    background: #fbfcfd;
    border: 1px dashed #bfd1df;
    border-radius: 14px;
}

.aircraft-completeness-icon {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #fff6dc;
    border-radius: 12px;
    color: #bd8412;
    font-size: 22px;
}

.aircraft-completeness-icon.complete {
    background: #edf8ef;
    color: #2e7d45;
}

.aircraft-completeness-content {
    flex: 1;
    min-width: 0;
}

.aircraft-completeness h3 {
    margin: 2px 0 9px;
    color: #173f67;
    font-size: 20px;
}

.aircraft-completeness p {
    margin: 8px 0 0;
    color: #5b6f80;
    font-size: 14px;
    line-height: 1.6;
}

.aircraft-completeness ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.aircraft-completeness li {
    padding: 5px 9px;
    background: #fff;
    border: 1px solid #dce5eb;
    border-radius: 20px;
    color: #536a7d;
    font-size: 12px;
}

.aircraft-completeness-action {
    align-self: center;
    flex-shrink: 0;
}

.btn-primary,
.btn-secondary,
.aircraft-operation-contribute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;

    min-height: 42px;
    padding: 10px 17px;

    border: 1px solid transparent;
    border-radius: 7px;

    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    cursor: pointer;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.btn-primary {
    background: #1769aa;
    border-color: #1769aa;
    color: #fff;
}

.btn-primary:hover {
    background: #12588f;
    border-color: #12588f;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: #fff;
    border-color: #b9cbd9;
    color: #1769aa;
}

.btn-secondary:hover {
    background: #eef6fc;
    border-color: #8db3d0;
    color: #12588f;
    text-decoration: none;
}

@media (max-width: 820px) {
    .aircraft-operation-grid {
        grid-template-columns: 1fr;
    }

    .aircraft-completeness {
        flex-wrap: wrap;
    }

    .aircraft-completeness-action {
        width: 100%;
        padding-left: 72px;
    }
    
    .aircraft-section {
        flex-wrap: wrap;
    }
    .aircraft-incidents-action {
        width: 100%;
        padding-left: 72px;
    }
}

@media (max-width: 520px) {
    .aircraft-operation-card {
        flex-direction: column;
    }

    .aircraft-operation-card-image {
        width: 100%;
        flex-basis: auto;
    }

    .aircraft-operation-card-image img {
        width: 100%;
        height: 175px;
    }

    .aircraft-operation-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .aircraft-completeness {
        flex-direction: column;
    }
    
    .aircraft-incidents-section {
    flex-direction: column;
    }

    .aircraft-completeness-action {
        width: 100%;
        padding-left: 0;
    }
    .aircraft-incidents-action {
        width: 100%;
        padding-left: 0px;
    }

    .aircraft-completeness-action .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
    .aircraft-incidents-action .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
    }
}

    /* modais */
    body.modal-open {
    overflow: hidden;
}

.contribution-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contribution-modal.active {
    display: flex;
}

.contribution-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 29, 45, .68);
    backdrop-filter: blur(2px);
}

.contribution-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    padding: 28px;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.contribution-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #687b8c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.contribution-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
    padding-right: 35px;
}

.contribution-modal-icon {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #eef6fc;
    border-radius: 13px;
    color: #1769aa;
    font-size: 22px;
}

.contribution-modal-label {
    color: #708292;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contribution-modal-header h2 {
    margin: 3px 0 4px;
    color: #173f67;
    font-size: 24px;
}

.contribution-modal-header p {
    margin: 0;
    color: #607486;
    font-size: 14px;
}

.contribution-field {
    display: block;
    margin-bottom: 17px;
}

.contribution-field > span {
    display: block;
    margin-bottom: 7px;
    color: #435a6e;
    font-size: 13px;
    font-weight: 700;
}

.contribution-field input,
.contribution-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 13px;
    background: #fff;
    border: 1px solid #cfdbe4;
    border-radius: 8px;
    color: #263746;
    font: inherit;
}

.contribution-field input:focus,
.contribution-field textarea:focus {
    border-color: #327db8;
    outline: 3px solid rgba(50, 125, 184, .12);
}

.contribution-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.contribution-form-message {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.contribution-form-message-success {
    background: #edf8ef;
    border: 1px solid #c9e4ce;
    color: #28683b;
}

.contribution-form-message-error {
    background: #fff1f1;
    border: 1px solid #efcaca;
    color: #a32d2d;
}

.contribution-upload-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 145px;
    margin-bottom: 18px;
    padding: 20px;
    background: #f7fafc;
    border: 2px dashed #bfd0dd;
    border-radius: 12px;
    color: #536a7d;
    text-align: center;
    cursor: pointer;
}

.contribution-upload-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.contribution-upload-icon {
    margin-bottom: 8px;
    color: #1769aa;
    font-size: 30px;
}

.contribution-upload-field small {
    margin-top: 5px;
    color: #81909d;
}

.contribution-photo-preview {
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 10px;
}

.contribution-photo-preview img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #eef2f5;
}

.contribution-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #5c7082;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .contribution-modal {
        align-items: flex-end;
        padding: 0;
    }

    .contribution-modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
    }

    .contribution-modal-actions {
        flex-direction: column-reverse;
    }

    .contribution-modal-actions button {
        width: 100%;
    }
}

    /* Base operation card */
    .aircraft-operation-location {
    display: flex;
    align-items: center;
    gap: 7px;
}

.aircraft-operation-location i {
    color: #1769aa;
}

.airport-summary-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 16px 0;
}

.airport-summary-data > div {
    padding: 10px 11px;
    background: #f5f8fa;
    border: 1px solid #e2e9ee;
    border-radius: 8px;
}

.airport-summary-data span {
    display: block;
    margin-bottom: 3px;
    color: #758695;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.airport-summary-data strong {
    color: #29475f;
    font-size: 13px;
}

.airport-operation-types {
    padding-top: 10px;
    border-top: 1px solid #edf1f4;
    font-size: 13px !important;
}

@media (max-width: 520px) {
    .airport-summary-data {
        grid-template-columns: 1fr 1fr;
    }
}

/* Fbo / hangar card */
/*
|--------------------------------------------------------------------------
| Card do FBO
|--------------------------------------------------------------------------
*/

.aircraft-fbo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 105px;
    background: #f7f9fb;
    border: 1px solid #e1e8ed;
}

.aircraft-fbo-image img {
    width: 130px;
    height: 105px;
    padding: 9px;
    object-fit: contain;
    box-sizing: border-box;
}

.aircraft-official-badge {
    gap: 5px;
    background: #eef7ff;
    border-color: #c6dff2;
    color: #1769aa;
}

.aircraft-official-badge i {
    font-size: 11px;
}

.aircraft-fbo-address {
    margin-top: -5px !important;
    color: #718292 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.aircraft-fbo-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 13px;
}

.aircraft-fbo-actions .aircraft-operation-link {
    margin-top: 0;
}

.aircraft-fbo-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #506b7f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.aircraft-fbo-contact-link:hover {
    color: #1769aa;
    text-decoration: underline;
}

@media (max-width: 520px) {
    .aircraft-fbo-image {
        width: 100%;
    }

    .aircraft-fbo-image img {
        width: 100%;
        height: 145px;
    }

    .aircraft-fbo-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
.aircraft-status{
    padding:12px 16px;
    border-radius:10px;
    border:1px solid #ddd;
}

.aircraft-status strong{
    display:block;
    font-size:17px;
    margin-top:4px;
}

.status-normal{
    background:#eaf8ee;
    border-color:#8bc98b;
    color:#167c2b;
}

.status-warning{
    background:#fff8e5;
    border-color:#f2c94c;
    color:#9a6a00;
}

.status-danger{
    background:#fdecec;
    border-color:#e57373;
    color:#b71c1c;
}

.status-default{
    background:#f5f5f5;
    border-color:#ddd;
}
.status-date{
    margin-top:4px;
    font-size:0.75em;
    font-weight:400;
    color:#666;
    line-height:1.2;
}

.aircraft-section-disclaimer {
    margin-top: 30px;
}

.info-disclaimer {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 25px;
    row-gap: 16px;
    padding: 18px;
    border: 1px solid #d7e4ef;
    border-left: 4px solid #0b6fb8;
    border-radius: 6px;
    background: #fff;
}

.info-disclaimer-icon {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #f9f9f9;
    border-radius: 12px;
    color: #0b6fb8;
    font-size: 25px;
}

.info-disclaimer-content {
    min-width: 0;
}

.info-disclaimer-content h3 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.25;
    color: #0b6fb8;
}

.last-update {
    font-size: 13px;
    line-height: 1.4;
    color: #66727c;
}

.last-update strong,
.last-update span {
    display: block;
}

.last-update strong {
    font-weight: 600;
}

.info-disclaimer-description {
    grid-column: 1 / -1;
}

.info-disclaimer-description p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.info-disclaimer-description p:last-child {
    margin-bottom: 0;
}

.info-disclaimer-link a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-weight: 600;
    color: #0b6fb8;
    text-decoration: none;
}

.info-disclaimer-link a:hover {
    text-decoration: underline;
}

/* airport_detail.php */
.airport-detail {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 60px;
}

.airport-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    color: #687786;
    font-size: 14px;
}

.airport-breadcrumb a {
    color: #1769aa;
    text-decoration: none;
}

.airport-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.airport-detail-eyebrow,
.airport-section-label {
    display: block;
    color: #6e7f8e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.airport-detail-header h1 {
    margin: 5px 0 0;
    color: #173f67;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
}

.airport-detail-name {
    margin: 10px 0 0;
    color: #455b6f;
    font-size: 23px;
}

.airport-detail-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: #607486;
}

.airport-detail-location i {
    color: #1769aa;
}

.airport-category {
    min-width: 150px;
    padding: 14px 18px;
    background: #eef7ff;
    border: 1px solid #cfe4f7;
    border-radius: 10px;
}

.airport-category span {
    display: block;
    margin-bottom: 3px;
    color: #607487;
    font-size: 12px;
    text-transform: uppercase;
}

.airport-category strong {
    color: #174a7e;
}

.airport-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 25px;
}

.airport-data-card,
.airport-highlight-card,
.airport-runway-card {
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(19, 54, 87, .06);
}

.airport-data-card {
    padding: 24px;
}

.airport-data-card-header h2,
.airport-section-heading h2 {
    margin: 5px 0 0;
    color: #173f67;
}

.airport-data-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 25px;
    margin: 18px 0 0;
}

.airport-data-list > div {
    padding: 13px 0;
    border-bottom: 1px solid #edf1f4;
}

.airport-data-list dt,
.airport-runway-card dt {
    color: #758493;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.airport-data-list dd,
.airport-runway-card dd {
    margin: 4px 0 0;
    color: #263746;
    font-weight: 600;
}

.airport-highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: #f2f8fd;
}

.airport-highlight-icon {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #fff;
    border-radius: 12px;
    color: #1769aa;
    font-size: 22px;
}

.airport-highlight-number {
    display: block;
    margin: 4px 0;
    color: #173f67;
    font-size: 40px;
    line-height: 1;
}

.airport-highlight-card p {
    color: #5c7082;
    line-height: 1.55;
}

.airport-section {
    margin-top: 42px;
}

.airport-section-heading {
    margin-bottom: 17px;
}

.airport-operation-box {
    padding: 20px;
    background: #f4f8fb;
    border: 1px solid #dce7ef;
    border-radius: 12px;
    color: #40586c;
    line-height: 1.6;
}

.airport-runways-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.airport-runway-card {
    padding: 22px;
}

.airport-runway-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.airport-runway-card-top span {
    color: #6e7f8e;
    font-size: 12px;
    text-transform: uppercase;
}

.airport-runway-card-top strong {
    color: #173f67;
    font-size: 24px;
}

.airport-runway-card dl {
    margin: 0;
}

.airport-runway-card dl > div {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f4;
}

.airport-runway-card dl > div:last-child {
    border-bottom: 0;
}

.airport-map-placeholder {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 170px;
    padding: 25px;
    background: #f7fafc;
    border: 1px dashed #bdceda;
    border-radius: 14px;
}

.airport-map-icon {
    display: flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: #eef6fc;
    border-radius: 13px;
    color: #1769aa;
    font-size: 24px;
}

.airport-map-placeholder h3 {
    margin: 0 0 6px;
    color: #173f67;
}

.airport-map-placeholder p {
    margin: 0;
    color: #5c7082;
    line-height: 1.6;
}

.airport-collaboration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px;
    background: #f1f7fd;
    border: 1px solid #d8e8f6;
    border-radius: 14px;
}

.airport-collaboration h2 {
    margin: 5px 0 8px;
    color: #173f67;
}

.airport-collaboration p {
    max-width: 700px;
    margin: 0;
    color: #51677a;
    line-height: 1.65;
}

.airport-collaboration-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .airport-detail-header,
    .airport-collaboration {
        flex-direction: column;
    }

    .airport-summary-grid,
    .airport-runways-grid {
        grid-template-columns: 1fr;
    }

    .airport-collaboration-actions {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .airport-data-list {
        grid-template-columns: 1fr;
    }

    .airport-highlight-card,
    .airport-map-placeholder {
        flex-direction: column;
        align-items: flex-start;
    }

    .airport-collaboration-actions {
        flex-direction: column;
    }

    .airport-collaboration-actions .btn-primary,
    .airport-collaboration-actions .btn-secondary {
        width: 100%;
    }
}
 /* airport photos */
    .airport-visual-section {
    margin-bottom: 28px;
}

.airport-main-image {
    overflow: hidden;
    background: #f0f3f5;
    border: 1px solid #dfe6ec;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(19, 54, 87, .06);
}

.airport-main-image > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.airport-photo-empty-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 18px 22px;
    background: #f1f7fd;
    border-top: 1px solid #d8e8f6;
}

.airport-photo-empty-action strong {
    display: block;
    margin-bottom: 4px;
    color: #173f67;
    font-size: 16px;
}

.airport-photo-empty-action span {
    display: block;
    color: #5c7082;
    font-size: 14px;
}

.airport-section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.airport-section-count {
    flex-shrink: 0;
    padding: 6px 11px;
    background: #eef4f9;
    border-radius: 20px;
    color: #536a7d;
    font-size: 13px;
    white-space: nowrap;
}

.airport-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.airport-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: #edf1f4;
    border-radius: 10px;
}

.airport-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .2s ease;
}

.airport-gallery-item:hover img {
    transform: scale(1.04);
}

.airport-photo-credit {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    padding: 6px 8px;
    background: rgba(11, 29, 45, .72);
    border-radius: 5px;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

.airport-gallery-contribute {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 18px;
}

.airport-gallery-contribute p {
    margin: 0;
    color: #607486;
    font-size: 14px;
}

@media (max-width: 850px) {
    .airport-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .airport-main-image > img {
        aspect-ratio: 4 / 3;
    }

    .airport-photo-empty-action {
        flex-direction: column;
        align-items: stretch;
    }

    .airport-photo-empty-action .btn-primary {
        width: 100%;
    }

    .airport-gallery-contribute {
        align-items: stretch;
        flex-direction: column;
    }

    .airport-gallery-contribute .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .airport-gallery {
        grid-template-columns: 1fr;
    }

    .airport-section-heading-row {
        align-items: flex-start;
    }
}

    /*
|--------------------------------------------------------------------------
| Modal da galeria
|--------------------------------------------------------------------------
*/

body.gallery-modal-open {
    overflow: hidden;
}

.aircraft-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, .82);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.aircraft-gallery-modal[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Caixa do modal
|--------------------------------------------------------------------------
*/

.aircraft-gallery-modal-dialog {

    display: flex;
    flex-direction: column;

    width: min(1400px, 100%);
    height: min(92vh, 100%);

    background: #fff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 15px 60px rgba(0,0,0,.35);
}

/*
|--------------------------------------------------------------------------
| Cabeçalho
|--------------------------------------------------------------------------
*/

.aircraft-gallery-modal-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 26px;

    border-bottom: 1px solid #ececec;

    background: #fff;

    flex-shrink: 0;
}

.aircraft-gallery-modal-header h2 {

    margin: 4px 0 0;

    font-size: 24px;
    font-weight: 700;
}

.aircraft-gallery-modal-close {

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: #f4f4f4;

    cursor: pointer;

    transition: .2s;
}

.aircraft-gallery-modal-close:hover {

    background: #e3e3e3;

    transform: rotate(90deg);
}

.aircraft-gallery-modal-close i {

    font-size: 18px;
}

/*
|--------------------------------------------------------------------------
| Área rolável
|--------------------------------------------------------------------------
*/

.aircraft-gallery-modal-grid {

    flex: 1;

    overflow-y: auto;

    padding: 22px;

    display: grid;

    /*grid-template-columns: repeat(auto-fill, minmax(220px,1fr));*/
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;

    align-content: start;

    background: #fafafa;
}

/*
|--------------------------------------------------------------------------
| Itens da galeria
|--------------------------------------------------------------------------
*/

.aircraft-gallery-modal-grid .aircraft-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition:
        transform .18s,
        box-shadow .18s;
}

.aircraft-gallery-modal-grid .aircraft-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 24px rgba(0,0,0,.16);
}

.aircraft-gallery-modal-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/*
|--------------------------------------------------------------------------
| Rodapé
|--------------------------------------------------------------------------
*/

.aircraft-gallery-modal-footer {
    padding: 20px;
    border-top: 1px solid #ececec;
    background: #fff;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.aircraft-gallery-modal-footer button {
    min-width: 220px;
}

/*
|--------------------------------------------------------------------------
| Barra preta dos créditos
|--------------------------------------------------------------------------
*/

.aircraft-gallery-modal-grid .aircraft-photo-info-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,.82);
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

.aircraft-gallery-modal-grid .aircraft-photo-info-description {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aircraft-gallery-modal-grid .aircraft-photo-info-credit {
    flex-shrink: 0;
    color: rgba(255,255,255,.85);
}

.aircraft-gallery-modal-grid .aircraft-photo-info-credit strong {
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| Scroll
|--------------------------------------------------------------------------
*/

.aircraft-gallery-modal-grid::-webkit-scrollbar {
    width: 10px;
}

.aircraft-gallery-modal-grid::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 20px;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 900px){

    .aircraft-gallery-modal{
        padding:0;
    }

    .aircraft-gallery-modal-dialog{
        width:100%;
        height:100vh;
        border-radius:0;
    }

    .aircraft-gallery-modal-grid{
        grid-template-columns:
            repeat(2,1fr);
        gap:10px;
        padding:12px;
    }

    .aircraft-gallery-modal-header{
        padding:18px;
    }

    .aircraft-gallery-modal-header h2{
        font-size:20px;
    }

}


/* sugestoes pendentes */
.aircraft-pending-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 0;
    padding: 11px 14px;
    background: #fafafa;
    border-left: 3px solid #7d9ab5;
    border-radius: 5px;
    color: #536878;
    font-size: 14px;
    line-height: 1.5;
}

.aircraft-pending-suggestion i {
    color: #7d9ab5;
    flex-shrink: 0;
}

.aircraft-pending-suggestion strong {
    color: #40586b;
}

.aircraft-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
}

.aircraft-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aircraft-main-image-link,
.aircraft-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
}

.aircraft-main-image-link > img,
.aircraft-gallery-item > img {
    display: block;
    width: 100%;
}

/*
 * Faixa inferior de informações.
 */
.aircraft-photo-info-bar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 18px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.3;
}

.aircraft-photo-info-description {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.aircraft-photo-info-credit {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.aircraft-photo-info-credit strong {
    color: #fff;
    font-weight: 600;
}

/*
 * Botão ampliar no canto superior direito.
 */
.aircraft-image-zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    left: auto;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.aircraft-image-zoom i {
    font-size: 12px;
}

@media (max-width: 600px) {
    .aircraft-photo-info-bar {
        /*display: block;*/
        padding: 5px 8px;
        font-size: 10px;
    }

    .aircraft-photo-info-description,
    .aircraft-photo-info-credit {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .aircraft-photo-info-credit {
        margin-top: 2px;
    }

    .aircraft-image-zoom {
        top: 8px;
        right: 8px;
        padding: 6px 8px;
    }
}
.aircraft-gallery-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.aircraft-gallery-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.aircraft-gallery-open span {
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 12px;
}


/* =========================================================
   OCORRÊNCIAS DA AERONAVE
   ========================================================= */

.aircraft-incidents-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 22px;
    padding: 24px;
    background: #fbfcfd;
    border: 1px dashed #bfd1df;
    border-radius: 14px;
}
.aircraft-incidents-section {
    position: relative;
}
.incident-count {
    position: absolute;
    right: 25px;
}

.aircraft-incidents-section h3 {
    margin: 2px 0 9px;
    color: #173f67;
    font-size: 20px;
}

.aircraft-incident-meta a {
    color: #64748b;
}

.aircraft-incident-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fcfa87;
    color: #64748b;
    font-size: 22px;
}

.aircraft-incident-content {
    flex: 1;
    min-width: 0;
}

.aircraft-incident-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 12px;
    color: #64748b;
}

.aircraft-incident-type {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
}

.aircraft-incident-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1e293b;
}

.aircraft-incident-location {
    margin: 0 0 6px;
    font-size: 13px;
    color: #64748b;
}

.aircraft-incident-location i {
    margin-right: 5px;
}

.aircraft-incident-description {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}
.aircraft-incidents-action {
    align-self: center;
    flex-shrink: 0;
}


/* ---------------------------------------------------------
   Nenhuma ocorrência
   --------------------------------------------------------- */
   
.aircraft-section-heading-incidents {
    flex: 1;
}   

.aircraft-incident-empty {
    padding: 20px 22px;
    background: #fff;
    border-radius: 12px;
}

.aircraft-incident-empty-content {
    min-width: 0;
}

.aircraft-incident-empty-content .aircraft-section-label {
    display: block;
    margin-bottom: 4px;
}

.aircraft-incident-empty-content h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #1e293b;
}

.aircraft-incident-empty-content p {
    max-width: 680px;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.aircraft-incident-action {
    align-self: center;
    flex-shrink: 0;
}

.aircraft-incident-item {
    margin-bottom: 15px;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .aircraft-incident-empty {
        align-items: flex-start;
        flex-direction: column;
    }
    
    .aircraft-incident-action .btn-secondary {
        width: 100%;
        justify-content: center;
    }

}



/* Listagem geral de ocorrências */

.global-incidents-section {
    margin: 30px auto 45px;
}

.global-incidents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.global-incidents-header h1 {
    margin: 8px 0;
    color: #004080;
    font-size: 1.8rem;
}

.global-incidents-header p {
    margin: 6px 0 0;
    color: #647181;
    font-size: 0.98rem;
}

.global-incidents-count {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 20px;
    background: #eaf2fa;
    color: #004080;
    font-size: 0.85rem;
    font-weight: 700;
}

.global-incidents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.global-incident-card {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.global-incident-image {
    flex: 0 0 210px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: #edf1f5;
}

.global-incident-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.global-incident-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.global-incident-content h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.global-incident-content h2 a {
    color: #004080;
    text-decoration: none;
}

.global-incident-content h2 a:hover {
    text-decoration: underline;
}

.global-incident-type {
    margin-bottom: 6px;
    color: #263648;
    font-weight: 700;
}

.global-incident-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 7px;
    color: #657181;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.global-incident-meta i {
    flex: 0 0 14px;
    margin-top: 3px;
}

.global-incident-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    color: #0056a6;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.global-incident-link:hover {
    text-decoration: underline;
}

.global-incidents-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
}

.global-incidents-pagination a {
    color: #004080;
    font-weight: 700;
    text-decoration: none;
}

.global-incidents-pagination a:hover {
    text-decoration: underline;
}

.global-incidents-pagination span {
    color: #657181;
    font-size: 0.9rem;
}

.global-incidents-empty {
    padding: 45px 20px;
    text-align: center;
    background: #fff;
    border: 1px solid #e7ebf0;
    border-radius: 12px;
}

.global-incidents-empty > i {
    color: #8292a5;
    font-size: 2rem;
}

.global-incidents-empty h2 {
    margin-top: 15px;
}

.global-incidents-empty p {
    color: #657181;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .global-incidents-header {
        align-items: flex-start;
    }

    .global-incidents-header h1 {
        font-size: 1.5rem;
    }

    .global-incident-card {
        flex-direction: column;
        gap: 14px;
    }

    .global-incident-image {
        flex: auto;
        width: 100%;
        height: 200px;
    }

    .global-incident-content {
        width: 100%;
    }

    .global-incident-link {
        margin-top: 8px;
    }
}

