			  <div class="container">
				 <div class="form-inline">
					  <div class="form-group col-xs-2" >
					     <br>
					     <label class="labelEtiqueta">Minimo Garantizado</label>		    
					  </div>
					  
					  <div class="form-group col-xs-2">
					     <label class="radio-inline"><input type="radio" value="categoria" ng-model="tipoMin" ng-click="inicializarDivMinimos()">Por Categoria</label>
					  </div>
					  <div class="form-group col-xs-2">
					     <label class="radio-inline"><input type="radio" value="anio" ng-model="tipoMin" ng-click="inicializarDivMinimos()">Por Año</label>
					  </div>
					  
					  <div class="form-group col-xs-6"  id="divMinCate">
					    <div class="col-xs-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-toggle="tooltip" data-placement="top" title="Exportar a excel"  ng-click="exportarExcel('premier', 'min_cat', tablaMinGar, tablaMinGar.encabezados)" disabled > <i class="fa fa-file-excel-o"></i></button></div>					    
					    
					    <div class="col-xs-3"><button type="button" class="btn btn-primary btn-sm btn-importar" ng-click="abrirModalMinimos()" disabled>Importar Categoría</button></div>
					    
					    <div class="col-xs-1"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="abrirModalFechas(0,0,'periodo')" disabled>Agregar Periodo</button></div>
					  </div>
					  <div class="col-xs-1"></div>
					  
					  <div class="form-group col-xs-6"  id="divMinAnio">
					    <div class="col-xs-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-toggle="tooltip" data-placement="top" title="Exportar a excel"  ng-click="exportarExcel('premier', 'min_anio', tablaMinAnio, tablaMinAnio.encabezados)" disabled> <i class="fa fa-file-excel-o"></i></button></div>
					    <div class="col-xs-1"></div>
					  	<div class="col-xs-2"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="abrirModalFechas(0,0,'periodo')" disabled>Agregar Periodo</button></div>
					  </div>
				 </div>
			   </div>
			   
			   <br/>
			   <br/>
					   			  
          	   <div id="divMinCat" class="search-table-outter wrapper"  >                    				
	           	   <table id="tabMinCat" class="table table-responsive feesT"  ng-show="tipoMin == 'categoria'">
	           	      <thead class="">                		
				      		<tr>
								<th class="encabezados encabezadoTabla tdEditable" colspan="{{setColspan(x)}}" ng-repeat="x in tablaMinGar.encabezados" ng-click="abrirModalFechas(1,$index,'editar')">{{x.valor}}</th>
								<th colspan="1" class="encabezadoTabla">
	                					<i role="button" class="fa fa-plus" ng-click="editarTablaMinGarantizados('addRow')" data-toggle="tooltip" data-placement="top" title="Agregar Categorías!"></i>	                					 	                					
	                			</th>																	     	                			 	
				    		</tr>
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaMinGar.datos">                                                                        
		                        <td ng-repeat="field in datum">		                            
		                            <input                    ng-if="$index <= 2 && $parent.$index == 0" type="{{tablaMinGar.metadatos[$index].tipo}}" ng-model="field.valor" readonly/>
		                            <input class="tdEditable" ng-if="$index > 2 && $parent.$index == 0 " type="{{tablaMinGar.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$index, $index, $event, tablaMinGar.metadatos)" ng-model-options="{updateOn: 'blur'}"/>
		                            <input class="tdEditable" ng-if="$parent.$index > 0 " type="{{tablaMinGar.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$index, $index, $event, tablaMinGar.metadatos)" ng-model-options="{updateOn: 'blur'}"/>	                           	                           	                          		                                              			
		                  		</td>                  	
		                  		<td> 
		                  		    <label> {{tablaMinGar.mensajes[$index] }} </label> 
		                  		    <i ng-if="$index > 0" role="button" class="fa fa-times" ng-click="editarTablaMinGarantizados('removeRow',$index)"></i>
		                  		</td>		                  		 	
		                    </tr>		                    
	                    </tbody>	           	      
	           	   </table>
	           	   
	           	   <table id="tabAnioMin" class="table table-responsive feesT"  ng-show="tipoMin == 'anio'">	           	      	           	      
	           	      <thead class="">                		
				      		<tr>
								<th class="encabezados encabezadoTabla tdEditable" colspan="{{setColspan(x)}}" ng-repeat="x in tablaMinAnio.encabezados" ng-click="abrirModalFechas(2,$index)">{{x.valor}}</th>
								<th colspan="1" class="encabezadoTabla">	                					
	                				<i role="button" class="fa fa-plus" ng-click="editarTablaMinGarantizadosAnio('addColumn')" data-toggle="tooltip" data-placement="top" title="Agregar Años"></i>
	                			</th>																	     	                			 	
				    		</tr>
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaMinAnio.datos">                                                                        
		                        <td ng-repeat="field in datum">		                            
		                            <input class="tdEditable" type="{{tablaMinAnio.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$index, $index, $event, tablaMinAnio.metadatos)" ng-model-options="{updateOn: 'blur'}"/>	                           	                           	                          		                                              		
		                  		 </td>                  	
		                  		 <td> 
		                  		    <label> {{tablaMinAnio.mensajes[$index] }} </label> 		                  		    
		                  		 </td>		                  		 	
		                    </tr>
	                    </tbody>
	           	   </table>     	    
	           </div>
	           	          	           	           	                               				                	    	          	           
			   <br/>
			   <br/>
	           
	           <!-- Release Date -->
	           <div class="container">
				 <div class="form-inline">
					  <div class="form-group col-xs-2" >
					     <br>
					     <label class="labelEtiqueta">Release Date</label>		    
					  </div>
					  <div class="form-group col-xs-2"></div>		    					  
					  <div class="form-group col-xs-2"></div>
					  <div class="form-group col-xs-2"></div>			 
					  <div class="form-group col-xs-2">
					    <div class="col-xs-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-toggle="tooltip" data-placement="top" title="Exportar a excel" ng-click="exportarExcel('premier', 'release', tablaRelease, tablaRelease.encabezados)" disabled> <i class="fa fa-file-excel-o"></i></button></div>
					    <div class="col-xs-1"></div>
					    <div class="col-xs-1"><button type="button" class="btn btn-primary btn-sm btn-importar" ng-click="abrirModalRelease()" disabled>Importar Categoría</button></div>
					  </div>
				 </div>
			   </div>
			   
			   <br/>
			   <br/>
					   					
          	   <div id="scrollH" class="search-table-outter wrapper">                    				
	              <table class="table table-responsive feesT">
	                	<thead class="">                		
				      		<tr>
							 	<th class="encabezados encabezadoTabla" colspan="2">Días</th>							 	
							 	<th class="encabezados encabezadoTabla" rowspan="2">Categorías</th>
							 	<th class="encabezados encabezadoTabla"><i role="button" class="fa fa-plus" ng-click="editarTablaRelease('addRow')" data-toggle="tooltip" data-placement="top" title="Agregar Categorías"></i></th>																     	                			 	
				    		</tr>
				    		<tr>
					    		<th class="encabezados encabezadoTabla">Desde</th>
					    		<th class="encabezados encabezadoTabla">Hasta</th>
					    		<th class="encabezados encabezadoTabla"></th>					    									 																	     	                			 
				    		</tr>
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaRelease.datos">                                                                        
		                        <td ng-repeat="field in datum">		                            		                         
		                            <input class="tdEditable" type="{{tablaRelease.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarReleaseCelda($parent.$index, $index, $event, tablaMinAnio.metadatos)" ng-model-options="{updateOn: 'blur'}"/>		                            		                            		                            	                           	                           	                          		                                             					                                         
		                  		 </td>                  	
		                  		 <td> 
		                  		    <label> {{tablaRelease.mensajes[$index] }} </label> 
		                  		    <i ng-if="$index > 0" role="button" class="fa fa-times" ng-click="editarTablaRelease('removeRow',$index)"></i>
		                  		 </td>		                  		 	
		                    </tr>		                    
	                    </tbody>
	                </table>
	           </div>	           

			   <br/>
			   <br/>
				
				<!-- Impuestos -->	   
          	   <div id="scrollH" class="search-table-outter wrapper">                    				
	              <table class="table table-responsive feesT">
	                	<thead class="">                		
				      		<tr>
								<th class="encabezados encabezadoTabla"  ng-repeat="x in tablaImpuestos.encabezados">{{x.valor}}</th>																									     	                			 	
				    		</tr>
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaImpuestos.datos">                                                                        
		                        <td ng-repeat="field in datum">		                            
		                            <input ng-if="field.valor !== 'false' && field.valor !== 'true'"  type="text" ng-model="field.valor" readonly/>
		                            <input class="tdEditable" ng-if="field.valor === 'false'" type="checkbox"   ng-click="actualizarImpCelda($parent.$parent.$index, $index, $event)"  />
		                            <input class="tdEditable" ng-if="field.valor === 'true'"  type="checkbox"   ng-click="actualizarImpCelda($parent.$parent.$index, $index, $event)"  checked/>	                           	                           	                          		                                              			
		                  		</td>                  			                  		 		                  		 	
		                    </tr>		                    
	                    </tbody>
	                </table>
	           </div>				

			   <br/>
			   <br/>
				
			   <div class="container">
				 <div class="form-inline">
					  <div class="form-group col-xs-2"></div>
					  <div class="form-group col-xs-2"></div>		    					  
					  <div class="form-group col-xs-2"></div>
					  <div class="form-group col-xs-2"></div>					  			 
					  <div class="form-group col-xs-2">
					    <div class="col-xs-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-toggle="tooltip" data-placement="top" title="Exportar a excel" ng-click="exportarExcel('premier', 'precio', tablaPrecios, tablaPrecios.encabezados)" disabled> <i class="fa fa-file-excel-o"></i></button></div>
					    <div class="col-xs-1"></div>
					    <div class="col-xs-1"><button type="button" class="btn btn-primary btn-sm btn-importar" ng-click="abrirModalPrecio()" disabled>Importar Precio</button></div>
					  </div>
				 </div>
			   </div>
			   
			   <br/>
			   <br/>
			   
			   <!-- Precios -->	   					   
          	   <div id="scrollH" class="search-table-outter wrapper">                    				
	              <table class="table table-responsive feesT">
	                	<thead class="">                		
				      		<tr>
								<th class="encabezados encabezadoTabla" colspan="2">Precio por Evento</th>
								<th class="encabezados encabezadoTabla" colspan="2"  ng-repeat="x in tablaPrecios.encabezados">{{x.valor}}</th>																									     	                			 	
				    		</tr>
				    		<tr>
								<th class="encabezados encabezadoTabla">Release</th>
								<th class="encabezados encabezadoTabla">Formato</th>												
								<th class="encabezados encabezadoTabla"  ng-repeat="y in tablaPrecios.subEncabezadosPrecio track by $index">{{y}}</th>													     	                			 	
				    		</tr>
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaPrecios.datos" >                                                                        		                        		                      		                  		
		                        <td ng-if="$index == 0 && ($parent.$index % 3 == 0)" ng-repeat="field in datum" class="encabezados encabezadoTabla filSpan3 tdEditable">
		                        		{{field.valor}}		                            		                            		                            		                             		                            	                           	                           	                          		                                              
		                  		</td>
		                  		<td ng-if="$index == 0 && ($parent.$index % 3 != 0)" ng-repeat="field in datum" class="encabezados encabezadoTabla tdEditable">		                        				                            		                            		                            		                             		                            	                           	                           	                          		                                             
		                  		</td>
		                  		<td ng-if="$index == 1" ng-repeat="field in datum" class="encabezados encabezadoTabla  tdEditable">		                            
		                            {{field.valor}}		                            		                             		                            	                           	                           	                          		                                              	
		                  		</td>
		                  		<td ng-if="$index > 1" ng-repeat="field in datum" class="tdPrecio">		                            
		                            <input class="tdEditable" type="text" ng-model="field.valor" ng-blur="actualizarPrecioCelda($parent.$parent.$index, $index, $event, tablaMinAnio.metadatos)" ng-model-options="{updateOn: 'blur'}"/>		                            		                             		                            	                           	                           	                          		                                              	
		                  		</td>		                  		
		                    </tr>	
		                    	                    
	                    </tbody>
	                </table>
	           </div>
	           
	           <br/>
			   <br/>
					   		
			   <!-- Revenue -->			   
          	   <div id="scrollH" class="search-table-outter wrapper">                    				
	              <table class="table table-responsive feesT">
	                	<thead class="">                		
				      		<tr>
								<th class="encabezados encabezadoTabla" >Revenue</th>
								<th class="encabezados encabezadoTabla" >% DLA</th>
								<th class="encabezados encabezadoTabla" >% Estudio</th>																									     	                			 	
				    		</tr>				    		
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaRevenue.datos" >                                                                        		                        		                      		                  		
		                        <td  ng-repeat="field in datum">		                            
		                            <input class="tdEditable" ng-if="$index == 1" type="text" ng-model="field.valor" ng-blur="actualizarRevenueCelda($parent.$parent.$index, $index, $event, tablaRevenue.metadatos)" ng-model-options="{updateOn: 'blur'}" />
		                            <input ng-if="$index == 0 || $index == 2" type="text" ng-model="field.valor" readonly />		                            		                             		                            			                                                       	                           	                          		                                              
		                  		</td>		                  				                  		
		                    </tr>	
		                    	                    
	                    </tbody>
	                </table>
	           </div>	           
	           
	           <br/>
			   <br/>
				
			    
			   <div class="container">
				 <div class="form-inline">
					  <div class="form-group col-xs-6"></div>					  
					  <div class="form-group col-xs-3"></div>			 
					  <div class="form-group col-xs-2">
					    <button type="button" class="btn btn-success btn-guardar" ng-click="guardarPremier()" disabled>Guardar Premier</button>
					  </div>
				 </div>
			   </div>