html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.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;
}

input.error {
    border-color: #dc3545;
}

/* Estilo general del mensaje de error */
label.error {
    display: block; /* fuerza que se muestre debajo */
    width: 100%; /* ocupa todo el ancho */
    color: #dc3545; /* rojo Bootstrap */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.875rem; /* tamaño pequeño */
    margin-top: 4px; /* espacio debajo del input */
    margin-left: 40px; /* ajusta para alinear con el campo, considerando el icono */
    font-weight: 400 !important;
}

/* Evita que el mensaje se quede alineado horizontalmente dentro del input-group */
.input-group label.error {
    display: block;
    position: relative;
    top: 0;
}


#process {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

    #process .content {
        background-color: #000;
        padding: 50px;
        border: 1px;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        color: #fff;
        opacity: .5;
        text-align: center;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.sidebar-brand {
    background-color: #343a40; /* Color de fondo del sidebar */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .sidebar-brand .brand-image {
        width: 45px;
        height: 45px;
        object-fit: contain;
        opacity: 0.9;
    }

    .sidebar-brand .brand-text {
        line-height: 1.2;
    }

.text-info-50 {
    color: #cfe5ff !important;
    font-weight: 400;
}

.nav-link.active {
    background-color: #0d6efd !important;
    color: #fff !important;
    border-radius: 0.375rem;
}

.nav-treeview .nav-link.active {
    background-color: #0b5ed7 !important;
}


body {
    background: #f4f6f9;
}

.card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.table thead th {
    background: #2d4a81;
    color: white;
}

.btn-primary {
    background: #2d4a81;
    border-color: #2d4a81;
}

    .btn-primary:hover {
        background: #1c3259;
    }

.modal-header {
    background: #2d4a81;
    color: white;
}

.badge-info {
    background: #2d4a81;
}

