
@import url( '_normalize.css' );
@import url( '_default.css' );

a
{
	color: currentColor;
	text-decoration: none;
}

.clearfix::after
{
	content: '';
	display: table;
	clear: both;
}

body
{
	font-family: Roboto, sans-serif;
	color: #0f3c4b;
	background-color: #e5edf1;
	padding: 5rem 1.25rem; /* 80 20 */
}


.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}



button {
	cursor: pointer;
	cursor: hand;
	outline: none;
}

.nav {
	width: 1000px;
	height: 42px;
	margin: auto;
/* 	padding: 10px 0 10px 0;
 margin-bottom: 5px;*/	
	border-bottom: 2px solid #c8dadf;
}

.nav button {
	height: 40px;
	float: left;
	/* margin-right: 5px; */
	padding: 4px 15px 4px 38px;
	border: 1px solid #e5edf1; 
	background-repeat: no-repeat;
	background-position: 10px center;
	background-size: 24px 24px;	
	opacity: 0.6;
}

.nav button:hover {
	border: 1px solid #c8dadf;
	/* border: 1px solid #f0f0f0;
	background-color: #f0f0f0; */
	opacity: 1;
}

.nav button#new, .nav button#delete, .nav button#logout {
	float: right;
	/* margin-left: 5px; */
}

.nav.dash button#dash,
.nav.waypoints button#waypoints,
.nav.paths button#paths,
.nav.solver button#solver,
.nav.builder button#builder,
.nav.logs button#logs,
.nav.settings button#settings
{
	cursor: not-allowed;
	pointer-events: none;
	background-color:#c8dadf;
	border: 1px solid #c8dadf;
	opacity: 1;
}

.nav button#dash {
	background-image: url(icons/map.svg);
}
.nav button#waypoints {
	background-image: url(icons/locations.svg);
}
.nav button#paths {
	background-image: url(icons/direction.svg);
}
.nav button#solver {
	background-image: url(icons/route.svg);
}
.nav button#builder {
	background-image: url(icons/worldwide.svg);
}
.nav button#logs {
	background-image: url(icons/note.svg);
}
.nav button#settings {
	background-image: url(icons/list.svg);
}
.nav button#logout {
	background-image: url(icons/unchecked.svg);
}
.nav button#close {
	background-image: url(icons/left-chevron.svg);
}
.nav button#delete {
	background-image: url(icons/close.svg);
}

.banner {
	/* background-color: #aaa; */
	color: #e5edf1;
	background-color: #0f3c4b;
	font-weight: bold;
	padding: 3px;
	width: 100%;
	min-height: 24px;
}

.buttons {
	margin-top: 20px;
	padding: 3px;
	width: 100%;
	min-height: 24px;
	background-color:#aaa;
}


.form {
	/* margin: auto; */
	text-align: center;
}
.form.wide {
	/* min-width:1000px; */
}

.container {
	display: inline-block;
    text-align: center;
    margin: 0 auto;
}

.container.dash,
.container.sets {
	width:1000px;
}



.form .inputs {
	display: inline-block;
	margin: auto;
	min-width: 400px;
	text-align: left;
}

.form span.label {
	display: inline-block;
	width: 160px;
	padding-right: 10px;
	text-align: right;
	/* color: white; */
	font-weight: bold;
	vertical-align: top;
    padding-top: 3px;
}
.form span.info {
	vertical-align: top;
    padding-top: 3px;
	height: 18px;
    display: inline-block;
}

.form input {
	margin: 1px;
	width: 270px;
	/* border: 1px solid #eee;*/
	padding: 2px 5px;
}
.form select {
	margin: 1px;
	/* border: 1px solid #eee; */
	padding: 2px 5px;
	min-width: 240px;
}

.form input[name=id], .form input[name=d],
.form input[name=dt] {
	width: 80px;
}

.form span.note {
	display: inline-block;
	padding-left: 8px;
    font-style: italic;
    color: #c8dadf;
}

.sets.form input {
	width: 400px;
}
.sets.form textarea {
	width: 400px;
	height: 40px;
	padding: 2px 5px;
	margin:1px;
}

/* .form .buttons {
	margin:auto;
	width: 400px;	
} */

.form .status {
	text-align: center;
	height: 21px;
	line-height: 21px;
	font-style: italic;
}
/* .form span.status  {
	height: 30px;
	line-height: 30px;
	font-style: italic;
}
 */
.logon {
	width: 400px;
	padding-top: 100px;
}
.logon form {
	/* border: 1px solid #0f3c4b; */
}
.logon form .inputs {
	margin: 10px 0;
}
.logon input {
	width: 220px;
}

.extra {
	width:1000px;
	min-height: 32px;
	margin: auto;
	padding: 8px 0 7px 0;
	background-color: #c8dadf;
}
form>.extra {
	width:100%;
	text-align:left;
}
.extra .left {
	float:left;
	width: 520px;
}
.extra .right {
	/* display: inline-block; */
	width: 100%;
	text-align:right;
}
/* 
.extra button#new,
.extra button#runsolver,
.extra button#runbuilder,
.extra button#commit,
.extra button#logon  */
.extra>.left>button,
.extra button#logon {
	min-height: 21px;
	font-size: 0.85em;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	border: 2px solid #0f3c4b;
	padding: 2px 20px;
	background-color:#0f3c4b;
	font-weight: 600;
	color:#e5edf1;
	margin-left: 6px;
}
.extra button#runsolver,
.extra button#runbuilder,
.extra button#commit {
	min-width: 140px;
}
.extra button.selbut {
	color: #0f3c4b;
	background-color:#e5edf1;
}

.search {
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	
	background-image: url(images/mag.svg);
	background-repeat: no-repeat;
	background-size: 16px 16px;
	background-position: 5px center;
	
	/* border: 1px solid #c8dadf; */
	background-color: #e5edf1;/*#c8dadf;*/
	
	padding: 2px 4px 2px 24px;
	
	margin-right: 6px;
	margin-left: 20px;
}

.search input {
	background-color: #e5edf1;
	padding: 1px 3px 1px 3px;
	outline: none;
}
.search input::-webkit-input-placeholder {  	/* Chrome/Opera/Safari */
  color: #aaa;
  font-style: italic;
}
.search input::-moz-placeholder { 			/* Firefox 19+ */
  color: #aaa;
  font-style: italic;
}
.search input:-ms-input-placeholder { 		/* IE 10+ */
  color: #aaa;
  font-style: italic;
}
.search input:-moz-placeholder { 			/* Firefox 18- */
  color: #aaa;
  font-style: italic;
}
.search button {
	width: 16px;
	height: 20px;
	background-image: url(images/cross.svg);
	background-repeat: no-repeat;
	background-size: 14px 14px;
	background-position: center center;
}

#keys>input.kk {
	width: 360px;
    vertical-align: top;
    padding-top: 3px;	
}
#keys>button.rg {
	width: 18px;
	height: 20px;
	margin:2px;
	background-image: url(images/regen.svg);
	background-repeat: no-repeat;
	background-size: 16px 16px;
	background-position: center center;
}

table#list {
	margin: auto;
	min-width: 1000px;
	/* border: 1px solid #ccc; */
	border-collapse: collapse;
}

table#list thead,
table#list tfoot {
	/* display: block; */
	/* background-color: #eee; */
	color: #e5edf1;
	background-color: #0f3c4b;

}
/* table#list tbody {
	display: block;
    height: 100px;       
    overflow-y: auto;    
    overflow-x: hidden;  
}
 */
table#list.waypoints>tbody>tr>td:nth-child(1),
table#list.waypoints>tbody>tr>td:nth-child(2),
table#list.waypoints>tbody>tr>td:nth-child(3),
table#list.paths>tbody>tr>td:nth-child(1),
table#list.paths>tbody>tr>td:nth-child(5),
table#list.paths>tbody>tr>td:nth-child(6),
table#list.solver>tbody>tr>td:nth-child(1),
table#list.solver>tbody>tr>td:nth-child(2),
table#list.solver>tbody>tr>td:nth-child(4)
{
	text-align:center;
}

table#list.waypoints tr>*:nth-child(1) {
	max-width: 30px;
}
table#list.waypoints tr>*:nth-child(2) {
	max-width: 30px;
}
table#list.waypoints tr>*:nth-child(3) {
	max-width: 30px;
}

table#list.logs tr>*:nth-child(1) {
	width: 150px;
}

/* make space for warnings if we need them */
table#list>tbody>tr>td:last-child {
	padding-right: 20px;
}
	
table#list>tbody>tr.warn>td:last-child {
	background-image: url(images/warn.svg);
	background-repeat: no-repeat;
	background-size: 16px 16px;
	background-position: right center;
}

table#list.builder tr td button {
	width:16px;
}

table#list.builder tr td button:hover {
	background-color:#aaa;
}

table#list tbody td {
	padding: 1px 6px;
	font-size: 0.92em;
	cursor: pointer;
}

table>thead>tr>th {
	/* font-size: 1.1em; */
	padding: 2px 14px 2px 6px;
	cursor: pointer;
	font-weight:600;
}
table>tfoot>tr>th {
	height:22px;
}
table>thead>tr>th.colsort>span {
	padding-right:15px;
}
table>thead>tr>th.colsort.sorted>span {
	background-image: url(images/down-arrow.svg);
	background-size: 14px 14px;
	background-repeat: no-repeat;
	background-position: right center;
}
table>thead>tr>th.colsort.sorted.asc>span {
	background-image: url(images/up-arrow.svg);
}
table>tbody>tr:nth-child(odd){
	/* background-color:#e0e0e0; */
	background-color:#e0e0e0;
}
table>tbody>tr.sel{
	background-color:#ffc0c0;
	/* background-color:#E2574C; */
}
table>tbody>tr:hover{
	background-color:#c8dadf;
}
table .pgc select {
	min-width: 50px;
	height: 18px;
	margin: 4px 3px 1px 3px;
	background-color:#e5edf1;
	color:#0f3c4b;
	vertical-align:top;
	font-size: 16px;
}
table .pgc select>option {
	text-align: center;
}

table .pgc>button {
	width: 30px;
	height: 18px;
	margin: 3px;
	background-size: 14px 14px;
	background-repeat: no-repeat;
	background-position: center center;
}

table .pgc>button.pg-first {
	background-image: url(images/left-end.svg);
}

table .pgc>button.pg-prev{
	background-image: url(images/left-arrow2.svg);
	background-size: 18px 18px;
}

table .pgc>button.pg-next{
	background-image: url(images/right-arrow2.svg);
	background-size: 18px 18px;
}

table .pgc>button.pg-last{
	background-image: url(images/right-end.svg);
}

table tbody tr.pad {
	background-color: transparent;
}
table#list.solution {
	text-align:left;
	min-width: 800px;
}
table#list.solution tr>*:nth-child(1),
table#list.solution tr>*:nth-child(4),
table#list.solution tr>*:nth-child(5) {
	text-align:center;
}

.bgimage {
	background-color: #c8dadf;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	margin: auto;
}
.bgimage>.image {
	position: absolute;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}
.bgimage>.sight {
	position: relative;
	
	top: 50%;
	left: 50%;
	
	width: 0px;
	height:	0px;
}

.bgimage>.sight>div {
	position: relative;
	
	top: -25px;
	left: -25px;
	
	background-image: url(icons/sight.svg);
	background-repeat: no-repeat;
	background-size: 50px 50px;
	background-position: center;
	width: 50px;
	height:	50px;
}
.path-img .box {
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

/* search no match row */
tr.nomatch>td {
/* 	padding: 20px 10px !important;
	height: 60px !important;
 */	text-align: center  !important;
	font-style: italic;
	background-color: transparent;
}


.img-tog {
	margin:0;
	padding: 0;
	width: 100%;
	height: 40px;
	white-space: nowrap;
	overflow: hidden;
}
.img-tog>div {
	display: inline-block;
	margin:0;
	padding: 0;
	width: 50%;
	height: 100%;
	text-align: center;
	line-height: 36px;
	cursor: pointer;
}
.path-img .fg-tog {
	background-color: #e5edf1;
}
.path-img.fg .fg-tog {
	background-color: #c8dadf;	
}
.path-img .bg-tog {
	background-color: #c8dadf;
}
.path-img.fg .bg-tog {
	background-color: #e5edf1;	
}



.map span#distance {
	font-style: italic;
}



.box
{
	/* width: 100%; */
	font-size: 1.25rem; /* 20 */
	
	position: relative;
	padding: 0;/*100px 20px;*/
	
	margin: auto;
}
.box.has-advanced-upload
{
	outline: 2px dashed #92b0b3;
	outline-offset: -10px;

	-webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
	transition: outline-offset .15s ease-in-out, background-color .15s linear;
}
.box.is-dragover>.mask,
.box.is-uploading>.mask,
.box.is-error>.mask,
.box.is-success>.mask
{
	outline-offset: -20px;
	outline-color: #c8dadf;
	background-color: #fff;
}
.box__dragndrop,
.box__icon
{
	display: none;
}
.box.has-advanced-upload .box__dragndrop
{
	display: inline;
}
.box.has-advanced-upload .box__icon
{
	width: 100%;
	height: 80px;
	fill: #92b0b3;
	display: block;
	margin-bottom: 40px;
}

.box>div {
	width:100%;
	height:100%;
}
.box.hover>div {
	background-color: rgba(200,218,223,0.7);
}
.box .middle {
	display:inline-block;
	min-width:450px;
	max-width:540px;
/* 	min-height:280px;
 */	position:absolute;
	top:50%;
	left:50%;
	transform: translate(-50%,-50%);
	
}
.box>div>* {
}
.box .box__input {
	display:none;
}

.box.hover .box__input {
	display:block;
}

.box.is-uploading .box__input,
.box.is-success .box__input,
.box.is-error .box__input
{
	visibility: hidden;
}

.box__uploading,
.box__success,
.box__error
{
	display: none;
}
.box.is-uploading .box__uploading,
.box.is-success .box__success,
.box.is-error .box__error
{
	display: block;
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;

	-webkit-transform: translateY( -50% );
	transform: translateY( -50% );
}
.box .box__error span {
	white-space: pre;
}
.box__uploading
{
	font-style: italic;
}
.box__success
{
	-webkit-animation: appear-from-inside .25s ease-in-out;
	animation: appear-from-inside .25s ease-in-out;
}
@-webkit-keyframes appear-from-inside
{
	from	{ -webkit-transform: translateY( -50% ) scale( 0 ); }
	75%		{ -webkit-transform: translateY( -50% ) scale( 1.1 ); }
	to		{ -webkit-transform: translateY( -50% ) scale( 1 ); }
}
@keyframes appear-from-inside
{
	from	{ transform: translateY( -50% ) scale( 0 ); }
	75%		{ transform: translateY( -50% ) scale( 1.1 ); }
	to		{ transform: translateY( -50% ) scale( 1 ); }
}

.box__restart
{
	font-weight: 700;
}
.box__restart:focus,
.box__restart:hover
{
	color: #39bfd3;
}

.js .box__file
{
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
.js .box__file + label
{
	max-width: 100%;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
	display: inline-block;
	overflow: hidden;
}
.js .box__file + label:hover strong,
.box__file:focus + label strong,
.box__file.has-focus + label strong
{
	color: #39bfd3;
}
.js .box__file:focus + label,
.js .box__file.has-focus + label
{
	outline: 1px dotted #000;
	outline: -webkit-focus-ring-color auto 5px;
}
.js .box__file + label *
{
	/* pointer-events: none; */ /* in case of FastClick lib use */
}

.no-js .box__file + label
{
	display: none;
}

.no-js .box__button
{
	display: block;
}
.box__button
{
	font-weight: 700;
	color: #e5edf1;
	background-color: #39bfd3;
	display: none;
	padding: 8px 16px;
	margin: 40px auto 0;
}
.box__button:hover,
.box__button:focus
{
	background-color: #0f3c4b;
}
