.discard-link {
	display: block;
	margin-top: 10px;
	padding-top: 10px;
	padding-bottom: 10px;
	color: red;
	font-size: 12px;
}

.discard-link:hover {
	text-decoration: none;
}

.ui-autocomplete {
	max-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 20px;
	padding-bottom: 20px;
	z-index: 5000;
}

* html .ui-autocomplete {
	height: 200px;
}

.icon-create {
	display: inline-block;
	width: 20px;
	height: 20px;
	cursor: pointer;
	background: transparent url(/theme/assets/img/icons/create.png?v=1) no-repeat right 0;
	background-size: auto 20px ;
}
.icon-create:hover{
	opacity: 0.7;
}

.icon-add-row {
	display: inline-block;
	width: 20px;
	height: 20px;
	cursor: pointer;
	background: transparent url(/theme/assets/img/icons/add.png?v=1) no-repeat 0 0;
	background-size: auto 18px ;
}
.icon-add-row:hover{
	opacity: 0.7;
}

.icon-remove {
	display: inline-block;
	width: 20px;
	height: 20px;
	cursor: pointer;
	background: transparent url(/theme/assets/img/icons/del.png?v=1) no-repeat 0 0;
	background-size: auto 18px ;
}
.icon-remove:hover{
	opacity: 0.7;
}



.res-items-table {
	width: 100%;
	border-collapse: collapse;
}

.res-items-table tr th {
	padding: 0 0 8px 0;
	line-height: 1.2;
	font-size: 11px;
	font-style: italic;
	font-weight: normal;
}
.contacts-table-readonly tr th{
	font-weight: bold;
	font-style: normal;
	font-size: 12px;
}

.res-items-table tr th:last-child {
	padding-left: 10px;
}

.res-items-table tbody {
	min-height: 40px;
}

.res-items-table tbody tr td {
	vertical-align: middle;
	padding-top: 4px;
	padding-bottom: 4px;
	/*white-space: nowrap;*/
}

.res-items-table tbody tr td:last-child {
	vertical-align: middle;
	white-space: normal;
	text-align: left;
}

.res-items-table tbody tr td.res-service-remove-block {
	vertical-align: top;
	padding-left: 10px;
	padding-top: 20px;
}

.res-items-table.totals-table-readonly tbody tr td{
	vertical-align: top;
}
.res-items-table.totals-table-readonly tbody tr td span{
	display: inline-block;
	width:80px;
	vertical-align: top;
	padding-right: 10px;
}
.res-items-table.totals-table-readonly tbody tr td:last-child em{
	display: inline-block;
}


.row-adjust-position,
.client-payments-row-adjust-position,
.suppliers-payments-row-adjust-position,
.service-row-adjust-position {
	cursor: ns-resize;
}

.fancy-form form div.form-row .res-items-table tbody tr td input {
	min-width: 58px;
	width: 90%;
}

.fancy-form form div.form-row .res-items-table tbody tr td input[type=radio] {
	min-width: 15px;
	width: 15px;
}

.res-items-table tfoot tr td {
	padding-top: 20px;
}

.res-items-table tfoot tr td:last-child {
	vertical-align: middle;
	padding-left: 10px;
}

.res-items-table .accom-details-table{
	table-layout: fixed;
}
.accom-details-table tr td small.pricestr{
	font-size: 90%;
	color: green;
}

.res-items-table .accom-details-table tbody tr td:first-child {
	width:37%;
	min-width: 200px;
}
.res-items-table .accom-details-table tbody tr td:last-child {
	width:63%;
	min-width: 200px;
}
.res-items-table .accom-details-table tfoot tr td {
	padding-top: 0;
}
.res-items-table .accom-details-table tfoot tr td:last-child {
	vertical-align: middle;
	padding-left: 0;
}

.res-items-table .accom-details-table .room-type-row td{
	vertical-align: bottom;
}

.res-items-area {
	display: inline-block;
	font-size: 12px;
	min-height: 20px;
	width: 100%;
}

#reservations thead tr th{
	line-height: 1.3;
	font-size: 11px;
	padding-right: 1px;
	vertical-align: middle;
	font-weight: bold;
	color: #014163;
}
#reservations thead tr th a{
	line-height: 1.3;
	font-size: 11px;
	font-weight: bold;
	color: #014163;
}

#reservations tbody tr td{
	vertical-align: middle;
}
#reservations tbody tr td:nth-child(10),
#reservations tbody tr td:nth-child(11){
	white-space: nowrap;
}


.contacts-list {
	display: inline-block;
	font-size: 12px;
	min-height: 78px;
	width: 100%;
}

.contacts-list p {
	display: block;
	width: 100%;
	padding-bottom: 10px;
}

.contacts-list p input {
	min-width: 110px;
	width: 29.2%;
}

#contacts-list tr.client-row td:last-child{
	text-align: right;
}

#add-service-menu {
	max-width: 140px;
	font-style: italic;
	font-size: 12px;
	color: #555555;
}

#add-service-menu option {
	font-size: 13px;
	font-style: normal;
	font-weight: bold;
}

#add-service-menu option:first-child {
	font-style: italic;
	font-weight: normal;
}

.services-table tbody tr td {
	vertical-align: top;
}

.services-table tbody tr td .service-title {
	display: block;
	width: 100%;
	padding-bottom: 9px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk .accom-details-table .room-type-row td{
	padding-bottom: 15px;
}
.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk .accom-details-table .room-type-row td input.rd-input{
	margin-bottom: 6px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk .service-accom-ad-ch-group{
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	min-width: 268px;
	padding-left: 16px;
	padding-top: 0;
	padding-bottom: 0;
	margin-left: 0;
	text-align: right;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk .service-accom-ad-ch-group span{
	display: inline-block;
	padding-right: 3px;
}
.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk .service-accom-ad-ch-group span:nth-child(3){
	text-align: center;
	padding-left: 4px;
	padding-right: 4px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row .service-accom-ad-ch-group select{
	width: 50px;
	min-width: 50px;
	font-size:10px;
}


.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk {
	overflow: hidden;
	text-align: left;
}

.accom-details-table {
	width: 100%;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk p {
	display: inline-block;
	min-width: 100px;
	width: 48%;
}

.fancy-form form div.form-row .res-items-table tbody tr td span.rd-label {
	display: inline-block;
	box-sizing: border-box;
	width: 180px;
	padding-right: 5px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.service-accom-roomtypes {

	width: 100%;
	text-align: left;
}
.fancy-form form div.form-row .res-items-table tbody tr td.service-accom-roomtypes p {
	display:block;
	width: 100%;
	max-width: 100%;
	font-size:11px;
	text-align: left;
}

.fancy-form form div.form-row .res-items-table tbody tr td.sar-preview p{

	min-width: 97%;
	max-width: 780px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk span.rd-label {
	width: 150px;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.rd-input {
	width: 190px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk input.rd-input {
	width: 50%;
	min-width: 40px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk input.rd-input-half {
	width: 24.5%;
	min-width: 20px;
	margin-right: 5px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk input.rd-input-half:last-child {
	margin-right: 0;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row .listroomaccomclients {
	display: inline-block;
	border: 1px solid #F3F3F3;
	min-width: 100px;
	min-height: 25px;
	width: 70%;
	max-width: 70%;
	padding: 0.5% 0.5% 0;
	overflow: hidden;
	white-space: normal;
	float: left;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row .listroomaccomclients li {
	display: inline-block;
	padding: 2px;
	border: 1px solid #F2F2F2;
	margin-right: 2px;
	margin-bottom: 2px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row .listroomaccomclients li:hover {
	border: 1px solid #d8d8d8;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row .listroomaccomclients li strong {
	display: inline-block;
	padding-right: 2px;
	font-weight: normal;
	font-size: 9px;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row .listroomaccomclients li a {
	display: inline-block;
	font-size: 9px;
	text-decoration: none;
	color: #FF2C2C;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row .listroomaccomclients li a:hover {
	color: #A20000;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row select {
	display: inline-block;
	border: 1px solid #F3F3F3;
	min-width: 100px;
	padding: 3px;
	font-size: 11px;
	width: 26%;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row a.remove-room-type-row {
	display: inline-block;
	width: 4%;
	padding-left: 3px;
	color: red;
	text-decoration: none;
}

.fancy-form form div.form-row .res-items-table tbody tr td.accom-details-blk tr.room-type-row a.remove-room-type-row:hover {
	color: #000;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.service-departure-time {
	width: 190px;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.service-departure-arrival-places,
.fancy-form form div.form-row .res-items-table tbody tr td input.service-base-transp-tpid{
	width: 60%;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.service-transfer-route {
	width: 230px;
}

.fancy-form form div.form-row .res-items-table tbody tr td a.client-names-modify,
.pencl-modify {
	text-decoration: none;
	color: #888;
	padding-left: 4px;
}

.fancy-form form div.form-row .res-items-table tbody tr td a.client-names-modify:hover,
.pencl-modify:hover {
	color: #000;
}

#hover-forms {
	display: block;
	width: 70%;
	min-width: 700px;
	min-height: 100px;
	height: 90%;
	margin: 0.5% auto;
	top: 2%;
	padding: 22px 40px 40px;
	box-shadow: 10px 10px 20px #444;
	background-color: rgba(255, 255, 255, 0.95);
	position: fixed;
	z-index: 1000;
}

#hover-forms-nav{
	width:102%;
	height:27px;
	padding-bottom:10px;
	text-align: right;
}
#hover-forms-nav a{
	color:#C4C4C4;
	text-decoration: none;
}

#hover-forms-content{
	box-sizing: border-box;
	padding: 3px;
	max-height: 97%;
	overflow: auto;
}

#hover-forms-content .fancy-form{
	background-color: rgba(255, 255, 255, 0.6);
}

.fancy-form form div.form-row .res-items-table tbody#client-payments-list tr td:last-child {
	text-align: left;
	padding-left: 0;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.dtpicker {
	width: 84px;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.client-amount {
	width: 59px;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.client-amount-perc {
	width: 29px;
}

.fancy-form form div.form-row .res-items-table tbody tr td span.client-amount-span {
	line-height: 1;
	padding-left: 5px;
	font-weight: bold;
	position: relative;
	top: 3px;
}

.fancy-form form div.form-row .res-items-table tbody#suppliers-payments-list tr td:last-child {
	text-align: left;
	padding-left: 0;
}
#suppliers-payments-list tr td:nth-child(7) {
	white-space: nowrap;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.supplier-amount {
	width: 55px;
}

.fancy-form form div.form-row .res-items-table tbody tr td input#disctype_lv,
.fancy-form form div.form-row .res-items-table tbody tr td input#disctype_pe {
	position: relative;
	cursor: pointer;
	top: -2px;
}

.h,
.fancy-form form div.form-row input.h {
	display: none;
}

.pmethod-select{
	width: 80px !important;
	margin-left:5px;
	margin-right:5px;
}
.pmethod-select option:first-child{
	color:#CCC;
}

.fancy-form form div.form-row .res-items-table tbody tr td span.supplier-amount-span {
	line-height: 1;
	padding-left: 5px;
	font-weight: bold;
	position: relative;
	top: 3px;
}

.fancy-form form div.form-row .res-items-table.totals-table tr td{
	white-space: nowrap;
	vertical-align: top;
}
.fancy-form form div.form-row .res-items-table.totals-table tr td input {
	width: 44px;
	vertical-align: top;
}

.fancy-form form div.form-row .res-items-table.totals-table tr td textarea{
	display: inline-block;
	width: 70%;
	margin-left: 20px;
	vertical-align: top;
	font-size:11px;
	height: 30px;
}

.fancy-form form div.form-row .res-items-table.totals-table tr td span.totals-amount-span {
	line-height: 1;
	padding-left: 5px;
	font-weight: bold;
	position: relative;
	top: 3px;
}

#calculations {
	min-height: 16px;
	padding-top: 10px;
}

.contacts-table-readonly tr th,
.totals-table-readonly tr th,
.contacts-table-readonly tr td,
.totals-table-readonly tr td,
#services-list-readonly tr td,
#services-list-readonly table tr td {
	color: #333;
}

.contacts-table-readonly tr td:last-child {
	color: #333;
	font-style: italic;
}

.notes-readonly,
.client-payment-plan-readonly,
.suppliers-payment-plan-readonly {
	color: #333;
}

.suppl-payments tr td .inp-simple{
	padding: 2px 3px;
}

#hidden-remarks{
	width:calc(60% - 35px);
}
.notes-readonly p{
	width: 100%;
	margin:0;
}
.item-progress-0 td:first-child {
	background-color: #FFC7CE;
}

.item-progress-1 td:first-child {
	background-color: #FEC70F;
}

.item-progress-2 td:first-child {
	background-color: #02AD88;
}

.item-progress-10 td:first-child {
	color: #FFFFFF;
	background-color: #F42222;
}

.suppl-payment-status-1 td{
	color: #02AD88;
}
.item-status-10 td{
	color: #F42222;
}
.item-partnerstatus-6 td:first-child {
	background-color: #F57521 !important;
}

.add-hid-remark,
.add-hid-remark-req{
	display: inline-block;
	width: 19px;
	height: 19px;
	line-height: 20px;
	font-size:27px;
	text-decoration: none;
	text-align: center;
	color:#FFF;
	background-color: #363b3f;
	border-radius: 2px;
}

.add-hid-remark{
	background: transparent url("/theme/assets/img/icons/add_remark.png") no-repeat center center;
	background-size: 100% auto;
}

.add-hid-remark:hover,
.add-hid-remark-req:hover{
	opacity: 0.6;
}

.add-remark-form{
	display: block;
	box-sizing: border-box;
	width:400px;
	padding:10px;
	background-color: #9c9c9c;
	box-shadow: 0 0 5px #DDD;
	position: absolute;
	text-align: right;
	margin-top:-150px;
	margin-left:500px;
}
.add-remark-form textarea{
	display: block;
	width:100% !important;
	box-sizing: border-box;
	padding:3px;
	margin-bottom:5px;
	border:1px solid #444;
	color:#444;
	background-color: #FFF;
	font-size:12px;
	float:none;
}
.add-remark-form button{
	display: block;
}

.rem-hid-res-remark{
	display: none;
	padding-left:5px;
	padding-right:5px;
	cursor:pointer;
	color:red;
	font-size:12px;
	text-decoration: none;
}
.rem-hid-res-remark:hover{
	color:darkred;
}

.hid-remarks-line:hover .rem-hid-res-remark{
	display: inline;
}
.hid-remarks-line.deleted-1{
	text-decoration: line-through;
}
.res-services-grp select{
	display: inline-block;
	width:10% !important;
}

.res-services-grp #res-services-list{
	display: inline-block;
	width:45% !important;
	min-height: 15px;
	border: 1px solid #F3F3F3;
}

.res-services-grp #res-services-list span{
	display: inline-block;
	line-height: 1.1;
	padding:2px 5px;
	margin-right: 2px;
	margin-bottom: 2px;
	border: 1px solid #F2F2F2;
	border-radius: 2px;
	font-size:12px;
	color:#444;
}
.res-services-grp #res-services-list span:hover{
	border: 1px solid #d8d8d8;
}
.res-services-grp #res-services-list span a{
	display: inline-block;
	line-height: 1;
	font-size:12px;
	color: #A20000;
	cursor:pointer;
	text-decoration: none;
}
.res-services-grp #res-services-list span a:hover{
	color:#444;
}

.ref-big-table-holder{
	display: block;
	width: auto;
	padding: 10px;
	margin: 0 auto 20px;
	background-color: #CCC;
}
.ref-big-table{
	width: 80%;
	border-collapse: collapse;
}

.ref-big-table thead tr th{
	border: 1px solid #F4F4F4;
	padding: 3px 5px;
}
.ref-big-table thead tr.empty th{
	border: 1px solid #CCC;
	border-bottom: 1px solid #888;
	padding: 3px 5px;
}

.ref-big-table tr td{
	border: 1px solid #888;
	padding: 3px 5px;
}
.ref-big-table tr.heading td{
	font-weight: bold;
}
.rf-doctype-0 td{
	color: green;
}
.rf-doctype-3 td{
	color: red;
}

.transport-form-tbl{
	width: 100%;
}
.transport-form-tbl tr td{
	vertical-align: top !important;
	width: 48%;
}

.assign-clients{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.assign-clients ul{
	display: inline-block;
	width: 98%;
	max-width: 95%;
	min-width: 100px;
	min-height: 25px;
	padding: 0.5% 0.5% 0;
	margin-top: 10px;
	margin-bottom: 10px;
	flex: 1 1 auto;
	border: 1px solid #F3F3F3;
	overflow: hidden;
	white-space: normal;
}
.assign-clients ul li{
	display: inline-block;
	padding: 2px;
	border: 1px solid #F2F2F2;
	margin-right: 2px;
	margin-bottom: 2px;
}
.assign-clients ul li strong{
	display: inline-block;
	padding-right: 2px;
	font-weight: normal;
	font-size: 9px;
}
.assign-clients ul li a{
	display: inline-block;
	font-size: 9px;
	text-decoration: none;
	color: #FF2C2C;
}

.assign-clients .add-client-to-list{
	flex: 0 0 120px;
}

.fancy-form form div.form-row .res-items-table tbody tr td input.service-base-transp-tpid{
	min-width: 58px;
	width: 190px;
}

.reservation-review-clients tr td:nth-child(2){
	text-align: right;
	padding-right: 2px;
}
.reservation-review-clients tr td:nth-child(3){
	padding-left: 2px;
}
