:root {

    --arsa-verde: #6CBE6C;
    --arsa-verde-oscuro: #2F5C2F;

    --arsa-gris: #6B7280;
    --arsa-fondo: #F3F4F6;

}
.btn-arsa{
    background:#2F5C2F;
    color:white;
}

.btn-arsa:hover{
    background:#234523;
}

.btn-arsa-claro{
    background:#6CBE6C;
    color:white;
}

.text-arsa{
    color:#2F5C2F;
}

.bg-arsa{
    background:#2F5C2F;
}

.bg-arsa-claro{
    background:#6CBE6C;
}

/*
|--------------------------------------------------------------------------
| Visibilidad de contraseñas
|--------------------------------------------------------------------------
|
| El botón se incorpora mediante password-visibility.js. El campo conserva
| su comportamiento nativo cuando JavaScript no está disponible.
|
*/

.arsa-password-control {
    position: relative;
}

.arsa-password-control > input[data-password-visibility] {
    padding-right: 3rem !important;
}

.arsa-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.375rem;
    z-index: 1;
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #4B5563;
    cursor: pointer;
}

.arsa-password-toggle:hover {
    background: #F3F4F6;
    color: #166534;
}

.arsa-password-toggle:focus-visible {
    outline: 2px solid #15803D;
    outline-offset: 2px;
}

.arsa-password-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.arsa-password-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/*
|--------------------------------------------------------------------------
| Contrato responsive compartido
|--------------------------------------------------------------------------
|
| Mantiene el desbordamiento dentro del componente que lo produce y evita
| que tablas, barras de acciones o textos largos ensanchen el layout.
|
*/

.arsa-contenedor-responsive {
    min-width: 0;
    max-width: 100%;
}

.arsa-tabla-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.arsa-acciones-responsive {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arsa-texto-largo {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 639px) {
    .arsa-acciones-responsive {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .arsa-acciones-responsive > a,
    .arsa-acciones-responsive > button,
    .arsa-acciones-responsive > form {
        width: 100%;
    }

    .arsa-acciones-responsive > a,
    .arsa-acciones-responsive > button,
    .arsa-acciones-responsive > form > button {
        justify-content: center;
    }
}
