/* Window specific style sheet */

QWidget[_yate_window="true"] {
  background:#f7f5fd;
  color:#333333;
}

QFrame[_yate_frame_custom="true"] {
  border: 1px solid #717fa0;
}

/* QAbstractButton */

QAbstractButton {
  font-size: 12px;
  color:#333333;
}
QAbstractButton:disabled {
  color: #a0a0a0;
}

/* QAbstractItemView */

QAbstractItemView {
  font-size: 12px;
}

/* QLabel */

QLabel {
  font-size: 12px;
  color:#333333;
}

/* QLineEdit */

QLineEdit {
  border: 1px solid #717fa0;
  border-radius: 2px;
  background-color: #ffffff;
  font-size: 12px;
  color:#333333;
}

/* QTextEdit */

QTextEdit {
  border: 0px solid #717fa0;
  background-color: #ffffff;
  font-size: 12px;
}

/* QTextBrowser */
QTextBrowser {
  font-size: 12px;
}

/* QToolButton */

QToolButton {
  border: 1px solid #717fa0;
  border-radius: 2px;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f6e8e8);
}
QToolButton:checked {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6e8e8, stop: 1 #ffffff);
}
QToolButton:hover {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9f3f3);
}
QToolButton:pressed {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6e8e8, stop: 1 #ffffff);
}
QToolButton:disabled {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #ebebeb);
  border: 1px solid #a0a0a0;
}
QToolButton::menu-indicator {
  subcontrol-origin: border;
}

/* QPushButton */

QPushButton {
  border: 1px solid #717fa0;
  border-radius: 2px;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f6e8e8);
}
QPushButton:checked {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6e8e8, stop: 1 #ffffff);
}
QPushButton:hover {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9f3f3);
}
QPushButton:pressed {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6e8e8, stop: 1 #ffffff);
}
QPushButton:disabled {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #ebebeb);
  border: 1px solid #a0a0a0;
}

/* QCheckBox */

QCheckBox {
  margin: 2px 0px 2px 0px;
}
QCheckBox::indicator:checked { image: url(checkbox_on.png); }
QCheckBox::indicator:unchecked { image: url(checkbox_off.png); }

/* QRadioButton */

QRadioButton {
  margin: 2px 0px 2px 0px;
}
QRadioButton::indicator:checked { image: url(radio_on.png); }
QRadioButton::indicator:unchecked { image: url(radio_off.png); }

/* QGroupBox */

QGroupBox {
  border: 1px solid #717fa0;
  margin-top: 8px;
}
QGroupBox::indicator {
   width: 16px;
   height: 16px;
}
QGroupBox::title {
  position: relative;
  left: 10px;
  subcontrol-origin: margin;
  padding: 0px 0px 0px 0px;
  margin: 0px 2px 0px 2px;
}
QGroupBox::indicator:checked { image: url(checkbox_on.png); }
QGroupBox::indicator:unchecked { image: url(checkbox_off.png); }

/* QComboBox */

QComboBox {
  border: 1px solid #717fa0;
  border-radius: 2px;
  font-size: 12px;
  color:#333333;
  margin: 0px 0px 0px 0px;
  padding: 0px 2px 0px 2px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}
QComboBox::down-arrow { image: url(cb_arrow.png); }
QComboBox::down-arrow:on { top: 1px; left: 1px; }
QComboBox::drop-down {
  subcontrol-origin: margin;
  subcontrol-position: top right;
  width: 22px;
  border: 1px solid #717fa0;
  border-radius: 2px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9efef);
}
QComboBox::drop-down:on {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f9efef, stop: 1 #ffffff);
}
QComboBox::drop-down:hover {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9f3f3);
}
QComboBox QAbstractItemView {
  border: 1px solid #717fa0;
  background: #ffffff;
  selection-background-color: lightblue;
  selection-color: black;
  font-size: 12px;
  color:#333333;
}

/* QSpinBox */

QSpinBox {
  padding: 0px 22px 0px 2px;
  border: 1px solid #717fa0;
  border-radius: 2px;
  background: #ffffff;
  font-size: 12px;
  color: #333333;
}
QSpinBox::up-button {
  subcontrol-origin: border;
  subcontrol-position: top right;
  border: 1px solid #717fa0;
  border-top-right-radius: 2px;
  width: 18px;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9efef);
}
QSpinBox::down-button {
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  subcontrol-origin: border;
  subcontrol-position: bottom right;
  border: 1px solid #717fa0;
  border-top: 0px solid #717fa0;
  border-bottom-right-radius: 2px;
  width: 18px;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9efef);
}
QSpinBox::up-button:pressed {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f9efef, stop: 1 #ffffff);
}
QSpinBox::down-button:pressed {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f9efef, stop: 1 #ffffff);
}
QSpinBox::up-button:hover {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9f3f3);
}
QSpinBox::down-button:hover {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9f3f3);
}
QSpinBox::up-arrow { image: url(up_small.png); }
QSpinBox::up-arrow:pressed { top: -1px; }
QSpinBox::up-arrow:disabled, QSpinBox::up-arrow:off { image: url(up_small_off.png); }
QSpinBox::down-arrow { image: url(down_small.png); }
QSpinBox::down-arrow:pressed { top: 1px; }
QSpinBox::down-arrow:disabled, QSpinBox::down-arrow:off { image: url(down_small_off.png); }

/* QTabWidget and QTabBar */

QTabWidget::pane {
  position: absolute;
  top: -1px;
  border: 1px solid #717fa0;
  background: #ffffff;
}
QTabBar {
  font: 13px;
}
QTabBar::tab {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f6e8e8);
  border: 1px solid #717fa0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  min-height: 28px;
  position: absolute;
  top: 4px;
}
QTabBar::tab:hover {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f9f3f3);
}
QTabBar::tab:selected {
  border-bottom-color: #ffffff;
  border-top: 3px solid #73a9e1;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f9efef, stop: 1 #ffffff);
  top: 0px;
}

/* QTreeWidget and QTreeView */

QTreeWidget {
  border: 0px solid #717fa0;
  background: #ffffff;
  selection-background-color: lightblue;
  selection-color: black;
}

/* QTableWidget */

QTableWidget {
  border: 0px solid #717fa0;
  background: #ffffff;
  selection-background-color: lightblue;
  selection-color: black;
}

/* QListWidget */

QListWidget {
  border: 1px solid #717fa0;
  background:  #ffffff;
  selection-background-color: lightblue;
}

/* QHeaderView */

QHeaderView::section {
  padding-left: 4px;
  border: 0px;
  border-right: 1px solid #e3e6e9;
  border-bottom: 1px solid #a9c2c2;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #fbeded);
}

/* QScrollBar */

QScrollBar {
  border: 1px solid #717fa0;
  background: #ffffff;
}
QScrollBar::handle {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f6e8e8);
  border: 1px solid #717fa0;
}
QScrollBar:vertical {
  width: 14px;
  margin: 16px 0px 16px 0px;
  border-top: 0px;
  border-bottom: 0px;
  border-right: 0px;
}
QScrollBar:horizontal {
  height: 14px;
  margin: 0px 16px 0px 16px;
  border-left: 0px;
  border-right: 0px;
  border-bottom: 0px;
}
QScrollBar::add-line {
  height: 13px;
  width: 13px;
  border: 1px solid #717fa0;
  subcontrol-origin: margin;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f6e8e8);
}
QScrollBar::sub-line {
  height: 13px;
  width: 13px;
  border: 1px solid #717fa0;
  subcontrol-origin: margin;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #f6e8e8);
}
QScrollBar::add-page { border: 0px; }
QScrollBar::sub-page { border: 0px; }
QScrollBar::handle:vertical { border-left: 0px; border-right: 0px; min-height: 14px; }
QScrollBar::handle:horizontal { border-top: 0px; border-bottom: 0px; min-width: 14px; }
QScrollBar::add-line:vertical { subcontrol-position: bottom; image: url(scroll_down.png); height: 14px; }
QScrollBar::sub-line:vertical { subcontrol-position: top; image: url(scroll_up.png); height: 14px; }
QScrollBar::add-line:horizontal { subcontrol-position: right; image: url(scroll_right.png); width: 14px; }
QScrollBar::sub-line:horizontal { subcontrol-position: left; image: url(scroll_left.png); width: 14px; }
QScrollBar::up-arrow:pressed { border: 1px solid #717fa0; }
QScrollBar::down-arrow:pressed { border: 1px solid #717fa0; }
QScrollBar::left-arrow:pressed { border: 1px solid #717fa0; }
QScrollBar::right-arrow:pressed { border: 1px solid #717fa0; }

/* QMenuBar */

QMenuBar {
  border: 0px;
  background: transparent;
}
QMenuBar::item {
  color:#333333;
  background: transparent;
}
QMenuBar::item:selected {
  background-color: #48a4d7;
  color: #ffffff;
}

/* QMenu */

QMenu {
  border: 1px solid #717fa0;
  background-color: #ffffff;
  color: #333333;
}
QMenu::item {
  border: 1px solid #ffffff;
  padding: 2px 4px 2px 22px;
  background: #ffffff;
}
QMenu::item:selected {
  color: #ffffff;
  background-color: #48a4d7;
  border: 1px solid #48a4d7;
}
QMenu::item:disabled {
  color: #bbbbbb;
}
QMenu::separator {
  color: #a9c2c2;
}
QMenu::icon {
  left: 2px;
}
QMenu::indicator:non-exclusive:checked {
  image: url(checkmark_menu.png);
}
QMenu::indicator:non-exclusive:unchecked {
  image: none;
}
