body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

html {
    overflow: hidden;
}

body {
    overflow: auto;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
}

header {
    height: 54px;
    background: #eee;
/*     color: white; */
    position: absolute;
    width: 100%;
    z-index: 11;
    text-align: center;
	transition: background 0.3s ease, color 0.3s ease;
}

header .header-content {
	padding: 15px 15px;
	height: 24px;
	position: relative;
	text-align: center;
}

#page {
	position: relative;
	overflow: hidden;
	height: 100%;
}

body.cvtx-live header {
	background: #e2001a;
	color: white;
}

body.cvtx-live header a {
	color: white;
}

header #logo {
	position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -25px;
    height: 48px;
    margin-top: 2px;
}

header #logo img {
    height: 100%;
    width: auto;
}

header h1 {
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    padding: 0;
    margin: 0;
}

header a {
/*     color: white; */
}

header #menu_open {
	float: left;
}

header #messages_open {
	float: right;
}

header #messages_open div.message-icon {
    width: 14px;
    height: 14px;
    float: right;
    margin-left: 5px;
}

.page_content {
    margin-left: 0px;
    width: 100%;
    background: white;
    position: absolute;
    z-index: 10;
    top: 54px;
}

#antragneu {
    background: red;
    z-index: 1;
}

#left {
	width: 58%;
    float: left;
}

#right {
	float: right;
}

#left, #right {
    height: 100%;
    overflow-y: hidden;
}

#right {
	width: 42%;
}

div.antrag.has-ak-recommendation div.antrag-left {
    flex: 1;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

div.antrag.has-ak-recommendation div.antrag-right {
    flex: 1;
}

div.header-content-wrapper {
    display: flex;
    flex-wrap: wrap;
}

div.header-content-wrapper > div {
    flex: 1;
}

div.header-content-wrapper > div:first-child {
    padding-right: 16px;
}

@media screen and (max-width: 750px) {
	#trenner {
		display: none !important;
	}
	#left, #right {
		width: 100% !important;
		float: none !important;
	}
	#bottom-navi {
		position: absolute;
		height: 100px;
		width: 100%;
		background: #eee;
		bottom: 0;
		z-index: 100;
	}
	#navigation {
		bottom: 5px !important;
		left: 50% !important;
		background: none !important;
		cursor: default !important;
		height: auto !important;
	}
	#mobile-navi div {
		width: 100%;
		padding: 10px 15px;
		background: #e2001a;
	}
	#mobile-navi div a {
		color: white;
	}
	#navigation .title {
		display: none;
	}
	#show-antrag {
		cursor: pointer;
	}
	header #logo {
		margin-left: -30px;
	}
	.header-content .live-flag {
		margin-left: 30px !important;
	}
	div.antrag-info {
		padding-left: 0px !important;
	}

	div.antrag-info span.antrag-info-label {
		display: block !important;
		width: auto !important;
		font-weight: bold;
		margin-bottom: 6px;
		margin-left: 0px !important;
	}
}

#left div.antrag {
	overflow-y: scroll;
	height: 100%;
}

#left div.antrag.has-ak-recommendation {
    display: flex;
    flex-wrap: wrap;
}

#right .right-content {
	padding: 15px;
	height: 100%;
	overflow-y: scroll;
	border-left: 1px solid #eee;
	background: rgba(227, 0, 27, 0.02);
}

#right .right-content > h2 {
    margin-bottom: 10px;
}

#right > ul > li {
    margin: 5px 0;
}

#right ul li a.choose-aeantrag {
	display: inline-block;
    width: 100%;
}

#right ul li a.choose-aeantrag span.steller {
	color: black;
}

#right .ae-content {
	display: none;
}

#right li.active .ae-content {
	display: block;
}

#right ul#aeantraege {
	padding: 0;
	margin: 0;
    margin-bottom: 150px;
	background: white;
}

#left div.antrag div.line:last-child {
	margin-bottom: 30px;
}

#right ul#aeantraege > li {
	list-style: none;
	padding: 15px 15px;
	border-top: 1px solid #eee;
	margin: 0;
	background: rgba(227, 0, 27, 0.02);
	transition: background 0.3s ease;
}

#meta {
    position: absolute;
    top: 54px;
    left: -350px;
    width: 310px;
    height: 100%;
    background: #e2001a;
    border: none;
    z-index: 102;
    padding: 5px 20px;
    overflow: scroll;
}

#messages {
    position: absolute;
    top: 54px;
    right: -350px;
    width: 307px;
    height: 100%;
    background: white;
    border: none;
    z-index: 102;
    border-left: 4px solid #eee;
    padding: 5px 20px;
    overflow: scroll;
}

#messages img {
	max-width: 100%;
	height: auto;
}

#messages h3 {
    border-bottom: 1px solid #e2001a;
    padding-bottom: 6px;
    margin-bottom: 20px;
}

#meta ul#navi {
	padding: 0px;
	list-style: none;
}

#meta ul#navi > li > a.toggle-top svg {
    margin-right: 0.5em;
}

#meta ul#navi > li {
	margin: 8px 0px;
}

#meta ul#navi > li > a.toggle-top i {
	margin-left: -1.3em;
	width: 1.3em;
}

#meta ul#navi > li.live > a.toggle-top i {
	color: rgb(178, 226, 81);
	animation: pulse 2s infinite;
}

#meta ul#navi > li > a.toggle-top {
    font-size: 16px;
}

#meta ul#navi ul li a {
    color: white;
}

#meta a {
	color: white;
}

#meta ul#navi > li > ul {
	display: none;
	list-style-type: none;
    color: white;
    margin: 10px 0px;
    padding: 0px 0px 0px 25px;
}

#meta ul#navi > li > ul > li strong.short {
    line-height: 22px;
}

#meta ul#navi > li > ul > li {
	margin: 4px 0px 6px;
}

#meta #navi ul li strong.short span {
	padding: 0px 4px;
}

#meta #navi ul li.active strong.short span {
	background: white;
	color: #e2001a;
	border-radius: 3px;
}

#meta #navi ul li.live strong.short span {
	background: rgb(178, 226, 81);
	color: #e2001a;
	border-radius: 3px;
	animation: pulseBackground 2s infinite;
}

div.line {
    padding: 0 1em 0 3em;
    line-height: 22px;
    position: relative;
}

div.line p, div.line ul, div.line ol {
	margin: 0;
}

div.line ul, div.line ol {
	padding: 0px 20px;
}

#left div.cvtx_field_cvtx_antrag_grund-wrapper {
    padding: 1em 3em 3em;
}

#left div.cvtx_field_cvtx_antrag_grund-wrapper span.cvtx_antrag_grund_label {
    display: block;
    margin-bottom: 1em;
}

span.number {
    display: inline-block;
    padding: 0 5px;
    font-size: .9em;
}

span.number-container {
    float: left;
    width: 3em;
    text-align: center;
    position: absolute;
    left: 0;
	-moz-user-select: none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	-ms-user-select : none
}

#navigation {
    position: absolute;
    bottom: 50px;
    height: 110px;
    left: 58%;
    width: 270px;
    margin-left: -125px;
    text-align: center;
    font-size: 24px;
    padding: 5px 0px;
    border-radius: 3px;
/*     box-shadow: 2px 2px 10px rgba(0,0,0,.5); */
    z-index: 100;
    color: #e2001a;
    background: #eee;
    cursor: move;
    display: none;
    line-height: 1.5;
}

#navigation a {
	cursor: pointer;
}

#navigation ul {
    padding: 0;
    margin: 5px 0px 0px;
}

#navigation .title {
	font-size: 16px;
}

#navigation ul li a {
    color: #e2001a;
}

a.inactive, a.live-inactive {
	color: #999 !important;
	cursor: default !important;
	transition: color 0.1s ease;
}

#navi a.inactive {
	color: #c5c5c5 !important;
}

#navigation ul li {
    display: inline-block;
    list-style: none;
    margin: 5px 15px;
}

#right li.live {
	border-right: 5px solid green;
	background: rgba(0, 255, 0, .3);
}

#right div.aeantrags {
	height: 100%;
}

#right ul#aeantraege > li.active {
    background: white;
}

#left .line.active span.number {
    background: #e2001a;
    color: white;
    font-weight: bold;
}

a {
    color: #e2001a;
    text-decoration: none;
	transition: color 0.2s ease-in-out;
}

ul {
	padding: 0px 0px 0px 20px;
	margin: 0;
}

li {
	padding: 0;
	margin: 0;
}

.antrag-header {
    padding-right: 42px;
	padding-left: 42px;
	margin-bottom: 20px;
	position: relative;
    width: 100%;
}

.antrag-header .content {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding-bottom: 6px;
}

.antrag-header h1 {
	margin: 15px 0px;
}

div.antrag-info, div.antrag-status {
	margin-bottom: 10px;
	line-height: 22px;
    display: flex;
}

div.antrag-info span.antrag-info-label {
	display: block;
	font-weight: bold;
    min-width: 165px;
    margin-right: 10px;
}

div.antrag-info span.antrag-info-content {
    display: block;
}

#right ul#aeantraege > li[data-status="adopted"], 
#right ul#aeantraege > li[data-status="adopted_changes"] {
	background: rgba(231, 240, 195, 1.0);
}

#right ul#aeantraege > li[data-status="rejected"] {
	background: rgba(250, 226, 226, 1.0)
}

#right ul#aeantraege > li[data-status="transferred"] {
	background: rgba(255, 213, 0, 0.05);
}

#right ul#aeantraege > li[data-status="unclear"] {
	background: rgba(0, 67, 158, 0.05);
}

#right ul#aeantraege > li span.antrag-info-label {
    float: right;
}

div#trenner {
	height: 100%;
    width: 1px;
    background: red;
    position: absolute;
    top: 0;
    left: 58%;
    border-left: 5px solid transparent;
    margin-left: -5px;
    border-right: 5px solid transparent;
	background-clip: padding-box; /* Firefox 4+, Opera, for IE9+, Chrome */
    cursor: col-resize;
}

.unselectable {
	-moz-user-select: none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	user-select: none;
	-ms-user-select : none
}

.header-content .title-element {
    margin-left: 15px;
    margin-right: 15px;
    color: #e2001a;
}

.header-content .live-flag {
	position: absolute;
    left: 50%;
    margin-left: 50px;
    font-size: 24px;
    display: inline-block;
    margin-top: -5px;
    color: #e2001a;
}

.header-content .live-flag span.warning {
	margin-left: 15px;
}

body.cvtx-live-notAvailable .header-content .live-flag . live-status{
	color: #c5c5c5;
}

body:not(.cvtx-live-notAvailable) .header-content .live-flag .live-status {
	color: rgb(178, 226, 81);
	animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    color: rgb(178, 226, 81);
  }
  50% {
  	color: rgb(137, 183, 47);
  }
  100% {
    color: rgb(178, 226, 81);
  }
}

@keyframes pulseBackground {
  0% {
    background: rgb(178, 226, 81);
  }
  50% {
  	background: rgb(137, 183, 47);
  }
  100% {
    background: rgb(178, 226, 81);
  }
}

@keyframes pulseBorder {
  0% {
    border-color: rgb(178, 226, 81);
  }
  50% {
  	border-color: rgb(137, 183, 47);
  }
  100% {
    border-color: rgb(178, 226, 81);
  }
}

body.cvtx-live .header-content .title-element {
	color: white;
}

.header-content .title-element span {
	font-weight: bold;
	color: black;
}

.cvtx-shake {
    -webkit-animation: jiggle 0.6s infinite;
    -moz-animation-duration: 0.4s;
    -moz-animation-name: jiggle;
    -moz-animation-iteration-count: infinite;
    -webkit-transform-origin: 7px 7px;
    -moz-transform-origin: 7px 7px;
}

@-moz-keyframes jiggle {
    0% {
        -moz-transform: rotate(15deg);
    }
    50% {
	    -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(15deg);
    }
}

@-webkit-keyframes jiggle {
    0% {
        -webkit-transform: rotate(15deg);
    }
    50% {
	    -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(15deg);
    }
}

.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized .tooltipster-box {
    border-radius:5px;
    border-bottom:3px solid #e2001a;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    background:white;
    box-shadow: 1px 1px 10px 2px rgba(0,0,0,0.1);
}
.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized.tooltipster-top .tooltipster-box{
    margin-bottom:7px
}
.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized .tooltipster-content{
    color:#595959;
    padding:8px 16px
}
.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized .tooltipster-arrow-background{
    display:none
}
.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized.tooltipster-bottom .tooltipster-arrow-border{
    border-bottom-color: white;
}
.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized.tooltipster-left .tooltipster-arrow-border{
    border-left-color: white;
}
.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized.tooltipster-right .tooltipster-arrow-border{
    border-right-color: white;
}
.tooltipster-sidetip.tooltipster-punk.tooltipster-punk-customized.tooltipster-top .tooltipster-arrow-border{
    border-top-color: #e2001a
}

span[data-status="undefined"] {
    color: #999;
}

span[data-status="adopted"], span[data-status="adopted_changes"] {
    color: #009a28;
}

span[data-status="rejected"] {
    color: #a50000;
}

span[data-status="transferred"] {
    color: #ffd500;
}

span[data-status="unclear"] {
    color: #00419f;
}

tr[data-status="adopted"], tr[data-status="adopted_changes"] {
    background: rgba(231, 240, 195, 1.0);
}

tr[data-status="rejected"] {
    background: rgba(250, 226, 226, 1.0)
}

tr[data-status="transferred"] {
    background: rgba(255, 213, 0, 0.05);
}

tr[data-status="unclear"] {
    background: rgba(0, 67, 158, 0.05);
}

/* Disallow certain margins in line numbered text */
#left .line blockquote {
    margin: 0;
    padding: 0;
}

#left .line h1,
#left .line h2,
#left .line h3,
#left .line h4 {
    margin-top: 1rem;
}