html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0E6B47;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #3FA77A;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Ocurrió un error en esta sección."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #0E6B47;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Cargando");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Identidad visual YaVendo: verde comercio con el naranja de la familia YaVoy */
.sidebar {
    background-image: none !important;
    background-color: #0B5A3B !important;
}

.top-row.navbar {
    background-color: #0E6B47 !important;
}

.navbar-brand {
    color: #E3F4EC !important;
    font-weight: 600;
}

.btn-primary, .btn-success {
    background-color: #F9AA1E !important;
    border-color: #F9AA1E !important;
    color: #412402 !important;
    font-weight: 500;
}

.btn-primary:hover, .btn-success:hover {
    background-color: #e09a15 !important;
    border-color: #e09a15 !important;
}

.btn-outline-primary {
    color: #0E6B47 !important;
    border-color: #0E6B47 !important;
}

.btn-outline-primary:hover {
    background-color: #0E6B47 !important;
    color: #E3F4EC !important;
}

h1 {
    color: #0E6B47;
}

/* Tarjetas y montos */
.tarjeta {
    border: 1px solid #d7e7df;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.monto-grande {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0E6B47;
}

.texto-suave {
    color: #5c6b64;
    font-size: 0.9rem;
}

.aviso-conexion {
    background: #FFF4DC;
    border: 1px solid #F9AA1E;
    color: #412402;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.modulo-pronto {
    border: 1px dashed #b9d3c6;
    border-radius: 12px;
    padding: 0.75rem;
    color: #5c6b64;
    text-align: center;
}
