#menu_icon {
	width: 24px;
	height: 18px;
	margin-left: auto;
	background: url("images/menu.png") no-repeat 50% 50%;
	background-size: cover;
	cursor: pointer;
	display: none;
}

@media only screen and (max-width: 1500px) {
	/* Activity */
	#activity_main_container .sales_area > table > thead > tr {
		display: none;
	}
	#activity_main_container .sales_area > table > tbody > tr {
		height: auto;
		border-bottom: 1px solid #616b6b;
	}
	#activity_main_container .sales_area > table > tbody > tr,
	#activity_main_container .sales_area > table > tbody > tr > td {
		display: block;
		width: 100%;
	}
	#activity_main_container .sales_area > table > tbody > tr > td {
		text-align: left;
	}
	#activity_main_container .sales_area > table > tbody > tr > td::before {
		font-family: 'PT Sans', sans-serif;
		font-size: 14px;
		font-weight: 400;
		color: #616b6b;
		display: block;
		margin-bottom: 3px;
	}
	#activity_main_container .sales_area > table > tbody > tr > td.responsive_label:before {
		content: attr(data-label);
	}
}

@media only screen and (max-width: 1300px) {
	/* Repayments */
	#repayments_main_container .sales_area > table > thead > tr {
		display: none;
	}
	#repayments_main_container .sales_area > table > tbody > tr {
		height: auto;
		border-bottom: 1px solid #616b6b;
	}
	#repayments_main_container .sales_area > table > tbody > tr,
	#repayments_main_container .sales_area > table > tbody > tr > td {
		display: block;
		width: 100%;
	}
	#repayments_main_container .sales_area > table > tbody > tr > td {
		text-align: left;
	}
	#repayments_main_container .sales_area > table > tbody > tr > td::before {
		font-family: 'PT Sans', sans-serif;
		font-size: 14px;
		font-weight: 400;
		color: #616b6b;
		display: block;
		margin-bottom: 3px;
	}
	#repayments_main_container .sales_area > table > tbody > tr > td.responsive_label:before {
		content: attr(data-label);
	}
}

@media screen and (max-width: 1024px){
	.overdiv{
		width:calc(100% - 20px);
		margin:0 10px;
	}
	/* Header */
	#menu.overdiv {
		position: relative;
	}
	#menu.overdiv > ul {
		width: 100%;
		background: white;
		position: absolute;
		top: 95%;
		left: 0;
		z-index: 5;
		text-align: center;
		box-shadow: 0 8px 5px -6px rgba(0, 0, 0, 0.5);
		display: none;
	}
	#menu.overdiv ul li {
		display: block;
	}
	#menu.overdiv ul li:first-child {
		padding-top: 0;
	}
	#menu.overdiv ul li.selected::after {
		display: none;
	}
	#menu.overdiv ul li.selected a {
		position: relative;
	}
	#menu.overdiv ul li.selected a::after {
		content: "";
		width: 100%;
		height: 3px;
		position: absolute;
		top: 100%;
		left: 0;
		background-color: #d03333;
		border-radius: 3px;
	}
	#menu_icon {
		display: block;
	}
	#menu.overdiv.open #menu_icon {
		background: url("images/close.png") no-repeat 50% 50%;
		background-size: cover;
	}
	#menu.overdiv.open > ul {
		display: block;
	}
}

@media (max-width: 800px) {
	
	/* BLA Page */
	
	.payment > div:first-of-type {
		margin-right: 10px;
	}
	
	#bla_funds_contents,
	#available_eur,
	#budget_eur,
	#request_payment_main {
		float: none !important;
		width: initial !important;
	}	
	
	#available_eur {
		margin-bottom: 15px;
	}
	
	#budget_eur {
		margin-bottom: 25px;
	}
	
	#request_payment_main  {
		padding-left: 10px;
		padding-right: 10px;
	}
	
}


@media only screen and (max-width: 768px) {
	/* Sales table */
	#sales_main_container .sales_area thead tr {
		display: none;
	}
	#sales_main_container .sales_area tr {
		height: auto;
		border-bottom: 1px solid #616b6b;
	}
	#sales_main_container .sales_area tr,
	#sales_main_container .sales_area tr td {
		display: block;
		width: 100%;
	}
	#sales_main_container .sales_area tr td {
		text-align: left;
	}
	#sales_main_container .sales_area tr td::before {
		font-family: 'PT Sans', sans-serif;
		font-size: 14px;
		font-weight: 400;
		color: #616b6b;
		display: block;
		margin-bottom: 3px;
	}
	#sales_main_container .sales_area tr td:first-child::before {
		content: "Sales week:";
	}
	#sales_main_container .sales_area tr td:nth-child(2)::before {
		content: "Date:";
	}
	#sales_main_container .sales_area tr td:nth-child(3)::before {
		content: "Available for Drawdown:";
	}
	#sales_main_container .sales_area tr td.unavailable-title::before {
		content: "Amount:";
	}
	/* Statements */
	#statements_main_container .sales_area thead tr {
		display: none;
	}
	#statements_main_container .sales_area tr {
		height: auto;
		border-bottom: 1px solid #616b6b;
	}
	#statements_main_container .sales_area tr,
	#statements_main_container .sales_area tr td {
		display: block;
		width: 100%;
	}
	#statements_main_container .sales_area tr td {
		text-align: left;
	}
	#statements_main_container .sales_area tr td::before {
		font-family: 'PT Sans', sans-serif;
		font-size: 14px;
		font-weight: 400;
		color: #616b6b;
		display: block;
		margin-bottom: 3px;
	}
	#statements_main_container .sales_area tr td:first-child::before {
		content: "Name:";
	}
	#statements_main_container .sales_area tr td:nth-child(2)::before {
		content: "Date:";
	}
	#statements_main_container .sales_area tr td:nth-child(3)::before {
		content: "Download:";
	}
}

@media only screen and (max-width: 750px) {
	.register_fields,
	.required-box {
		float: none;
		width: 100%;
	}
}

@media screen and (max-width: 700px){
	#sales_header, #sales_txt, #alert_txt, #faq_txt{
		width:100%;
	}
	#sales_header img, #sales_txt img, #alert_txt img, #faq_txt img{
		float:right;
	}
	.request_confirmed{
		width:80%;
		left:10%;
	}
	.request_confirmed::before{
		display:none;
	}
}

@media only screen and (min-width: 751px) and (max-width: 1024px) {
	.director-container .tabs a,
	.outlet-container .tabs a,
	.bank-container .tabs a {
		float: none;
		width: 100%;
		margin: 0 0 25px 0;
	}
	.director-container .tabs a:nth-child(2n),
	.outlet-container .tabs a:nth-child(2n),
	.bank-container .tabs a:nth-child(2n) {
		text-align: left;
	}
}

@media only screen and (max-width: 550px) {
	.register_fields {
		float: none;
		width: 100%;
	}
	#menu{
		position: relative;
		padding-bottom: 20px;
	}
	#menu span {
		position: absolute;
		left: 12px;
		bottom: 0;
		width: 130px;
	}
	/* Header */
	#header {
		flex-wrap: wrap;
	}
	.menu-container {
		width: 100%;
		text-align: right;
	}
	.logged_in_person {
		text-align: left;
	}
	#header .logged_in_person {
		display: inline-block;
	}
	/* Account page */
	.account_main_container {
		width: calc(100% - 20px) !important;
	}
}

@media only screen and (max-width: 500px) {
	.director-container .tabs a,
	.outlet-container .tabs a,
	.bank-container .tabs a {
		float: none;
		width: 100%;
		margin: 0 0 25px 0;
	}
	.director-container .tabs a:nth-child(2n),
	.outlet-container .tabs a:nth-child(2n),
	.bank-container .tabs a:nth-child(2n) {
		text-align: left;
	}
	#data_protection + label:after {
		top: -15px;
    	right: -20px;
	}
}

@media screen and (max-width:400px) {
	/* BLA Page */
	.payment > div:first-of-type {
		margin-bottom: 15px;
	}
	/* Register page - application status */
	#header.register_section_header {
		justify-content: center;
	}
	#menu.register_section {
		width: 100%;
		margin-top: 10px !important;
		margin-bottom: 0;
		padding-bottom: 0;
		text-align: center;
	}
}

@media screen and (max-width:370px) {
	/* Header */
	#header {
		justify-content: center;
		text-align: center;
	}
	#header > a img {
		display: block;
	}
	#header_account_name {
		width: 100%;
		margin-top: 5px;
		margin-bottom: 5px;
	}
}

@media screen and (min-width:463px){
	.currency_box ul li:not(.selected):hover{
		color:#d03333;
	}
	#user_details_form label{
		color:#6e6e6e
	}
	.alert_filter_box input[type="checkbox"], .activity_filter_box input[type="checkbox"] {
		margin-bottom: 5px;
		margin-right:2px;
	}
	.activity_filter_box h2{
		margin-top: 13px;
	}
	.activity_filter_box .request_box_button{
		margin-top:11px;
	}
	#login_form input, #password_form input, #user_details_form input{
		max-width:400px;
	}
	#login_form, #password_form, #user_details_form{
		width:400px;
	}
	#login_alerts{
		width:400px;
		margin:0 auto;
		margin-top:75px;
	}
}

@media (max-width: 415px) {
	
	/* BLA Page */
	
	#request_payment #invoice {
		width: calc(100% - 112px)
	}
	
	#request_payment #invoice + button {
		min-width: 0;
	}
	
	#request_payment > div:last-of-type button:first-of-type {
		min-width: 0;
	}
	
}

@media only screen and (max-width: 350px) {
	
	.add-director div,
	.add-outlet div {
		font-size: 15px;
	}
	
	/* BLA Page */
	
	.payment > div {
		float:  none !important;
	}
	
	.payment > div:first-of-type {
		margin-right: 0;
	}
	
}

@media (max-width: 330px) {
	
	#request_payment > div:last-of-type button {
		display: block;
	}
	
	#request_payment > div:last-of-type button:first-of-type {
		margin-bottom: 15px;
	}
	
}

/* Special media for #regsiter_menu ul */

@media screen and (max-width: 700px) {
	.page-company-detail ul {
		position: relative;
		right: 12%;
	}
	.page-document ul {
		position: relative;
    	right: 28%;
	}
	.page-application-process ul {
		position: relative;
		right: 40%;
	}
}

@media only screen and (min-width: 570px) and (max-width: 700px) {
	.page-company-detail ul {
		position: relative;
		right: 3%;
	}
}

@media only screen and (min-width: 501px) and (max-width: 700px) {
	.page-application-process ul {
		position: relative;
		right: 17%;
	}
}

@media only screen and (min-width: 420px) and (max-width: 700px) {
	.page-document ul {
		position: relative;
    	right: 8%;
	}
}

@media only screen and (min-width: 420px) and (max-width: 500px) {
	.page-application-process ul {
		position: relative;
		right: 26%;
	}
}

@media only screen and (min-width: 320px) and (max-width: 380px) {
	.page-application-process ul {
		position: relative;
		right: 39%;
	}
}

@media only screen and (min-width: 750px) {
	#regsiter_menu {
		width: 100%;
	}
}

@media only screen and (max-width: 749px) {
	#regsiter_menu {
		position: relative;
	}
	#regsiter_menu:before {
		content: "";
		background: #222222;
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: -100px;
	}
}