/*
main color : #79d0f0
hover : #4abce6
hlavicka: #3e3e3e

*/
html {}
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
	color: black;
	font-family: Calibri,Candara,Segoe,"Segoe UI",Optima,Arial,sans-serif
}

div, main {position: relative}

ul, nav {list-style-type: none}

textarea:focus, input:focus{
	outline: none;
}

textarea {
  width: 300px;
  max-width: 300px;
  min-height: 100px;
}

input.hidden {
	display: none;
}

.avcenter {
	position:absolute;
	top: 50%;
	transform: translateY(-50%)}
.vcenter {display: table;}
.vcenter .outer {display: table-cell; vertical-align: middle}

.fl-right {float: right}

.form-styled input:not([type='checkbox']),
input:not([type='checkbox']).styled {
	-webkit-appearance:none;
	height: 30px;
	border-radius: 5px;
	border: 1px solid #d5d7d8;
	font-size: 16px;
	padding: 0 10px;
}

.form-styled .field {
	line-height: 30px;
	overflow: hidden;
}

.form-styled .field .parCtrl {
  cursor: pointer;
}

.form-styled .field .parCtrl:hover {
	color: #79d0f0;
}

.form-styled .field .value {display: none;}

.form-styled .field .value.show {display: block}

.form-styled .field .label {
	float: left;
	width: 150px;
}

.smart-list {
	background: white;
	border-radius: 5px;
	border: 1px solid #e2e3ea;
}

.smart-list .tbl-row {
	height: 30px;
  line-height: 30px;
  overflow: hidden;
}

.smart-list .tbl-row.show:nth-child(even) {
	background: #e9f0f2;
}

.smart-list .cell-holder {
  float: left;
  overflow: hidden;
}

.smart-list .tbl-row.header .cell-holder {
	font-weight: bold;
	text-align: center;
	background: #3e3e3e;
	color: #f4f8f9;
}

.smart-list .tbl-row.item .cell-holder {
	cursor: pointer;
	text-indent: 15px;
}

.smart-list .tbl-row.item.selected .cell-holder {background: #76c6ff;}

.smart-list .tbl-row .cell {float: left; height: 30px}

.smart-list .tbl-row .cell:nth-child(n+1) {border-left: 1px solid #c9d3d6;}

.smart-list .tbl-row .cell.ctrl {text-align: center;}
.smart-list .tbl-row .cell.ctrl i {cursor: pointer;}
.smart-list .tbl-row .cell.ctrl i:hover {color: #4abce6}
.smart-list .tbl-row .cell.ctrl i:not(:last-child) {margin-right: 10px;}

.icon i {
	font-size: 30px;
  cursor: pointer;
}

.icon i:hover {
	color: aqua;
}

.icon.left {float: left}
.icon.right {float: right}

/*#order-storno {
  display: inline-block;
  padding: 0 5px;
  background: #fc6363;
  border: 1px solid #eb3b3b;
  border-radius: 5px;
  line-height: 30px;
  font-size: 24px;
  cursor: pointer;
}
*/


.o-flow {overflow: hidden}

.o-flow > div {float: left; width: 50%}
.o-flow .left {}
.field-detail {
	display: none;
	padding: 5px;
	background: #bae2ff;
	border-radius: 3px;
}


.dropdown {
  font-size: 18px;
  font-weight: bold;
}

.dropdown:hover .hidden {
	display: block!important;
}

.dropdown .hidden {
  display: none;
  position: absolute;
  left: 0;
	min-width: 100%;
}

.dropdown .item {
  background: #79d0f0;
  padding: 0 5px;
  cursor: pointer;
  white-space: nowrap;
}

.dropdown .item:hover {
 background: #4abce6;
}


/*-------------------------------------------*/
/*										LOGIN									 */
/*-------------------------------------------*/

#login-page {
	position: relative;
	width: 100%;
	height: 100vh;
	text-align: center;
	z-index: 3;
}

#login-form {
	display: inline-block;
	padding: 20px;
	color: white;
}

#login-form .label {
	float: left;
	width: 150px;
	line-height: 30px;
	font-size: 25px;
	text-align: left;
}

#login-logo {
	margin-bottom: 20px;
	text-align: center;
	font-size: 80px;
	font-weight: bold;
	color: #19acfa;
	-webkit-text-stroke: 1px #0d4dfd;
}

#login-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;
}

#login-bg img {
	display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

/*-----------------------------------------------*/
/*											PAGE										 */
/*-----------------------------------------------*/

#page-wrapper {
	width: 100%;
	min-height:100vh;
	background: #f3f3f7;
}

#main-panel {
	position: fixed;
	top: 0;
	width: 100%;
	height: 50px;
	background: #363839;
	z-index: 999;
}

#main-panel .site-name {
	float: left;
	font-size: 30px;
	line-height: 50px;
	padding-left: 15px;
	color: white;
}

#main-panel .logout {
	color: white;
	margin-right: 10px;
}

#main-panel .logout i {
  line-height: 50px;
}

#main-panel #user-name {
	float: right;
	margin-right: 20px;
	margin-top: 6px;
}

#main-panel #back-to-order {
	display: none;
	float: right;
	margin-top: 10px;
	margin-right: 20px;
	padding: 0 10px;
	height: 30px;
	font-size: 21px;
	line-height: 30px;
	background: #35de6f;
	border-radius: 5px;
	cursor: pointer;
}

#main-nav {
	margin-left: 30px;
	display: inline-block;
	overflow: hidden;
}

#main-nav li {
	float: left;
	line-height: 50px;
	position: relative;
	padding: 0 10px;
	font-size: 18px;
	color: #ebeef2;
	cursor: pointer;
}

#main-nav li:nth-child(n+2) {
	border-left: 1px solid white;
}

#main-nav li:hover {
	background: #6cbffc;
	color: black;
}

#main-nav li.selected {
	background: #0080ff;
	color: #deebf7;
}

main {
	padding-top: 50px;
}

main .main-window {
	padding: 10px;
	display: none;
	min-height: calc(100vh - 50px);
}

/*-------------------------------------------*/
/*									ORDERS									 */
/*-------------------------------------------*/

#orders {display: block;}

.main-window .top-bar {
	height: 50px;
	line-height: 50px;
	padding: 0 10px;
	margin-bottom: 10px;
	/*border-radius: 5px;
	background: white;
	border: 1px solid #e2e3ea; */
	color: #29282a;
}

.main-window .top-bar .main-title {
	float: left;
	font-weight: bold;
	font-size: 24px;
}

.main-window .top-bar .icon i {line-height: 50px;}

#orders-dropdown {
	float: left;
	display: inline-block;
	z-index: 3;
}

#dropdown-order {display: none}

#orders-year-dropdown {
	float: left;
	margin-left: 15px;
	display: inline-block;
	z-index: 3;
}

#orders .top-bar .icon {
	float: right;
	margin-left: 10px;
}

#ordlist-search {
	display: inline-block;
	float: right;
  line-height: 50px;
}

#ordlist-search input {}

#order-search-cancel {display: none}

#searchdd {
  display: inline-block;
  line-height: 30px;
  text-align: left;
  z-index: 3;
}

#searchdd .hidden {
  top: 30px;
}

#searchdd-ordnum {display: none}

#order-list .cell-holder {width: calc(100% - 50px)}
#order-list .cell.ctrl {width: 50px}

#order-list .cell.number {width: 15%}
#order-list .cell.status {width: 20%}
#order-list .cell.date {width: 15%}
#order-list .cell.trip {width: 20%}
#order-list .cell.client {width: 30%}

/*-------------------------------------------*/
/*							ORDER DETAIL								 */
/*-------------------------------------------*/

#order-window {}

#order-window .top-bar .main-title {float: left; margin-left: 10px;}
#order-window .top-bar .save {margin-left: 15px;}

#order-window .top-bar .nav-item {
	float: left;
	margin-top: 5px;
	margin-left: 10px;
	height: 40px;
	line-height: 40px;
	font-size: 21px;
	background: #79d0f0;
	border-radius: 2px;
	padding: 0 10px;
	cursor: pointer;
}

#order-window .top-bar .nav-item:hover {
	background: #4abce6;
}

#order-window .top-bar .nav-item.selected {
	background: #2dacdb;
}

#order-form {display: none;
	padding: 10px;
	background: white;
	border: 1px solid grey;
	border-radius: 10px;
}

#order-form .order-part {
	overflow: hidden;
}

#order-form .order-part > .float {float: left; width: 500px;}

#order-form .head {
	display: none;
	padding: 10px;
	margin-bottom: 20px;
	border-radius: 5px;
	border: 1px solid #40aefd;
	background: #72c2fc;
}

#order-form .float.right {
  width: 400px;
  float: right;
}

#order-form .select2 {
  width: 250px;
}

#order-form .value {
	margin-right: 10px;
}

#order-pdf {margin-left: 10px;}
#order-storno {margin-left: 10px;}

#order-storno:hover {
  color: #f74a4a;
}

/*-------------------------------------------*/
/*								ORDER ITEMS								 */
/*-------------------------------------------*/

#orditems-window {margin-top: 15px; display: none}

#orditem-list .cell-holder {width: calc(100% - 80px)}

#orditem-list .cell.zasielka {width: 20%}
#orditem-list .cell.pocet {width: 5%}
#orditem-list .cell.druh {width: 10%}
#orditem-list .cell.hmotnost {width: 5%}
#orditem-list .cell.adid_nakladka {width: 20%}
#orditem-list .cell.cas_nakladky {width: 10%}
#orditem-list .cell.adid_vykladka {width: 20%}
#orditem-list .cell.cas_vykladky {width: 10%}

#orditem-list .cell.ctrl {width: 80px}

#orditem-list .tbl-row:hover .controls {display: block;}

#orditem-list .tbl-row .controls {display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.5);
}

#orditem-list .tbl-row .controls > div {
	float: left;
	width: 33.333%;
	cursor: pointer;
	color: white;
	text-align: center;
}

#orditem-list .tbl-row .controls > div:hover {
	background: #79d0f0;
	color: #3c3c3c;
}

#orditem-form {
	margin-top: 20px;
	padding: 10px;
	background: white;
	border: 1px solid grey;
	border-radius: 10px;
}

#orditem-form .select2 {width: 250px;}

#orditem-nakladka, #orditem-vykladka {display: none}

#orditem-form .icon {text-align: center;}

#orditems-window .left {
	float: left;
	width: 50%;
}

#orditems-window .right {
	float: right;
}

/*------------------ POZNAMKY	-----------------------*/

#poznamky-form {
	margin-top: 20px;
	padding: 10px;
	background: white;
	border: 1px solid grey;
	border-radius: 10px;
}

#poznamky-form .o-flow > div {width: 33.3333%; padding: 10px;}

#poznamky-form .o-flow > div h2 {text-align: center}

#poznamky-form .poznamka {
	padding: 5px 10px;
}

#poznamky-form .poznamka textarea {
  width: 100%;
  min-height: 100px;
}

#poznamky-form .poznamka.adresa textarea {
  min-height: 50px;
}


/*------------------ FAKTURA -----------------------*/

#faktura-form {}

#faktura-form .select2 {width: 250px;}

#faktpol-window {
	margin-top: 20px;
}

#faktpol-list .cell-holder {width: calc(100% - 50px)}

#faktpol-list .tbl-row .text_pol {width: 40%}
#faktpol-list .tbl-row .ciastka_bez_DPH {width: 20%}
#faktpol-list .tbl-row .sadzba_DPH {width: 20%}
#faktpol-list .tbl-row .ciastka_s_DPH {width: 20%}
#faktpol-list .cell.ctrl {width: 50px;}

#faktpol-form {
  display: none;
}

#faktpol-form .cell:not(.ctrl) {
  padding: 0 15px;
}

#faktpol-form .cell input {
	width: 100%;
	height: 20px;
}

#invoice-pdf-container {line-height: auto;}

#invoice-pdf-container .language {
	display: none;
	padding: 0 5px;
	top: -5px;
	line-height: 30px;
	background: #95ceff;
	border-radius: 5px;
	font-size: 20px;
	cursor: pointer;
}

#invoice-pdf-container .language:hover {
	background: #3da4fc;
}

#invoice-routes {
  display: inline-block;
  margin-top: 30px;
  width: 400px;
}

#invoice-routes .title {
  background: #3e3e3e;
  text-indent: 10px;
  color: white;
  font-weight: bold;
  line-height: 30px;
}

#invoice-routes input {
  width: 100%;
}

/*------------------- CISELNIKY	-----------------------*/

#adresar {display: none;
	padding: 0;
	overflow: hidden;
}

#ciselniky-sidebar {
	position: fixed;
	top: 50px;
	left: 0;
	width: 250px;
	height: calc(100vh - 50px);
	background: #6e7177;
	overflow: hidden;
}

#ciselniky-sidebar .title {
	height: 30px;
	font-size: 25px;
}

#ciselniky-sidebar .title input {float: left}

#ciselniky-sidebar .icon {float: right; line-height: 30px;}

#ciselniky-sidebar ul {
	width: 100%;
  height: calc(100% - 30px);
  overflow-y: scroll;
  padding-right: 17px;
	box-sizing: content-box;
}

#ciselniky-sidebar ul li {
	text-indent: 5px;
	position: relative;
	padding: 5px 0;
	color: white;
	text-decoration: none;
	font-size: 16px;
	cursor: pointer;
}

#ciselniky-sidebar ul li+li {
	border-top: 1px #222222 solid;
}

#ciselniky-sidebar ul li:hover {
	background: #70c7e6;
	color: black;
}

#ciselniky-sidebar ul li.selected {
	background: #5590c3;
	color: black;
}

#partner-window {
	position: relative;
	float: left;
	left: 260px;
	width: calc(100% - 270px);
}

#partner-window .top-bar {margin: 0;}

#partner-window .options {
	overflow: hidden;
}

#partner-window .options .button {
	position: relative;
	float: left;
	margin-right: 15px;
	padding: 0 10px;
	background: #a6ddfa;
	line-height: 40px;
	font-size: 16px;
	cursor: pointer;
}

#partner-window .options .button:hover {
	background: #6cbffc;
	color: black;
}

#partner-window .options .button.selected {
	background: #0080ff;
	color: #deebf7;
}

#partner-form {
	padding: 10px;
	background: white;
	border: 1px solid grey;
	border-radius: 10px;
}

#partner-form .o-flow {
	margin-top: 10px;
}


/*-------------------- ADRESY	-----------------------*/

#adress-list {
	margin-top: 20px;
}

#adress-list .cell-holder {width: calc(100% - 50px)}
#adress-list .cell.ctrl {width: 50px}

#adress-list .cell.ulica {width: 40%}
#adress-list .cell.mesto {width: 20%}
#adress-list .cell.psc {width: 10%}
#adress-list .cell.stat {width: 20%}


#adress-form {
	margin-top: 20px;
	padding: 10px;
	background: white;
	border: 1px solid grey;
	border-radius: 10px;
}

#adress-form .options {margin-top: 10px;}

#adress-form .icon {
  text-align: center;
}


/*------------------ SETTINGS	-----------------------*/

#settings {}
#settings-sidebar {
	float: left;
	width: 150px;
}
#settings-list {
	background: white;
	overflow: hidden;
	border-radius: 7px;
}
#settings-list li {
	padding: 5px 8px;
	cursor: pointer;
}
#settings-list li+li {
	border-top: 1px #ededf1 solid;
}
#settings-list li:hover {
	background: #a1d7f0;
}
#settings-list li.active {background: #64bce4}

#settings-window {
	float: right;
	width: calc(100% - 200px);
}

#settings-window form {display: none}



/*------------------ LAYOUT	-----------------------*/

#layout {display: none;
	position: fixed;
	right: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
  background: rgba(0,0,0,.6);
  z-index : 3;
	text-align: center;
}

.layout-window {
	display: none;
	padding: 15px;
	background: #f9fbfd;
	border-radius: 5px;
}

#layout-loading {
	background: none;
	color: white;
}

#layout-ordtype {

}

#layout-popup {
	width:250px;
}

#layout-popup .message {
	font-size: 20px;
	margin-bottom: 15px;
}

#layout-popup .options {
	display: inline-block;
	overflow: hidden;
}

#layout-popup .option {
	float: left;
	padding: 10px;
	border-radius: 8px;
	font-size: 18px;
	cursor: pointer;
	-webkit-box-shadow:inset -1px -2px 8px 0px #363636;
}

#layout-popup .option:first-child {margin-right: 30px;}
#layout-popup .option.green {background: #16e067}
#layout-popup .option.red {background: #f44c22}

#layout-search {}

#layout-search .tbl-row {
  margin-bottom: 15px;
}

#layout-search .label {float: left;
  margin-right: 15px;
}

#layout-search .button {display: inline-block;
  margin-right: 15px;
	padding: 0 10px;
	background: #a6ddfa;
	line-height: 40px;
	font-size: 16px;
	cursor: pointer;
}

#layout-search .button:hover {
	background: #6cbffc;
	color: black;
}

#layout-search .button.selected {
	background: #0080ff;
	color: #deebf7;
}

/*------------------ CONSOLER	-----------------------*/

#consoler {
  display: none;
  position: absolute;
  top: calc(50% - 200px);
  left: calc(50% - 300px);
  padding: 10px;
  width: 600px;
  height: 400px;
  background: #575757;
  z-index: 999;
}

#consoler .item {
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 5px;
  background: #2de7ff;
  cursor: pointer;
}

#consoler .item:hover {
  background: #17b5c9;
}
