/* Pesquisa nos dropdowns (31/10/2026, mock 2026-10-31-pesquisa-nos-dropdowns). ASCII. */
.gdd-com {
    max-height: min(70vh, 460px);
    overflow-y: auto;
}
.gdd-caixa {
    position: sticky;
    top: 0;
    z-index: 2;
    list-style: none;
    padding: 6px 8px 4px;
    margin: 0 0 2px;
    background: inherit;
    background-color: var(--gdd-fundo, #fff);
}
.dropdown-menu > .gdd-caixa,
.gdd-com > .gdd-caixa {
    margin-top: -5px;
    padding-top: 8px;
}
.gdd-campo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px 0 8px;
    border: 1px solid var(--gdd-borda, #d1d5db);
    border-radius: 6px;
    background: var(--gdd-campo, #f9fafb);
    color: var(--gdd-mut, #6b7280);
}
.gdd-campo:focus-within {
    border-color: var(--gdd-acento, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .18);
}
.gdd-campo svg {
    flex: none;
}
.gdd-campo input[type="search"] {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 30px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--gdd-tx, #1f2937);
    font: inherit;
    font-size: 13px;
    padding: 0;
    margin: 0;
}
.gdd-campo input[type="search"]::-webkit-search-cancel-button {
    display: none;
}
.gdd-x,
.gdd-mic {
    flex: none;
    border: 0;
    background: transparent;
    color: var(--gdd-mut, #6b7280);
    cursor: pointer;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gdd-x[hidden],
.gdd-mic[hidden],
.gdd-cont[hidden],
.gdd-fala[hidden],
.gdd-nada[hidden] {
    display: none !important;
}
.gdd-mic.gdd-ouvindo {
    background: #dc2626;
    color: #fff;
    animation: gdd-pulso 1.2s infinite;
}
@keyframes gdd-pulso {
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .25); }
}
.gdd-cont,
.gdd-fala {
    font-size: 11px;
    color: var(--gdd-mut, #6b7280);
    padding: 3px 4px 0;
    white-space: nowrap;
}
.gdd-fora {
    display: none !important;
}
.gdd-ativo > a,
.gdd-ativo > button,
a.gdd-ativo,
button.gdd-ativo,
.gdd-ativo {
    background-color: var(--gdd-ativo, #e8efff) !important;
    color: var(--gdd-tx, #1f2937) !important;
}
.gdd-nada {
    list-style: none;
    padding: 8px 14px;
    color: var(--gdd-mut, #6b7280);
    font-size: 13px;
    white-space: normal;
}
.gdd-nada button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--gdd-acento, #2563eb);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}
::highlight(gdd) {
    background-color: #fde68a;
    color: #111827;
}
.gdd-escondido {
    visibility: hidden !important;
}

/* painel do select nativo (computador) */
.gdd-painel {
    position: fixed;
    z-index: 2100;
    background: var(--gdd-fundo, #fff);
    color: var(--gdd-tx, #1f2937);
    border: 1px solid var(--gdd-borda, #d1d5db);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    overflow-y: auto;
    font-size: 13px;
    text-align: left;
}
.gdd-painel > .gdd-caixa,
.gdd-lista > .gdd-caixa {
    background: var(--gdd-fundo, #fff);
}
.gdd-painel ul,
.gdd-folha ul {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
}
.gdd-painel li > a,
.gdd-folha li > a {
    display: block;
    padding: 6px 12px;
    color: inherit !important;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gdd-painel li > a:hover {
    background: var(--gdd-ativo, #e8efff);
}
.gdd-painel li.gdd-marcada > a,
.gdd-folha li.gdd-marcada > a {
    font-weight: 600;
}
.gdd-painel li.gdd-marcada > a::before,
.gdd-folha li.gdd-marcada > a::before {
    content: "\2713";
    display: inline-block;
    width: 16px;
    margin-left: -4px;
}
.gdd-painel li.gdd-desl > a,
.gdd-folha li.gdd-desl > a {
    opacity: .5;
    pointer-events: none;
}
.gdd-g {
    padding: 8px 12px 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gdd-mut, #6b7280);
}

/* folha de baixo (celular) */
.gdd-fundo {
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .15s;
}
.gdd-fundo.gdd-ab {
    opacity: 1;
}
.gdd-folha {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2201;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: var(--gdd-fundo, #fff);
    color: var(--gdd-tx, #1f2937);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    transform: translateY(100%);
    transition: transform .18s ease-out;
    font-size: 15px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.gdd-folha.gdd-ab {
    transform: none;
}
.gdd-alca {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--gdd-borda, #d1d5db);
    margin: 8px auto 2px;
}
.gdd-tit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 8px 2px 16px;
    font-weight: 600;
}
.gdd-tit span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gdd-fechar {
    border: 0;
    background: transparent;
    color: var(--gdd-mut, #6b7280);
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
}
.gdd-lista {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.gdd-folha .gdd-caixa {
    padding: 4px 12px 6px;
}
.gdd-folha .gdd-campo input[type="search"] {
    height: 40px;
    font-size: 16px;
}
.gdd-folha .gdd-mic,
.gdd-folha .gdd-x {
    width: 40px;
    height: 40px;
}
.gdd-folha li > a {
    min-height: 44px;
    padding: 12px 16px;
    white-space: normal;
}
.gdd-folha .gdd-g {
    padding: 10px 16px 2px;
}
html.gdd-folha-aberta,
html.gdd-folha-aberta body {
    overflow: hidden !important;
}

/* modo escuro (D11): so nas telas conferidas no escuro */
html[data-ga-tela-escura="S"][data-ga-aparencia="escuro"] {
    --gdd-fundo: #1f2937;
    --gdd-tx: #e5e7eb;
    --gdd-mut: #a3acb9;
    --gdd-borda: #4b5563;
    --gdd-campo: #111827;
    --gdd-ativo: #1e3a8a;
    --gdd-acento: #93c5fd;
}
html[data-ga-tela-escura="S"][data-ga-aparencia="escuro"] .dropdown-menu .gdd-caixa {
    background-color: inherit;
}
html[data-ga-tela-escura="S"][data-ga-aparencia="escuro"] ::highlight(gdd) {
    background-color: #a16207;
    color: #fff;
}
