/*
  Proposta visual incremental para GETBIM.
  Mantem WebForms, postbacks, TreeView, UpdatePanel e controles existentes.
*/

:root {
    --gb-primary: #004c82;
    --gb-primary-dark: #00365d;
    --gb-primary-soft: #e7f1f8;
    --gb-bg: #f3f6f8;
    --gb-surface: #ffffff;
    --gb-surface-soft: #f8fafc;
    --gb-border: #d9e3ea;
    --gb-text: #26323b;
    --gb-muted: #637381;
    --gb-success: #1f7a5b;
    --gb-warning: #9b6a22;
    --gb-shadow: 0 10px 30px rgba(0, 76, 130, 0.10);
    --gb-shadow-soft: 0 5px 18px rgba(20, 48, 67, 0.08);
}

html,
body {
    background: var(--gb-bg) !important;
    color: var(--gb-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

body {
    overflow: hidden;
}

#aspnetForm {
    background: var(--gb-bg);
}
/* =========================================================
   CABEÇALHO
   ========================================================= */

#divCabecalho {
    height: 72px !important;
    min-height: 72px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid var(--gb-border);
    box-shadow: 0 2px 14px rgba(20, 48, 67, 0.07);
    z-index: 1000;
}

    /* Container interno do cabeçalho */
    #divCabecalho .container-fluid {
        height: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Linha interna */
    #divCabecalho .row {
        height: 100%;
        align-items: center;
    }

    /* =========================================================
   ÁREA DO LOGO
   Não mexe no hover dos links
   ========================================================= */

    #divCabecalho .app-logo-area {
        height: 72px;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: transparent !important;
    }

    #divCabecalho .app-logo-link,
    #divCabecalho .app-logo-link:hover,
    #divCabecalho .app-logo-link:focus {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        text-decoration: none !important;
    }

    #divCabecalho .app-logo {
        max-height: 68px !important;
        max-width: 300px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    /* =========================================================
   ÁREA DOS LINKS
   Home | Minha Conta | Sair | Usuário | Data
   ========================================================= */

    #divCabecalho .app-user-area {
        height: 72px;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px;
        padding: 0 !important;
        padding-left: 1px !important;
        background: transparent !important;
        text-align: left !important;
        flex-wrap: wrap;
        width: auto !important;
        flex: 1 1 auto !important;
    }

        #divCabecalho .app-user-area .app-header-link,
        #divCabecalho .app-user-area .app-user-label,
        #divCabecalho .app-user-area .app-separator {
            font-size: 13px !important;
            font-weight: 600 !important;
            line-height: 1.35 !important;
            color: var(--gb-primary) !important;
        }

        #divCabecalho .app-user-area .app-header-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 36px;
            padding: 0 10px;
            border-radius: 8px;
            text-decoration: none !important;
            transition: background-color 0.18s ease, color 0.18s ease;
        }

            #divCabecalho .app-user-area .app-header-link:hover,
            #divCabecalho .app-user-area .app-header-link:focus {
                background: rgba(0, 76, 130, 0.14) !important;
                color: var(--gb-primary) !important;
                text-decoration: none !important;
            }

        #divCabecalho .app-user-area .app-user-label {
            display: inline-flex;
            align-items: center;
            min-height: 36px;
            padding: 0 6px;
        }

        #divCabecalho .app-user-area .app-separator {
            opacity: 0.9;
        }

#ctl00_lblUsuario,
#ctl00_lblData {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 8px;
    color: #365667 !important;
    font-weight: 500;
}

#ctl00_lblUsuario {
    margin-left: 8px;
}

#ctl00_lblData {
    color: var(--gb-muted) !important;
}


#ctl00_ContentPlaceHolder1_pnControles {
    max-width: 1380px;
    margin: 0 auto;
}

    #ctl00_ContentPlaceHolder1_pnControles::before {
        display: block;
        margin: 0 0 4px;
        color: var(--gb-text);
        font-size: 20px;
        font-weight: 700;
    }
    /*    #ctl00_ContentPlaceHolder1_pnControles.pedido::before {
        content: "Pedidos";
    }
    #ctl00_ContentPlaceHolder1_pnControles.objeto::before {
        content: "Objetos";
    }*/

    #ctl00_ContentPlaceHolder1_pnControles::after {
        display: block;
        margin: -2px 0 18px;
        color: var(--gb-muted);
        font-size: 13px;
    }

.contact.tab-pane {
    padding: 0 !important;
}

.rowTituloObjeto {
    margin: 0 0 12px !important;
    padding: 10px 14px !important;
    background: var(--gb-primary) !important;
    color: #ffffff;
    border-radius: 8px 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: left;
}

    .rowTituloObjeto img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        vertical-align: middle;
    }



#ctl00_ContentPlaceHolder1_pnPesquisa,
#ctl00_ContentPlaceHolder1_pnConsulta {
    display: block;
    margin-bottom: 18px;
    padding: 14px 16px 16px;
    background: var(--gb-surface);
    border: 1px solid var(--gb-border);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--gb-shadow);
}

#ctl00_ContentPlaceHolder1_pnConsulta {
    padding: 10px 0 18px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#ctl00_ContentPlaceHolder1_pnPesquisa > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding-left: 0 !important;
}

#ctl00_ContentPlaceHolder1_pnPesquisa .col-sm-2,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-lg-2,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-xs-2,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-md-2 {
    width: auto !important;
    min-width: 135px;
    padding: 0;
    color: var(--gb-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

#ctl00_ContentPlaceHolder1_pnPesquisa .col-sm-8,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-lg-8,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-xs-8,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-md-8,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-sm-10,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-lg-10,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-xs-10,
#ctl00_ContentPlaceHolder1_pnPesquisa .col-md-10 {
    flex: 1;
    width: auto !important;
    padding: 0;
}



input[type="text"],
input[type="password"],
select,
textarea {
    min-height: 34px;
    padding: 7px 10px !important;
    border: 1px solid var(--gb-border) !important;
    border-radius: 7px;
    background: var(--gb-surface);
    color: var(--gb-text);
    outline: none;
}

    input[type="text"]:focus,
    input[type="password"]:focus,
    select:focus,
    textarea:focus {
        border-color: var(--gb-primary) !important;
        box-shadow: 0 0 0 3px rgba(0, 76, 130, 0.12);
    }

#ctl00_ContentPlaceHolder1_tbObjetoPesquisa {
    width: min(100%, 520px) !important;
}

.btn,
input[type="submit"],
input[type="button"] {
    height: 32px;
    min-height: 32px;
    padding: 0 13px !important;
    border: 1px solid var(--gb-primary) !important;
    border-radius: 7px !important;
    background: var(--gb-primary) !important;
    color: #ffffff !important;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 30px !important;
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    transform: none !important;
}

#ctl00_ContentPlaceHolder1_btCategoriaSelecionar,
#ctl00_ContentPlaceHolder1_btCategoriaPesquisar {
    width: auto !important;
    min-width: 92px;
}

.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--gb-primary-dark) !important;
    border-color: var(--gb-primary-dark) !important;
    box-shadow: 0 6px 14px rgba(0, 76, 130, 0.18);
    transform: none !important;
}

input[type="image"] {
    padding: 8px;
    border-radius: 7px;
    background: var(--gb-primary-soft);
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

    input[type="image"]:hover {
        background: #d8eaf5;
        box-shadow: 0 4px 12px rgba(0, 76, 130, 0.12);
    }

#ctl00_ContentPlaceHolder1_dlObjeto {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 14px 18px;
}

    #ctl00_ContentPlaceHolder1_dlObjeto td {
        padding: 0 !important;
    }

        #ctl00_ContentPlaceHolder1_dlObjeto td[align="center"] {
            width: 33.333% !important;
            min-width: 230px;
            background: var(--gb-surface);
            border: 1px solid var(--gb-border);
            border-radius: 8px;
            box-shadow: var(--gb-shadow-soft);
            overflow: hidden;
            transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }

            #ctl00_ContentPlaceHolder1_dlObjeto td[align="center"]:hover {
                border-color: rgba(0, 76, 130, 0.35);
                box-shadow: 0 12px 26px rgba(20, 48, 67, 0.12);
                transform: translateY(-1px);
            }

#listaObjeto {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 224px;
    padding: 18px 16px 18px;
    background: var(--gb-surface);
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    text-align: center;
}

#ctl00_ContentPlaceHolder1_dlObjeto #listaObjeto {
    border: 0 !important;
    background: var(--gb-surface) !important;
}

#listaObjeto br:first-child,
#listaObjeto br:nth-child(2) {
    display: none;
}

#listaObjeto img {
    width: 100%;
    max-width: 138px;
    height: 108px;
    object-fit: contain;
    margin: 0 auto 14px;
    padding: 0;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
}

#listaObjeto span[id*="lblDescricao"] {
    display: block;
    min-height: 36px;
    margin: 0 0 8px;
    color: var(--gb-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

#listaObjeto span[id*="lblVersao"],
#listaObjeto span[id*="lblDataAtualizacao"] {
    color: var(--gb-muted);
    font-size: 12px;
    font-weight: 600;
}

#listaObjeto span[id*="lblStatus"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 2px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(31, 122, 91, 0.12);
    color: var(--gb-success);
    font-size: 11px;
    font-weight: 700;
}

#ctl00_ContentPlaceHolder1_dlObjeto td[align="center"] > div:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 58px;
    padding: 14px 12px 16px !important;
    border-top: 1px solid var(--gb-border);
    background: #ffffff;
}

input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--gb-primary);
}

input[id*="btDetalhes"] {
    width: auto !important;
    min-width: 82px;
}

@media (max-width: 980px) {
    #menu {
        width: 220px !important;
    }

    #conteudo {
        padding-left: 240px !important;
        padding-right: 14px !important;
    }

    #ctl00_ContentPlaceHolder1_pnPesquisa > div {
        flex-wrap: wrap;
    }

    #ctl00_ContentPlaceHolder1_dlObjeto,
    #ctl00_ContentPlaceHolder1_dlObjeto tbody,
    #ctl00_ContentPlaceHolder1_dlObjeto tr,
    #ctl00_ContentPlaceHolder1_dlObjeto td {
        display: block;
        width: 100% !important;
    }
}

/* Campos da tela de detalhes */
#ctl00_ContentPlaceHolder1_pnCadastro {
    padding: 0 24px 6px;
}

    #ctl00_ContentPlaceHolder1_pnCadastro > div:not(.rowTituloObjeto):not(.rowSubTitulo) {
        padding: 6px 0;
    }

    #ctl00_ContentPlaceHolder1_pnCadastro .form-label {
        /*margin-bottom: 0;*/
        padding: 0 24px 6px !important;
        color: var(--gb-muted);
        font-size: 13px;
        font-weight: 600;
    }

    #ctl00_ContentPlaceHolder1_pnCadastro .form-control {
        min-height: 36px;
        font-size: 13px;
    }

    /* Campos desabilitados */
    #ctl00_ContentPlaceHolder1_pnCadastro input[disabled],
    #ctl00_ContentPlaceHolder1_pnCadastro textarea[disabled] {
        background-color: #f8fafc !important;
        color: var(--gb-text) !important;
        opacity: 1;
    }

    /* Card das categorias */
    #ctl00_ContentPlaceHolder1_pnCadastro .card {
        border: 1px solid var(--gb-border);
        border-radius: 10px;
        box-shadow: var(--gb-shadow-soft);
    }

    #ctl00_ContentPlaceHolder1_pnCadastro .card-body {
        padding: 12px 16px;
    }


/* Níveis da categoria */
.categoria-nivel {
    width: 100%;
    text-align: left;
    font-size: 13px;
    padding-top: 3px;
    padding-bottom: 3px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.categoria-nivel-0 {
    padding-left: 0;
}

.categoria-nivel-1 {
    padding-left: 20px;
}

.categoria-nivel-2 {
    padding-left: 40px;
}

.categoria-nivel-3 {
    padding-left: 60px;
}

.categoria-nivel-4 {
    padding-left: 80px;
}


/* Grid de arquivos */
#ctl00_ContentPlaceHolder1_dgArquivoObjeto {
    width: 100% !important;
    background: #ffffff;
    border: 1px solid var(--gb-border);
    border-radius: 8px;
    overflow: hidden;
}

    #ctl00_ContentPlaceHolder1_dgArquivoObjeto th,
    #ctl00_ContentPlaceHolder1_dgArquivoObjeto td {
        padding: 8px 10px !important;
        font-size: 12px;
        border-bottom: 1px solid var(--gb-border);
    }

    #ctl00_ContentPlaceHolder1_dgArquivoObjeto th {
        background: var(--gb-primary-soft) !important;
        color: var(--gb-primary);
        font-weight: 700;
    }

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.imagem-detalhe-box {
    max-width: 260px;
    padding: 12px;
    border: 1px solid var(--gb-border);
    border-radius: 10px;
    background: #ffffff;
}

.imagem-detalhe {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
}

/* =========================================================
   ESTRUTURA PRINCIPAL MASTER PAGE
   ========================================================= */

.app-layout {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--gb-bg);
}

#areaPrincipal,
.app-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: hidden;
    background: var(--gb-bg);
}

/* Menu lateral */
#menu,
.app-sidebar {
    flex: 0 0 285px;
    width: 285px !important;
    min-width: 285px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 14px 70px !important;
    background: linear-gradient(180deg, var(--gb-primary), var(--gb-primary-dark)) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 8px 0 22px rgba(0, 76, 130, 0.16);
}

/* Conteúdo */
#conteudo,
.app-content {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 26px 30px 48px 30px !important;
    background: var(--gb-bg) !important;
}


#divRodape,
.app-footer {
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px 18px !important;
    background: linear-gradient(180deg, var(--gb-primary), var(--gb-primary-dark)) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    text-align: right !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* =========================================================
   MENU LATERAL - COR E TAMANHO ORIGINAL
   Não mexe na Master Page
   ========================================================= */

#menu {
    width: 285px !important;
    height: calc(100vh - 72px) !important;
    padding: 18px 14px 70px;
    background: linear-gradient(180deg, var(--gb-primary), var(--gb-primary-dark)) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 8px 0 22px rgba(0, 76, 130, 0.16);
}

    #menu::-webkit-scrollbar,
    #conteudo::-webkit-scrollbar {
        width: 10px;
    }

    #menu::-webkit-scrollbar-thumb,
    #conteudo::-webkit-scrollbar-thumb {
        background: rgba(38, 50, 59, 0.28);
        border: 3px solid transparent;
        border-radius: 999px;
        background-clip: padding-box;
    }

    #menu table {
        width: 100%;
        margin: 0;
    }

    #menu td {
        vertical-align: middle;
        padding: 0 !important;
    }

    #menu img {
        opacity: 0.9;
    }

    #menu tr[style*="height:2px"],
    #menu tr[style*="height: 2px"] {
        display: none;
    }

    #menu td img[src*="WebResource"] {
        display: none;
    }

    #menu td div[style*="width:10px"],
    #menu td div[style*="width: 10px"] {
        width: 0 !important;
    }

    #menu td:has(> a[id*="ctl00_tvMenun"]) {
        width: 22px !important;
        min-width: 22px;
        text-align: center;
    }

    #menu a,
    #menu span,
    #menu .menu-node {
        color: #ffffff !important;
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

        #menu a[id*="ctl00_tvMenut"] {
            display: inline-block;
            width: 100%;
            padding: 9px 10px;
            border-radius: 8px;
            text-decoration: none !important;
        }

            #menu a[id*="ctl00_tvMenut"]:hover {
                background: rgba(255, 255, 255, 0.14) !important;
                font-weight: 600;
            }

    #menu > #ctl00_updPainel1 > div > table a[id*="ctl00_tvMenut"] {
        margin-top: 6px;
        font-size: 13px !important;
        font-weight: 700;
    }

    #menu div[id$="Nodes"] {
        margin: 2px 0 10px 23px;
        padding-left: 12px;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
    }

        #menu div[id$="Nodes"] table {
            margin: 0;
        }

        #menu div[id$="Nodes"] a[id*="ctl00_tvMenut"] {
            position: relative;
            padding: 6px 8px 6px 13px;
            color: rgba(255, 255, 255, 0.92) !important;
            font-size: 12px !important;
            font-weight: 500;
        }

            #menu div[id$="Nodes"] a[id*="ctl00_tvMenut"]::before {
                content: "";
                position: absolute;
                left: 2px;
                top: 50%;
                width: 4px;
                height: 4px;
                margin-top: -2px;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.45);
            }

            #menu div[id$="Nodes"] a[id*="ctl00_tvMenut"]:hover {
                color: #ffffff !important;
            }

/* =========================================================
   AJUSTES DEFAULT.ASPX
   ========================================================= */

#ctl00_ContentPlaceHolder1_pnControles {
    max-width: 1380px;
    margin: 0 auto;
}


.app-card {
    background: #fff;
    border: 1px solid var(--gb-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--gb-shadow-soft);
}

.app-card-header {
    padding: 12px 16px;
    background: #f3f4f6;
    border-bottom: 1px solid var(--gb-border);
    color: var(--gb-text);
    font-size: 14px;
    font-weight: 700;
}

.app-card-body {
    padding: 0;
}

.rowTituloObjeto {
    margin: 0 0 12px !important;
    padding: 10px 14px !important;
    background: var(--gb-primary) !important;
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.rowSubTitulo {
    margin: 0px 0 12px !important;
    padding: 10px 14px !important;
    background: var(--gb-primary-soft) !important;
    color: var(--gb-primary);
    border-left: 4px solid var(--gb-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

    /* Imagens do título e subtítulo com o mesmo tamanho */
    .rowTituloObjeto img,
    .rowSubTitulo img {
        width: 20px;
        height: 20px;
        object-fit: contain;
        padding-right: 10px;
    }

.painel-categoria {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    border: 1px solid var(--gb-border);
    border-radius: 8px;
    padding: 10px;
}

/* =========================================================
   LOGIN
   ========================================================= */

.login {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f3f6f8 0%, #e7f1f8 100%) !important;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

    .login #form1 {
        min-height: 100vh;
    }

.login-page {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 28px 26px;
    background: #ffffff;
    border: 1px solid var(--gb-border);
    border-radius: 14px;
    box-shadow: var(--gb-shadow);
}

.login-logo-area {
    text-align: center;
    margin-bottom: 20px;
}

.login-card .comp-logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.login-card .get-bim-logo {
    max-width: 150px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.login-card h3 {
    margin: 0 0 22px;
    padding-top: 18px;
    border-top: 1px solid var(--gb-border);
    color: var(--gb-text);
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.login-card .form-control {
    min-height: 40px;
    border: 1px solid var(--gb-border) !important;
    border-radius: 8px;
    font-size: 14px;
}

    .login-card .form-control:focus {
        border-color: var(--gb-primary) !important;
        box-shadow: 0 0 0 3px rgba(0, 76, 130, 0.12);
    }

.login-card .btn-primary,
.login-card input[type="submit"] {
    height: 40px;
    border-radius: 8px !important;
    background: var(--gb-primary) !important;
    border-color: var(--gb-primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 0.03em;
}

    .login-card .btn-primary:hover,
    .login-card input[type="submit"]:hover {
        background: var(--gb-primary-dark) !important;
        border-color: var(--gb-primary-dark) !important;
    }

.login-links {
    padding-top: 14px;
    border-top: 1px solid var(--gb-border);
    text-align: center;
}

.login-link {
    color: var(--gb-primary) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}

    .login-link:hover {
        text-decoration: underline !important;
    }

#divRodape1 {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    color: var(--gb-muted);
    font-size: 12px;
    text-align: center;
    background: transparent;
}


/* =========================================================
   LOGIN PATROCINADORES MODERNO
   ========================================================= */

.login-patrocinadores-page {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-patrocinadores-wrapper {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: stretch;
}

/* Área esquerda */
.patrocinadores-content {
    min-width: 0;
}

.patrocinadores-card {
    height: 100%;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--gb-border);
    border-radius: 16px;
    box-shadow: var(--gb-shadow);
}

.patrocinadores-header h2 {
    margin: 0 0 20px;
    color: var(--gb-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.patrocinadores-lista {
    width: 100%;
    margin-top: 10px;
}

    /* DataList dos patrocinadores */
    .patrocinadores-lista table {
        width: 100%;
        border-collapse: separate !important;
        border-spacing: 14px;
    }

    .patrocinadores-lista td {
        padding: 0 !important;
    }

.patrocinador-item {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: var(--gb-surface-soft);
    border: 1px solid var(--gb-border);
    border-radius: 12px;
    transition: all 0.18s ease;
}

    .patrocinador-item:hover {
        border-color: rgba(0, 76, 130, 0.35);
        box-shadow: var(--gb-shadow-soft);
        transform: translateY(-2px);
    }

.patrocinador-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

    /* Imagens que o HyperLink renderizar dentro do DataList */
    .patrocinador-link img,
    .patrocinador-item img {
        max-width: 160px;
        max-height: 80px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

.patrocinadores-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--gb-border);
    color: var(--gb-muted);
    font-size: 14px;
    line-height: 1.6;
}

    .patrocinadores-footer a {
        color: var(--gb-primary) !important;
        font-weight: 700;
        text-decoration: none !important;
    }

        .patrocinadores-footer a:hover {
            text-decoration: underline !important;
        }

/* Área direita */
.patrocinadores-login {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .patrocinadores-login .login-card {
        width: 100%;
        max-width: 390px;
        margin: 0;
    }

/* Responsivo */
@media (max-width: 991.98px) {
    .login-patrocinadores-page {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .login-patrocinadores-wrapper {
        grid-template-columns: 1fr;
    }

    .patrocinadores-login {
        order: -1;
    }

    .patrocinadores-card {
        padding: 22px;
    }

    .patrocinadores-lista table,
    .patrocinadores-lista tbody,
    .patrocinadores-lista tr,
    .patrocinadores-lista td {
        display: block;
        width: 100% !important;
    }

    .patrocinador-item {
        margin-bottom: 12px;
    }
}

/* =========================================================
   GRID PADRÃO
   ========================================================= */

.tabela-padrao {
    width: 100% !important;
    margin-bottom: 0;
    background: #ffffff;
    border: 1px solid var(--gb-border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
}

    .tabela-padrao th,
    .tabela-padrao td {
        padding: 8px 10px !important;
        vertical-align: middle !important;
        border-bottom: 1px solid var(--gb-border) !important;
    }

    .tabela-padrao th,
    .cabecalho-grid {
        background: var(--gb-primary-soft) !important;
        color: var(--gb-primary) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-align: left;
    }

    .tabela-padrao tr:hover td {
        background: #f3f6f8 !important;
    }

    .tabela-padrao input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: #6c757d;
    }

.linha-normal td {
    background: #ffffff !important;
}

.linha-alternada td {
    background: #f8fafc !important;
}

.linha-selecionada td {
    background-color: #f3f4f6 !important;
    color: #212529 !important;
    font-weight: 550 !important;
}

.grid-action {
    width: 26px !important;
    height: 26px !important;
    padding: 5px !important;
    border-radius: 6px !important;
    background: var(--gb-primary) !important;
    border: 1px solid var(--gb-primary) !important;
    object-fit: contain;
    transition: all 0.15s ease;
}

    .grid-action:hover {
        background: var(--gb-primary-dark) !important;
        border-color: var(--gb-primary-dark) !important;
        transform: translateY(-1px);
    }

.campo-pequeno {
    max-width: 120px;
}

.campo-medio {
    max-width: 260px;
}

#btBuscaNorma,
[id*="btBuscaNorma"] {
    display: inline-flex !important;
    width: auto !important;
    flex-shrink: 0;
}

#tbDescricaoNorma {
    min-width: 0;
}

.imagem-pessoa-box {
    max-width: 220px;
    min-height: 120px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    background: #fff;
}

.imagem-pessoa {
    max-width: 100%;
    height: auto;
    display: block;
}

.campo-cnpj {
    max-width: 180px;
    min-width: 180px;
}

.campo-ddd {
    max-width: 70px;
}

.campo-telefone {
    max-width: 150px;
}

.campo-medio {
    max-width: 300px;
}

.campo-grande {
    max-width: 600px;
}

.campo-cep {
    max-width: 160px;
    min-width: 160px;
}

.campo-uf {
    max-width: 140px;
}

.campo-cidade {
    max-width: 300px;
}

.campo-data {
    min-width: 140px;
    max-width: 180px;
} 


.checkbox-padrao {
    font-family: inherit;
    color: var(--gb-muted);
    font-size: 13px;
    font-weight: 600;
}

    .checkbox-padrao input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 13px;
        height: 13px;
        border: 1px solid #8c8c8c;
        border-radius: 3px;
        background: #fff;
        cursor: pointer;
        vertical-align: middle;
        position: relative;
        margin-right: 10px; /* espaço entre o checkbox e o texto */
    }

        .checkbox-padrao input[type="checkbox"]:checked {
            background: #6c757d;
            border-color: #6c757d;
        }

            .checkbox-padrao input[type="checkbox"]:checked::after {
                content: "";
                position: absolute;
                left: 4px;
                top: 1px;
                width: 5px;
                height: 9px;
                border: solid #fff;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }

    .checkbox-padrao label, .checkbox-padrao {
        margin: 0;
        font-size: 13px;
        font-weight: 400; /* peso normal */
        color: var(--gb-text);
        vertical-align: middle;
        cursor: pointer;
        font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    }

.radio-padrao {
    border-collapse: collapse;
}

    .radio-padrao td {
        padding: 0;
        white-space: nowrap;
        vertical-align: middle;
    }

        /* Espaço entre Física e Jurídica */
        .radio-padrao td + td {
            padding-left: 32px;
        }

    /* Radio menor */
    .radio-padrao input[type="radio"] {
        width: 13px;
        height: 13px;
        margin: 0 9px 0 0;
        vertical-align: middle;
        cursor: pointer;
        accent-color: #6c757d;
    }

    /* Texto */
    .radio-padrao label {
        margin: 0;
        font-size: 13px;
        vertical-align: middle;
        cursor: pointer;
    }


.valor-label {
    font-family: inherit;
    color: var(--gb-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #212529;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}


.label-pesquisa {
    font-size: 13px;
    font-weight: 600;
    color: #243b53;
}

.campo-codigo {
    max-width: 220px;
}


.grupo-formulario {
    padding: 20px;
    border: 1px solid var(--gb-border);
    border-radius: 8px;
    background: var(--gb-surface);
}


    .grupo-formulario .form-label {
        text-align: left;
        display: block;
        color: var(--gb-muted);
        font-size: 13px;
        font-weight: 600;
    }

.grupo-formulario .btn {
    min-width: 120px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

    .form-row .form-label {
        width: 140px;
        margin: 0;
        color: var(--gb-muted);
        font-weight: 600;
    }

    .form-row .campo {
        flex: 1;
        width: 140px;
        margin: 0;
    }
.grupos-permissao {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
    margin-bottom: 1.25rem;
    width: 98%;
    font-size: 13px;
}

    .grupos-permissao .card-header {
        background-color: #0d6efd;
        color: white;
        font-size: 14px;
    }


.card-header {
    background: #f3f4f6 !important;
    color: var(--gb-text) !important;
    border-bottom: 1px solid var(--gb-border);
    padding: 12px 18px;
}

    .card-header .dados-usuario-grupo {
        display: flex;
        align-items: center;
        gap: 40px;
        margin: 0;
    }

        .card-header .dados-usuario-grupo strong {
            color: var(--gb-muted);
            font-size: 13px;
            font-weight: 700;
        }

        .card-header .dados-usuario-grupo span,
        .card-header .dados-usuario-grupo label {
            color: var(--gb-text);
            font-size: 13px;
            font-weight: 500;
        }



.grupos-permissao table {
    font-size: 13px;
}

.grupos-permissao h6 {
    font-size: 13px;
    font-weight: bold;
}

.form-pesquisa {
    font-size: 13px;
}

    .form-pesquisa .form-label {
        font-size: 13px;
        font-weight: 600;
    }

    .form-pesquisa input,
    .form-pesquisa select,
    .form-pesquisa textarea {
        font-size: 13px;
        height: 32px;
    }

    .form-pesquisa .btn {
        font-size: 13px;
        padding: 4px 12px;
    }

#dgGrupo {
    width: 100%;
    text-align: left !important;
}

    #dgGrupo td {
        text-align: left !important;
    }

        #dgGrupo td:first-child {
            width: 50px !important;
            text-align: center !important;
        }

        #dgGrupo td:last-child {
            text-align: left !important;
        }