/* =========================================
   PÁGINA DE PESQUISA
   ========================================= */

body {
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
}

/* =========================================
   MENU SUPERIOR
   ========================================= */

.pesquisa-info {
    width: 900px;
    margin: 15px auto 0 auto;
    padding: 10px 15px;
    background: #e9e9e9;
    border: 1px solid #cccccc;
    border-bottom: none;
    box-sizing: border-box;
}

.pesquisa-info a {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
}

.pesquisa-info a:hover {
    color: #0066cc;
    text-decoration: none;
}

.pesquisa-info .user {
    color: #666666;
    font-weight: bold;
}

/* =========================================
   FORMULÁRIO PESQUISA
   ========================================= */

.pesquisa-rnavt {
    width: 900px;
    margin: 0 auto 25px auto;
    border: 1px solid #cccccc;
    background: #ffffff;
    box-sizing: border-box;
}

.pesquisa-titulo {
    background: #dcdcdc;
    border-bottom: 1px solid #c8c8c8;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}

.pesquisa-subtitulo {
    padding: 10px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #dddddd;
    color: #666666;
    font-size: 13px;
}

.form-pesquisa {
    width: 100%;
    border-collapse: collapse;
}

.form-pesquisa td {
    padding: 10px;
}

.form-pesquisa .label {
    width: 90px;
    text-align: right;
    font-weight: bold;
    white-space: nowrap;
}

.campo {
    width: 250px;
    height: 32px;
    padding: 4px 8px;
    border: 1px solid #bbbbbb;
    box-sizing: border-box;
    background: #ffffff;
}

.campo:focus {
    border-color: #777777;
    outline: none;
}

/* =========================================
   BOTÕES
   ========================================= */

.botoes {
    text-align: center;
    padding: 15px !important;
    border-top: 1px solid #dddddd;
    background: #f8f8f8;
}

.botao-pesquisar {
    height: 35px;
    padding: 0 25px;
    border: 1px solid #666666;
    background: #666666;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.botao-pesquisar:hover {
    background: #4d4d4d;
}

.botao-limpar {
    height: 35px;
    padding: 0 20px;
    margin-left: 8px;
    border: 1px solid #bbbbbb;
    background: #ffffff;
    color: #444444;
    cursor: pointer;
}

.botao-limpar:hover {
    background: #eeeeee;
}

/* =========================================
   TABELA DE RESULTADOS
   ========================================= */

.greenTable {
    width: 900px;
    margin: 10px auto 30px auto;
    border-collapse: collapse;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    border: 1px solid #d5d5d5;
}

.greenTable thead th {
    background: #666666;
    color: #ffffff;
    padding: 11px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #5a5a5a;
}

.greenTable tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #dddddd;
    vertical-align: middle;
}

.greenTable tbody tr:nth-child(even) {
    background: #f7f7f7;
}

.greenTable tbody tr:nth-child(odd) {
    background: #ffffff;
}

.greenTable tbody tr:hover {
    background: #eeeeee;
}

.greenTable form {
    margin: 0;
    padding: 0;
}

/* Nome da agência */

.greenTable input[type="submit"] {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #0066a4;
    cursor: pointer;
    text-align: left;
}

.greenTable input[type="submit"]:hover {
    color: #003f68;
    text-decoration: underline;
}

.greenTable th:nth-child(1) {
    width: 32%;
}

.greenTable th:nth-child(2) {
    width: 15%;
}

.greenTable th:nth-child(3) {
    width: 23%;
}

.greenTable th:nth-child(4) {
    width: 15%;
}

.greenTable th:nth-child(5) {
    width: 15%;
}

.greenTable .linha-agencia {
    cursor: pointer;
}

.greenTable .nome-agencia {
    color: #0066a4;
    font-weight: bold;
}

.greenTable .linha-agencia:hover .nome-agencia {
    color: #003f68;
    text-decoration: underline;
}

.menu-topo {
    width: 100%;
    padding: 10px 15px;
    background: #e5e5e5;
    border-bottom: 1px solid #cccccc;
    box-sizing: border-box;
    font-size: 13px;
}

.menu-topo a {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
}

.menu-topo a:hover {
    color: #0066cc;
}

.pesquisa-ajuda {
    padding: 10px 15px;
    background: #f8f8f8;
    border-bottom: 1px solid #dddddd;
    color: #666666;
    font-size: 13px;
}

.resultado-info {
    width: 900px;
    margin: 15px auto 0 auto;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #dddddd;
    border-bottom: none;
    font-size: 13px;
}

.total-resultados {
    width: 900px;
    margin: 15px auto 5px auto;
    font-size: 13px;
    font-weight: bold;
    color: #555;
    text-align: center;
}

/* ÚLTIMOS COMENTÁRIOS */

.comentarios-box {
    width: 900px;
    margin: 15px auto 30px auto;
}

.comentarios-titulo {
    background: #666666;
    color: #ffffff;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: bold;
    box-sizing: border-box;
}

.comentarios-conteudo {
    padding: 15px;
    background: #f8f8f8;
    color: #333333;
    font-size: 13px;
    line-height: 1.7;
    box-sizing: border-box;
}

.agencia-container {
    width: 900px;
    margin: 0 auto;
    border: 1px solid #cccccc;
    box-sizing: border-box;
}

.voltar-pesquisa {
    width: 900px;
    margin: 15px auto;
    font-size: 13px;
}

.voltar-pesquisa a {
    color: #0066a4;
    text-decoration: none;
}

.voltar-pesquisa a:hover {
    text-decoration: underline;
}

/* FICHA DA AGÊNCIA */

.cellpadding {
    width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 13px;
    border: 1px solid #cccccc;
}

.cellpadding td {
    padding: 8px 12px;
    border: 1px solid #dddddd;
    vertical-align: middle;
}

/* Coluna dos títulos */

.cellpadding td:first-child {
    width: 25%;
    font-weight: bold;
}

/* Links */

.cellpadding a {
    color: #0066a4;
    text-decoration: none;
}

.cellpadding a:hover {
    text-decoration: underline;
}

.cellpadding td[bgcolor="#A5FF01"] {
    background: #666666 !important;
    color: #ffffff;
}

.cellpadding td[bgcolor="#FFFF99"] {
    background: #f2f2f2 !important;
    color: #333333;
}

.cellpadding td[bgcolor="#EEEEEE"] {
    background: #ffffff !important;
    color: #333333;
}

.cellpadding td[bgcolor="#FFCCFF"] {
    background: #eeeeee !important;
    color: #333333;
}

/* INSERIR COMENTÁRIO */

.comentario-form-box {
    width: 900px;
    margin: 20px auto;
    border: 1px solid #cccccc;
    background: #ffffff;
    box-sizing: border-box;
}

.comentario-form-titulo {
    background: #666666;
    color: #ffffff;
    padding: 11px 15px;
    font-size: 14px;
    font-weight: bold;
}

.comentario-form {
    padding: 15px;
}

.comentario-linha {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.comentario-linha label {
    width: 120px;
    padding-top: 7px;
    font-weight: bold;
    font-size: 13px;
}

.comentario-agencia {
    width: 500px;
    height: 32px;
    padding: 5px 8px;
    border: 1px solid #bbbbbb;
    box-sizing: border-box;
    background: #f4f4f4;
}

.comentario-texto {
    width: 650px;
    height: 90px;
    padding: 8px;
    border: 1px solid #bbbbbb;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    resize: vertical;
}

.comentario-texto:focus {
    outline: none;
    border-color: #777777;
}

.comentario-botoes {
    padding-left: 120px;
}

.comentario-sucesso {
    width: 900px;
    margin: 15px auto;
    padding: 12px 15px;
    box-sizing: border-box;
    background: #f2f2f2;
    border: 1px solid #cccccc;
    font-size: 13px;
    font-weight: bold;
    color: #333333;
}

/* LOGIN */

.login-container {
    width: 420px;
    margin: 100px auto 0 auto;
    border: 1px solid #cccccc;
    background: #ffffff;
    box-sizing: border-box;
}

.login-header {
    background: #666666;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: bold;
}

.login-subtitulo {
    padding: 12px 18px;
    background: #f4f4f4;
    border-bottom: 1px solid #dddddd;
    font-size: 13px;
    color: #555555;
}

.login-form {
    padding: 22px;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: bold;
    color: #333333;
}

.login-form .login-input {
    width: 100%;
    height: 38px;
    margin-bottom: 18px;
    padding: 6px 10px;
    border: 1px solid #bbbbbb;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.login-form .login-input:focus {
    outline: none;
    border-color: #666666;
}

.login-button {
    width: 120px;
    height: 38px;
    border: 0;
    background: #666666;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background: #555555;
}

.login-erro {
    margin: 15px 22px 0 22px;
    padding: 10px 12px;
    background: #f4f4f4;
    border: 1px solid #cccccc;
    font-size: 13px;
    font-weight: bold;
    color: #333333;
}

/* REGISTO DE LOGINS */

.login-log-table {
    width: 900px;
    margin: 10px auto 30px auto;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
    border: 1px solid #ccc;
}

.login-log-table th {
    background: #666;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #777;
}

.login-log-table td {
    padding: 9px 12px;
    border: 1px solid #ddd;
    color: #333;
}

.login-log-table tbody tr:nth-child(even) {
    background: #f4f4f4;
}

.login-log-table tbody tr:hover {
    background: #eeeeee;
}

.cellpadding th {
    background: #666;
    color: #fff;
    padding: 10px 12px;
    border: 1px solid #777;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

/* REGISTO */

.registo-voltar {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

.registo-voltar a {
    color: #0066a4;
    text-decoration: none;
    font-weight: bold;
}

.registo-voltar a:hover {
    text-decoration: underline;
}

.registo-mensagem {
    padding: 22px;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.registo-mensagem strong {
    font-size: 14px;
}

.registo-mensagem p {
    margin: 10px 0 20px 0;
}

.registo-link {
    display: inline-block;
    padding: 10px 15px;
    background: #666;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.registo-link:hover {
    background: #555;
}

.agencia-container {
    width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.login-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-header-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 7px;
}

.login-header-logo span {
    font-size: 18px;
    font-weight: bold;
}

.menu-logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    text-decoration: none;
}

.menu-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 5px;
}

/* VERSÃO TELEMÓVEL */
@media screen and (max-width: 700px) {

    .agencia-container {
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .greenTable,
    .cellpadding {
        width: 100% !important;
        font-size: 12px;
    }

    .greenTable th,
    .greenTable td,
    .cellpadding th,
    .cellpadding td {
        padding: 7px 5px;
    }

    .total-resultados {
        width: 100% !important;
    }

    .menu-topo {
        line-height: 2;
    }

    .menu-logo img {
        width: 28px;
        height: 28px;
    }

}

/* LOGIN - TELEMÓVEL */
@media screen and (max-width: 600px) {

    .login-container {
        width: calc(100% - 30px);
        max-width: 420px;
        margin: 50px auto 0 auto;
    }

    .login-form {
        padding: 20px;
    }

    .login-form .login-input {
        width: 100%;
        font-size: 16px;
    }

    .login-button {
        height: 42px;
    }

}

/* =========================================
   SEARCH - TELEMÓVEL
   ========================================= */

@media screen and (max-width: 700px) {

    .pesquisa-rnavt {
        width: calc(100% - 20px) !important;
        margin: 10px auto 20px auto !important;
    }

    /* MENU */

    .pesquisa-rnavt .menu-topo {
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.8 !important;
        white-space: normal !important;
        overflow: hidden;
    }

    .pesquisa-rnavt .menu-topo a {
        font-size: 12px !important;
    }

    .pesquisa-rnavt .menu-logo {
        margin-right: 5px !important;
    }

    .pesquisa-rnavt .menu-logo img {
        width: 24px !important;
        height: 24px !important;
    }

    /* TÍTULO E AJUDA */

    .pesquisa-titulo {
        padding: 10px 12px;
        font-size: 15px;
    }

    .pesquisa-ajuda {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* FORMULÁRIO */

    .form-pesquisa,
    .form-pesquisa tbody,
    .form-pesquisa tr,
    .form-pesquisa td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .form-pesquisa td {
        padding: 5px 12px !important;
    }

    .form-pesquisa .label {
        text-align: left !important;
        width: 100% !important;
        padding-top: 12px !important;
        padding-bottom: 4px !important;
    }

    .form-pesquisa .campo {
        width: 100% !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    /* Esconder as duas células vazias da linha Região */

    .form-pesquisa td:empty {
        display: none;
    }

    /* BOTÕES */

    .form-pesquisa .botoes {
        display: block !important;
        width: 100% !important;
        padding: 15px 12px !important;
        text-align: center !important;
        box-sizing: border-box;
    }

    .botao-pesquisar,
    .botao-limpar {
        min-width: 105px;
        margin: 3px !important;
    }

    /* RESULTADOS */

    .total-resultados {
        width: calc(100% - 20px) !important;
        margin: 15px auto 5px auto !important;
    }

    /* COMENTÁRIOS */

    .comentarios-box {
        width: calc(100% - 20px) !important;
        margin: 20px auto 30px auto !important;
    }

    .comentarios-conteudo {
        padding: 15px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }

    .comentarios-conteudo b,
    .comentarios-conteudo strong {
        font-size: 13px !important;
    }
}

/* RESULTADOS SEARCH - TELEMÓVEL */
@media screen and (max-width: 700px) {

    .greenTable {
        width: calc(100% - 20px) !important;
        margin: 10px auto 25px auto !important;
        border: 0 !important;
        background: transparent !important;
    }

    .greenTable thead {
        display: none;
    }

    .greenTable,
    .greenTable tbody,
    .greenTable tr,
    .greenTable td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    .greenTable .linha-agencia {
        margin-bottom: 15px;
        border: 1px solid #cccccc;
        background: #ffffff !important;
    }

    /* Nome da agência */
    .greenTable .nome-agencia {
        padding: 12px 15px !important;
        background: #666666 !important;
        color: #ffffff !important;
        font-size: 14px;
        font-weight: bold;
        border-bottom: 0 !important;
    }

    /* Restantes dados */
    .greenTable td[data-label] {
        position: relative;
        padding: 9px 12px 9px 115px !important;
        min-height: 36px;
        border-bottom: 1px solid #dddddd;
        font-size: 13px;
    }

    .greenTable td[data-label]::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        top: 9px;
        width: 90px;
        font-weight: bold;
        color: #555555;
    }

    .greenTable td:last-child {
        border-bottom: 0;
    }

    /* Telefones */
    .greenTable td a {
        color: #0066a4;
        text-decoration: none;
    }

}

/* =========================================
   AGENCIA - TELEMÓVEL
   ========================================= */

@media screen and (max-width: 700px) {

    body.text {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    body.text .agencia-container {
        width: calc(100% - 20px) !important;
        margin: 10px auto 0 auto !important;
    }

    /* MENU */

    body.text .menu-topo {
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.8 !important;
        white-space: normal !important;
    }

    body.text .menu-topo a {
        font-size: 12px !important;
    }

    body.text .menu-logo {
        margin-right: 5px !important;
    }

    body.text .menu-logo img {
        width: 24px !important;
        height: 24px !important;
    }

    /* VOLTAR À PESQUISA */

    .voltar-pesquisa {
        width: calc(100% - 20px) !important;
        margin: 15px auto 10px auto !important;
    }

    /* TABELAS */

    body.text .cellpadding {
        width: calc(100% - 20px) !important;
        max-width: none !important;
        margin: 0 auto 15px auto !important;
        font-size: 12px !important;
    }

    body.text .cellpadding td {
        padding: 8px 6px !important;
        overflow-wrap: break-word;
    }

    /* Primeira coluna */
    body.text .cellpadding td:first-child {
        width: 30% !important;
    }

    /* Telefones e links */

    body.text .cellpadding a {
        color: #0066a4;
    }

    /* FORMULÁRIO DE COMENTÁRIOS */

    .comentario-form-box {
        width: calc(100% - 20px) !important;
        margin: 20px auto !important;
    }

    .comentario-form {
        padding: 15px !important;
    }

    .comentario-linha {
        display: block !important;
    }

    .comentario-linha label {
        display: block !important;
        width: 100% !important;
        padding: 0 0 6px 0 !important;
    }

    .comentario-agencia,
    .comentario-texto {
        width: 100% !important;
        box-sizing: border-box;
        font-size: 16px !important;
    }

    .comentario-agencia {
        height: 40px !important;
    }

    .comentario-texto {
        height: 100px !important;
    }

    .comentario-botoes {
        padding-left: 0 !important;
        text-align: center;
    }

    /* MENSAGEM DE SUCESSO */

    .comentario-sucesso {
        width: calc(100% - 20px) !important;
    }

    /* ÚLTIMOS COMENTÁRIOS */

    body.text .comentarios-box {
        width: calc(100% - 20px) !important;
        margin: 20px auto 30px auto !important;
    }

    body.text .comentarios-conteudo {
        padding: 15px !important;
        font-size: 13px !important;
        line-height: 1.7 !important;
    }
}

/* Tabelas Vendas / Logins */
body.text .cellpadding td[align="right"] {
    font-size: 11px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

.estado-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 2px;
}

.greenTable {
    font-size: 12px;
}

.greenTable thead th {
    padding: 8px 10px;
    font-size: 12px;
}

.greenTable tbody td {
    padding: 5px 10px;
}

/* =========================================
   MENU - 3 LINHAS CENTRADAS
   ========================================= */

.menu-topo {
    position: relative;
    text-align: center;
}

.menu-topo .menu-logo {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
}

.menu-linhas {
    text-align: center;
}

.menu-linha {
    text-align: center;
    line-height: 1.8;
}

.monster-footer {
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #999999;
    margin-top: 35px;
    padding: 15px 0;
    clear: both;
    box-sizing: border-box;
}

.logo-nanjos img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}