

/**
*	using itcss structure ( see oocss )
*	@see https://speakerdeck.com/dafed/managing-css-projects-with-itcss
*
*	TODO split admin/frontend styles
**/
/* ----------------------- settings ---------------------------- */

:root {
    --trVertSpace: 1.5rem;
}

/* ----------------------- components ---------------------------- */
.wpseo-title, #wpseo-title, .column-wpseo-title,
.wpseo-metadesc, #wpseo-metadesc, .column-wpseo-metadesc,
.wpseo-focuskw, #wpseo-focuskw, .column-wpseo-focuskw,
.wpseo-score, #wpseo-score, .column-wpseo-score{
	display:none;
}

.label--reg {
    display: inline-block;
    min-width: 6rem;
}

.time_log_notes{
	max-height:30px;
}
.log_time{
	-moz-border-radius:10px;
	-webkit-border-radius:10px;
	border-radius:10px;
	display:inline-block;
	cursor:pointer;
	color: #fff !important; /* move to trumps ?*/
	font-family:arial;
	font-size:14px;
	padding:5px 15px;
	text-decoration:none;
	text-shadow: 0 1px 2px #2f6627;
	margin-left:5px;
	position:relative;
	top:-5px;
}
.log_time:hover {
	background-color:#d99138;
}
.timestart{
	background-color:#44c767;
}
.timestop{
	background-color:#d93838;
}




/* tabs */

.tabs {
    clear: both;
    margin: 25px 0;
	position: relative;
}

.nav-tab-wrapper--inline {
    display: inline-block;
    border-bottom: none;
    vertical-align: bottom;
    position: relative;
    top: 6px;
}

.nav-tab {
    cursor: pointer;
}

.tab-content {
    border-top: 1px solid #ccc;
	display: none;
	padding: 20px;
    padding-right: 4rem;
}

.tab-content--active {
	display: block;
}

.tab-display {
	position: relative;
	display: inline-block;
	top: 1px;
	background: #eee;
	padding: 10px;
	border: 1px solid #ccc;
	min-width: 100px;
}

.tab-checkbox {
    background-color: #eee;
    border: solid 3px #ccc;
    border-radius: 50%;
	display: inline-block;
    height: 10px;
	margin-left: 5px;
	width: 10px;
}

/* /tabs */

/*                                                 *\
						#map
\* ----------------------------------------------- */

/* map pins */
svg {
	position: relative;
}

.map-pin {
	position: relative;
}

.leaflet-div-icon {
	background: none;
	border: none;
}

.map-pin-template {
	/*unfortunately display: none; hides the filter */
    height: 0;
	width: 0;
}

.map {
    height: 500px;
    position: static;
	width: 100%;
}

/* map filter bar */
.map-filters {
	display: table;
	box-sizing: border-box;
	width: 100%;
	position: relative;
	z-index: 50;
	padding: 8px;
	background-color: #ECECEC;
	box-shadow: 0 1px 5px rgba(0,0,0,0.25)

}

.checkbox-icon {
    background-color: #cccccc;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 18px 19px;
    border-radius: 50%;
    display: inline-block;
    height: 25px;
	margin-right: 0.5rem;
    position: relative;
    vertical-align: middle;
    width: 25px;
}
/* TODO remove unused filter classes  */

.filter-group__filters {
	/*width: 90%;*/

}

.map-filters__filter{
	/*vertical-align: middle;*/
}

.map-filters__filter-group + .map-filters__filter-group {
	margin-top: 16px;
}

.filter-group__filters, .filter-group__title {
	display: inline-block;
}

.filter-group__title {
	min-width: 62px;
	margin-bottom: 0;
	margin-top: 0;
	float: left;
	margin-top: 15px;
	margin-left: 15px;
}

.filter-menu {
    list-style-type: none;
    padding: 0;
}

.filter-menu--sub {
    background-color: #f9f9f9;
    display: none;
    position: absolute;
    left: 100%; /* right of parent, css is weird */
    top: 0;
    z-index:10000;
}

.filter-menu__item {
    min-width: 10rem;
    position: relative;
    padding: 0.5em;
}

.filter-menu__item--left-arrow::after {
    content: "\203A";
    display: inline-block;
    margin-left: 10px;
}

.filter-menu__item:hover {
    background-color: rgba(0,0,0,0.1);
}


.map-filter {
	display: inline-block;
}

.map-filter__control {
    margin: 0px;
    margin-right: 3px;
	vertical-align: middle;
}

.map-filter__icon-container {
	display: inline-block;
	display: inline-flex;
	justify-content: center;
	overflow: hidden;
	width: 20px;
	height: 20px;
	padding: 2px;
	border-radius: 50%;
	background-color: #fff;
}

.map-filter__icon {
	width: auto;
	height: 100%;
}

/* --------- #admin map styles --------------- */

.filter-group {
	/* remove admin styles */
	background: none;
	float: none;
	margin: 0;
	width: auto;
	padding: 0;
	border: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

.admin-map-image__thumb {
	display: block;
	height: 80px;
    width: auto;
}

.admin-map-image__link {
	display: inline-block;
}

.reconvert-actions {
	padding: 10px;
    clear: both;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
}




.reconvert-actions__admin-map-image {
	display: inline-block;
	vertical-align: middle;
}



.reconvert-actions__admin-map-image {
	margin-left: 30px;
}

.reconvert-actions__reconvert-button {
	text-transform: capitalize;
}

/* ------------------------------------------------------------ *\
	 			           	# utilities
\* ------------------------------------------------------------ */

/* veritcal spacing utilities*/
.spc-x3-5 + .spc-x3-5 {
  margin-top: 56px;
  margin-top: 3.5rem;
}

.spc-x2-5 + .spc-x2-5 {
  margin-top: 40px;
  margin-top: 2.5rem;
}

.hidden {
	display: none;
}

.white-space-pre {
    white-space: pre-wrap;
}

/* images */
.img-responsive {
	display: block;
    height: auto;
	width: 100%;
}

/* show scroll bars for items with height greater than view height */
.viewheight-overflow-auto {
    height: calc(100vh - 3rem);
    overflow-y: auto;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* flex fallback */

.flex > * {
    display: inline-block;
}


/* responsive 50% width*/
.w1-2 {
    min-width: 18rem;
    width: 50%;
}

/* ------------------------------------------------------------ *\
	 			           	# trumps
            	( more than one selector specific )
\* ------------------------------------------------------------ */

/* map pins */

svg .map-pin__point {
	fill: inherit;
}

svg .map-pin__head {
	stroke: inherit;
}

/* map editor */
.reconvert-actions .reconvert-actions__reconvert-button {
	display: inline-block;
	vertical-align: middle;
}

/* ------- */

.startdatediv label,
.enddatediv label{
	display:block;
}

.assignprods tr:last-child .delprodrow,
.these_requirements tr:last-child .delprodrow {
	display:none;
}


/* filters*/


.filter-menu__item:hover > .filter-menu--sub {
    display: block;
}



.filter-group__title + .filter-group__filters {
	margin-left: 10px;
}

.map-filter:not(:last-of-type) {
	margin-right: 16px;
}

/* tabs */



input[type=radio].hidden {
	display: none;
}

input[type=radio].hidden:checked + .tab-display {
	background: white;
	border-bottom: 1px solid white;
	z-index: 2;
}

input[type=radio].hidden:checked + .tab-display > .tab-checkbox {
	background-color: #0085ba;
}



/* /tabs */

/* map menu */
.ubermenu-submenu-type-flyout{
    z-index:10000;
}

.ubermenu-item-level-0 > .ubermenu-target{
	padding-left:35px !important;
	padding-right:35px !important;
}
/* /map menu */

.tablenav{
	height:auto !important;
}
.leaflet-control-attribution{
	display:none !important;
}
#site-navigation input{
	display:none;
}

/* wpba admin */

.wpba .wpba-form-wrap .wpba-attachment-title {
    margin-bottom: 0;
}

.wpba-form-wrap > * {
    display: inline-block;
    width: 100%;
}

.wpba-form-wrap > * + * {
    margin-top: 10px;
}
