*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    text-decoration:none;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#page-content{
    flex:1;
}
input{
    font-size:16px;
}
::placeholder{
    font-family: "Helvetica Neue", Arial, sans-serif;
}
a{
    color: black;
}
a::visited{
    color: black;
}
.maket--width{
    width:1580px;
    max-width:100%;
    margin:0 auto;
    padding:0 10px;
}
.container-head {
    padding: 0 0 0 15px;
    height: 50px;
    border-bottom: 1px solid #e7e7e7;    
    display: flex;
    justify-content: space-between;    
    align-items: center;
	margin-bottom: 20px;
	background-color: #f8f8f8;
}
.container-head .navbar-header{
    color: #777;
    display: flex;
}
.container-head .navbar-header .exit{
    display: flex;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
}
.container-head .navbar-header .exit .exit_word{
    font-size: 16px;
    padding-top: 5px;
    margin-left: 5px;
}
.container-head .navbar-header .navbar-profile{
    color: #777;
    display: flex;
    align-items: center;
    padding: 0 15px;   
    margin-left: 20px;    
    font-size: 18px;
    height: 50px;
}
.container-head .navbar-header .navbar-profile:hover{
    color: black;    
    text-decoration: none;
}
.container-head .navbar-header .navbar-profile img{
    margin-right: 10px;
}

.container-head .navbar-collapse{
    display: flex;
	padding: 0;
}
.container-head .navbar-collapse a{
    color: #777;    
    padding: 0 15px;
	line-height: 50px;
}
.container-head .navbar-collapse a:hover{
    color: black;    
    text-decoration: none;
}
.container-head .navbar-header .navbar-profile.active-page, .container-head .navbar-collapse a.active-page{
    background-color: #4CAF50;
    color: white;
}
/* Страница заказов */
	.search_block{
		padding: 0 20px 20px 20px;
		position: relative;
		display: flex;
		justify-content: center;    
		margin-left: 20%;
	}
	.search_block span{ 
		color: #b0b0b0;    
		font-size: 16px;
		top: 10px;
		left: 25px;
	}
	.search_block input{
		background: #f3f3f3;
		padding: 6px 0;
		padding-left: 30px;
		width: 100%;
		height: 34px;    
		border: 1px solid #ccc;
		border-radius: 4px;    
		color: #555;
	}
	.table_helper{
		padding: 0 15px;
	}
	.table_helper .orders{
		width: 100%;
	}

/* Стили заголовков таблицы */
	.table_helper .orders thead{
		border-bottom: 2px solid #ddd;
	}
	.table_helper .orders thead tr{
		background: white;
	}
	.table_helper .orders th{
	    height: 35px;
	}
	.table_helper .orders th.flex{
		display: flex;
		justify-content: center;
		cursor: pointer;    
		align-items: center;
	}
	.table_helper .orders th.center{
		text-align:center;
	}
	.table_helper .orders .statuses{
		position: relative;
	}
	.table_helper .orders .statuses .filter_popup{
		display: none;
		padding: 5px 0px;    
		background-color: #fff;    
		border: 1px solid rgba(0, 0, 0, 0.15);
		border-radius: 4px;
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
		position: absolute;
		top: 25px;
		z-index:999;
		width: 175px;
	}
	.table_helper .orders .statuses .filter_popup.active{
		display: block;
	}
	.table_helper .orders .statuses .status_popup{
		display: none;
		padding: 5px 0px;    
		background-color: #fff;    
		border: 1px solid rgba(0, 0, 0, 0.15);
		border-radius: 4px;
		box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
		position: absolute;
		top: 25px;
		z-index:999;
	}
	.table_helper .orders .statuses .status_popup.active{
		display: block;
	}
	.table_helper .orders .statuses .status{
		color: #333;
		font-size: 14px;
		font-weight: 400;
		padding: 5px 20px;    
		text-align: left;    
		display: block;
	}
	.table_helper .orders .statuses .status:not(.active):hover{
	    background-color: #f5f5f5;
	}
	.table_helper .orders .statuses .status.active{
		font-weight: 700;
		padding: 0;
		margin-right: 5px;
	}
	.table_helper .orders .statuses .status.site{
		font-weight: 700;
	    color: #428bca;
	}
	.table_helper .orders .statuses .status.new{
		font-weight: 700;
	    color: #d9534f;
	}
	.table_helper .orders .statuses .status.all{
		font-weight: 700;
	}
	.table_helper .orders .statuses .status.unpaid{
		font-style: italic;
	}
	.table_helper .orders .statuses .status.complete{
		opacity: 0.4;
	}
	.table_helper .orders .statuses .status.production{
		font-weight: 700;
		color: #f0ad4e;
	}
	td.payment .status.delete{
		position: absolute;
	    right: 0px;
		top: 0px;
		font-weight: 700;
	    color: #d9534f;
		cursor: pointer;
		font-size: 12px;
	}
	table_helper .orders .statuses .status.delete
/* Стили заголовков таблицы */
/* Стили строки таблицы */
	tr:nth-child(4n+1), tr:nth-child(4n+2) {
        background-color: #f9f9f9;
    }
    tr:nth-child(4n+3), tr:nth-child(4n+4) {
		background-color: #ffffff;
    }
	tbody tr{
	    border-top: 1px solid #ddd;
	}
	tbody td{
		padding: 8px;
		vertical-align: top
	}
	tbody .number_date{
		width: 280px;
		display: flex;
		align-items: center;
		margin-bottom: 5px;
	}
	tbody b{
		margin-right: 5px;
	}
	tbody .number_date span{
		
	}
	tbody .status_row{
		display: flex;
		align-items: center;
	}
	tbody .status_row .status{
		cursor: pointer;
	}
	tbody .status_row .ready_status_yes{
		font-weight: 700;
	    color: #5cb85c;
		display: none;
	}
	tbody .status_row .ready_status_yes.active{
		display: block;
	}
	tbody .buttons{
		display: flex;
		align-items: center;
	}
	tbody .buttons span{
		color: black;
		border-color: #f3f3f3 #ebe8e3 #bababa;
		text-shadow: none;
		background-image: -webkit-linear-gradient(top, #ededed, #cccccc);
	    font-size: 11px;
		font-weight: 700;
		padding: 6px 12px;
		margin-top: 8px;
		margin-right: 10px;
		border-radius: 5px;
		cursor: pointer;
	}
	tbody .buttons a{
		color: black;
		border-color: #f3f3f3 #ebe8e3 #bababa;
		text-shadow: none;
		background-image: -webkit-linear-gradient(top, #ededed, #cccccc);
	    font-size: 11px;
		font-weight: 700;
		padding: 6px 12px;
		margin-top: 8px;
		margin-right: 10px;
		border-radius: 5px;
		cursor: pointer;
	}
	tbody .buttons a:hover{
		text-decoration: none;
	}
	tbody .datas_row{
		display: flex;
		align-items: center;
		margin-bottom: 5px;
	}
	tbody .datas_row span{
		margin-right: 5px;
		cursor: pointer;
	}
	tbody .datas_row span:active{
		color: red;
	}
	tbody .number_date b{
		cursor: pointer;
	}
	tbody .number_date b:active{
		color: red;
	}
	tbody .datas_row input{
		border: none;
		width: 50%;
		color: black;    
		background: none;
	}
	tbody .suborder{
		position: relative;
	}
	tbody .suborder .title{
		cursor: pointer;
		width: 330px;
	}
	tbody .suborder .title.crossed{
		width: max-content;
		background-image: linear-gradient(transparent 7px, #ff0000 7px, #ff0000 9px, transparent 9px);
		background-size: 100% 15px;
		background-repeat: no-repeat;
		background-position: center;
	}
	tbody .suborder .title.active{
		color: #B10000;
		text-decoration: underline;
	}
	tbody .suborder .title:hover{
		color: #B10000;
		text-decoration: underline;
	}
	tbody .suborder span.green{
		color: green;
	}
	tbody .suborder .task_status_changer{
		margin-right: 3px;
		border: 1px solid black;
		max-width: fit-content;
		min-width:12px;
		height: 12px;
		cursor: pointer;
		display: inline-block;
		position: relative;
	}
	tbody .suborder .task_status_changer span{
		display: none;    
		position: absolute;
		top: -4px;
	}
	tbody .suborder .task_status_changer.ready + .title_text {
		opacity: 0.4;
	}
	tbody .suborder .task_status_changer.ready span{
		display: inline-block;
	}
	tbody .suborder span.red{
		color: red;
	}
	tbody .suborder .popup_suborder{
		position: absolute;
		width: 270px;
		padding: 10px 15px;
		background-color: #fff;
		border: 1px solid #ccc;
		border: 1px solid rgba(0, 0, 0, 0.2);
		border-radius: 6px;
		box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
		transform: translateY(-55%);
		right: 102%;
		display: none;
		z-index:999;
	}
	tbody .suborder .popup_suborder.active{
		display: block;
	}
	tbody .suborder .title:hover + .popup_suborder { 
		display: block; 
	}
	tbody .suborder .popup_suborder::after {
        content: '';
        width: 0; 
        height: 0; 
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid white;
        position: absolute;
        top: 50%;
		right: -10px;
        transform: translateY(-50%);
    }
	tbody .suborder .popup_suborder p{
		margin: 0;
	}
	tbody .suborder .popup_suborder .buttons{
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 5px;
		
		
		display: none;
	}
	tbody .suborder .popup_suborder .buttons .button_substat{
		color: #666;
		cursor: pointer;
		border: 1px solid #ccc;
		border-radius: 3px;
		padding: 2px 3px;
		display: inline-block;
		width: 75px;
		font-size: 13px;
		text-align: center;
	}
	tbody .suborder .popup_suborder .buttons .button_substat.active{
	    background-color: #6cc86c;
	}
	tbody .datas_row.timers{
		position: relative;
	}
	tbody .datas_row.timers p{
		margin: 0 5px;
	}
	tbody .datas_row img{
		margin-right: 5px;
	}
	tbody .datas_row.timers [name="datetime_completed"]{
		width: 75px;
	}
	tbody .datas_row.timers .datepicker.red{
		color:#d9534f;
		font-weight: bold;
	}
	tbody .datas_row.timers [name="delivery_time"]{
		width: 40px;
	}
	tbody .datas_row.delivery{
		align-items: flex-start;
	}
	tbody .datas_row textarea{ 
		resize: none;
		border: none;
		width: 180px;
		height: 60px;
		color: black;    
		background: none;
	}
	tbody td.delivery_td{
		padding: 8px 0;
	}
	tbody td.payment{
		display: flex;
		align-items: center;
		justify-content: flex-start;
		padding: 8px 0;
		position: relative;
	}
	tbody td.payment span{
		cursor: pointer;
	}
	tbody td.payment input{
		width: 50px;
		border: none;
		color: black; 
		text-align: center;     
		background: none;
	}
	tbody td.payment input:focus{
		width: 50px !important;
	}
	tbody td.payment p{
		margin: 0 5px;
	}
	tbody td.payment input.alert{
		color: #d9534f;
		font-weight: bold;  
		padding: 0;
		margin: 0; 
		width: 10px;
	}
	tbody .suborders_edit{
		display: none;
	}
	tbody .suborders_edit.active{
		display: table-row;
	}
	tbody td .suborder_edit{
		border-bottom: 1px solid black;
		margin-bottom: 10px;
		padding-bottom: 10px;
		display: flex;
		flex-wrap: wrap;
	}
	tbody td .suborder_edit p{
		display: flex;
		align-items: center;    
		width: calc(50% - 10px);
		margin-right: 10px;
		margin-bottom:0;
	}
	tbody td .suborder_edit p.btn{
		display: block;
		width: 166px;
		padding: 0;
		height: 34px;
		line-height: 30px;
	}
	tbody td .suborder_edit p b{
		display: block;
		min-width: 110px;
		background-color: #eee;
		border: 1px solid #ccc;
		border-radius: 4px;
		padding: 6px 12px;
		text-align: center;
		margin-right: 0;
	}
	tbody td .suborder_edit p input{
		width: calc(100% - 100px);
		color: black;
		background: none;
		padding: 6px 12px;
		background-color: #fff;
		border: 1px solid #ccc;
		border-radius: 4px;
		box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	}
	tbody td .suborder_edit p textarea{
		width: calc(100% - 100px);
		color: black;
		background: none;
		padding: 6px 12px;
		background-color: #fff;
		border: 1px solid #ccc;
		border-radius: 4px;
		box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
		/*height: 34px;*/
		overflow: hidden;
		resize: none;
	}
/* Стили строки таблицы */
	/* Определите ключевые кадры для вращения */
	@keyframes spin {
	  0% { transform: rotate(0deg); }
	  100% { transform: rotate(360deg); }
	}
	/* Примените анимацию к иконке */
	.sync span.active {
	  display: inline-block;
	  animation: spin 1s linear infinite;
	}
/*Страница заказов*/


/* стили футера */
.navbar-collapse.fixed{
	position: fixed;
	bottom: 0;
	background: white;
	width: 100%;
	z-index: 999;
    background-color: #f8f8f8;
}
.add_order_block{
	display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}
/* стили футера */