	<div class="container">
				 <div class="form-inline">
					  <div class="form-group col-sm-2" >
					     <br>
					     <label class="labelEtiqueta">Minimo Garantizado</label>		    
					  </div>
					  
					  <div class="form-group col-sm-2">
					     <label class="radio-inline"><input type="radio" value="categoria" ng-model="tipoMinPrem" ng-click="inicializarDivsMinimos(tipoMinPrem, 'Prem')">Por Categoria</label>
					  </div>
					  <div class="form-group col-sm-2">
					     <label class="radio-inline"><input type="radio" value="anio" ng-model="tipoMinPrem" ng-click="inicializarDivsMinimos(tipoMinPrem, 'Prem')">Por Año</label>
					  </div>
					  <div class="form-group col-sm-2">
					     <label class="radio-inline"><input type="radio" value="na" ng-model="tipoMinPrem" ng-click="inicializarDivsMinimos(tipoMinPrem, 'Prem')">No Aplica</label>
					  </div>
											  
					  <div class="form-group col-sm-4"  id="divMinCatePrem" style="display:none">
					  	<br>
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-bs-toggle="tooltip" data-placement="top" title="Exportar a excel"  ng-click="exportarExcel('premium', 'min_cat', tablaMinGarPrem, tablaMinGarPrem.encabezados)"  > <i class="fa fa-file-excel-o"></i></button></div>					    
					    <div class="col-sm-1"></div>  
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-importar" ng-click="abrirModalMinimos('premium')" >Importar Categoría</button></div>
					    <div class="col-sm-4"></div>					    
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="agregarPeriodos('premium', tipoMinPrem)" >Agregar Periodo</button></div>
					  </div>					  
					  
					  <div class="form-group col-sm-4"  id="divMinAnioPrem" style="display:none">
					    <br>
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-bs-toggle="tooltip" data-placement="top" title="Exportar a excel"  ng-click="exportarExcel('premium', 'min_anio', tablaMinAnioPrem, tablaMinAnioPrem.encabezados)" > <i class="fa fa-file-excel-o"></i></button></div>
					    <div class="col-sm-1"></div>
					  	<div class="col-sm-2"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="agregarPeriodos('premium', tipoMinPrem)" >Agregar Periodo</button></div>
					  </div>
				 </div>
	</div>
			   
	<br/>
	<br/>
					   			  
    <div id="divMinimos" class="search-table-outter wrapper"  style="max-width: 750px;">                    				
	           	   <table id="tabMinCatPrem" class="table table-responsive feesT"  ng-show="tipoMinPrem == 'categoria'" style="max-width: 750px;">
	           	      <col style="width: 60px; min-width: 60px;"/>
            		  <col style="width: 60px; min-width: 60px;"/>            		              		              		  
	           	      <thead class="">                		
				      		<tr>                                                                    				      			
								<th class="encabezados encabezadoTabla" colspan="{{setColspan(x)}}" ng-repeat="x in tablaMinGarPrem.encabezados" ng-click="modificarFechasAnioMinimos($index, $event, tipoMinPrem, 'premium')">{{x.valor}}</th>
								<th colspan="1" class="encabezadoTabla" style="width: 20px; min-width: 20px;">
	                					<i role="button" class="fa fa-plus" ng-click="editarTablaMinGarantizados('addRow', null, null, 'premium', tablaMinGarPrem)" data-bs-toggle="tooltip" data-placement="top" title="Agregar Categorías!"></i>	                					 	                					
	                			</th>																	     	                			 	
				    		</tr>
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaMinGarPrem.datos">                                                                        
		                        <td ng-repeat="field in datum" class="tdEditable">		                            
		                            <input class="tdEditable" ng-if="$index <= 2 && $parent.$index == 0" type="{{tablaMinGarPrem.metadatos[$index].tipo}}" ng-model="field.valor" readonly/>                           
		                            <input class="tdEditable" ng-if="$index > 2 && $parent.$index == 0 " type="{{tablaMinGarPrem.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$index, $index, $event, 'premium', tipoMinPrem, tablaMinAnioPrem, tablaMinGarPrem)" ng-model-options="{updateOn: 'blur'}"/>
		                            <input class="tdEditable" ng-if="$parent.$index > 0 "                type="{{tablaMinGarPrem.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$index, $index, $event, 'premium', tipoMinPrem, tablaMinAnioPrem, tablaMinGarPrem)" ng-model-options="{updateOn: 'blur'}"/>	                           	                           	                          		                                              			
		                  		</td>                  	
		                  		<td> 
		                  		    <label> {{tablaMinGarPrem.mensajes[$index] }} </label> 
		                  		    <i ng-if="$index > 0" role="button" class="fa fa-times" ng-click="editarTablaMinGarantizados('removeRow',$index, null,'premium', tablaMinGarPrem)"></i>
		                  		</td>		                  		 	
		                    </tr>		                    
	                    </tbody>	           	      
	           	   </table>
	           	   
	           	   <table id="tabAnioMinPrem" class="table table-responsive feesT"  ng-show="tipoMinPrem == 'anio'" style="max-width: 500px;">
		           	   	  <col style="width: 60px; min-width: 70px;"/>
	            		  <col style="width: 60px; min-width: 70px;"/>
	            		  <col style="width: 50px; max-width: 50px;"/>
	            		  <col style="width: 20px; min-width: 20px;"/>	           	      	           	      
		           	      <thead class="">                		
					      		<tr>
									<th class="encabezados encabezadoTabla" colspan="{{setColspan(x)}}" ng-repeat="x in tablaMinAnioPrem.encabezados" >{{x.valor}}</th>
									<th colspan="1" class="encabezadoTabla" style="width: 20px; min-width: 20px;">	                						                				
		                			</th>																	     	                			 	
					    		</tr>
					        <thead>
					        <tbody>
			                    <tr ng-repeat="datum in tablaMinAnioPrem.datos">                                                                        
			                         <td ng-repeat="field in datum">		                                                                                        
			                            <input class="tdEditable" ng-if="$index == 0" type="{{tablaMinAnioPrem.metadatos[$index].tipo}}" ng-model="field.valor" ng-click="modificarFechasAnioMinimos($parent.$parent.$index, $event, tipoMinPrem, 'premium')" ng-readonly="$index == 0"/>
			                            <input class="tdEditable" ng-if="$index == 1" type="{{tablaMinAnioPrem.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$index, $index, $event, 'premium', tipoMinPrem, tablaMinAnioPrem, tablaMinGarPrem)" ng-model-options="{updateOn: 'blur'}"/>
			                            <select  class="form-control-sm" name="selectAplica" id="selectAplica" ng-if="$index == 2" ng-model="field.valor">                                                          
										      <option value="">Selecciona Valor</option> 
										      <option value="TITULO">Por Título</option> 
										      <option value="TOTAL">Total</option>
										</select>	                           	                           	                          		                                              		
			                  		 </td>		                  		                   	
			                  		 <td> 
			                  		    <label> {{tablaMinAnioPrem.mensajes[$index] }} </label> 		                  		    
			                  		 </td>		                  		 	
			                    </tr>
		                    </tbody>
	           	   </table>     		           	   	           	      
	</div>
	           	          	           	           	                               				                	    	          	           
	<br/>
	<br/>