html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	/*font-size: 100%;*/
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
html, body {
	color: black;
	/* background-color: rgb(250, 250, 250); */
	height: 100%;
}
/*html {
	font-size: 13px;
}*/
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
 
/* ------------------------------------------------------------------------------
    G E N E R A L
--------------------------------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
}

body, input, textarea, select, button {
	font-family: 'Open Sans', Segoe UI, Tahoma, Geneva, Verdana, Sans-Serif;
	font-size: 1rem;
	margin: 0; padding: 0;
}
ol, ul, li {
	list-style: none;
}
optgroup {
	font-weight: bold;
	font-style: normal;
	padding-left: 5px;
}
option {
	padding: 0.3rem 0.5rem;
}
optgroup > option {
	padding-left: 10px;
}
a:link, a:visited {
	text-decoration: none;
	color: #00E;
}
p {
	line-height: 1.5;
}
hr {
	color: lightgray;
}
::-webkit-input-placeholder { /* WebKit, Blink, Edge */
	color: silver;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
	color: silver;
	opacity: 1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
	color: silver;
	opacity: 1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
	color: silver;
}
::-ms-input-placeholder { /* Microsoft Edge */
	color: silver;
}

::placeholder { /* Most modern browsers support this now. */
	color: silver;
}

#main {
	float: left;
	min-width: 300px;
}

.row {
	/*width: 100%;*/
}
.row::after {
	content: "";
	clear: both;
	display: block;
}
.row .col {
	float: left;
	padding-right: 2rem;
}

.headerrow {
	padding-top: 0.3rem;
	padding-bottom: 0.3rem;
	padding-left: 0.6rem;
	padding-right: 0.6rem;
	background-color: #F8F8F8;
	white-space: nowrap;
	display: inline-block;
}
.headerrow > span:not(:first-child) {
	padding-left: 0.6rem;
}


/* sidemenu */
.sidebar {
	width: 220px;
	min-width: 220px;
	float: left;
	margin: 0;
}
.sidemenu {
	font-size: 1.1rem;
	margin-bottom: 1.1rem;
}
.sidemenu ul, .submenu ul {
	margin-left: 0.6rem;
}
.sidemenu > li {
	padding-right: 0.6rem;
}
.submenu {
	font-size: 1rem !important;
}
.sidemenu li a:link,
.sidemenu li a,
.sidemenu li a:visited {
	text-align: left;
	color: #333;
	padding: 0.2rem 0.9rem;
	display: block;
	text-decoration: none;
	text-indent: -0.3rem;
}
.sidemenu li a.selected {
	background-color: #EEE;
	color: #000;
}
.sidemenu li a:hover, .submenu li a:hover {
	background-color: #DDD;
	color: #000;
}


.a-href {
	height: 100% !important;
	width: 100% !important;
	padding: 0.2rem 0.4rem;
}
.a-href:hover {
	background-color: rgba(0, 0, 0, 0.06);
}
td.td-no-padding {
	padding: 0 !important;
}
td .td-href {
	display: inline-block;
	height: 100% !important;
	width: 100% !important;
	padding: 0.2rem 0.4rem;
}
td .td-href-multi {
	padding: 0.2rem 0.4rem;
}
td a .td-href:hover,
td a .td-href-multi:hover {
	background-color: rgba(0, 0, 0, 0.06);
}
.ellipsis, .ellipsis select  {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 20rem;
}
.ellipsis-small {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 10rem;
}
.ellipsis-large {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 30rem;
}
.ellipsis-extralarge {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 50rem;
}

.white-popup-block {
	position: relative;
	display: inline-block;
}

.header {
	padding-bottom: 0.9rem;
	padding-top: 0.3rem;
	line-height: 1.3rem;
	clear: left;
	font-size: 1.3rem;
	font-weight: bold;
}
.status-line {
	clear: left;
	padding-top: 0.3rem;
}

.nomedit-edit {
	float: left;
}

.table-row {
	margin: 0.1rem 0;
	display: table-row;
}
.table-row-hover .table-row:hover {
	background-color: rgba(0, 0, 0, 0.06);
}
.table-cell-label {
	display: table-cell;
	text-align: right;
	padding-right: 0.3rem;
	max-width: 15rem;
	word-wrap: break-word;
	vertical-align: middle;
}
.table-cell {
	display: table-cell;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
	vertical-align: middle;
}
.table-cell-label-big {
	display: table-cell;
	padding-right: 0.3rem;
	word-wrap: break-word;
	vertical-align: middle;
}

input[type="text"], input[type="password"],
textarea, 
.searchbox input,
table input[type="text"] {
	border:1px solid #cfcfcf;
	padding: 0.1rem 0.2rem;
	color:#000;
}
select {
	border:1px solid #cfcfcf;
	padding: 0.1rem 0.2rem;
}
input:focus:not(.readonly):not(.button),
select:focus:not(.readonly),
.nomedit-edit textarea:focus:not(.readonly) {
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(102, 175, 233, 0.6);
	border-color: #66AFE9;
}

#searchbox {
	width: 15rem;
}

.large {
	width: 25rem;
}
.medium {
	width: 15rem;
}
.small {
	width: 10rem;
}
.smaller {
	width: 6rem;
}
.nomedit-edit .checkbox {
	vertical-align: middle;
}
.date  {
	width: 6rem;
}
.datetime {
	width: 8rem; 
}
.time {
	width: 4rem; 
}
.number  {
	width: 6rem;
	text-align: right;
}
/* Number up to 99999.99 */
.number-small  {
	width: 4rem; 
	text-align: right;
}
.readonly {
	background-color: #F0F0F0;
}
.hidden {
	display: none !important;
}
.isnan {
	border:1px solid red !important;
}
.isRequired {
	border: 1px solid red !important;
}
.isAttention {
	background-color: #FFECEC !important;
}
.isModified {
	background-color: #ffff77 !important;
}
.white_on_red {
	background-color: #e23e4d !important;
	color: #FFF !important;
}
select.mandatory.mandatory-empty option {
	color: black;
}
select.mandatory.mandatory-empty option[disabled] {
	color: silver;
}
select.mandatory.mandatory-empty {
	color: silver;
}

.inline-add {
	background: url("../images/svg/add_icon.svg") no-repeat left center;
	color: #fff;
	display: inline-block;
	height: 2rem;
	width: 2rem;
	margin: 0.3rem;
	vertical-align: middle;
	cursor: pointer;
}
.inline-edit {
	background-image: url("../images/svg/edit_icon.svg");
	background-repeat: no-repeat;
	color: #fff;
	display: inline-block;
	height: 2rem;
	width: 2rem;
	margin: 0.3rem;
	vertical-align: middle;
	cursor: pointer;
}

.negative-number {
	color: red !important;
}

input.button {
	padding: 0.3rem 0.5rem;
	border-width: 0;
	cursor: pointer;
	color: #FFF;
	background-color: #2C76A6;
}

button.submit_button {
	padding: 0.3rem 0.5rem;
	border-width: 0;
	cursor: pointer;
	color: #FFF;
	background-color: #2C76A6;
}
.add_button {
	padding: 0.3rem 0.5rem;
	border-width: 0;
	cursor: pointer;
	color: #FFF;
	background: #3da16a url(../images/svg/add_icon.svg) no-repeat left center;
	padding-left: 40px;
}
.add_button:hover {
	background-color: #1b8048;
}
button.green_button {
	padding: 0.5rem 0.3rem;
	border-width: 0;
	cursor: pointer;
	color: #FFF;
	background-color: #3da16a;
}
button.green_button:hover {
	background-color: #1b8048;
}
button.buttons-excel {
	padding: 0.3rem 0.5rem;
	border-width: 0;
	cursor: pointer;
	color: #FFF;
	background: #2C76A6 url(../images/svg/excel_icon.svg) no-repeat left center;
	padding-left: 40px;
}

input.button:disabled, button:disabled {
	cursor: not-allowed;
	background-color: #f2f2f2 !important;
}

.row-button {
	margin-top: 1rem;
	float: left;
	clear: left;
	width: 100%;
	min-width: 200px;
}
button.save_button {
	padding: 0.4rem 0.6rem;
	cursor: pointer;
	border-width: 0;
	color: #FFF;
	background-color: #2C76A6;
}
button.cancel_button {
	padding: 0.4rem 0.6rem;
	cursor: pointer;
	border-width: 0;
	color:#444;
	background-color: #E6E6E6;
}
button.log_button {
	padding: 0.4rem 0.6rem;
	cursor: pointer;
	border-width: 0;
	background-color: transparent;
	background-image: url(../images/svg/info_icon.svg);
	background-size: 20px 20px;
	background-position: left center;
	background-repeat: no-repeat;
}
button.log_button:hover {
	color:#444;
	background-color: transparent;
}
button.delete_button {
	padding: 0.4rem 0.6rem;
	cursor: pointer;
	float: right;
	margin-left: 2rem;
	color:#444;
	background-color: transparent;
	border: 1px solid transparent;
	border-color: #ccc;
}
button.delete_button:disabled {
	cursor: not-allowed;
	background-color: #f2f2f2 !important;
}
button.delete_button:hover {
	background-color:#e23e4d;
	color: #FFF;
}
button:hover {
	background-color:#004085;
	color: #FFF;
}


.clear-input {
	font-family: Arial,Baskerville,monospace;
	font-size: 1.5rem;
	vertical-align: middle;
	padding: 0px 5px;
	margin-left: -5px;
	cursor: pointer;
}
.clear-input:hover {
	background-color: #E6E6E6 !important;
	color: #000 !important;
}
.searchbox input::-ms-clear {
	display: none;
}
.delete-line {
	font-family: Arial,Baskerville,monospace;
	font-size: 1.5rem;
	padding: 5px;
	cursor: pointer;
	width: 100%;
}
.delete-line:hover {
	background-color: #E6E6E6 !important;
	color: #000 !important;
}
button.add-line {
	padding: 0.3rem 0.5rem;
	border-width: 0;
	cursor: pointer;
	color: #FFF;
	background: #3da16a url(../images/svg/add_icon.svg) no-repeat left center;
	padding-left: 40px;
}
button.add-line:hover {
	background-color: #1b8048;
}


table .cell-has-note {
	width: 5px;
	height: 5px;
	background-color: red !important;
	/* td margin top 4, left 8*/
	top: -4px;
	right: -8px;
	position: absolute;
}
table .td-no-padding .cell-has-note {
	right: 0;
}
table.child {
	padding-left: 0;
}

#timeslots .warehouse_code {
	display: table-row;
	white-space: nowrap;
}
#timeslots .working_day {
	display: table-cell;
	padding-top: 0.6rem;
	padding-right: 2rem;
}



/* --------------------------  Промени по компонентите ----------------------------*/

/* За да се появява ui-dialog над magnificPopup */
.ui-dialog {
	z-index : 9020 !important;
}
.dlg-no-title .ui-dialog-titlebar {
	display: none;
}
/* Да разкарам картинката от background */
.ui-dialog-titlebar {
	background: #F0F0F0 none repeat scroll 0% 0%;
}

/* За да се появява ui-autocomplete над magnificPopup */
/*.ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content { */
.ui-autocomplete {
	 z-index: 10000 !important;
}
.ui-autocomplete {
	max-height: 300px;
	overflow-y: auto;
	/* prevent horizontal scrollbar */
	overflow-x: hidden;
	/* add padding to account for vertical scrollbar */
	/*padding-right: 20px;*/
}
/* За да няма margin-top: 5px */
.ui-menu .ui-menu-divider {
	margin: 0;
}

/* Промени за използване на Tabs */
.ui-tabs {
	padding: 0;
}
.ui-tabs .ui-tabs-nav {
	padding: 0px 0px 10px;
}
.ui-tabs .ui-state-active {
	background: #F9F9F9;
}

table.dataTable {
	width: auto;
	float: left;
}
table.dataTable thead th,
table.dataTable thead td {
	padding: 0.4rem 0.6rem;
	line-height: 1;
	background-color: #F0F0F0;
}
table.dataTable tbody th,
table.dataTable tbody td {
	padding: 0.4rem 0.6rem;
	/* Да няма wrap в редовете на таблицата */
	white-space: nowrap;
	vertical-align: middle;
}
table.dataTable tfoot th,
table.dataTable tfoot td {
	padding: 0.4rem 0.6rem;
	background-color: #F0F0F0;
	/* Да няма wrap в редовете на таблицата */
	white-space: nowrap;
}
table.dataTable thead th {
	font-weight: normal;
	/* За да се разпъва колоната, колкото е стойността, а не заглавието */
	width: 5px;
	white-space: normal;
	/* vertical-align: bottom; */
}
/* Chrome има проблем при Fixed Header. Направо не се показва th, когато няма title */
table.dataTable tbody th.dt-body-wrap,
table.dataTable tbody td.dt-body-wrap {
	white-space: normal !important;
}

table.dataTable thead th.dt-head-bold,
table.dataTable thead td.dt-head-bold,
table.dataTable tfoot th.dt-head-bold,
table.dataTable tfoot td.dt-head-bold {
  font-weight: bold;
}
table.dataTable tbody th.dt-body-gray,
table.dataTable tbody td.dt-body-gray {
	background-color: #F0F0F080;
}
/* Да се скрие Search, но все пак да прави филтриране. Ако се забрани със searching: false в опциите, то не прави търсене */
.dataTables_filter {
	display: none;
}
table.dataTable thead.columns_filtered {
	color: #0000c2;
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(102, 175, 233, 0.6);
}

/* Скриване и показване на колони, без да се изтриват от DOM */
.hide_column {
	display: none;
}

/* За слагане на datatables бутоните в #headerrow - Excel button */
div.dt-buttons {
	float: none;
	display: inline;
}
button.dt-button, div.dt-button, a.dt-button {
	display: inline;
	font-size: 100%;
	padding: 3px 7px;
	margin-left: 5px;
}

/* selected color #B0BED9 */
table.dataTable tbody tr.selected {
	background-color: #D7E4FF !important;
}

/* child rows */
table.dataTable tbody div.slider {
	display: none;
}
table.dataTable tbody td.no-padding {
	padding: 0;
}

/* Да са в ляво бутоните за страниците */
.dataTables_wrapper .dataTables_length {
	clear: left;
	padding-top: 0.3rem;
	margin-bottom: 0.6rem;
}
.dataTables_wrapper .dataTables_length select {
	height: 2.3rem;
}
.dataTables_wrapper .dataTables_paginate {
	float: left;
	margin-left: 1rem;
	padding-top: 0.3rem;
	margin-bottom: 0.6rem;
}

/* За да търси картинките в моята images папка */
table.dataTable thead .sorting {
  /* background-image: url("/images/sort_both.png"); */
	background-image: none;
}
table.dataTable thead .sorting_asc {
  /* background-image: url("/images/sort_asc.png"); */
	background-image: none;
}
table.dataTable thead .sorting_desc {
  /* background-image: url("/images/sort_desc.png"); */
	background-image: none;
}
table.dataTable thead .sorting_asc_disabled {
  /* background-image: url("/images/sort_asc_disabled.png"); */
	background-image: none;
}
table.dataTable thead .sorting_desc_disabled {
  /* background-image: url("/images/sort_desc_disabled.png"); */
	background-image: none;
}

@media screen and (max-width: 767px) {
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: left;
    text-align: center;
  }
  .dataTables_wrapper .dataTables_paginate {
    margin-top: 0;
  }
}
@media screen and (max-width: 640px) {
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: left;
    text-align: center;
  }
  .dataTables_wrapper .dataTables_filter {
    margin-top: 0;
  }
}

.mfp-bg {
	opacity: 0.3;
	filter: alpha(opacity=30);
}
.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
	width: auto;
	padding: 1rem;
	background: #F9F9F9 none repeat scroll 0% 0%;
	color: #444;
	border-radius: 4px;
}

.mfp-wrap {
	overflow-x: auto !important;
}

.white-popup-block .mfp-close {
	font-size: 2rem;
	width: 1.7rem;
	height: 1.7rem;
	line-height: 1.7rem;
	background-color: #000 !important;
	color: #FFF !important;
}
.mfp-figure .mfp-close {
	cursor: inherit;
	width: 1.7rem;
}


.chosen-container {
	font-size: inherit;
}
.chosen-container-single .chosen-single {
	border-radius: 0;
	line-height: unset;
  background: #fff;
	height: 100%;
	box-shadow: none;
	border: 1px solid #cfcfcf;
	padding: 0.1rem 0.2rem;
}
.chosen-container-single .chosen-single span {
	margin-right: 1.3rem;
}
.chosen-container-single .chosen-single div b,
.chosen-container-active.chosen-with-drop .chosen-single div b {
	background-position-y: 0.3rem;
}
.chosen-container-single .chosen-single span.mandatory-empty {
	color: silver;
}
.chosen-container.chosen-container-single .chosen-drop,
.chosen-container.chosen-container-multi .chosen-drop {
	width: auto;
	border-radius: 0px;
	white-space: normal;
	min-width: 100%;
}
.chosen-container-active.chosen-with-drop .chosen-single {
  background: #fff;
}
.chosen-container .chosen-results {
	max-height: 400px;
}
.chosen-container .chosen-results li {
	padding: 0.1rem 1.3rem 0.1rem 0.2rem;
	line-height: unset;
}
.chosen-container .chosen-results li.highlighted {
	background: #D7E4FF;
	color: #000;
}
.chosen-container.chosen-container-active .chosen-single,
.chosen-container.chosen-container-active .chosen-choices {
	box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(102, 175, 233, 0.6);
	border-color: #66AFE9;
}
/* ----------------- край на Промени по компонентите ----------------------------*/

/* dashboard */
.dashboard-panel {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	margin-right: 1rem;
	float: left;
}
.dashboard-header {
	font-size: 1.3rem;
	font-weight: bold;
}
table.dashboard-table.dataTable thead th {
	width: auto !important;
}
/* end dashboard */

/* Пояснителни текстове */
.messages-container {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	max-width: 800px;
	display: flex;
	flex-direction: column;
	float: left;
}
.message-panel {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
}
.message-panel p {
	margin-top: 0.5rem;
}
.message-panel span {
	line-height: 1.5;
}
/* end Пояснителни текстове */

/* es-tooltip */
table td {
	position: relative;
}
table tbody {
	position: relative;
}
.es-tooltip {
	max-width: 650px;
	min-width: 300px;
	border: 2px solid red;
	background: #fff;
	position: absolute;
	z-index: 9999;
	-webkit-box-shadow: 0.3rem 0.3rem 0.3rem #aaa;
	box-shadow: 0.3rem 0.3rem 0.3rem #aaa;
}
.es-tooltip .es-tooltip-caption {
	background-color: rgb(255, 197, 197);
	position: relative;
	padding: 0.1rem 0.5rem 0.1rem 0.3rem;
	font-weight: bold;
	text-align: center;
}
.es-tooltip .es-tooltip-button-close {
	width: 1.5rem;
	height: 1.5rem;
	line-height: 1.5rem;
	border: 1px solid #F0F0F0;
	background-color: #F0F0F0;
	color: #555;
	font-family: Arial,Baskerville,monospace;
	font-size: 1.8rem;
	padding: 0;
	cursor: pointer;
	position: absolute;
	top: 0px;
	right: 0px;
}
.es-tooltip .es-tooltip-button-close:hover {
	border: 1px solid #000;
	color: #000;
}
.es-tooltip-content {
	padding: 0.4rem 0.8rem;
	text-align: left;
}
/* end es-tooltip */

.login-wrapper {
	width: 27rem;
	max-width: 95%;
	margin: 0 auto;
	position: relative;
	top:20%;
}
.login-logo {
	height: auto;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
}
.login-logo img {
	height: 2rem;
}
.login-box {
	box-sizing: border-box;
	background: #fff;
	padding: 1rem 1rem;
	width: 100%;
	border: 1px solid #A6C9E2;
}
.login-box .error {
	margin-bottom: 1rem;
	padding: 10px;
	background: #ff00002e;
}
.login-box .success {
	margin-bottom: 1rem;
	padding: 10px;
	background: #0080002e;
}
.login-box form > div {
	display: flex;
	margin-bottom: 1rem;
}
.login-box form > div > label {
	float: left;
	width: 9rem;
	/* text-align: right; */
	padding-right: 0.5rem;
}
.login-box form > div > input {
	flex: 1;
}
.login-box button {
	width: 100%;
	margin-bottom: 1rem;
}

.ml-1 {
	margin-left: 1rem;
}
.ml-2 {
	margin-left: 2rem;
}
.ml-3 {
	margin-left: 3rem;
}
.ml-4 {
	margin-left: 4rem;
}