/*  ------------------------------------------------------------------------  */
/* Qt高级样式表
/* 小星星
/*  ------------------------------------------------------------------------  */

*{
  color: #ffffff;
  font-family: Roboto;
  line-height: 12px;
  font-size: 12px;
  selection-background-color: #6effe8;
  selection-color: #000000;
}

*:focus {
   outline: none;
}

/*  ------------------------------------------------------------------------  */
/*  Custom colors  */

.danger{
  color: #dc3545;
}

.warning{
  color: #ffc107;
}

.success{
  color: #17a2b8;
}

/*  ------------------------------------------------------------------------  */
/*  Basic widgets  */

QWidget {
  background-color: #31363b;
}

QFrame {
  background-color: #31363b;
  border: 1px solid #232629;
  border-radius: 4px;
}

QSplitter {
  background-color: transparent;
  border: none
}

QStatusBar {
  color: #ffffff;
  background-color: #334f5b62;
  border-radius: 0px;
}

QScrollArea,
QStackedWidget,
QWidget > QToolBox,
QToolBox > QWidget,
QTabWidget > QWidget {
  border: none;
}

QTabWidget::pane {
  border: none;
}

/*  ------------------------------------------------------------------------  */
/*  Inputs  */

QDateTimeEdit,
QSpinBox,
QDoubleSpinBox,
QTextEdit,
QLineEdit,
QPushButton {
  color: #1de9b6;
  background-color: #31363b;
  border: 2px solid #1de9b6;
  border-radius: 4px;
  padding: 8px 16px ;
  height: 18px;
}

QDateTimeEdit,
QSpinBox,
QDoubleSpinBox,
QTreeView,
QListView,
QLineEdit,
QComboBox {
  padding-left: 15px;
  border-radius: 0px;
  background-color: #232629;
  border-width: 0 0 2px 0;
  border-radius: 0px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

QPlainTextEdit {
  border-radius: 4px;
  padding: 8px 16px;
  background-color: #31363b;
  border: 1px solid #232629;
}

QDateTimeEdit:disabled,
QSpinBox:disabled,
QDoubleSpinBox:disabled,
QTextEdit:disabled,
QLineEdit:disabled {
  color: #331de9b6;
  background-color: #bf232629;
  border: 2px solid #331de9b6;
  border-width: 0 0 2px 0;
  padding: 8px 16px ;
  border-radius: 0px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

QTextEdit {
  padding: 8px;
  border-radius: 4px;
  background-color: #232629;
}

QDateTimeEdit:disabled,
QSpinBox:disabled,
QDoubleSpinBox:disabled,
QTextEdit:disabled,
QLineEdit:disabled {
  color: #331de9b6;
  background-color: #bf232629;
  border: 2px solid #331de9b6;
  border-width: 0 0 2px 0;
}

/*  ------------------------------------------------------------------------  */
/*  QComboBox  */

QComboBox {
  color: #1de9b6;
  border: 1px solid #1de9b6;
  border-width: 0 0 2px 0;
  background-color: #232629;
  border-radius: 0px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: 36px;
}

QComboBox:disabled {
  color: #331de9b6;
  background-color: #bf232629;
  border-bottom: 2px solid #331de9b6;
}

QComboBox::drop-down {
  border: none;
  color: #1de9b6;
  width: 20px;
}

QComboBox::down-arrow {
  image: url(config/style/dark_green/primary/downarrow.svg);
  margin-right: 10px;
}

QComboBox::down-arrow:disabled {
  image: url(config/style/dark_green/disabled/downarrow.svg);
  margin-right: 10px;
}

QComboBox QAbstractItemView {
  background-color: #232629;
  border: 2px solid #4f5b62;
  border-radius: 4px;
}

QComboBox[frame='false'] {
  color: #1de9b6;
  background-color: transparent;
  border: 1px solid transparent;
}
QComboBox[frame='false']:disabled {
  color: #331de9b6;
}

/*  ------------------------------------------------------------------------  */
/*  Spin buttons  */

QDateTimeEdit::up-button,
QDoubleSpinBox::up-button,
QSpinBox::up-button {
  subcontrol-origin: border;
  subcontrol-position: top right;
  width: 20px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */
  image: url(config/style/dark_green/primary/uparrow.svg);
  border-width: 0px;
  margin-right: 5px;
}

QDateTimeEdit::up-button:disabled,
QDoubleSpinBox::up-button:disabled,
QSpinBox::up-button:disabled {
  image: url(config/style/dark_green/disabled/uparrow.svg);
}

QDateTimeEdit::down-button,
QDoubleSpinBox::down-button,
QSpinBox::down-button {
  subcontrol-origin: border;
  subcontrol-position: bottom right;
  width: 20px;
  image: url(config/style/dark_green/primary/downarrow.svg);
  border-width: 0px;
  border-top-width: 0;
  margin-right: 5px;
}

QDateTimeEdit::down-button:disabled,
QDoubleSpinBox::down-button:disabled,
QSpinBox::down-button:disabled {
  image: url(config/style/dark_green/disabled/downarrow.svg);
}

/*  ------------------------------------------------------------------------  */
/*  QPushButton  */

QPushButton {
  /* text-transform: uppercase; */
  margin: 0px;
  padding: 0px 16px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  font-weight: bold;
}

QPushButton:checked,
QPushButton:pressed {
  color: #31363b;
  background-color: #1de9b6;
}

QPushButton:flat {
  padding: 5px;
  margin: 0px;
  color: #1de9b6;
  border: none;
  background-color: transparent;
}

QPushButton:flat:hover {
  background-color: #331de9b6;
}

QPushButton:flat:pressed,
QPushButton:flat:checked {
  background-color: #191de9b6;
}

QPushButton:disabled,
QPushButton:flat:disabled {
  color: #bf4f5b62;
  background-color: transparent;
  border-color:  #232629;
}

QPushButton:disabled {
  border: 2px solid #bf4f5b62;
}

QPushButton:checked:disabled {
  color: #232629;
  background-color: #4f5b62;
  border-color:  #4f5b62;
}

/*  ------------------------------------------------------------------------  */
/*  QTabBar  */

QTabBar{
  /* text-transform: uppercase; */
  font-weight: bold;
}

QTabBar::tab {
  color: #ffffff;
  border: 0px;
}

QTabBar::tab:bottom,
QTabBar::tab:top{
  padding: 0 15px;
  height: 30px;
}

QTabBar::tab:left,
QTabBar::tab:right{
  padding: 15px 0;
  width: 30px;
}

QTabBar::tab:top:selected,
QTabBar::tab:top:hover {
  color: #1de9b6;
  border-bottom: 2px solid #1de9b6;
}

QTabBar::tab:bottom:selected,
QTabBar::tab:bottom:hover {
  color: #1de9b6;
  border-top: 2px solid #1de9b6;
}

QTabBar::tab:right:selected,
QTabBar::tab:right:hover {
  color: #1de9b6;
  border-left: 2px solid #1de9b6;
}

QTabBar::tab:left:selected,
QTabBar::tab:left:hover {
  color: #1de9b6;
  border-right: 2px solid #1de9b6;
}

QTabBar QToolButton:hover,
QTabBar QToolButton {
  border: 20px;
  background-color: #31363b;
}

QTabBar QToolButton::up-arrow {
  image: url(config/style/dark_green/disabled/uparrow2.svg);
}

QTabBar QToolButton::up-arrow:hover {
  image: url(config/style/dark_green/primary/uparrow2.svg);
}

QTabBar QToolButton::down-arrow {
  image: url(config/style/dark_green/disabled/downarrow2.svg);
}

QTabBar QToolButton::down-arrow:hover {
  image: url(config/style/dark_green/primary/downarrow2.svg);
}

QTabBar QToolButton::right-arrow {
  image: url(config/style/dark_green/primary/rightarrow2.svg);
}

QTabBar QToolButton::right-arrow:hover {
  image: url(config/style/dark_green/disabled/rightarrow2.svg);
}

QTabBar QToolButton::left-arrow {
  image: url(config/style/dark_green/primary/leftarrow2.svg);
}

QTabBar QToolButton::left-arrow:hover {
  image: url(config/style/dark_green/disabled/leftarrow2.svg);
}

QTabBar::close-button {
  image: url(config/style/dark_green/disabled/tab_close.svg);
}

QTabBar::close-button:hover {
  image: url(config/style/dark_green/primary/tab_close.svg);
}

/*  ------------------------------------------------------------------------  */
/*  QGroupBox  */

QGroupBox {
  background-color: #232629;
  border-radius: 4px;
  padding: 15px;
  padding-top: 30px;
  line-height: 13px;
  /* text-transform: uppercase; */
}

QGroupBox::title {
  color: #66ffffff;
  subcontrol-origin: margin;
  subcontrol-position: top left;
  padding: 0 15px;
  margin-top: 10px;
  background-color: #31363b;
  background-color: transparent;
  height: 20px;
}

/*  ------------------------------------------------------------------------  */
/*  QRadioButton and QCheckBox labels  */

QRadioButton,
QCheckBox {
  spacing: 10px;
  color: #ffffff;
  line-height: 14px;
  height: 30px;
  background-color: transparent;
  spacing: 5px;
}

QRadioButton:disabled,
QCheckBox:disabled {
  color: #4cffffff;
}

/*  ------------------------------------------------------------------------  */
/*  General Indicators  */

QGroupBox::indicator {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

QMenu::indicator,
QListView::indicator,
QTableWidget::indicator,
QRadioButton::indicator,
QCheckBox::indicator {
  width: 24px;
  height: 24px;
  border-radius: 4px;
 }

/*  ------------------------------------------------------------------------  */
/*  QListView Indicator  */

QListView::indicator:checked,
QListView::indicator:checked:selected,
QListView::indicator:checked:focus {
  image: url(config/style/dark_green/primary/checklist.svg);
}

QListView::indicator:checked:selected:active {
  image: url(config/style/dark_green/primary/checklist_invert.svg);
}

QListView::indicator:checked:disabled {
  image: url(config/style/dark_green/disabled/checklist.svg);
}

QListView::indicator:indeterminate,
QListView::indicator:indeterminate:selected,
QListView::indicator:indeterminate:focus {
  image: url(config/style/dark_green/primary/checklist_indeterminate.svg);
}

QListView::indicator:indeterminate:selected:active {
  image: url(config/style/dark_green/primary/checklist_indeterminate_invert.svg);
}

QListView::indicator:indeterminate:disabled {
  image: url(config/style/dark_green/disabled/checklist_indeterminate.svg);
}

/*  ------------------------------------------------------------------------  */
/*  QTableView Indicator  */

QTableView::indicator:enabled:checked,
QTableView::indicator:enabled:checked:selected,
QTableView::indicator:enabled:checked:focus {
  image: url(config/style/dark_green/primary/checkbox_checked.svg);
}

QTableView::indicator:checked:selected:active {
  image: url(config/style/dark_green/primary/checkbox_checked_invert.svg);
}

QTableView::indicator:disabled:checked,
QTableView::indicator:disabled:checked:selected,
QTableView::indicator:disabled:checked:focus {
  image: url(config/style/dark_green/disabled/checkbox_checked.svg);
}

QTableView::indicator:enabled:unchecked,
QTableView::indicator:enabled:unchecked:selected,
QTableView::indicator:enabled:unchecked:focus {
  image: url(config/style/dark_green/primary/checkbox_unchecked.svg);
}

QTableView::indicator:unchecked:selected:active {
  image: url(config/style/dark_green/primary/checkbox_unchecked_invert.svg);
}

QTableView::indicator:disabled:unchecked,
QTableView::indicator:disabled:unchecked:selected,
QTableView::indicator:disabled:unchecked:focus {
  image: url(config/style/dark_green/disabled/checkbox_unchecked.svg);
}

QTableView::indicator:enabled:indeterminate,
QTableView::indicator:enabled:indeterminate:selected,
QTableView::indicator:enabled:indeterminate:focus {
  image: url(config/style/dark_green/primary/checkbox_indeterminate.svg);
}

QTableView::indicator:indeterminate:selected:active {
  image: url(config/style/dark_green/primary/checkbox_indeterminate_invert.svg);
}

QTableView::indicator:disabled:indeterminate,
QTableView::indicator:disabled:indeterminate:selected,
QTableView::indicator:disabled:indeterminate:focus {
  image: url(config/style/dark_green/disabled/checkbox_indeterminate.svg);
}

/*  ------------------------------------------------------------------------  */
/*  QCheckBox and QGroupBox Indicator  */

QCheckBox::indicator:checked,
QGroupBox::indicator:checked {
  image: url(config/style/dark_green/primary/checkbox_checked.svg);
}

QCheckBox::indicator:unchecked,
QGroupBox::indicator:unchecked {
  image: url(config/style/dark_green/primary/checkbox_unchecked.svg);
}

QCheckBox::indicator:indeterminate,
QGroupBox::indicator:indeterminate {
  image: url(config/style/dark_green/primary/checkbox_indeterminate.svg);
}

QCheckBox::indicator:checked:disabled,
QGroupBox::indicator:checked:disabled {
  image: url(config/style/dark_green/disabled/checkbox_checked.svg);
}

QCheckBox::indicator:unchecked:disabled,
QGroupBox::indicator:unchecked:disabled {
  image: url(config/style/dark_green/disabled/checkbox_unchecked.svg);
}

QCheckBox::indicator:indeterminate:disabled,
QGroupBox::indicator:indeterminate:disabled {
  image: url(config/style/dark_green/disabled/checkbox_indeterminate.svg);
}

/*  ------------------------------------------------------------------------  */
/*  QRadioButton Indicator  */

QRadioButton::indicator:checked {
  image: url(config/style/dark_green/primary/radiobutton_checked.svg);
}

QRadioButton::indicator:unchecked {
  image: url(config/style/dark_green/primary/radiobutton_unchecked.svg);
}

QRadioButton::indicator:checked:disabled {
  image: url(config/style/dark_green/disabled/radiobutton_checked.svg);
}

QRadioButton::indicator:unchecked:disabled {
  image: url(config/style/dark_green/disabled/radiobutton_unchecked.svg);
}

/*  ------------------------------------------------------------------------  */
/*  QDockWidget  */

QDockWidget {
  color: #ffffff;
  /* text-transform: uppercase; */
  border: 2px solid #232629;
  titlebar-close-icon: url(config/style/dark_green/primary/close.svg);
  titlebar-normal-icon: url(config/style/dark_green/primary/float.svg);
  border-radius: 4px;
}

QDockWidget::title {
  text-align: left;
  padding-left: 35px;
  padding: 3px;
  margin-top: 4px;
}

/*  ------------------------------------------------------------------------  */
/*  QComboBox indicator  */

QComboBox::indicator:checked {
  image: url(config/style/dark_green/primary/checklist.svg);
}

QComboBox::indicator:checked:selected {
  image: url(config/style/dark_green/primary/checklist_invert.svg);
}

/*  ------------------------------------------------------------------------  */
/*  Menu Items  */

QComboBox::item,
QCalendarWidget QMenu::item,
QMenu::item {
  height: 26px;
  border: 8px solid transparent;
  color: #ffffff;
}

QCalendarWidget QMenu::item,
QMenu::item {
  padding: 0px 25px 0px 20px;
}

QComboBox::item:selected,
QCalendarWidget QMenu::item:selected,
QMenu::item:selected {
  color: #000000;
  background-color: #6effe8;
  border-radius: 4px;
}

QComboBox::item:disabled,
QCalendarWidget QMenu::item:disabled,
QMenu::item:disabled {
  color: #4cffffff;
}

/*  ------------------------------------------------------------------------  */
/*  QMenu  */

QCalendarWidget QMenu,
QMenu {
  background-color: #232629;
  border: 2px solid #4f5b62;
  border-radius: 4px;
  margin-top: 3px;
}

QMenu::separator {
  height: 2px;
  background-color: #4f5b62;
  margin-left: 2px;
  margin-right: 2px;
}

QMenu::right-arrow{
  image: url(config/style/dark_green/primary/rightarrow.svg);
  width: 15px;
  height: 15px;
}

QMenu::right-arrow:selected{
  image: url(config/style/dark_green/disabled/rightarrow.svg);
}

QMenu::indicator:non-exclusive:unchecked {
  image: url(config/style/dark_green/primary/checkbox_unchecked.svg);
}

QMenu::indicator:non-exclusive:unchecked:selected {
  image: url(config/style/dark_green/primary/checkbox_unchecked_invert.svg);
}

QMenu::indicator:non-exclusive:checked {
  image: url(config/style/dark_green/primary/checkbox_checked.svg);
}

QMenu::indicator:non-exclusive:checked:selected {
  image: url(config/style/dark_green/primary/checkbox_checked_invert.svg);
}

QMenu::indicator:exclusive:unchecked {
  image: url(config/style/dark_green/primary/radiobutton_unchecked.svg);
}

QMenu::indicator:exclusive:unchecked:selected {
  image: url(config/style/dark_green/primary/radiobutton_unchecked_invert.svg);
}

QMenu::indicator:exclusive:checked {
  image: url(config/style/dark_green/primary/radiobutton_checked.svg);
}

QMenu::indicator:exclusive:checked:selected {
  image: url(config/style/dark_green/primary/radiobutton_checked_invert.svg);
}

/*  ------------------------------------------------------------------------  */
/*  QMenuBar  */

QMenuBar {
  background-color: #232629;
  color: #ffffff;
}

QMenuBar::item {
  height: 30px;
  padding: 8px;
  background-color: transparent;
  color: #ffffff;
}

QMenuBar::item:selected,
QMenuBar::item:pressed {
  color: #000000;
  background-color: #6effe8;
}

/*  ------------------------------------------------------------------------  */
/*  QToolBox  */

QToolBox::tab {
  background-color: #232629;
  color: #ffffff;
  /* text-transform: uppercase; */
  border-radius: 4px;
}

QToolBox::tab:selected,
QToolBox::tab:hover {
  background-color: #331de9b6;
}

/*  ------------------------------------------------------------------------  */
/*  QProgressBar  */

QProgressBar {
  border-radius: 0;
  background-color: #4f5b62;
  text-align: center;
  color: transparent;
}

QProgressBar::chunk {
  background-color: #1de9b6;
}

/*  ------------------------------------------------------------------------  */
/*  QScrollBar  */

QScrollBar:horizontal {
  border: 0;
  background: #232629;
  height: 8px;
}

QScrollBar:vertical {
  border: 0;
  background: #232629;
  width: 8px;
}

QScrollBar::handle:horizontal {
  background: #4f5b62;
  min-width: 20px;
}

QScrollBar::handle:vertical {
  background: #4f5b62;
  min-height: 20px;
}

QScrollBar::handle:vertical:hover,
QScrollBar::handle:horizontal:hover {
  background: #1de9b6;
}

QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical,
QScrollBar::add-line:horizontal,
QScrollBar::sub-line:horizontal {
  border: 0;
  background: transparent;
  width: 0px;
  height: 0px;
}

/*  ------------------------------------------------------------------------  */
/*  QSlider  */

QSlider:horizontal {
  min-height: 20px;
  max-height: 20px;
}

QSlider:vertical {
  min-width: 20px;
  max-width: 20px;
}

QSlider::groove:horizontal {
  height: 4px;
  background: #393939;
  margin: 0 10px;
}

QSlider::groove:vertical {
  width: 4px;
  background: #393939;
  margin: 10px 0;
  border-radius: 20px;
}

QSlider::handle:horizontal {
  image: url(config/style/dark_green/primary/slider.svg);
  width: 20px;
  height: 20px;
  margin: -20px -10px;
}

QSlider::handle:vertical {
  image: url(config/style/dark_green/primary/slider.svg);
  border-radius: 20px;
  width: 20px;
  height: 20px;
  margin: -10px -20px;
}

QSlider::add-page {
background: #232629;
}

QSlider::sub-page {
background: #1de9b6;
}

/*  ------------------------------------------------------------------------  */
/*  QLabel  */

QLabel {
  border: none;
  background: transparent;
  color: #ffffff
}

QLabel:disabled {
  color: #33ffffff
}

/*  ------------------------------------------------------------------------  */
/*  VLines and HLinex  */

QFrame[frameShape="4"] {
    border-width: 1px 0 0 0;
    background: none;
}

QFrame[frameShape="5"] {
    border-width: 0 1px 0 0;
    background: none;
}

QFrame[frameShape="4"],
QFrame[frameShape="5"] {
  border-color: #4f5b62;
}

/*  ------------------------------------------------------------------------  */
/*  QToolBar  */

QToolBar {
  background: #31363b;
  border: 0px solid;
}

QToolBar:horizontal {
  border-bottom: 1px solid #4f5b62;
}

QToolBar:vertical {
  border-right: 1px solid #4f5b62;
}

QToolBar::handle:horizontal {
  image: url(config/style/dark_green/primary/toolbar-handle-horizontal.svg);
}

QToolBar::handle:vertical {
  image: url(config/style/dark_green/primary/toolbar-handle-vertical.svg);
}

QToolBar::separator:horizontal {
  border-right: 1px solid #4f5b62;
  border-left: 1px solid #4f5b62;
  width: 1px;
}

QToolBar::separator:vertical {
  border-top: 1px solid #4f5b62;
  border-bottom: 1px solid #4f5b62;
  height: 1px;
}

/*  ------------------------------------------------------------------------  */
/*  QToolButton  */

QToolButton {
  background: #31363b;
  border: 0px;
  height: 40px;
  margin: 3px;
  padding: 3px;
  /* border-right: 10px solid #31363b;
  border-left: 10px solid #31363b; */
}

QToolButton:hover {
  background: #4f5b62;
  /* border-right: 10px solid #4f5b62;
  border-left: 10px solid #4f5b62; */
}

QToolButton:pressed {
  background: #232629;
  /* border-right: 10px solid #232629;
  border-left: 10px solid #232629; */
}

QToolButton:checked {
  background: #4f5b62;
  /* border-left: 10px solid #4f5b62;
  border-right: 10px solid #1de9b6; */
}

/*  ------------------------------------------------------------------------  */
/*  General viewers  */

QTableView {
  background-color: #31363b;
  border: 1px solid #232629;
  border-radius: 4px;
}

QTreeView,
QListView {
  border-radius: 4px;
  padding: 5px;
  margin: 0px;
}

QTableView::item,
QTreeView::item,
QListView::item {
  padding: 5px;
  min-height: 25px;
  color: #ffffff;
  selection-color: #ffffff; /* For Windows */
  border-color: transparent;  /* Fix #34 */
}

/*  ------------------------------------------------------------------------  */
/*  Items Selection */

QTableView:item:selected,
QTreeView::item:selected,
QListView::item:selected {
  background-color: #331de9b6;
  selection-background-color: #331de9b6;
  color: #ffffff;
  selection-color: #ffffff; /* For Windows */
}

QTableView:item:selected:focus,
QTreeView::item:selected:focus,
QListView::item:selected:focus {
  background-color: #1de9b6;
  selection-background-color: #1de9b6;
  color: #000000;
  selection-color: #000000; /* For Windows */
}

QTableView {
  selection-background-color: #331de9b6;
}

QTableView:focus {
  selection-background-color: #1de9b6;
}

QTableView::item:disabled {
  color: #4cffffff;
  selection-color: #4cffffff;
  background-color: #232629;
  selection-background-color: #232629;
}

/*  ------------------------------------------------------------------------  */
/*  QTreeView  */

QTreeView::branch{
  background-color: #232629;
}

QTreeView::branch:closed:has-children:has-siblings,
QTreeView::branch:closed:has-children:!has-siblings {
  image: url(config/style/dark_green/primary/branch-closed.svg);
}

QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings {
  image: url(config/style/dark_green/primary/branch-open.svg);
}

QTreeView::branch:has-siblings:!adjoins-item {
  border-image: url(config/style/dark_green/disabled/vline.svg) 0;
}

QTreeView::branch:has-siblings:adjoins-item {
    border-image: url(config/style/dark_green/disabled/branch-more.svg) 0;
}

QTreeView::branch:!has-children:!has-siblings:adjoins-item,
QTreeView::branch:has-children:!has-siblings:adjoins-item {
    border-image: url(config/style/dark_green/disabled/branch-end.svg) 0;
}

QTreeView QHeaderView::section {
  border: none;
}


/*  ------------------------------------------------------------------------  */
/*  Custom buttons  */

QPushButton.danger {
  border-color: #dc3545;
  color: #dc3545;
}

QPushButton.danger:checked,
QPushButton.danger:pressed {
  color: #31363b;
  background-color: #dc3545;
}

QPushButton.warning{
  border-color: #ffc107;
  color: #ffc107;
}

QPushButton.warning:checked,
QPushButton.warning:pressed {
  color: #31363b;
  background-color: #ffc107;
}

QPushButton.success {
  border-color: #17a2b8;
  color: #17a2b8;
}

QPushButton.success:checked,
QPushButton.success:pressed {
  color: #31363b;
  background-color: #17a2b8;
}

QPushButton.danger:flat:hover {
  background-color: #33dc3545;
}

QPushButton.danger:flat:pressed,
QPushButton.danger:flat:checked {
  background-color: #19dc3545;
  color: #dc3545;
}

QPushButton.warning:flat:hover {
  background-color: #33ffc107;
}

QPushButton.warning:flat:pressed,
QPushButton.warning:flat:checked {
  background-color: #19ffc107;
  color: #ffc107;
}

QPushButton.success:flat:hover {
  background-color: #3317a2b8;
}

QPushButton.success:flat:pressed,
QPushButton.success:flat:checked {
  background-color: #1917a2b8;
  color: #17a2b8;
}

/*  ------------------------------------------------------------------------  */
/*  QTableView  */

QTableCornerButton::section {
  background-color: #232629;
  border-radius: 0px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-color: #31363b;
}

QTableView {
  alternate-background-color: #b2232629;
}

QHeaderView {
  border: none;
}

QHeaderView::section {
  color: #b2ffffff;
  /* text-transform: uppercase; */
  background-color: #232629;
  padding: 0 20px;
  height: 35px;
  border-radius: 0px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-color: #31363b;
}



/*  ------------------------------------------------------------------------  */
/*  QLCDNumber  */

QLCDNumber {
  color: #1de9b6;
  background-color:#191de9b6;
  border: 1px solid #4c1de9b6;
  border-radius: 4px;
}

/*  ------------------------------------------------------------------------  */
/*  QCalendarWidget  */

#qt_calendar_prevmonth {
  qproperty-config/style/dark_green url(config/style/dark_green/primary/leftarrow.svg);
}

#qt_calendar_nextmonth {
  qproperty-config/style/dark_green url(config/style/dark_green/primary/rightarrow.svg);
}

/*  ------------------------------------------------------------------------  */
/*  Inline QLineEdit  */

QTreeView QLineEdit,
QTableView QLineEdit,
QListView QLineEdit {
  color: #ffffff;
  background-color: #232629;
  border: 1px solid unset;
  border-radius: unset;
  padding: unset;
  padding-left: unset;
  height: unset;
  border-width: unset;
  border-top-left-radius: unset;
  border-top-right-radius: unset;
}

/*  ------------------------------------------------------------------------  */
/*  QToolTip  */

QToolTip {
  padding: 5px;
  border: 1px solid #31363b;
  border-radius: 4px;
  color: #ffffff;
  background-color: #4f5b62;
}

/*  ------------------------------------------------------------------------  */
/*  QDialog  */

QDialog QToolButton,
QDialog QToolButton:hover,
QDialog QToolButton:pressed,
QDialog QToolButton:checked {
  background-color: unset;
  border: 0px;
  height: unset;
  margin: unset;
  padding: unset;
  border-right: unset;
  border-left: unset;
}

/*  ------------------------------------------------------------------------  */
/*  Grips  */


/* QMainWindow::separator:vertical, */
QSplitter::handle:horizontal {
  image: url(config/style/dark_green/primary/splitter-horizontal.svg);
}

/* QMainWindow::separator:horizontal, */
QSplitter::handle:vertical {
  image: url(config/style/dark_green/primary/splitter-vertical.svg);
}

QSizeGrip {
  image: url(config/style/dark_green/primary/sizegrip.svg);
  background-color: transparent;
  width: 16px;
  height: 16px;
}


/*------------------------------------------------------------------------------------*/
/*---------登录窗口----------*/

QWidget#LoginWidget, QWidget#LoginTitleWidget, QWidget#AccountWidget {
  background: transparent;
}

QCheckBox#LoginWidgetRoleRememberAccountButton, QCheckBox#LoginWidgetRoleRememberPasswordButton {
  font: 18px;
}

QLabel#LoginWidgetRoleLabel, QLabel#LoginWidgetAccountLabel, QLabel#LoginWidgetPasswordLabel {
  font: 18px;
}

QComboBox#LoginWidgetRoleComboBox {
  color: #1de9b6;
  border: 1px solid #1de9b6;
  border-width: 0 0 2px 0;
  background-color: rgba(35, 38, 41, 50);
  border-radius: 0px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: 36px;
  font: 16px;
}

QComboBox QAbstractItemView {
  /* outline: 1px solid gray; */
  color: white;
  border: 0px solid #1de9b6;
  border-width: 0 0 2px 0;
  border-radius: 0px;
  background-color: #3399A7;
  selection-background-color: green;
  selection-color: #1de9b6;
  font: 16px;
}


QPushButton#LoginButton, QPushButton#ReturnButton, QPushButton#SearchButton {
  color: white;
  background: transparent;
  border: 1px solid white;
}

QPushButton#LoginButton:hover, QPushButton#ReturnButton:hover, QPushButton#SearchButton:hover {
  color: white;
  background: #44D5EA;
}

QPushButton#LoginButton:pressed, QPushButton#ReturnButton:pressed, QPushButton#SearchButton:pressed {
  color: white;
  background: #30CA51;
}

QPushButton#CancelButton {
  color: white;
  background: transparent;
  border: 1px solid white;
}

QPushButton#CancelButton:hover {
  color: white;
  background: #DC6382;
  border: solid 1px white;
}

QPushButton#CancelButton:pressed {
  color: white;
  background: #D32853;
  border: solid 1px white;
}

QComboBox#LoginWidgetAccountComboBox {
  color: #1de9b6;
  border: 1px solid #1de9b6;
  border-width: 0 0 2px 0;
  background-color: rgba(35,38,41, 50);
  border-radius: 0px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  height: 36px;
  font: 14px;
}

QComboBox#LoginWidgetAccountComboBox:disabled {
  color: #331de9b6;
  background-color: #bf232629;
  border-bottom: 2px solid #331de9b6;
}

QComboBox#LoginWidgetAccountComboBox::drop-down {
  border: none;
  color: #1de9b6;
  width: 20px;
}

QComboBox#LoginWidgetAccountComboBox::down-arrow {
  image: url(config/style/dark_green/primary/downarrow.svg);
  margin-right: 10px;
}

QComboBox#LoginWidgetAccountComboBox::down-arrow:disabled {
  image: url(config/style/dark_green/disabled/downarrow.svg);
  margin-right: 10px;
}

QComboBox#LoginWidgetAccountComboBox QAbstractItemView {
  background-color: #232629;
  border: 2px solid #4f5b62;
  border-radius: 4px;
}

QComboBox#LoginWidgetAccountComboBox[frame='false'] {
  color: #1de9b6;
  background-color: transparent;
  border: 1px solid transparent;
}
QComboBox#LoginWidgetAccountComboBox[frame='false']:disabled {
  color: #331de9b6;
}

QLineEdit#LoginWidgetPasswordLineEdit {
  background-color: rgba(35,38,41, 50);
  font: 14px;
}

/*------------------------------------------------------------------------------------*/
/*---------标题栏右边附加窗口----------*/
QWidget#AdditionalWidget {
  background: transparent;
}

QToolButton#AdditionalWidgetToolButton {
  background: #31363b;
  border: 0px;
  /* height: 40px;
  margin: 3px;
  padding: 3px;
  border-right: 10px solid #31363b;
  border-left: 10px solid #31363b; */
}

QToolButton#AdditionalWidgetToolButton:hover {
  background: #4f5b62;
  /* border-right: 10px solid #4f5b62;
  border-left: 10px solid #4f5b62; */
}

QToolButton#AdditionalWidgetToolButton:pressed {
  background: #232629;
  /* border-right: 10px solid #232629;
  border-left: 10px solid #232629; */
}

QToolButton#AdditionalWidgetToolButton:checked {
  background: #4f5b62;
  /* border-left: 10px solid #4f5b62;
  border-right: 10px solid #1de9b6; */
}

QPushButton#AdditionalWidgetPushButton {
  border: none; 
  border-radius: 16px;
}

QPushButton#AdditionalWidgetPushButton:hover {
  background: #A1A8A2;
  
}

/*------------------------------------------------------------------------------------*/
/*---------摄像头相关----------*/
QWidget#CameraDisplay, QWidget#CameraDisplayTopWidget {
  border: 1px solid white;
  /* border-radius: 0px; */
}

/* QLabel#CameraDisplayIndexLabel {
  border: 0px solid yellow;
  border-left: 1px solid white;
  border-radius: 0px;
  background: #11AD86;
}

QLabel#CameraDisplayIndexLabel:hover {
  border: 0px solid yellow;
  border-left: 1px solid white;
  border-radius: 0px;
  color: #11AD86;
  background: #FEFEFE;
} */


QToolButton#CameraDisplayIndexButton {
  background: #11AD86;
  color:white;
  border-left: 0px solid white;
  border-right: 0px solid white;
  border-top: 0px solid white;
  border-bottom: 0px solid white;
  margin: 0px;
  padding: 0px;
}

QToolButton#CameraDisplayIndexButton:hover {
  background: #5D8D50;
  color: white;
}

QToolButton#CameraDisplayIndexButton:pressed {
  background: #145C75;
  color: #11AD86;
}

QLabel#CameraDisplayStateLabel {
  border: 0px solid yellow;
  border-right: 1px solid #A7A650;
  border-radius: 0px;
  background: #A7A650;
}

QLabel#CameraDisplayTitleLabel {
  border: 0px solid yellow;  
  border-radius: 0px;
  background: #145C75;
}

/*------------------------------------------------------------------------------------*/
/*---------MainWindow----------*/
QSplitter#MainWindowSplitter {
  background-color: transparent;
  border: none
}
QSplitter#MainWindowSplitter::handle:vertical {
  /* background-color: #9E9D9D; */
  height: 1px;
}

QPushButton#MainWindowMiddleButton {
  color: #1de9b6;
  background: transparent;
  border: none;
}

QPushButton#MainWindowMiddleButton:hover {
  color: white;
  background: transparent;
  border: none;
}

QPushButton#MainWindowMiddleButton:pressed {
  color: #A7A650;
  background: transparent;
  border: none;
}

/*------------------------------------------------------------------------------------*/
/*---------SidePanel----------*/
/* QToolButton {
  background: #31363b;
  border: 0px;
  height: 40px;
  margin: 3px;
  padding: 3px;
  border-right: 10px solid #31363b;
  border-left: 10px solid #31363b;
}

QToolButton:hover {
  background: #4f5b62;
  border-right: 10px solid #4f5b62;
  border-left: 10px solid #4f5b62;
}

QToolButton:pressed {
  background: #232629;
  border-right: 10px solid #232629;
  border-left: 10px solid #232629;
}

QToolButton:checked {
  background: #4f5b62;
  border-left: 10px solid #4f5b62;
  border-right: 10px solid #1de9b6;
} */

QToolButton#SidePanelSetupButton {
  background-color: #1DE9B6;
  font: 18px;
  color: black;
  padding-left: 50px;
  /* border-radius: 8px; */
  font-weight: bold;
}

QToolButton#SidePanelPauseButton {
  background-color: #6EFFE8;
  font: 18px;
  font-weight: bold;
  color: black;
  padding-left: 50px;
}

QToolButton#SidePanelWaitButton {
  background-color: #000000;
  font: 18px;
  font-weight: bold;
  color: white;
  padding-left: 50px;
}


QToolButton#SidePanelSetupButton::hover, QToolButton#SidePanelPauseButton::hover, QToolButton#SidePanelWaitButton::hover {
  background: #11AD86;
}

QToolButton#SidePanelSetupButton::pressed, QToolButton#SidePanelPauseButton::pressed, QToolButton#SidePanelWaitButton::pressed {
  background: #145C75;
}

/*------------------------------------------------------------------------------------*/
/*---------CameraParam----------*/
QSplitter#CameraParamSplitter1,QSplitter#CameraParamSplitter2 {
  background-color: transparent;
  border: none
}
QSplitter#CameraParamSplitter1::handle:vertical {
  /* background-color: #9E9D9D; */
  height: 1px;
}
QSplitter#CameraParamSplitter2::handle:horizontal {
  /* background-color: #9E9D9D; */
  width: 1px;
}

QTextEdit#CameraParamLogTextEdit {
  padding: 8px;
  border-radius: 0px;
  border: 1px solid #313131;
  background-color: #232629;
}

QPushButton#CameraParamOKButton {
  margin: 0px;
  padding: 0px 16px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  font-weight: bold;
  border: 1px solid white;
  border-radius: 0px;;
}

QPushButton#CameraParamOKButton:hover {
  background: #A1A8A2;
}

QPushButton#CameraParamOKButton:pressed {
  color: white;
  background: A7A650;
}

/*------------------------------------------------------------------------------------*/
/*---------SetupWaitProgressBar----------*/
QLabel#SetupWaitProgressBarTitleLabel {
  font: 20px;
}

QTextBrowser#SetupWaitProgressBarInfoTextBrowser {
  padding: 8px;
  border: none;
  border-radius: 0px;
  background-color: #232629;
}

QScrollBar::add-page:vertical {
  background-color: #2F3336;
}
QScrollBar::sub-page:vertical {
  background-color: #2F3336;
}

QScrollBar::add-page:horizontal {
  background-color: #2F3336;
}
QScrollBar::sub-page:horizontal {
  background-color: #2F3336;
}


/*------------------------------------------------------------------------------------*/
/*---------CMessageBox----------*/
QLabel#MessageBoxTextLabel {
  font: 20px;
}

QPushButton#MessageSubmitButton, QPushButton#MessageCancelButton {
  margin: 0px;
  padding: 0px 16px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  font-weight: bold;
  border: 1px solid white;
  border-radius: 0px;;
}

QPushButton#MessageSubmitButton:hover, QPushButton#MessageCancelButton:hover {
  background: #187294;
}

QPushButton#MessageSubmitButton:pressed, QPushButton#MessageCancelButton:pressed {
  color: white;
  background: #145C75;
}

/*-------------------------------------------------------------------------------------*/
/*--------------treewidget-------------------*/

QTreeView {
  background-color: transparent;
  font-size: 15px;
  color: white;
  border: none;
  outline: none;
}


QTreeView::item {
  /* border: 1px solid #1D385A; */
  margin: 2px;
  height: 40px;
  border-left-color: transparent;
  border-right-color: transparent;
}
QTreeView::item:hover {
  background-color: #145C75;
}
/* QTreeView::branch:hover {
  background-color: #1294EA;
} */

QTreeView::item:selected {
  background-color: #11AD86;
}

/* QTreeView::branch:selected {
  background-color: transparent;
} */

QTreeView::branch {
  background-color: transparent;
}

QTreeView::branch:open:has-children {
  image: url(config/style/dark_green/xmltree/arrow-bottom-blue.svg);
}

QTreeView::branch:hover:open:has-children {
  image: url(config/style/dark_green/xmltree/arrow-bottom-cyan.svg);
}

QTreeView::branch:closed:has-children {
  image: url(config/style/dark_green/xmltree/arrow-right-blue.svg);
}

QTreeView::branch:hover:closed:has-children {
  image: url(config/style/dark_green/xmltree/arrow-right-cyan.svg);
}




/*-------------------------------------------------------------------------------------*/
/*--------------CameraParam-------------------*/

  QToolButton#CameraParamExtendButton {
    background: #11AD86;
    color:white;
    border-left: 0px solid white;
    border-right: 0px solid white;
    border-top: 0px solid white;
    border-bottom: 0px solid white;
    margin: 0px;
    padding: 0px;
  }
  
  QToolButton#CameraParamExtendButton:hover {
    background: #5D8D50;
    color: white;
  }
  
  QToolButton#CameraParamExtendButton:pressed {
    background: #145C75;
    color: #11AD86;
  }

/*-------------------------------------------------------------------------------------*/
/*--------------PieChart-------------------*/
QChart#PieChartChart {
  background-color: red;
  border: none;
}
QGraphicsView {
  border: none;
}


/*-------------------------------------------------------------------------------------*/
/*--------------LoginInfo-------------------*/
QWidget#LoginInfoCentralWidget {
  border-left: 1px solid #1DE9B6;
  border-right: 1px solid #1DE9B6;
  border-top: 2px solid #1DE9B6;
  border-bottom: 1px solid #1DE9B6;
}
QLabel#LoginInfoNameLabel {
  font: 20px bold italic large "Microsoft YaHei";
  color: #1DE9B6;
}

QLabel#LoginInfoInfLabel {
  font: 14px;
  color: #1b86aa;
}

/*-------------------------------------------------------------------------------------*/
/*--------------PopupMenu-------------------*/
QPushButton#PopupMenuButton::hover {
  background: #187294;
}


/*-------------------------------------------------------------------------------------*/
/*--------------ChartPanel-------------------*/
QWidget#ChartPanel {
  color: #ffffff; 
  border-left: 1px solid white;
  border-right: 1px solid white;
  border-top: 0px solid white;
  border-bottom: 1px solid white;

  border-radius: 0px;
} 

/*-------------------------------------------------------------------------------------*/
/*--------------LogWidget-------------------*/

QMainWindow#LogWidget {
  /* background: #232629; */
  border: 1px solid #1DE9B6;
}

QTextEdit#LogWidgetLogTextEdit {
  border-left: 1px solid #1DE9B6;
  border-right: 1px solid #1DE9B6;
  border-top: 0px solid #1DE9B6;
  border-bottom: 1px solid #1DE9B6;
}

QPushButton#LogWidgetSubmitButton, QPushButton#LogWidgetCancelButton {
  margin: 0px;
  padding: 0px 16px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  font-weight: bold;
  border: 1px solid white;
  border-radius: 0px;;
}

QPushButton#LogWidgetSubmitButton:hover, QPushButton#LogWidgetCancelButton:hover {
  background: #187294;
}

QPushButton#LogWidgetSubmitButton:pressed, QPushButton#LogWidgetCancelButton:pressed {
  color: white;
  background: #145C75;
}

/*-------------------------------------------------------------------------------------*/
/*--------------PopuMenu-------------------*/
QWidget#PopupMenuCentralWidget {
  border-left: 1px solid #1DE9B6;
  border-right: 1px solid #1DE9B6;
  border-top: 2px solid #1DE9B6;
  border-bottom: 1px solid #1DE9B6;
}

QGroupBox#PopupMenuGroupBox {
  background: transparent;
}

QGroupBox#PopupMenuGroupBox::title {
  color: white;
} 

/*-------------------------------------------------------------------------------------*/
/*--------------TableWidget-------------------*/
QMainWindow#TableWidget QWidget {
  background: #232629;
  
}

QTableWidget#TableWidget::item {
  color: #BDBDBE;
}

/*-------------------------------------------------------------------------------------*/
/*--------------FuncWidget-------------------*/
QMainWindow#FuncWidgetCentralWidget {
  border: 1px solid #1DE9B6;
}