/* === Shared === */
QStackedWidget, QLabel, QPushButton, QRadioButton, QCheckBox,
QGroupBox, QStatusBar, QToolButton, QComboBox, QDialog {
	background-color: #333333;
	color: #BBBBBB;
}

/* === QWidget === */
QWidget:window {
	background: #333333;
	color: #BBBBBB;
}

/* === WebView === */
QTextBrowser, QWebView {
	background-color: #BBBBBB;
	selection-color: #0a214c;
	selection-background-color: #C19A6B;
}

/* === QPushButton === */
QPushButton {
	border: 0.5px solid #333333;
	padding: 4px;
	min-width: 65px;
	min-height: 12px;
}

QPushButton:hover {
	background-color: #333333;
	border-color: #444444;
}

QPushButton:pressed {
	background-color: #222222;
	border-color: #333333;
	color: white;
}

QPushButton:disabled {
	color: #333333;
}


/* === QComboBox === */
QComboBox {
	background-color: #272822;
	border: 1px solid #333333;
	color: #BBBBBB;
	padding:1px 2em 1px 3px;
}

QComboBox::drop-down {
	subcontrol-origin: padding;
	subcontrol-position: top right;
	border-left: 1px solid #333333;
}

QComboBox::down-arrow {
	border: 2px solid #333333;
	width: 6px;
	height: 6px;
	background: #5f5f5f;
}


/* === QTabBar === */
QTabBar::tab {
	background: transparent;
	border: 1px solid #333333;
	border-bottom: none;
	color: #BBBBBB;
	padding-left: 5px;
	padding-right: 10px;
	padding-top: 3px;
	padding-bottom: 3px;
}

QTabBar::tab:hover {
	background-color: #333333;
	border: 1px solid #444444;
	border-bottom: none;
}

QTabBar::tab:selected {
	background-color: #272822;
	border: 1px solid #333333;
	border-bottom: none;
	color: white
}


/* === QToolBar === */
QToolBar {
	background-color: #333333;
	border: none;
	padding: 1px;
}



QToolBar::separator {
	width: 6px;
	background-color: #333333;
}

/* === QToolButton === */
QToolButton {
	border: 1px solid #333333;
	margin: 1px;
}

QToolButton:hover {
	background-color: #333333;
	border: 1px solid #444444;
}

QToolButton[popupMode="1"] { /* only for MenuButtonPopup */
	padding-right: 20px; /* make way for the popup button */
}

QToolButton::menu-button {
	border-left: 1px solid #333333;
	background: transparent;
	width: 16px;
}

QToolButton::menu-button:hover {
	border-left: 1px solid #444444;
	background: transparent;
	width: 16px;
}

QToolButton:checked, QToolButton:pressed {
	background-color: #222222;
	color: white;
}

/* === QMenu === */
QMenu {
	background-color: #272822;
	border: 1px solid gray;
	color: white;
	padding: 1px;
}

QMenu::item {
	padding: 2px 25px 2px 20px;
	border: 1px solid transparent;
}

QMenu::item:disabled {
	color: #666666;
}

QMenu::item:selected {
	border-color: gray;
	background: #333333;
}

QMenu::icon:checked {

}

QMenu::separator {
	height: 1px;
	background: #333333;
	margin-left: 10px;
	margin-right: 10px;
	margin-top: 1px;
	margin-bottom: 1px;
}

QMenu::indicator {
	width: 13px;
	height: 13px;
}

/* === QMenuBar === */
QMenuBar {
	background-color: #272822;
	color: white;
}

QMenuBar::item {
	background: transparent;
}

QMenuBar::item:disabled {
	color: gray;
}

QMenuBar::item:selected {
	background: #333333;
}

QMenuBar::item:pressed {
	background: #444444;
}


/* =================== */
QLineEdit, QListView, QTreeView, QTableView, QAbstractSpinBox {
	background-color: #272822;
	color: #BBBBBB;
	border: 1px solid #333333;
}

QAbstractScrollArea, QLineEdit, QTextEdit, QAbstractSpinBox, QComboBox {
	border-color: #333333;
	border: 1px solid #333333;

}

/* === QScrollBar - Vertical === */
QScrollBar:vertical {
	background-color: #272822;
	border: 2px solid #272822;
	width: 18px;
	margin: 18px 0 18px 0px;
}

	QScrollBar::handle:vertical {
		background-color: #333333;
		min-height: 20px;
	}

	QScrollBar::add-line:vertical {
		border: none;
		height: 18px;
		subcontrol-position: bottom;
		subcontrol-origin: margin;
	}

	QScrollBar::sub-line:vertical {
		border: none;
		height: 18px;
		subcontrol-position: top;
		subcontrol-origin: margin;
	}

	QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
		background: none;
	}

	QScrollBar:up-arrow:vertical, QScrollBar:down-arrow:vertical {
		border: 2px solid #272822;
		width: 14px;
		height: 14px;
		background-color: #333333;
	}

/* === QScrollBar - Horizontal === */
QScrollBar:horizontal {
	background-color: #272822;
	border: 2px solid #272822;
	height: 18px;
	margin: 0px 18px 0 18px;
}

	QScrollBar::handle:horizontal {
		background-color: #333333;
		min-width: 20px;
	}

	QScrollBar::add-line:horizontal {
		border: none;
		width: 18px;
		subcontrol-position: right;
		subcontrol-origin: margin;
	}

	QScrollBar::sub-line:horizontal {
		border: none;
		width: 18px;
		subcontrol-position: left;
		subcontrol-origin: margin;
	}

	QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
		background: none;
	}

	QScrollBar:left-arrow:horizontal, QScrollBar:right-arrow:horizontal {
		border: 2px solid #272822;
		width: 14px;
		height: 14px;
		background-color: #333333;
	}

/* === QHeaderView === */
QHeaderView {
	background: #333333;
}

QHeaderView::section {
	background: #333333;
	border: 0;
	color: #BBBBBB;
	padding: 3px 0 3px 4px;
}

/* === Customizations === */
QFrame#infoLabel {
	border: 1px inset #333333;
}
