@import url('https://fonts.googleapis.com/css?family=Ubuntu');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

body {
    background-color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
}

.btn-primary {
    color: #fff;
    background-color: #01c597;
    border-color: #01c597;
}

.btn-primary:hover {
    color: #fff;
    background-color: #00a881;
    border-color: #00a881;
}

.margin-no {
    margin: 0 !important;
}

#main-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	background-color: white;
	border-radius: 0;
	overflow: hidden;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	max-height: fit-content;

}

#topbar {
    background-color: #01c597;
    color: #eef4f4;
		flex-basis: 100%;
}

#sidebar {
    background: #262626;
    color: #eef4f4;
		flex-basis: fit-content;
}
#sidebar .menu-toggle.top {
	position: absolute;
	top: 0;
}
#sidebar .menu-toggle.bottom {
	position: absolute;
	top: unset;
	bottom: 0;
}
#sidebar .menu-toggle.dark {
	background-color: rgb(38,38,38);
	right: -83px;
	border-radius: 0 0 5px 0;
	color: white;
}
#sidebar .menu-toggle.white {
	background-color: white;
	right: 0px;
	border-radius: 0 0 0 5px;
}
#sidebar .menu-toggle.bottom.white {
	border-radius: 5px 0 0 0;
}

#content {
	background: #eef4f4;
	color: #262626;
	width: 100%;
	height: fit-content;
	flex-basis: 25%;
	flex-grow: 1;
}

#sidebar, #content {
    min-height: 600px;
    padding-top: 12px;
    bottom: 0;
    padding: 15px;
	position: relative;
	
}

/* @NOTE use same height and top for these two */
.navbar {
  padding-top: 0;
	padding-left: 0;
	height: 80px;
	flex-wrap: nowrap;
	justify-content: start;
}
.navbar-brand { 
	padding-bottom: 0;
}

.navbar img {
	vertical-align: top;
	margin-right: 10px;
}

.navbar a{
	margin-top: 20px;
	display: inline-block;
}
.navbar-title {
	display: inline-block;
	font-weight: 500;
	font-size: 1.25rem;
	height: 80px;
}

.navbar .btn {
    background: none;
    color: inherit;
}
.navbar .btn>.material-icons {
    margin: 0;
}

.menu-toggle {
    display: none;
		position: absolute;
		top: 20px;
		right: 20px;
}

html, body {
    /*overflow: hidden;*/
    width: 100%;
    max-width: 100%;
}

/* small screens hide the sidebar (toggle by adding / removing class "open" for body) */
@media all and (max-width:1462px) {
	#main-wrap {
		display: block;
	}

	.navbar-title {
		padding-right: 50px;

	}

	#main-wrap {
		position: initial;
	}

	.menu-toggle {
			display: block;
	}

	#sidebar {
			transition: left 300ms ease;
	}

	#sidebar {
			left: -100vw;
			width: 100vw;
			z-index: 999;
	}
	.tree {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	#content {
		width: 100%;
		left: 0;
		right: auto;
		position: absolute;
		top: 80px;
	}

	body.open #sidebar {
			left: 0;
	}
}

@media all and (max-width: 576px) {
	.navbar-title {
		padding-right: 5px;
	}
	.navbar {
		height: 160px;
		flex-wrap: wrap;
	}
	.navbar-brand {
		padding-top: 0;

	}
	.navbar a {
		margin-top: 0px;
		margin-left: 20px;
	}
	#content {
		top: 160px;
	}

}

/* if you want to remove the window view on 1400 width screens or wider, delete this */
@media all and (min-width: 1400px) and (min-height: 800px) {
	#main-wrap {
		width: 95%;
		margin: 15px auto;
		box-shadow: 0 3px 68px #0000006e;
		border-radius: 9px;
		position: relative;
	}
}

/* @NOTE if you change #content background-color, use the same color in here too */
.file-icon::before {
    border-color: #eef4f4 #eef4f4 rgba(255,255,255,.35) rgba(255,255,255,.35);
}

.material-icons {
    /* vertical alignment fix */
    display: inline-flex;
    vertical-align: middle;
    margin-right: .2em;
    margin-top: -3px;
}

/*********** tree structure ************/

/* every node goes right */
.node {
    margin-left: 21px;
    position: relative;
    padding: 3px 3px 3px 6px;
    margin-bottom: 0px;
    cursor: pointer;
		overflow-y: hidden;
		text-overflow: ellipsis;
}
/* ...except root nodes! */
.tree>.node {
    margin-left: 0px;
}
/* highlight the active one */
.node.active>.name {
    background: #01c597;
    border-radius: 3px;
    padding: 3px 3px 3px 6px;
}

/* first node goes little bit down */
.node:first-of-type {
    margin-top: 7px;
		overflow: hidden;
}
/* the vertical line for each node */
.node:before {
    content: " ";
    width: 7px;
    border-top: 1px solid #ffffff99;
    height: 1px;
    position: absolute;
    left: -12px;
    top: 0.8em;
}
.node:after {
    content: " ";
    width: 1px;
    border-left: 1px solid #ffffff99;
    height: 14px;
    position: absolute;
    left: -12px;
    top: 0px;
}

/* truncate name if too long */
.node .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.node.closed>.node {
    display: none;
}

/* root nodes doesnt have lines */
.tree>.node:before, .tree>.node:after {
    display: none;
}

/*********** filelist ***********/

td.details-control {
    background: url('/img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.shown td.details-control {
    background: url('/img/details_close.png') no-repeat center center;
}

.file {
    margin-bottom: 10px;
}

.file-field, .title-field, .expand-toggle {
    padding-top: 8px;
}

.title-field {
    font-weight: bold;
}

.expand-toggle {
    cursor: pointer;
}

@media (min-width: 576px){
	.file-list .col {
		padding-right: 0;
	}
}

.file-list.big .file-icon {
    width: 48px;
    height: 64px;
    border-radius: 3px;
}
.file-list.big .file-icon::after {
    font-size: 16px;
    padding: 4px 6px;
}

/* makes one line text */
.one-liner {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.file-icon {
    float: left;
    margin-top: -6px;
    margin-right: 12px;
}

.file-list {
    /*padding: 43px 15px 15px 15px;*/
    position: relative;
    top: 0;
    bottom: 0;
    /*overflow-y: auto;
    overflow-x: hidden;*/
    left: 0;
    right: 0;
}

.title-row {
    position: absolute;
    background-color: #eef4f4;
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 4px #00000014;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}
.title-row .col {
    padding-top: 5px;
    padding-bottom: 5px;
}

/* expanding file */

.on-expand {
    display: none;
}
.file.expanded .on-expand, .file.expanded .file-field {
    display: initial !important;
}
.file.expanded .hide-on-expand {
    display: none !important;
}
.file.expanded {
    background-color: white;
    padding-top: 15px;
    padding-bottom: 15px;
}
.file.expanded .col, .file.expanded .expand-toggle {
    width: 100% !important;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}
.file.expanded .one-liner {
    white-space: initial;
}

.on-expand .title-field {
    padding-top: 0;
}

.file.expanded .file-icon {
    margin-bottom: 30px;
}
div.permalink {
	display:inline-block;
	float:right;
}
.permalink .material-icons {
	margin 0;
}
div.dt-buttons {
	float: right;
	margin-left: 15px;
}

.dt-button {
	display: inline-block !important;
	background-image: none !important; 
	padding: 3px 7px !important;
}
.dt-button:hover, button.dt-button:active, button.dt-button:focus {
	background-image: none !important; 
}
#popupwindow {
	display: none;
	margin-bottom: 15px;
	padding: 10px;
	background-color: white;
	border-radius: 2px;
	box-shadow: 0px 0px 10px lightgrey;
}
.permalink-copy {
	float: right;
}
.permalink-text {
	overflow:hidden; padding-right: 0.5em;
}
.permalink-text input {
	vertical-align: top;
	width: 100%;
}
.aria-only {
	font-size: 0;
	height: 0;
	width: 0;
	margin: 0;
	padding: 0;
	display: block;
}
