
.editor-pane {
    counter-reset: sect1;
    counter-reset: sect2;
    counter-reset: sect3;
    
}

.editor {
    margin-top: 3em;
}
.section {
	margin: 1em 0 1em 1.5em;
	position: relative;
	padding-right: 20px;
	border-left: 1px dotted #ddd;
}

.section > .insertbar, .section > .text-pane, .section > tip-pane, .section > .section {
	display: none;
}

.expanded > .insertbar, .expanded > .text-pane, .expanded > tip-pane, .expanded > .section {
	display: block;
}

.expander {
	position: absolute; 
	left: -18px; top: 3px;
	border: 0px none;
	cursor: pointer;
	transition: transform 0.5s;
}

.expanded > .expander {
	transform: rotate(90deg);
}

.deleter {
	position: absolute;
	top: 2px; right: 2px;
	cursor: pointer;
	border: 0px none;
}

.editor-pane > .section {
	 counter-increment: sect1;
}

.editor-pane > .section >.section {
	 counter-increment: sect2;
}

.editor-pane > .section >.section > .section {
	 counter-increment: sect3;
}

.text-pane, .edit-title {
	
	position: relative;
}

.text-pane, .tip {
	padding-right: 25px;
}
.text-content {
	padding-left: 0.5em;
}

.tip {
	padding-left: 42px;
	background: url(k-zamysleni32.png) 5px 5px no-repeat transparent;
	min-height: 40px;
}

.text-content {
	min-height: 1.7em;
	background-color: #ffe;
	border: 1px solid #eee;
	padding: 0.2em;
}

.edit-title {
	padding: 0.3em;
	background-color: #eef;
}

.section-title {
	min-height: 1.5em;
}

h2.edit-title::before {
	display: none;
	padding-left: 30px;
}

h3.section-title {   
    text-indent: 0;
	counter-reset: sect2;
}

h4.section-title {    
    text-indent: 0;
	counter-reset: sect3;
}

h3.section-title::before {
    content: counter(sect1) " ";
    display: inline-block;
    margin-right: 1em;
    text-indent: 0;
}

.section h4::before {
    content: counter(sect1) "." counter(sect2);
    display: inline-block;
    margin-right: 1em;
    text-indent: 0;
}

.section h5::before {
    content: counter(sect1) "." counter(sect2) "." counter(sect3);
    display: inline-block;
    margin-right: 1em;
    text-indent: 0;
}

.insertbar {
	text-indent: 0;
	padding-left: 0.5em;
}

.insertbar input {
	display: inline-block;
	margin: 0.2em;
}

.popup {
	color: darkred;
	outline: 1px dotted #800;
	cursor: pointer;
}

.popup.actual {
	color: #fff;
	background-color: darkred;
}

.popup .popup-content {
/*	display: block;*/
}

.hidden {
	display: none;
}

.toolbar {
	margin: 1.5em 0;
	text-indent: 0;
}
.toolbar input {
	display: inline-block;
	margin-right: 0.5em;
	font-size: 100%;
	padding: 0.2em;
}

.sublist {
	display: none;
}

.actual + .sublist {
	display: block;
}

.keywords {
	margin-bottom: 0.5em;
}

.keywords h3 {
	padding-left: 0;
}
.kw-list {
	width: 100%;
}

#vystupni {
	visibility: hidden;
}

.dialog-pane {
	position: fixed;
	left: 0; top: 0;
	display: flex;
	width: 100vw; height: 100vh;
	background-color: rgba(0,0,0, .30);
		justify-content: space-around;
}

main {
	position: relative;
	min-height: 500px;
}

.dialog {
	display: none;
/*	display: flex;*/
	flex-flow: column;
	position: absolute;
	left: 50px; top: 100px;
	width: 20em;
	height: 10em;
	background-color: #fff;
	border: 1px solid #ddd;
	align-self: center;
	
}

.dialog.shown {
	display: flex;
}

.dialog-title {
	background-color: #eee;
	margin-bottom: 0.5em;
	padding: 0.2em;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.closer {
	display: inline-block;
	width: 1.9em;
	text-align: center;
}

.dialog-content {
	
	flex: 1 0 auto;
	min-height: 5em;
	background-color: #ffd;
}

.dialog-buttons	{
	
	flex: 0 0 auto;
	background-color: #fff;
	padding: 0.5em;
	display: flex;
	justify-content: space-between;
}

.dialog-button {
	font-size: 110%;
	padding: 0.2em;
}