/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

/**
 * Table
 */

table {
	width: 100%;
	max-width: 100%;
	margin-bottom: 1rem;
	background-color: transparent;
	border-collapse: collapse;
}
th {
	vertical-align: bottom;
	border-bottom: 2px solid #e9ecef;
	padding: .75rem;
	border-top: 1px solid #e9ecef;
	text-align: inherit;
}
tr:nth-of-type(even) {
	background-color: rgba(0,0,0,.05);
}
td {
	padding: .75rem;
	vertical-align: top;
	border-top: 1px solid #e9ecef;
}

.block-settingsSearchResults-details {
	padding-bottom: .5rem;
}

.block-settingsSearchResults-details > div {
	padding: .5rem .75rem;
}

.section {
	margin-bottom: 1.5em;
}

/**
 * Forms
 */
input[type="text"], textarea {
	display: block;
	width: 100%;
	padding: .375rem .75rem;
	font-size: 1rem;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	border-radius: .25rem;
	border: 1px solid #ced4da;
}

textarea {
	overflow: auto;
	resize: vertical;
}

/**
 * Button
 */
button {
	display: inline-block;
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	user-select: none;
	padding: .5rem 1rem;
	font-size: 1rem;
	border-radius: .25rem;
	background: none;
	border: 1px solid transparent;
}

select {
	height: calc(2.25rem + 2px);
	display: inline-block;
	padding: 3px 3px;
	font-size: 14px;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	border-radius: 0.25rem;
	border: none;
}

* {
	box-sizing: border-box;
}

textarea {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif;
}

html {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif;
	color: #CCCCCC;
	height: 100%;
}

body {
	margin: 0;
	overflow: scroll;
	height: 100%;
}

.hidden {
	display: none;
}

.block .block-info {
	width: 100%;
	font-family: 'Menlo', 'Courier New', 'Courier', monospace;
	font-size: 12px;
	overflow: auto;
	overflow-wrap: break-word;
}
pre {
	margin: 10px 20px;
}
pre code {
	font-family: 'Menlo', 'Courier New', 'Courier', monospace;
}

button:hover:enabled {
	cursor: pointer;
}

button:disabled {
	cursor: auto;
}

#issue-reporter {
	max-width: 85vw;
	margin-left: auto;
	margin-right: auto;
	padding-top: 2em;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.description-section {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

textarea {
	flex-grow: 1;
	min-height: 150px;
}

.block-info-text {
	display: flex;
	flex-grow: 1;
}

#github-submit-btn {
	flex-shrink: 0;
	margin-left: auto;
	margin-top: 10px;
	margin-bottom: 10px;
}

.two-col {
	display: inline-block;
	width: 49%;
}

#vscode-version {
	width: 90%;
}

.input-group {
	margin-bottom: 1em;
}

.extensions-form {
	display: flex;
}

.extensions-form > .form-buttons {
	display: flex;
	margin-left: 20px;
}

.extensions-form > .form-buttons > .choice {
	margin-right: 35px;
	position: relative;
}

.extensions-form > .form-buttons > .choice > label, .extensions-form  > .form-buttons > .choice > input {
	cursor: pointer;
	height: 100%;
	margin-top: 1px;
}

.extensions-form > .form-buttons > .choice > label {
	position: absolute;
	top: 50%;
	margin-top: -50%;
	left: 20px;
}

.system-info {
	margin-bottom: 1.25em;
}

select, input, textarea {
	border: 1px solid transparent;
	margin-top: 10px;
}

summary {
	border: 1px solid transparent;
	padding: 0 10px;
	margin-bottom: 5px;
	cursor: pointer;
}

.validation-error {
	font-size: 12px;
	margin-top: 1em;
}

.include-data {
	display: inline-block;
}

.include-data > .caption {
	display: inline-block;
	font-size: 12px;
	cursor: pointer;
}

.sendData {
	margin-left: 1em;
}

input[type="checkbox"] {
	width: auto;
	display: inline-block;
	margin-top: 0;
	vertical-align: middle;
	cursor: pointer;
}

input:disabled {
	opacity: 0.6;
}

.list-title {
	margin-top: 1em;
	margin-left: 1em;
}

.instructions {
	font-size: 12px;
	margin-left: 1em;
	margin-top: .5em;
}

a, .workbenchCommand {
	cursor: pointer;
	border: 1px solid transparent;
}

.workbenchCommand:disabled {
	color: #868e96;
	cursor: default
}

.block-extensions .block-info {
	margin-bottom: 1.5em;
}

/* Default styles, overwritten if a theme is provided */
input, select, textarea {
	background-color: #3c3c3c;
	border: none;
	color: #cccccc;
}

a {
	color: #CCCCCC;
	text-decoration: none;
}

.invalid-input {
	border: 1px solid #be1100;
}

.required-input, .validation-error {
	color: #be1100;
}

button {
	background-color: #007ACC;
	color: #fff;
}

.section .input-group .validation-error {
	margin-left: 13%;
}

.section .inline-form-control, .section .inline-label {
	display: inline-block;
}

.section .inline-label {
	width: 95px;
}

.section .inline-form-control {
	width: calc(100% - 100px);
}

#issue-type {
	cursor: pointer;
}

#similar-issues {
	margin-left: 12%;
	display: block;
}

@media (max-width: 950px) {
	.section .inline-label {
		width: 12%;
	}

	.section .inline-form-control  {
		width: calc(88% - 5px);
	}
}

@media (max-width: 620px) {
	.section .inline-label {
		display: none !important;
	}

	.inline-form-control {
		width: 100%;
	}

	#similar-issues, .section .input-group .validation-error {
		margin-left: 0;
	}
}

::-webkit-scrollbar {
	width: 14px;
}

::-webkit-scrollbar-thumb {
	min-height: 20px;
}

::-webkit-scrollbar-corner {
	display: none;
}

.issues-container {
	margin-left: 1.5em;
	margin-top: .5em;
	height: 92px;
	overflow-y: auto;
}

.issues-container > .issue {
	padding: 4px 0;
}

.issues-container > .issue > .issue-link {
	display: inline-block;
	width: calc(100% - 82px);
	vertical-align: top;
	overflow: hidden;
	padding-top: 3px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.issues-container > .issue > .issue-state {
	display: inline-block;
	width: 77px;
	padding: 3px 6px;
	margin-right: 5px;
	color: #CCCCCC;
	background-color: #3c3c3c;
	border-radius: .25rem;
}

.issues-container > .issue > .issue-state .octicon {
	vertical-align: top;
	width: 16px;
}

.issues-container > .issue .label {
	margin-left: 5px;
	display: inline-block;
	width: 44px;
	text-overflow: ellipsis;
	overflow: hidden;
}
