/* Máscara + olho dos dados sensíveis (controller/components/dados_sensiveis.js). */
.ds-campo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    max-width: 100%;
}

.ds-campo .ds-valor {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-campo .ds-olho {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary, #8a94a6);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
}

.ds-campo .ds-olho:hover,
.ds-campo .ds-olho:focus-visible {
    color: var(--primary, #1f3a60);
    background: rgba(127, 127, 127, .15);
    outline: none;
}

.ds-campo.ds-aberto .ds-valor {
    font-weight: 600;
}

/* Olho ao lado de um <input> de formulário só de leitura (DadosSensiveis.olhoInput): fica dentro do campo, à direita */
input[data-ds] {
    padding-right: 30px;
}

.ds-input-wrap {
    position: relative;
    display: block;
}

.ds-olho.ds-olho-input {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary, #8a94a6);
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    z-index: 2;
}

.ds-olho.ds-olho-input:hover,
.ds-olho.ds-olho-input:focus-visible {
    color: var(--primary, #1f3a60);
    background: rgba(127, 127, 127, .15);
    outline: none;
}
