@media (max-width: 2560px) {
	#modal_window input[type=text]:not(.p_insert_date):not(.inputmask):not(.inputmask):not(.phone):not(#phone):not(.p_insert_date):not(.clockpicker_input) {
		width:100%;
		box-sizing: border-box;
		height:30px;
	}	
	
	#modal_window textarea {
		width:100%;
		box-sizing: border-box;
	}		
	#modal_window select {
		box-sizing: border-box;
		width:100%;
	}
	#modal_window .custom-combobox {
	    /*
	    width: -webkit-calc(100% - 30px);
	    width:    -moz-calc(100% - 30px);
	    width:         calc(100% - 30px);
	    */
	}
	#modal_window .custom-combobox input{
	    width: 100%;
	    box-sizing: border-box;
	    margin-right: -27px;
	}
	#modal_window .custom-combobox a.ui-button{
	   margin-right: 0;
	}	
}
@media (max-width: 1200px) {
	.modal {
	    left: 50%;
	    width: 700px;
	    margin-left: -350px;
	}	
	.modal.full_modal {
	    left: 50%;
	    width: 940px;
	    margin-left: -470px;
	}	
}
@media (min-width: 1200px) {
	.navbar .search-query {
		width: 200px;
	}
	.sup_data_items select {
		width: 190px;
	}
	.sup_data_items input {
		width: 175px;
	}
}

@media (max-width: 979px) {
	.modal.full_modal {
	    left: 50%;
	    width: 724px;
	    margin-left: -362px;
	}
	
	.navbar-fixed-top {
		position: static;

		margin-bottom: 0;
	}

	.subnavbar {
	}
	

	.subnavbar-inner {
		height: auto;
	}

	.subnavbar .container-fluid {
		width: auto;
	}
	.new_nav-collapse {
		
	}
	.subnavbar .container-fluid > ul {
		width: 100%;
		height: auto;

		border: none;
	}
}

@media (max-width: 768px) {
	.modal {
	    left: 50%;
	    width: 100%;
	    margin-left: -50%;
	}	
	.widget-content {

		overflow-x: auto;
	}

	#main {
		padding: 0 10px;
		margin-right: -20px;
		margin-left: -20px;
	}


	.subnavbar {
		margin-left: -20px;
		margin-right: -20px;
	}
	
	.main {
		margin-left: -17px;
		margin-right: -17px;
	}

    .clockpicker_r .input-mini {
		width:40px!important;
	}
     


	.subnavbar .container-fluid > ul > li {
		height: 70px;
		margin-bottom: 0;

		border: none;
	}



    .subnavbar .container-fluid > ul > li.active > a {
		font-size: 11px;
    	background: transparent;
    }

	.subnavbar .container-fluid > ul > li > a > i {
		display: inline-block;
		margin-bottom: 0;

		font-size: 20px;
	}


	.subnavbar-open-right .dropdown-menu {
		left: auto;
		right: 0;
	}

	.subnavbar-open-right .dropdown-menu:before {
		left: auto;
		right: 12px;
	}
	.subnavbar-open-right .dropdown-menu:after {
		left: auto;
		right: 13px;
	}

	.extra {
		margin-right: -20px;
		margin-left: -20px;
	}

	.extra .container {
		padding: 0 20px;
	}
	
	.sup_data_ras {
		width: 100%;
		margin-bottom:10px;
		margin-right: 0;
		float:none;
	}	
	
	/*
	.new-task-btns .btn{
		width:100%;
		margin-bottom:5px;
		box-sizing: border-box;
	}
	
	/*
	#tasks_search_form #keywords, #tasks_search_form #drop_com, #tasks_search_form #drop_type, #tasks_search_form #l_ch {
		width:100%;
		margin-bottom:5px;
	} 
	
	#tasks_search_form #calendar-make-start, #tasks_search_form #calendar-make-end {
		width:100px;
		margin-bottom:5px;
	} 
*/
	.footer {
		margin-right: -20px;
		margin-left: -20px;
	}

	.footer .container {
		padding: 0 20px;
	}

	.footer .footer-terms {
		text-align: left;
	}

	.footer .footer-terms a {
		margin-left: 0;
		margin-right: 1em;
	}

}

@media (max-width: 600px) {
	.sup_data {
		position: relative;
	}
	.sup_data_items select {
		width: 80%;
		margin-bottom: 3px;
	}
	.sup_data_items input {
		width: 75%;
		margin-bottom: 3px;
	}
	.m_sup {
		display:block;
		
		/*margin-left:50px;*/
	}
	.sup_data_items .add_sup {
		float:left;
	}
	.del_sup {
		/*
		position:absolute;
		top:40px;
		left:0;
		*/
	}
	.m_c {
		margin-left:50px;
	}
	.dropdown-menu {
		max-width:250px;
	}
	.dropdown-menu > li > a {
	    white-space: normal;
	}
	form#add_new_task #tema {
		width:100%;
	}
}

@media (max-width: 480px) {
	.sup_data_ras{
		width:100%;
	}
	.error-container h1 {
		font-size: 72px;
	}
	.navbar-fixed-top .navbar-inner, .navbar-fixed-bottom .navbar-inner {
	    padding: 0 5px;
	}
	.navbar .brand {
	    /*width:60px;*/
	    background: url('/img/logo_min.png') no-repeat top left;
	    top:5px;
	    width:50px;
	    height:30px;
	    padding:0;
	}
	
	.task_buttons .btn {
	    font-size: 13px;
	}
	/*
	.add_comment_list, .add_comment_list_maker {
		display: none;
	}
	*/
	.comment_labels {
	    position: relative;
	    margin: 0;
	}
	.tasks_desc h4.tasks_desc_title .comment_labels {
		position: absolute;
	}	
	.dropdown-menu {
		max-width:200px;
	}
	.modal.fade.in {
	    top: 1px;
	}
	.modal-header h3 {
	    font-size:16px;
	    line-height: 20px;
	}	
	
	a.cke_button {
	    padding: 1px 6px!important;
	}	
	#modal_window input[type=text]:not(.p_insert_date) {
		width:100%;
		box-sizing: border-box;
		height:30px;
	}	
	
	#modal_window textarea {
		width:100%;
		box-sizing: border-box;
	}		
	#modal_window select {
		box-sizing: border-box;
		width:100%!important;
	}
	#modal_window .custom-combobox {
		width:100%!important;
	}
	#modal_window .custom-combobox input{
	    width: 100%;
	    box-sizing: border-box;
	    margin-right: -27px;
	}
	#modal_window .custom-combobox a.ui-button{
	   margin-right: 0;
	}	
}

@media (max-width: 380px) {

	
	.dropdown-menu {
		max-width:180px;
	}
	.reg_form input {
	    width:150px;
    }

}

