html, body {
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-family: "dejavu sans", sans-serif;
	height: 100%;
	-webkit-user-select: none;
}

::-webkit-scrollbar {
    width: 8px;
	height: 8px;
}
::-webkit-scrollbar-button {
	width: 0;
	height: 0;
}
::-webkit-scrollbar-track {
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(0,0,255,0.4);
}
::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(0,0,255,0.2);
}
::-webkit-scrollbar-thumb:hover {
	background: rgba(0,0,255,0.5);
}
::-webkit-scrollbar-thumb:active {
	background: rgba(0,0,255,0.75);
}

td, th {
	font-size: 1rem;
}

button {
	border-radius: 3px;
	background-color: #ddd;
	cursor: pointer;
	transition: background-color 0.1s ease;
}
button:hover:not([disabled]) {
	background-color: #d3d3d3;
}
button[disabled] {
	color: #aaa;
}

fieldset {
	margin: 0;
}

input[type=checkbox], input[type=radio] {
	vertical-align: middle;
}

input, select, button, textarea {
	box-sizing: border-box;
	border: 1px solid #ccc;
	color: #333;
	font-family: "dejavu sans", sans-serif;
	font-size: 1em;
	margin: 0;
}

input, button, fieldset, textarea {
	padding: 0.5em 1em;
}

.cancelBtn {
	background-color: rgba(255, 0, 0, 0.6);
	color: #fff;
}
.cancelBtn:hover:not([disabled]) {
	background-color: rgba(255, 0, 0, 0.7);
}

#main {
	height: 100%;
	display: flex;
	flex-flow: column nowrap;
}
#main > header {
	flex: 0 0 auto;
}
#main.empty #emptyMessage {
    display: block;
}
#main.empty #gitModules {
    display: none;
}

#loadingImage {
	display: none;
	margin-top: -25px;
	margin-left: -25px;
	position: absolute;
	top: 50%;
	left: 50%;
}
#loadingImage.visible {
    display: block;
}

#emptyMessage {
	text-align: center;
	margin: 1rem auto;
	display: none;
}
#emptyMessage button {
    font-size: 1.5rem;
}
#emptyMessage button:hover {
    background-color: #d3d3d3;
}

.file {
	box-sizing: border-box;
	border: 2px solid #ddd;
	border-radius: 6px;
	margin: 0 0.2rem 0.2rem 0;
	display: flex;
	flex-flow: column nowrap;
	flex: 1 1 auto;
	min-height: 8rem;
	overflow: hidden;
	transition: border-color 0.1s ease;
}
.file.collapsed .lineRow:nth-child(n+11) {
	display: none;
}
.file:only-child {
	margin: 0;
}
.file:hover {
	border: 2px solid rgba(0, 0, 255, 0.4);
}
.file.selected {
	border: 2px solid rgb(0, 0, 255);
}
.file > label {
	font-family: "dejavu sans mono", "liberation mono", monospace;
	display: block;
	background: #eee;
	padding: 0.3rem;
	flex: 0 0 auto;
	white-space: nowrap;
	overflow: hidden;
}
.fileName {
	font-weight: bold;
	cursor: pointer;
	margin-right: 0.5rem;
}
.fileName:hover {
	text-decoration: underline;
}
.fileStatus {
	margin-right: 0.5rem;
	font-weight: bold;
}
.fileStatus.deleted {
	color: red;
}
.fileStatus.modified {
	color: blue;
}
.fileStatus.new {
	color: #299C0F;
}
.file .fileTypeLabel {
	color: blue;
	font-weight: bold;
	margin: 0.5rem 0;
}
.file .summary {
	color: #333;
	margin: 0.5rem 0;
	white-space: pre;
}

.fileDiffContents {
	overflow: auto;
	font-family: "dejavu sans mono", "liberation mono", monospace;
	flex: 1 1 auto;
	margin: 0;
	-webkit-user-select: initial;
	tab-size: 4;
}
.fileDiff {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}
.range {
	border-bottom: 1px dotted #777;
}
.range:last-of-type {
	border-bottom: 0;
}
.fileDiff .lineRow {
	white-space: pre;
	transition: background-color 0.05s ease;
}
.fileDiff .lineRow:hover,
.fileDiff .lineRow:hover .line {
	background-color: #f6e8b5;
}
.line {
	width: 20px;
	padding: 0.3rem;
	color: #666;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	background-color: #f5f5f5;
	padding: 0 0.2rem;
	text-align: right;
	cursor: default;
	-webkit-user-select: none;
}
.fileDiff .deleted {
	background-color: #ffdddd;
}
.fileDiff .added {
	background-color: #ddffdd;
}
.fileDiff .added .line,
.fileDiff .neutral .line {
	cursor: pointer;
}
.fileDiff .added .line:hover,
.fileDiff .neutral .line:hover {
	text-decoration: underline;
}
.fileDiff .comment {
	color: gray;
}
.fileDiff .keyword {
	color: blue;
}
.fileDiff .string {
	color: chocolate;
}
.fileDiff .number {
	color: deeppink;
}
.fileDiff .conflict {
	color: orange;
	font-weight: bold;
}
.diffExpanderRow {
	border-top: 1px solid #ddd;
}
.diffExpander {
	cursor: pointer;
	color: #00f;
}
.diffExpander:hover {
	text-decoration: underline;
}

#gitModules {
	display: flex;
	flex-flow: row nowrap;
	flex: 0 0 auto;
	list-style-type: none;
	margin: 0.5rem 0 0 0;
	padding: 0 0.5rem;
	border-bottom: 1px solid gray;
}
#gitModules > li {
	max-width: 50%;
	flex: 1 1 auto;
	margin: 0 0.5rem 0 0;
	padding: 0.5rem 1rem 0.3rem 30px;
	background-color: #ccc;
	background-image: url(icons/folder.png);
	background-repeat: no-repeat;
	background-position: 5px center;
	border: 1px solid gray;
	border-radius: 6px 6px 0 0;
	cursor: pointer;
	position: relative;
	top: 1px;
	transition: background-color 0.1s ease;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: "dejavu sans mono", "liberation mono", monospace;
}
#gitModules > li:focus {
	outline: 0;
}
#gitModules > li:hover {
	background-color: #ddd;
}
#gitModules > li.visible {
	border-bottom: 1px solid #fff;
	background-color: #fff;
}

.module {
	display: none;
	flex: 1 1 auto;
	margin: 0.5rem;
}
.moduleContents {
	display: flex;
	flex-flow: row nowrap;
	flex: 1 1 auto;
}
.leftColumn {
	display: flex;
	overflow: hidden;
	flex-flow: column nowrap;
	flex: 0 0 auto;
	min-width: 180px;
	max-width: 35vw;
	margin-right: 0.5rem;
	border: 1px solid gray;
	border-radius: 6px;
	cursor: default;
}
.filesDiff {
	display: flex;
	flex-flow: row wrap;
	flex: 1 1 auto;
	overflow: auto;
	position: relative;
}
.filesDiff:empty {
	border: 1px solid gray;
	border-radius: 6px;
}
.filesDiff::-webkit-scrollbar {
    width: 12px;
	height: 12px;
}
.module.visible {
	display: flex;
	flex-flow: column nowrap;
}
.module > header {
	margin: 0 0.5rem 0.5rem 0.5rem;
	flex: 0 0 auto;
	-webkit-user-select: initial;
}
.fileListTitle {
	min-height: 16px;
	font-size: 1rem;
	padding: 0.3rem 0.5rem 0.2rem 0.5rem;
	border-radius: 6px 6px 0 0;
	margin: 0.5rem 0 0 0;
	flex: 0 0 auto;
}
.module h2:first-child {
	margin-top: 0;
}
.file.unstaged {
	order: 1;
}
.file.staged {
	order: 2;
}
.unstagedTitle,
.file.unstaged > label {
	background-color: rgba(255, 0, 0, 0.3);
}
.stagedTitle,
.file.staged > label {
	background-color: rgba(26,152,4, 0.5);
}
.fileListTitle.stagedTitle {
	border-radius: 0;
}
.fileListTitleButton {
	float: right;
	margin-left: 0.5rem;
	width: 16px;
	height: 16px;
	padding: 0;
	border: 0;
	cursor: pointer;
	background-repeat: no-repeat;
	background-color: transparent;
}
.fileList {
	min-height: 10vh;
	list-style-type: none;
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	overflow: auto;
}
.fileList > li {
	font-family: "dejavu sans mono", "liberation mono", monospace;
	margin: 0;
	padding: 0.5rem 0.5rem 0.5rem 25px;
	transition: background-color 0.05s ease;
	background-repeat: no-repeat;
	background-position: 2px center;
	line-height: 100%;
}
.fileList > li:hover {
	background-color: rgba(101,118,246, 0.3);
}
.fileList > li.selected {
	background-color: rgba(101,118,246, 0.5);
}
.file-new {
	background-image: url(icons/file-new.png);
}
.file-modified {
	background-image: url(icons/file-modified.png);
}
.file-deleted {
	background-image: url(icons/file-deleted.png);
}
.submodule-new {
	background-image: url(icons/submodule-new.png);
}
.submodule-modified {
	background-image: url(icons/submodule-modified.png);
}
.submodule-deleted {
	background-image: url(icons/submodule-deleted.png);
}
.controls {
	display: flex;
	flex-flow: column nowrap;
	flex: 0 0 auto;
	padding: 0.5rem;
	margin-top: 0.5rem;
	border-top: 1px solid gray;
}
.commitOption {
	vertical-align: middle;
	margin: 0 0.3rem 0 0;
}
.commitOptionLabel {
	flex: 1 1 auto;
	padding: 0 0.5rem;
}
.controlPanel {
	display: flex;
	flex-flow: row wrap;
	flex: 1 1 auto;
}
.controlPanel > button {
	flex: 0 0 auto;
	padding: 0.3rem 0.5rem 0.3rem 27px;
	background-position: 2px center;
	background-repeat: no-repeat;
	cursor: pointer;
	margin: 0.2rem;
}
.stageButton {
	background-image: url(icons/stage16.png);
}
.unstageButton {
	background-image: url(icons/unstage16.png);
}
.commitButton {
	background-image: url(icons/commit.png);
}
.pushButton {
	background-image: url(icons/push.png);
}
.commitMessage {
	width: 100%;
	height: 5rem;
	margin: 0.5rem 0;
	flex: 1 1 auto;
	padding: 0.5rem;
	resize: none;
	border-radius: 3px;
	transition: height 0.1s ease;
	transition-delay: 0.1s;
}
.commitMessage:focus {
	outline: 0;
	height: 8rem;
}
.commitLog {
	display: none;
	flex: 0 0 auto;
	border-top: 1px solid gray;
	margin: 0.5rem 0 0 0;
	padding: 0.5rem;
	overflow: hidden;
	list-style-type: none;
	font-family: monospace;
	-webkit-user-select: initial;
}
.commitLog.visible {
	display: block;
}
.commitLog > li {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.commitLogHash {
	cursor: pointer;
	color: blue;
}
.commitLogHash:hover {
	text-decoration: underline;
}



/* Dialogs */

.dialogMainSection {
	display: flex;
	flex-flow: column nowrap;
	flex: 1 1 auto;
}
.dialogContentFieldset {
	flex: 0 0 auto;
	margin: 1em 0 0 0;
	border-radius: 4px;
	border: 1px solid #ccc;
}



.branchListContent {
	flex: 1 1 auto;
	overflow: auto;
}
table.branchList {
	table-layout: fixed;
	border-collapse: collapse;
	width: 100%;
}
table.branchList tr {
	cursor: default;
	transition: background-color 0.1s ease;
}
table.branchList tbody > tr:hover {
	background-color: rgba(101, 118, 246, 0.3);
}
table.branchList tbody > tr.selected {
	background-color: rgba(101, 118, 246, 0.5);
}
table.branchList th,
table.branchList td {
	padding: 0.3em;
	border: 1px solid #ccc;
	font-family: "dejavu sans mono", "liberation mono", monospace;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.branchListItemCommitSubject {
	margin-top: 0.5em;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}



.dialogContentControlButtons {
	flex: 0 0 auto;
	margin: 1em 0 0 0;
	text-align: right;
}
.branchCreateName {
	width: 100%;
}
.branchCreateContent,
.remotePushMainOptions {
	flex: 1 0 auto;
}



.fileStatisticsHeader {
	font-size: 1em;
	margin: 0 0 1em 0;
	text-align: center;
}
.fileStatisticsTable {
	margin-top: 1em;
	table-layout: fixed;
	border-collapse: collapse;
	width: 100%;
}
.fileStatisticsTable tr {
	cursor: default;
	transition: background-color 0.1s ease;
}
.fileStatisticsTable tbody > tr:hover {
	background-color: rgba(101, 118, 246, 0.3);
}
.fileStatisticsTable th,
.fileStatisticsTable td {
	padding: 0.3em;
	border: 1px solid #ccc;
	font-family: "dejavu sans mono", "liberation mono", monospace;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: center;
}
.fileStatisticsTopCommittersOptions > label {
	margin-right: 1em;
}
