
StyleSheetEditor
{
    font-family: "Lato";
    background-color: QLineEdit_background_color; 
}

IconButton
{
    color: #FFFFFF;
    background-color: #FF0000;
    image: url(:/widgets/down_arrow_disabled_dark.png);
}

/* ----------------------------------------------------------------------------
* QFileDialog Section
* ----------------------------------------------------------------------------*/
QFileDialog
{
    font-family: "Lato";
    background-color: QLineEdit_background_color; 
}

QWidget#comparisonSetMainWidget
{
    background-color: CentralWidget_background_color; 
}

StatsProgressWidget
{
    font-family: "Lato";
    background-color: QLineEdit_background_color; 
}

QDialog#QtSFileDragMessageBox
{
    font-family: "Lato";
    background-color: QLineEdit_background_color;  
}

/* ----------------------------------------------------------------------------
* SVDialog Section
* ----------------------------------------------------------------------------*/
SVDialog
{
    font-family: "Lato";
    background-color: QLineEdit_background_color; 
}

SVDialog > QGroupBox::title
{
    /* height: 185px; */
    subcontrol-origin: margin;
    subcontrol-position: top left;
    padding: 0 0px;
    background-color: QGroupBoxTitle_background_color;
}

SVDialog > QGroupBox
{
    font-family: "Lato-Bold";
    font-weight: bold;
    font-size: Font_Size_Small;
    background-color: QGroupBox_background_color;
}

/* ----------------------------------------------------------------------------
* QWidget Section
* ----------------------------------------------------------------------------*/
QWidget#centralwidget
{
    font-family: "Lato";
    color: #b1b1b1;
    background-color: rgb-primary-0;
}

SVFrame
{
    background-color: rgb-primary-0;
}

QFrame#fiwFrame
{
    font-family: "Lato";
    background-color: rgb-primary-0;
    padding: 0 0 0 0;
    margin: 4 0 0 0;
    border:none
}

QFrame[class="ComparisonSelectionAdvancedWidget"]
{
    background-color: rgb-primary-0; 
}

QWidget[class="ComparisonSetWidget"]
{
    background-color: rgb-primary-1;   
}

QWidget#comparisonSetMainWidget
{
    background-color: rgb-primary-1;
}

QFrame[class="ComparisonContainerWidget"]
{
    background-color: rgb-primary-0;
    padding: 2 5 2 5;
    margin: 0 0 0 0;
    border: 1px solid rgb(128,128,128);
    border-radius: 0px; 
}

/* This is not needed for the Dark Theme and tends to effect the background on buttons*/
/* QScrollArea, QScrollArea QWidget
{
    background-color: rgb-primary-2;
} */

QWidget#fiwVariablesWidget,
QWidget#variablesTabContents,
QWidget#m_ShapeTypeScrollContents
{
    font-family: "Lato";
    color: #b1b1b1;
    background-color: rgb-primary-0;
}

QWidget:item:hover
{
    background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, 
                        stop: 0 #ffa02f, stop: 1 #ca0619);
}

QWidget:item:selected
{
    /* background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, 
                        stop: 0 #ffa02f, stop: 1 rgb-primary-0); */
}

QFrame#inputFrame
{
}

QFrame#inputFrame > QLabel
{
}

/* ----------------------------------------------------------------------------
* QRadioButton Parameter Widgets
* ----------------------------------------------------------------------------*/
QRadioButton
{
    font-family: "Lato";
    color: rgb-complement-3;
}
QRadioButton:hover
{
    color: rgb-complement-3;
}

QRadioButton:checked
{
    color: rgb-complement-0;
}

QRadioButton::indicator:checked, 
QRadioButton::indicator:unchecked
{
    color: #b1b1b1;
    background-color: rgb-primary-0;
    border: 1px solid #b1b1b1;
    border-radius: 5px;
}

QRadioButton::indicator:checked
{
    background-color: qradialgradient(
        cx: 0.5, cy: 0.5,
        fx: 0.5, fy: 0.5,
        radius: 1.0,
        stop: 0.25 rgb-complement-0,
        stop: 0.3 rgb-primary-2
    );
}

QRadioButton::indicator
{
    border-radius: 3px;
}

QRadioButton::indicator:hover
{
    border: 1px solid rgb-complement-0;
}
QRadioButton::indicator:disabled
{
    border: 1px solid #444;
}

/* ----------------------------------------------------------------------------
* QCheckBox Parameter Widgets
* ----------------------------------------------------------------------------*/
QCheckBox
{
    font-family: "Lato";
    color: #b1b1b1;
}

QCheckBox::indicator
{
    color: rgb-complement-0;
    background-color: rgb-primary-2;
    border: 1px solid #b1b1b1;
    width: 10px;
    height: 10px;
}
QCheckBox::indicator:hover
{
    border: 1px solid rgb-complement-0;
}

QCheckBox::indicator:checked
{
    image: url(:/widgets/checkbox_light.png);
}

QCheckBox::indicator:disabled
{
    border: 1px solid #444;
}

/* ----------------------------------------------------------------------------
* Filter Parameter Widgets
* ----------------------------------------------------------------------------*/
FilterParameterWidget
{
    font-family: "Lato";
    color: #FFFFFF;
    background-color: rgb-primary-0;
    margin: 2px;
    background-position: top left;
    background-origin: content;
    background-clip: margin;
}

QtSSplitter 
{
    /* border: 1px solid FilterParameterWidget_border_color; */
    padding: 0px;
}

/* ----------------------------------------------------------------------------
* QGroupBox Section
* ----------------------------------------------------------------------------*/
QGroupBox::title
{
    font-family: "Lato";
    /* height: 185px; */
    subcontrol-origin: margin;
    subcontrol-position: top left;
    padding: 0 0px;
}

QGroupBox
{
    font-family: "Lato";
    font-size: Font_Size_Very_Large;
    color: QDockWidget_color;
}

QGroupBox:focus
{
    border: 2px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 rgb-primary-0);
}

QWidget#FilterListToolboxWidget
{
    font-family: "Lato";
    color: #b1b1b1;
    background-color: rgb-primary-0;
}

QLabel#filterCountLabel
{
    color: rgb-complement-5;
    background-color: rgb-primary-0;
}

QFrame#separatorFrame
{
    border: 1px solid rgb-complement-5;
}

QLabel#separatorLabel
{
    font-family: "Lato";
    color: rgb-complement-5;
    font-size: Font_Size_Large;
}

/* ----------------------------------------------------------------------------
* QDockWidget Section
* ----------------------------------------------------------------------------*/
/* For the QDockWidget border style, see QMainWindow::separator */
QDockWidget 
{
    border: 1px solid  QDockWidget_border_color;
    font-family: "Lato";
    font-size: Font_Size_Medium;
    font-weight: bold;
    color: QDockWidget_color;
    titlebar-close-icon: url(:/widgets/close-normal.png);
    titlebar-normal-icon: url(:/widgets/minimize-normal.png);
}

QDockWidget::title
{
    background: QDockWidget_border_color;
    color: QDockWidgetTitle_color;
    padding: 5px;
}
QDockWidget::close-button
{
    subcontrol-position: top right;
    subcontrol-origin: margin;
    position: absolute;
    top: 2px; right: 8px; bottom: 0px;
    width: 20px;
    height: 20px;
}
QDockWidget::float-button 
{
    subcontrol-position: top right;
    subcontrol-origin: margin;
    position: absolute;
    top: 2px; right: 30px; bottom: 0px;
    width: 20px;
    height: 20px;
}
QDockWidget::close-button:pressed, 
QDockWidget::float-button:pressed
{
    padding: 1px -1px -1px 1px;
}
/* These icon settings are ignored....
QDockWidget::close-button:hover {
    titlebar-close-icon: url(:/widgets/close-mouseover.png);
}
QDockWidget::close-button:pressed {
     titlebar-close-icon: url(:/widgets/close-pushed.png);
}
QDockWidget::float-button:hover {
    titlebar-normal-icon: url(:/widgets/minimize-mouseover.png);
}
QDockWidget::float-button:pressed  {
     titlebar-normal-icon: url(:/widgets/minimize-pushed.png);
} */

SIMPLViewPipelineDockWidget[Active="false"] 
{
}

SIMPLViewPipelineDockWidget::title[Active="false"] 
{
}

/* This is a bizzare one. The separator is the border that
   is drawn around the QDockWidgets */
QMainWindow::separator 
{
    background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);
    color: white;
    padding-left: 4px;
    border: 1px solid #4c4c4c;
    spacing: 3px; /* spacing between items in the tool bar */
}

QMainWindow::separator:hover
{
    background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb-primary-0, stop:0.5 #b56c17 stop:1 #ffa02f);
    color: white;
    padding-left: 4px;
    border: 1px solid #6c6c6c;
    spacing: 3px; /* spacing between items in the tool bar */
}

/* ----------------------------------------------------------------------------
* QListView Section: These colors will effect the pipeline view
* ----------------------------------------------------------------------------*/
QListView 
{
    font-family: "Lato";
    color: QListView_color;
    font-size: Font_Size_Medium;
    background: QListView_background_color;
    outline: none;
    border: 1px solid rgb( 68,  89, 100);
}
QListView::item 
{
   padding-bottom: 2px;
   padding-top: 2px;
   /*border-top-color: transparent;
   border-bottom-color: transparent;
   border: 0px solid transparent;
   color: #b1b1b1; */
}
QListView::item:hover 
{
    background:  QListViewItemHover_background_color;
    border: 0px;
    color: QListViewItemHover_color;
}
QListView::item:selected 
{
    background:  QListViewItemSelected_background_color;
    color: QListViewItemSelected_color
}
QListView::item:selected:hover 
{
    background:  QListViewItemHover_background_color;
    color: QListViewItemHover_color;
}

QListView::indicator:checked 
{
    image: url(:/SIMPL/icons/images/check_plain.png)
}

QListView::indicator:!checked
{
    image: url(:/SIMPL/icons/images/x.png)
}

SVListView,
QListWidget,
SVListWidget
{
    font-family: "Lato";
    font-size: Font_Size_Medium;
    background: QListView_background_color;
    outline: none;  /* removes the "focus rect" */
    border: 1px solid #b1b1b1;
}

/* ----------------------------------------------------------------------------
* QMenuBar Section
* ----------------------------------------------------------------------------*/
/* QMenuBar is the top level menu while QMenu is used for 'sub menus' */
QMenuBar 
{
    background-color: QMenuBar_background_color;
}
QMenuBar::item {
    color: QMenuBarItem_color;
}
QMenuBar::item:pressed {
    background: QMenuBarItemPressed_color;
}
QMenuBar::item:selected {
   background: QMenuBarItemSelected_background_color;
   color: QMenuBarItemSelected_color;
}
QMenu {
    background-color: QMenu_background_color;
    color: QMenu_color;
    margin: 2px; /* some spacing around the menu */
}
QMenu::item:selected { /* when user selects item using mouse or keyboard */
    background-color: QMenuItemSelected_background_color;
    color: QMenuItemSelected_color;
}
QMenu::item:disabled
{
    background-color: QMenuItemDisabled_background_color;
    color: #6d6d6d;
} 

/* ----------------------------------------------------------------------------
* QProgressBar Section
* ----------------------------------------------------------------------------*/
QProgressBar
{
    border: 1px solid grey;
    border-radius: 0px;
    text-align: center;
    color: black;
}

QProgressBar::chunk
{
    background-color: rgb-complement-0;
    color: white;
}

/* ----------------------------------------------------------------------------
* QMessageBox Section
* ----------------------------------------------------------------------------*/
QMessageBox
{
    font-family: "Lato";
    background-color: QLineEdit_background_color;
    color: white;
}

/* This is needed for the QMessageBox which takes QAbstractButton instances */
QMessageBox > QPushButton
{
    background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #fbfeff,       stop:1 #eaf8ff);
    border-width: 1px;
    border-color: #b1b1b1;
    border-style: solid;
    border-radius: 5px;
    /* font-family: "Lato";
    font-size: Font_Size_Very_Small; */
    min-height: 24px;
    /* min-width: 240px; */
    padding: 0 7 0 7;
}

/* ----------------------------------------------------------------------------
* QPushButton Section
* ----------------------------------------------------------------------------*/
/* We provide a min-width and min-height for push buttons
   so that they look elegant regardless of the width of the text. */
.QPushButton 
{   
    color: rgb-complement-3;
    background-color: QPushButton_background_color;
    border: 1px solid rgb-complement-4;
    border-radius: 5;
    font-family: "Lato";
    font-size: Font_Size_Small;
    padding: 3 8 3 8;
}
.QPushButton:hover
{
    background-color: QPushButtonHover_background_color;
    border: 1px solid rgb-complement-5;
    color: rgb-complement-0;
}
/* Increase the padding, so the text is shifted when the button is  pressed. */
.QPushButton:pressed 
{
    background-color: QPushButtonPressed_background_color;
    padding: 5 8 3 10;
}

QPushButton:default
{
    background-color: rgb-complement-0;
    color: black;
    border: 1px solid rgb-complement-4;
}

QPushButton:default:hover
{
    background-color: rgb-complement-0;
    color: white;
    border: 1px solid rgb-complement-5;
}

QPushButton:default:pressed
{
    background-color: rgb-complement-0;
    padding: 5 8 3 10;
}

SVIconPushButton 
{
    background-color: QPushButton_background_color;
    border: 1px solid QPushButton_border_color;
    border-radius: 5;
    font-family: "Lato";
    font-size: Font_Size_Large;
    padding: 0 0 0 0;
    min-height: 24px;
    min-width: 24px;
}

SVIconPushButton#expandAllBtn,
SVIconPushButton#collapseAllBtn
{
    background-color: rgb-primary-3;
    border: 0px;
    border-radius: 0;
    font-family: "Lato";
    font-size: Font_Size_Large;
    padding: 0px;
    min-height: 24px;
    min-width: 24px;
}

SVIconPushButton:hover 
{
    background-color: QPushButtonHover_background_color;
    border: 1px solid rgb-complement-0;
}
/* Increase the padding, so the text is shifted when the button is  pressed. */
SVIconPushButton:pressed 
{
    padding: 2 0 0 2;
    background-color: QPushButtonPressed_background_color;
    border-color: rgb-primary-0;
    border-style: solid;
    border-style: inset;
}

/* Button styles specific to the startPipelineBtn */
QPushButton#startPipelineBtn:enabled 
{
     background-color: #6cbf3a;
     color: rgb(255, 255, 255);
     border-width: 1px;
     border-color: transparent;
     border-style: solid;
     border-radius: 3px;
     font-family: "Lato";
     font-weight:  bold;
     font-size: Font_Size_Large;
     min-height: 26px;
     margin: 0px;
}
QPushButton#startPipelineBtn:disabled 
{
    background-color: #e1e1e1;
    color: rgb(160, 160, 160);
    border-radius: 3px;
    border-color: rgb(160, 160, 160);
    font-family: "Lato";
    font-weight:  bold;
    font-size: Font_Size_Large;
    min-height: 26px;
    margin: 0px;
}

SVToolButton
{
    color: rgb-complement-3;
    background-color: QPushButton_background_color;
    border: 1px solid rgb-complement-4;
    border-radius: 5;
    font-family: "Lato";
    font-size: Font_Size_Small;
    padding: 1 6 1 6;
}
SVToolButton:hover
{
    background-color: QPushButtonHover_background_color;
    border: 1px solid rgb-complement-5;
    color: rgb-complement-0;
}
/* Increase the padding, so the text is shifted when the button is  pressed. */
SVToolButton:pressed 
{
    background-color: QPushButtonPressed_background_color;
    padding: 3 6 1 8;
}

SVOverlayWidgetButton
{
    border: 1px solid QToolButton_border_color;
    border-radius: 5px;
    background-color: QToolButton_background_color;
    margin: 2px;
    font-family: "Lato";
    font-weight: bold;
    font-size: Font_Size_Medium;
    color: QToolButton_color;
    min-height: 16;
    max-height: 28;
    min-width: 110;
}

SVOverlayWidgetButton:hover
{
    border: 1px solid QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffa02f, stop: 1 rgb-primary-0);
}

SVOverlayWidgetButton:pressed
{
    background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #2d2d2d, stop: 0.1 #2b2b2b, stop: 0.5 #292929, stop: 0.9 #282828, stop: 1 #252525);
}

SVOverlayWidgetButton:checked
{
    border: 1px solid QToolButton_border_color;
    border-radius: 5px;
    background-color: rgb(27, 27, 27);
    margin: 2px;
    color: QToolButton_color;
    min-width: 110;
    border-style: inset;
}

SVOverlayWidgetButton[error=true]
{
    background-color: rgb(221, 83, 83);
    color: rgb(196, 196, 196);
}

SVOverlayWidgetButton[error=true]:checked
{
    background-color: rgb(156, 4, 4);
    color: rgb(196, 196, 196);
}

SVOverlayWidgetButton:disabled
{
    background-color: rgb(160, 160, 160);
    color: #e1e1e1;
}

/* ----------------------------------------------------------------------------
* QToolButton Section
* ----------------------------------------------------------------------------*/
.QToolButton { 
    border: 1px solid QToolButton_border_color;
    border-radius: 5px;
    background-color: QToolButton_background_color;
    margin: 2px;
    font-family: "Lato";
    font-weight: bold;
    font-size: Font_Size_Medium;
    color: QToolButton_color;
    min-height: 16;
    max-height: 28;
    min-width: 110;
}
.QToolButton:checked {
    border: 1px solid QToolButton_border_color;
    border-radius: 5px;
    background-color: QToolButtonChecked_background_color;
    margin: 2px;
    color: QToolButton_color;
    min-width: 110;
    border-style: inset;
}

DataArrayPathSelectionWidget 
{
    font-family: "Lato";
    font-weight: normal;
    font-size: Font_Size_Small;
    border: 1px solid #b1b1b1;
    border-radius: 5px;
    background-color: QToolButton_background_color;
    color: QToolButton_color;
    padding-left: 0px;
    padding-right: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
}
DataArrayPathSelectionWidget:disabled
{
  background-color: QToolButtonDisabled_background_color;
  color: QToolButtonDisabled_color;
}
/*
 * State: { Normal, Active, NotFound, DragEnabled, DragDisabled }
 * PathType: { DataContainer = 0, AttributeMatrix = 1, DataArray = 2, None }
 */
DataArrayPathSelectionWidget[State="0"]
{ 
  border-color: DataArrayPath_border_normal;
}
DataArrayPathSelectionWidget[State="1"][PathType="0"]
{ 
  border-color: DataArrayPath_DataContainer_color;
  /* color: #000000; */
}
DataArrayPathSelectionWidget[State="1"][PathType="1"]
{ 
  border-color: DataArrayPath_AttributeMatrix_color;
}
DataArrayPathSelectionWidget[State="1"][PathType="2"]
{ 
  border-color: DataArrayPath_DataArray_color;
  /* color: white; */
}
DataArrayPathSelectionWidget[State="2"]
{ 
  border-color : DataArrayPath_border_not_found;
}
DataArrayPathSelectionWidget[State="3"]
{ 
  border-color: DataArrayPath_border_drag_enabled;
}
DataArrayPathSelectionWidget[State="4"]
{ 
  border-color: DataArrayPath_border_drag_disabled;
}

DataArrayPathSelectionWidget:checked[PathType="0"]
{ 
  background-color: DataArrayPath_DataContainer_background_color;
}
DataArrayPathSelectionWidget:checked[PathType="1"]
{ 
  background-color: DataArrayPath_AttributeMatrix_background_color;
}
DataArrayPathSelectionWidget:checked[PathType="2"]
{ 
  background-color: DataArrayPath_DataArray_background_color;
}

DataArrayPathSelectionWidget::menu-indicator {
 subcontrol-origin: content;
 subcontrol-position:  right; /* */
}
DataArrayPathSelectionWidget::menu-indicator:pressed, DataArrayPathSelectionWidget::menu-indicator:open {
 position: relative;
}
DataArrayPathSelectionWidget:flat {
 border: none;
}

DataArrayPathSelectionWidget > QToolTip {
    border: 1px solid #000000;
    /* background-color: #ffa02f; */
    padding: 1px;
    border-radius: 3px;
    opacity: 100;
}

/* ----------------------------------------------------------------------------
* QComboBox Section
* ----------------------------------------------------------------------------*/
QComboBox
{
	background-color: QMenuBar_background_color;
	border-style: solid;
	border: 1px solid rgb-primary-3;
	border-radius: 3px;
    color: QMenuBarItem_color;
    min-height: 20;
    max-height: 28;
    min-width: 40;
}

QComboBox:hover
{
	border: 1px solid rgb-complement-0;
    color: QMenuBarItemSelected_color;
    /* background-color: #626873; */
}

QComboBox:on
{
	/* background-color: #626873;
	padding-top: 3px;
    padding-left: 4px;
    color: #FFFFFF; */
	/* selection-background-color: #4a4a4a; */
}

QComboBox QAbstractItemView
{
	border-radius: 0px;
    border: 0px solid #0000FF;
}

QComboBox:item:selected
{
    background-color: QMenuItemSelected_background_color; 
    color: QMenuItemSelected_color;
}

QComboBox:item:!selected
{
    background-color: QMenuBar_background_color; 
    color: QMenuItemSelected_color;
}

QComboBox::drop-down
{   
    color: white;
	subcontrol-origin: margin ;
	subcontrol-position:  right;
    min-width: 35px;
	border-left-width: 0px;
	border-left-color: darkgray;
	border-left-style: solid;
	border-top-right-radius: 3px; 
	border-bottom-right-radius: 3px;
}

QComboBox::down-arrow:on, 
QComboBox::down-arrow:focus
{
    image: url(:DREAM3D/Images/widgets/decrease-normal-dark.png);
}

QComboBox::down-arrow {
    image: url(:DREAM3D/Images/widgets/decrease-normal-dark.png);
}
QComboBox::down-arrow:hover {
    image: url(:DREAM3D/Images/widgets/decrease-mouse-over-dark.png);
}

/* ----------------------------------------------------------------------------
* QStatusBar Section
* ----------------------------------------------------------------------------*/
QStatusBar {
    background-color: rgb-primary-2;
    border: 1px solid QStatusBar_border_color;
    min-height: 26px;
    color: #b1b1b1;
}

/* ----------------------------------------------------------------------------
* QTableView Section
* ----------------------------------------------------------------------------*/
QTableView
{
    font-family: "Lato";
    color: #b1b1b1;
    font-size: Font_Size_Small;
    background: rgb-primary-2;
    outline: none;  /* removes the "focus rect" */
    border: 1px solid rgb( 68,  89, 100);
}
QTableView::item 
{
   padding: 2 0 2 0px;
   border-top-color: transparent;
   border-bottom-color: transparent;
   border: 0px solid transparent;
   color: #b1b1b1;
}
QTableView::item:hover 
{
    background:  rgb-primary-4;
    border: 0px;
    color: QListViewItemHover_color;
}
QTableView::item:selected 
{
    background:  rgb-primary-2;
    color: rgb-primary-0;
}
QTableView::item:selected:hover 
{
    background:  rgb-primary-4;
    color: rgb-primary-0;
}

/* ----------------------------------------------------------------------------
* QTableWidget Section
* ----------------------------------------------------------------------------*/

/* See QHeaderView on how to style the QTableWidget header */
QTableWidget
{
    font-family: "Lato";
    color: #b1b1b1;
    font-size: Font_Size_Small;
    background: rgb-primary-2;
    outline: none;  /* removes the "focus rect" */
    border: 1px solid rgb-primary-3;
}

QTableWidget::item:selected 
{
    background:  rgb-primary-3;
    color: rgb-complement-0;
}

QTableWidget::item 
{
   /* padding-bottom: 2px;
   padding-top: 2px;
   border-top-color: transparent;
   border-bottom-color: transparent;
   border: 1px solid transparent;
   color: rgb-complement-5; */
}
QTableWidget::item:hover 
{
    background:  rgb-primary-3;
    border: 0px;
    color: rgb-complement-0;
}

QTableWidget::item:selected:hover 
{
    background:  rgb-primary-3;
    color: rgb-complement-0;
}

QTableView QTableCornerButton::section 
{
    background-color: QHeaderView_background_color;
}

/* QHeaderView ------------------------------------------------------------ */

QHeaderView {
    background-color: QHeaderView_background_color;
    border: 1px transparent QHeaderView_background_color;
    padding: 0px;
    margin: 0px;
    border-radius: 0px;
}

QHeaderView:disabled {
    background-color: QHeaderView_background_color;
    border: 0px transparent QHeaderView_background_color;
    padding: 3 2 3 2px;
}

QHeaderView::section {
    background-color: QHeaderView_background_color;
    color: rgb-complement-0;
    padding: 3 2 3 2px;
    border-radius: 0px;
    text-align: left;
}

QHeaderView::section:checked {
    color: #F0F0F0;
    background-color: rgb-complement-0;
}

QHeaderView::section:checked:disabled {
    color: #787878;
    background-color: rgb-complement-0;
}

QHeaderView::section::horizontal:disabled,
QHeaderView::section::vertical:disabled {
    color: #787878;
}

QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one {
    border-top: 1px solid rgb-primary-3;
}

QHeaderView::section::vertical {
    border-top: 1px solid rgb-primary-3;
}

QHeaderView::section::vertical::last
{
    border-bottom: 1px solid rgb-primary-3;
}

QHeaderView::section::horizontal::first,
QHeaderView::section::horizontal::only-one {
    border-left: 1px solid rgb-primary-3;
}

QHeaderView::section::horizontal {
    border-left: 1px solid rgb-primary-3;
}
QHeaderView::section::horizontal::last
{
    border-right: 1px solid rgb-primary-3;
}

/* Those settings (border/width/height/background-color) solve bug */
/* transparent arrow background and size */

QHeaderView::down-arrow {
    background-color: QHeaderView_background_color;
    width: 16px;
    height: 16px;
    border-right: 1px solid rgb-primary-3;
}

QHeaderView::up-arrow {
    background-color: QHeaderView_background_color;
    width: 16px;
    height: 16px;
    border-right: 1px solid rgb-primary-3;
}

/* ----------------------------------------------------------------------------
* QTabView Section
* ----------------------------------------------------------------------------*/

QTabWidget::pane 
{
    border: 1px solid QDockWidget_color;
    background: QTabWidgetPane_background_color;
    top: -0.05em;
}

QTabWidget::tab-bar:top 
{
    border-top: 1px;
    min-width: 325px;
}

QTabWidget::tab-bar:bottom {
    border-bottom: 1px;
}

QTabWidget::tab-bar:left {
    right: 1px;
}

QTabWidget::tab-bar:right {
    left: 1px;
}

QTabBar::tab 
{
    font-family: "Lato";
    font-size: Font_Size_Medium;
    font-weight: bold;
}

QTabBar::tab:selected 
{
    background: QTabWidgetPane_background_color;
    color: white;
    /* border-top: 2px solid rgb-complement-0; */
}

QTabBar::tab:!selected 
{
    background: QTabBarTabNotSelected_background_color;
}

QTabBar::tab:!selected:hover 
{
    background: QTabBarTabNotSelectedHover_background_color;
}

QTabBar::tab:top, 
QTabBar::tab:bottom 
{
     min-width: 100px; 
    padding: 5px 5px 5px 5px; 
    margin-top: 0px;
    margin-right: 0px;
    margin-left: 0px; 
}

QTabBar::tab:top:selected 
{
    border-left: 2px solid rgb-complement-0;
    border-top: 2px solid rgb-complement-0;
    border-right: 2px solid rgb-complement-0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    background-color: QTabWidgetPane_background_color;
}

QTabBar::tab:top:!selected,
QTabBar::tab:bottom:!selected 
{
    border: 1px solid QTabWidgetPane_border_color;
    border-bottom: 1px solid QDockWidget_color;
    color: rgb-complement-4;
}

QTabBar::tab:top:first, 
QTabBar::tab:bottom:first
{
}

QTabBar::tab:top:last, QTabBar::tab:bottom:last,
QTabBar::tab:top:only-one, QTabBar::tab:bottom:only-one 
{
}

QTabBar::tab:left:!selected {
    margin-right: 3px;
    color: #919191;
}

QTabBar::tab:right:!selected {
    margin-left: 3px;
    color: #919191;
    border: 0px;
}

QTabBar::tab:left, QTabBar::tab:right {
    min-height: 15ex;
    margin-bottom: 0px;
    padding: 10px 5px 10px 5px;
}

QTabBar::tab:left:selected {
    border-right: 2px solid rgb-primary-0;
}

QTabBar::tab:right:selected {
    border-left: 2px solid rgb-primary-0;
    border-top: 2px solid rgb-primary-0;
    border-bottom: 2px solid rgb-primary-0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding-top: 8px;
}

QTabBar::tab:left:last, QTabBar::tab:right:last,
QTabBar::tab:left:only-one, QTabBar::tab:right:only-one 
{
    margin-bottom: -1;
} 

SVTabWidget::pane {
    border: 0px solid QTabWidgetPane_border_color;
}

SVTabWidget QTabBar::tab:top:!selected 
{
    margin-top: 2px;
}

SVTabWidget QTabBar::tab:bottom:!selected 
{
    margin-bottom: 2px;
}

SVTabWidget QTabBar::tab:top, SVTabWidget QTabBar::tab:bottom 
{
    min-width: 60px;
    margin-right: -1px;
    /* padding: 4px 8px 4px 8px; */
}

SVTabWidget QTabBar::tab:left, SVTabWidget QTabBar::tab:right 
{
    min-height: 30ex;
    margin-bottom: 0px;
    /* padding: 8px 4px 8px 4px; */
}

/* ----------------------------------------------------------------------------
* QLabel Section
* ----------------------------------------------------------------------------*/
QLabel
{   
    color: rgb-complement-5;
    font-family: "Lato-Bold";
    font-size: Font_Size_Small;
}

QLabel#filterHumanLabel
{
    font-family: "Lato-Bold";
    font-size: Font_Size_Very_Large; 
    color: rgb-complement-5;
}

QLabel#filterIndex
{
    font-family: "Lato-Bold";
    font-size: Font_Size_Very_Large;
    color: rgb-complement-5;
}

QLabel#filterCountLabel
{
    /* background-color: #daf103; */
}

SVSmallLabel
{
    font-size: Font_Size_Very_Small;
    /* font-weight: bold; */
    font-style: italic;
    /* color: #b1b1b1; */
    /* border: 1px solid #b1b1b1;
    border-radius: 5px;
    background-color: QLineEdit_background_color;
    
    padding-left: 0px;
    padding-right: 4px;
    padding-top: 2px;*/
    padding-bottom: 6px; 
 
}

DataPathLabel {
    font-family: "Lato-Bold";
    font-weight: bold;
    font-size: Font_Size_Small;
    /*background-color: DataPathLabel_color;*/
    border-radius: 4px;
}
DataPathLabel:disabled {
    color: DataPathLabel_Disabled_color;
}
DataPathLabel:enabled[DataTypei="0"] {
    color: DataArrayPath_DataContainer_color;
}
DataPathLabel:enabled[DataTypei="1"] {
    color: DataArrayPath_AttributeMatrix_color;
}
DataPathLabel:enabled[DataTypei="2"] {
    color: DataArrayPath_DataArray_color;
}

/* ----------------------------------------------------------------------------
* QTextEdit Section
* ----------------------------------------------------------------------------*/
QTextEdit
{
    background-color: QLineEdit_background_color;
    color: QLineEdit_color;
}

QTextEdit:focus
{
    /* border: 1px solid rgb-primary-0;
    background-color: #3F3F3F; */
}

QTextEdit:disabled
{
    color: QLineEdit_color;
    background-color: QLineEditDisabled_background_color;
}

QPlainTextEdit
{

}


/* ----------------------------------------------------------------------------
* QLineEdit Section
* ----------------------------------------------------------------------------*/
QLineEdit,
SVLineEdit,
QtSLineEdit
{
    background-color: rgb-primary-0;
    padding: 1px;
    border: 1px solid rgb-primary-3;
    border-radius: 5;
    outline: none;
    min-height: 24;
    font-family: "Lato";
    color: QLineEdit_color;
}

QLineEdit:disabled,
SVLineEdit:disabled,
QtSLineEdit:disabled
{
    color: rgb-primary-0;
    background-color: QLineEditDisabled_background_color;
    padding: 1px;
    border: 1px solid QLineEditDisabled_background_color;
}

QLineEdit:focus,
SVLineEdit:focus,
QtSLineEdit:focus
{
    background-color: rgb-primary-1;
}

QtSLineEdit#filterSearch,
QtSLineEdit#dataStructureSearch
{
    border: 0px;
    border-radius: 0;
    color: rgb-complement-5;
    padding: 0px;
}

LinkedPathCreationWidget[DataTypei="0"] QLineEdit {
    color: DataArrayPath_DataContainer_color;
}
LinkedPathCreationWidget[DataTypei="1"] QLineEdit {
    color: DataArrayPath_AttributeMatrix_color;
}
LinkedPathCreationWidget[DataTypei="2"] QLineEdit {
    color: DataArrayPath_DataArray_color;
}
LinkedPathCreationWidget.disabled QLineEdit {
    color: DataPathLabel_Disabled_color;
}

/* ----------------------------------------------------------------------------
* QSpinBox Section
* ----------------------------------------------------------------------------*/
QAbstractSpinBox
{
    font-family: "Lato";
    color: #c9c8c7;
    border: 1px solid rgb-primary-3;
    background-color: rgb-primary-0;
    selection-color: white;
    selection-background-color: rgb-complement-0; 
}

QAbstractSpinBox:focus
{
    border: 1px solid rgb-primary-3;
    background-color: rgb-primary-1;
    color: rgb-complement-0;
}

QAbstractSpinBox:disabled
{
    color: disabled_text_color;
    background-color: QLineEditDisabled_background_color;
    border-color: #7f7d79;
}

QAbstractSpinBox:up-button 
{
    background-color: rgb-complement-0;
    /* subcontrol-origin: border; */
    subcontrol-position: top right;
    border-top-right-radius: 0px;
    height: 13px;
    width: 20px;
    image: url(:/widgets/up_arrow_light.png);
    top: -2px;
}

QAbstractSpinBox:up-button:pressed,
QAbstractSpinBox:down-button:pressed
{
    background-color: rgb-complement-6;
}

QAbstractSpinBox:down-button 
{
    background-color: rgb-complement-0;
    /* subcontrol-origin: border;
    subcontrol-position: bottom right; */
    border-bottom-right-radius: 0px;
    height: 13px;
    width: 20px;
    image: url(:/widgets/down_arrow_light.png);
    bottom: -2px; /* fix symetry between up and down images */
}

QAbstractSpinBox:up-button:disabled,
QAbstractSpinBox:down-button:disabled 
{
    background-color: transparent;
}

QAbstractSpinBox::up-button:hover 
{
    image: url(:/widgets/up_arrow_dark.png);
}

QAbstractSpinBox::up-button:off 
{
    image: url(:/widgets/up_arrow_disabled_dark.png);
}
/* 
QAbstractSpinBox::up-button:disabled {
    image: none;
} */

QAbstractSpinBox::down-button:hover 
{
    image: url(:/widgets/down_arrow_dark.png);
}

QAbstractSpinBox::down-button:off 
{
    image: url(:/widgets/down_arrow_disabled_dark.png);
}
/* 
QAbstractSpinBox::down-button:disabled 
{
    image: none;
} */

/* ----------------------------------------------------------------------------
* QToolBar Section
* ----------------------------------------------------------------------------*/
QToolBar 
{
    font-family: "Lato";
    spacing: 3px; /* spacing between items in the tool bar */
    min-height: 40px;
    /* background-color: #f0f8fd;
    border-bottom: 1px solid #407795; */
}

/* does not look good
QToolButton:hover {
  color: #FFFFFF;
  background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #68b6e1, stop:1 #3b7ea4);
} */

/* ----------------------------------------------------------------------------
* QTreeView Section
* ----------------------------------------------------------------------------*/
QTreeView 
{
    font-family: "Lato";
    show-decoration-selected: 1;
    font-size: Font_Size_Medium;
    background-color: QTreeView_background_color;
    border-style: none;
    outline: none; /* removes the "focus rect" */
    alternate-background-color: QTreeView_background_color;
    color: QTreeViewItem_color;
}
QTreeView::item 
{
    padding-bottom: 0px;
    padding-top: 0px;
    border-top-color: transparent;
    border-bottom-color: transparent;
    background: QTreeViewItem_background_color;
    border-style: none;
    color: QTreeViewItem_color;
}
QTreeView::item:hover 
{
    color: QTreeViewItemHover_color;
    background: QTreeViewItemHover_background_color;
    border: 0px;
}
QTreeView::item:selected:active
{
    color: QTreeViewItemSelectedActive_color;
    background:  QTreeViewItemSelectedActive_background_color;
}
QTreeView::item:selected:!active 
{
    color: QTreeViewItemSelectedNotActive_color;
    background:  QTreeViewItemSelectedNotActive_background_color;
}
QTreeView::branch
{
    background: QTreeViewBranch_background_color;
}
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings 
{
    border-image: none;
    image: url(:/widgets/collapsed-normal.png);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings  
{
    border-image: none;
    image: url(:/widgets/expanded-normal.png);
}
QTreeView::branch:hover 
{
   background: QTreeViewBranchHover_background_color;
   color: QTreeViewBranchHover_color;
    border: 0px;
}
QTreeView::branch:selected:active
{
    background:  QTreeViewBranchSelectedActive_background_color;
    border: 0px;
    border-style: none;
}
QTreeView::branch:selected:!active 
{
    background: QTreeViewBranchSelectedNotActive_background_color;
    border: 0px;
    border-style: none;
}



/* ----------------------------------------------------------------------------
* QScrollBar Section
* ----------------------------------------------------------------------------*/
QScrollBar:horizontal 
{
    border: 1px solid #222222;
    background: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
    height: 9px;
    margin: 0px 16px 0 16px;
}
QScrollBar::handle:horizontal 
{
    background: #676767;
    min-height: 20px;
    border-radius: 2px;
}
QScrollBar::add-line:horizontal 
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: #676767;
    width: 14px;
    subcontrol-position: right;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal 
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: #676767;
    width: 14px;
    subcontrol-position: left;
    subcontrol-origin: margin;
}

QScrollBar:left-arrow:horizontal, 
QScrollBar::right-arrow:horizontal 
{
    border: 1px solid #000000;
    width: 1px;
    height: 1px;
    background: white;
}

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

QScrollBar:vertical 
{
    background: QLinearGradient( x1: 0, y1: 0, x2: 1, y2: 0, stop: 0.0 #121212, stop: 0.2 #282828, stop: 1 #484848);
    width: 9px;
    margin: 16px 0 16px 0;
    border: 1px solid #222222;
}
QScrollBar::handle:vertical 
{
    background: #676767;
    min-height: 20px;
    border-radius: 2px;
}
QScrollBar::add-line:vertical 
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: #676767;
    height: 14px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical 
{
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: #676767;
    height: 14px;
    subcontrol-position: top;
    subcontrol-origin: margin;
}

QScrollBar::up-arrow:vertical, 
QScrollBar::down-arrow:vertical
{
      border: 1px solid #000000;
      width: 1px;
      height: 1px;
      background: white;
}

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

/* ****************************************************************************
*
******************************************************************************/
QwtPlot
{
    background-color: rgb-primary-0;
    border: 1px solid #6b6b6b;
    border-radius: 5px;
}

QwtPlotCanvas
{
    background-color: rgb-primary-0;
}

QwtPlotGLCanvas
{
    border: 1px solid white;
    background-color: #616d7e;
}

QwtScaleWidget
{
    color: white;
}

QwtTextLabel#QwtPlotTitle
{
    color: white;
    padding: 0px;
    margin: 0px;
}

QwtTextLabel#QwtPlotFooter
{
    color: white;
}

QwtLegend
{
    border: 1px solid white;
    border-radius: 0px;
    padding: 2px;
    background: #616d7e;
}

QwtLegendLabel
{
    color: white;
}

/* ----------------------------------------------------------------------------
* StatsGenerator widgets Special Overrides for Dark themes
* ----------------------------------------------------------------------------*/
StatsGenFeatureSizeWidget
{
    font-family: "Lato";
    background-color: #000000;
}

/* ----------------------------------------------------------------------------
* QTabView Section for the StatsGenerator Tabs
* ----------------------------------------------------------------------------*/
QTabWidget#statsGenPhaseTabWidget::pane 
{
    border: 1px 0px 0px 0px;
    border-top: 1px solid QTabBarTabSelected_color;
    background: QTabWidgetPane_background_color;
    /* position: absolute; */
    top: 0.5em;
}

QTabWidget#statsGenPhaseTabWidget > QTabBar::tab
{
    font-family: "Lato";
    font-size: Font_Size_Small;
    font-weight: bold;
    padding: 2px 2px 2px 2px;
    min-width: 65px;
    min-height: 1.5em;
    margin-right: -1px;
}

QTabWidget#statsGenPhaseTabWidget::tab-bar
{
    /* border: 1px;
    color: QTabBarTabSelected_color;
    min-width: 10px; */
    alignment: center;
}

QTabWidget#statsGenPhaseTabWidget > QTabBar::tab:selected 
{
    border: 1px solid QTabBarTabSelected_color;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    background-color: rgb-primary-2;
    margin: 0px;
}

QTabWidget#statsGenPhaseTabWidget > QTabBar::tab:!selected 
{
    color: white;
    border: 1px solid QTabBarTabSelected_color;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    background-color: rgb-primary-1;
    margin: 0px;
}

QTabWidget#statsGenPhaseTabWidget > QTabBar::tab:!selected:hover 
{
    border: 1px solid QTabBarTabSelected_color;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    background-color: rgb-primary-2;
    color: white;
}

QTabWidget#statsGenPhaseTabWidget > QTabBar::tab:first,
QTabWidget#statsGenPhaseTabWidget > QTabBar::tab:first:!selected:hover
{
    /* margin-right: -5; */
    border: 1px solid QTabBarTabSelected_color;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

QTabWidget#statsGenPhaseTabWidget > QTabBar::tab:last,
QTabWidget#statsGenPhaseTabWidget > QTabBar::tab:last:!selected:hover 
{
    /* margin-right: -5; */
    border-right: 1px solid QTabBarTabSelected_color;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-right: 1px;
}

DataStructureWidget
{
    qproperty-ImageGeomIcon: url(":SIMPL/icons/images-light/ImageGeometry@2x.png");
    qproperty-VertexGeomIcon: url(":SIMPL/icons/images-light/VertexGeometry.png");
    qproperty-EdgeGeomIcon: url(":SIMPL/icons/images-light/EdgeGeometry@2x.png");
    qproperty-TriangleGeomIcon: url(":SIMPL/icons/images-light/TriangleGeometry@2x.png");
    qproperty-QuadGeomIcon: url(":SIMPL/icons/images-light/QuadGeometry@2x.png");
    qproperty-TetrahedralGeomIcon: url(":SIMPL/icons/images-light/TetrahedralGeometry@2x.png");
    qproperty-HexahedralGeomIcon: url(":SIMPL/icons/images-light/HexahedralGeometry@2x.png");
    qproperty-RectilinearGeomIcon: url(":SIMPL/icons/images-light/RectilinearGeometry@2x.png");
}

AbstractIOFileWidget,
EbsdMontageImportWidget
{
    qproperty-Icon: url(":SIMPL/icons/images-light/caret-bottom.png");
}
