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;
}

.validation-error {
    color: red;
    font-stretch:normal;
    font-size:small;
}

.input-error {
    border: 2px solid #e74a3b; /* Rojo de SB Admin 2 */
}

.bg-login-image {
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    width: 20%;
}

.captured-image {
    width: 100%;
    height: 350px;
    /*background-color: #007bff;*/
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.capture-button {
    /*background-color: #ff7f00;*/
    color: white;
    border-radius: 10px;
    width: 100%;
}

.btn-empresa{

}

.btn.selected {
    filter: brightness(85%); /* Oscurece el botón seleccionado */
    border: 2px solid #000; /* Agrega un borde para resaltar */
}


#video {
    max-width: 100%; /* Ajustar al contenedor */
    height: auto; /* Mantener la proporción */
}

.btn-empresa {
    min-width: 350px; /* Ajusta este valor según el botón más largo */
    max-width: 3500px; /* Opcional, para evitar que crezcan demasiado */
    text-align: center;
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
}

.checkbox-visible {
    background-color: #e9ecef; /* gris claro Bootstrap */
    border: 1px solid #6c757d;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-visible:hover {
    background-color: #ced4da;
}

#dataTable tbody tr.selected {
    background-color: #e0e0e0 !important;
}

.treeview-isolated {
    --tv-primary: #6f42c1;
    --tv-secondary: #6610f2;
    --tv-success: #28a745;
    --tv-light: #f8f9fa;
    --tv-border: rgba(0,0,0,0.1);
    --tv-text: #212529;
    --tv-text-light: #6c757d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
    padding: 0px;
    background: white;
    border-radius: 10px;
    /*box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);*/
    margin: 0;
}

    .treeview-isolated .tv-header {
        background: linear-gradient(135deg, var(--tv-primary), var(--tv-secondary));
        color: white;
        padding: 25px 0;
        margin: -20px -20px 30px -20px;
        border-radius: 10px 10px 0 0;
        text-align: center;
    }

    .treeview-isolated .tv-title {
        margin: 0;
        padding: 0 20px;
        font-size: 1.8rem;
    }

    .treeview-isolated .tv-subtitle {
        margin: 10px 0 0 0;
        padding: 0 20px;
        font-size: 1rem;
        opacity: 0.9;
    }

    .treeview-isolated .tv-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .treeview-isolated .tv-card-header {
        padding: 15px 20px;
        background: white;
        border-bottom: 1px solid var(--tv-border);
        font-weight: 600;
        font-size: 1.2rem;
    }

    .treeview-isolated .tv-card-body {
        padding: 20px;
    }

    .treeview-isolated .tv-card-footer {
        padding: 15px 20px;
        background: white;
        border-top: 1px solid var(--tv-border);
    }

    .treeview-isolated .tv-list-group {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .treeview-isolated .tv-list-item {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid var(--tv-border);
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .treeview-isolated .tv-list-item:hover {
            background-color: var(--tv-light);
        }

        .treeview-isolated .tv-list-item.parent {
            font-weight: 600;
        }

    .treeview-isolated .tv-arrow {
        width: 20px;
        margin-right: 10px;
        transition: transform 0.3s;
        cursor: pointer;
        flex-shrink: 0;
        text-align: center;
    }

        .treeview-isolated .tv-arrow.expanded {
            transform: rotate(90deg);
        }

    .treeview-isolated .tv-checkbox {
        margin-right: 12px;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .treeview-isolated .tv-icon {
        margin-right: 10px;
        color: var(--tv-text-light);
        flex-shrink: 0;
        width: 18px;
        text-align: center;
    }

    .treeview-isolated .tv-text {
        flex-grow: 1;
    }

    .treeview-isolated .tv-collapse {
        display: none;
        margin-left: 30px;
    }

        .treeview-isolated .tv-collapse.show {
            display: block;
        }

    .treeview-isolated .tv-button-group {
        display: flex;
        gap: 10px;
    }

    .treeview-isolated .tv-button {
        border-radius: 6px;
        padding: 10px 20px;
        font-weight: 500;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .treeview-isolated .tv-button-select {
        background: linear-gradient(to right, var(--tv-success), #20c997);
        color: white;
    }

        .treeview-isolated .tv-button-select:hover {
            background: linear-gradient(to right, #218838, #1aa179);
            color: white;
        }

    .treeview-isolated .tv-button-deselect {
        background: white;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

        .treeview-isolated .tv-button-deselect:hover {  
            background: #f8f9fa;
            color: #495057;
        }

    .treeview-isolated .tv-explanation {
        background-color: var(--tv-light);
        border-radius: 8px;
        padding: 20px;
        margin-top: 20px;
    }

@media (max-width: 576px) {
    .treeview-isolated .tv-button-group {
        flex-direction: column;
    }

    .treeview-isolated .tv-button {
        width: 100%;
    }
}

.treeview-isolated .tv-collapse.nested {
    margin-left: 40px;
}

.treeview-isolated .tv-list-group .tv-list-group {
    margin-left: 20px;
}

.treeview-isolated .tv-list-item {
    padding-left: 15px;
}

    .treeview-isolated .tv-list-item.parent {
        font-weight: 600;
    }

.treeview-isolated .tv-arrow {
    transition: transform 0.3s ease;
}

    .treeview-isolated .tv-arrow.expanded {
        transform: rotate(90deg);
    }