#tabbar
{
   background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(231, 232, 235, 100%), stop:1 rgba(231, 232, 235, 100%));  /* vertical gradient */
   border-left: 0px solid #5294E3;
   border-top: 0px solid #84ABE3;
   border-right: 0px solid #84ABE3;
   border-bottom: 0px solid #5294E3;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   border-bottom: 0px solid #C8C8C8;
}

#tab_button
{
   background: #DCDCDC;
   color: rgba(100,100,100,100%);
   border-left: 0px solid #C0C0C0;
   font-family: "Nimbus Sans L";
   border-left: 0px solid #84ABE3;
   border-top: 0px solid #84ABE3;
   border-right: 1px solid #84ABE3;
   border-bottom: 0px solid #84ABE3;
   font-weight: normal;
   padding: 5px;
}


#tab_button:hover
{
   color: #000000;
   font-weight: bold;
   border-bottom: 3px solid orange;
}

#tab_button:pressed
{
   background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(219, 219, 219, 100%), stop:1 rgba(219, 219, 219, 100%));
   color: #000000;
}

#tab_button_placeholder
{
   background: #DCDCDC;
   color: rgba(0,0,0,100%);
   border-right: 1px solid #C0C0C0;
   font-family: "Nimbus Sans L";
   border-left: 0px solid #84ABE3;
   border-top: 0px solid #84ABE3;
   border-right: 1px solid #84ABE3;
   border-bottom: 1px solid #84ABE3;
   font-weight: normal;
   font-style: italic;
   padding: 5px;
   border-bottom: 3px solid #5294E2;
}

#tab_button_placeholder:hover
{
   color: #000000;
   font-weight: bold;
   border-bottom: 3px solid orange;
}

/* the button name "tab_button_active" is set in tabbed_button.h by adding "_active" to the existing button name */
#tab_button_active
{   
   background: #5294E3;
   color: #FFFFFF;
   font-family: "Nimbus Sans L";
   border-top: 0px solid #5294E3;
   border-right: 1px solid #5294E3;
   border-bottom: 0px solid #5294E3;
   border-left: 0px solid #000000;
   font-weight: bold;
   padding: 5px;
   border-bottom: 4px solid #4791F0;
}

#tab_button_active:hover
{
   font-weight: bold;   
}

#tab_button:disabled
{
   color: #C0C0C0;
}


#tab_button_close
{   
   color: #000000;
   font-family: "Nimbus Sans L";
   font-weight: bold;
   border: 0px;
   padding-top: 1px;
}

#tab_button_close:hover
{
   padding-left: 1px;
   padding-top: 1px;
}

#tab_button_close:pressed
{
   padding-left: 2px;
   padding-top: 2px;
}

#tab_button_close_active
{
   color: #FFFFFF;
   font-family: "Nimbus Sans L";
   font-weight: bold;
   border: 0px; 
   padding-top: 1.5px;
}

#run_box
{
   background: #FFFFFF;
   padding: 1px 18px 1px 3px;
   font-family: "Nimbus Sans L";
   font-size: 10pt;
   font-weight:normal;
   font-weight: bold;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   color: #000000;
   border: 1px solid rgba(107, 171, 212, 100%);
   border-right: 0px;
   border-left: 1px;
   border-bottom: 0px;
}

#run_box:disabled
{
   background: #DBDCDE;
   color: #808080;
}

#run_box:hover
{
   color: #808080;
}

#run_box:pressed
{
   border: 1px solid #4791F0;
}

#run_box:editable
{
   border: 0px solid rgba(107, 171, 212, 100%);
   background: rgba(255, 255, 255, 100%);
   color: rgba(100, 100, 100, 100%);
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   border-radius: 0px;
   border-bottom: 0px solid #0A84FF;
   border-left: 0px solid rgba(107, 171, 212, 100%);
   border: 1px solid #84ABE3;
   margin-top: 1px;
   margin-bottom: 1px;
   /*background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(236, 239, 241, 100%), stop:1 rgba(206, 208, 210, 100%));*/  /* vertical gradient */
}

#run_box:editable:hover
{
   color: #000000;
}

#run_box:on
{
   /* shift the text when the popup opens */
   padding-top: 3px;
   padding-left: 4px;
 }

#run_box::drop-down
{
   subcontrol-origin: padding;
   subcontrol-position: top right;
   width: 30px;
   border-left: 0px solid #65A8CA;
   border-right: 0px solid #65A8CA;
   background: rgba(82,148,226, 100%);
}

#run_box::drop-down:hover
{
   border: 1px solid #84ABE3;
   color: #646464;
}

#run_box::drop-down:pressed
{
   color: #646464;
   background: rgba(217, 217, 217, 100%);
}

#run_box::down-arrow
{
   image: url(:/icons/png/icon_scrollbar_arrow_down.png);
}

 /* shift the arrow when popup is open */
#run_box::down-arrow:on
{
     top: 1px;
     left: 1px;
}

/*  QAbstractItemView */
QAbstractItemView
{
   background: #FFFFFF;
   border: 1px dashed #62656C;
   selection-background-color: #747E88;
   selection-color: #FFFFFF;
    color: #646464;
   font-size: 10pt;
   font-weight: bold;
   font-family: "Nimbus Sans L";
   min-height: 35px;
   border: 0px;
}

QAbstractItemView::item
{
   min-height: 35px;
}

QAbstractItemView::item:hover
{
   background: #646464;
}

QMenu
{
   background-color: white;
   border: 1px solid #C0C0C0;
}

QMenu::item
{
   padding: 2px 20px 2px 25px;
   border: 1px solid transparent; /* reserve space for selection border */
   min-height: 27px;
   padding-left: 40px;
   min-width: 110px;
}

QMenu::item:selected
{
   border-color: darkblue;
   background: rgba(100, 100, 100, 150);
}

QMenu::icon:checked
{
   /* appearance of a 'checked' icon */
   background: gray;
   border: 1px inset gray;
   position: absolute;
   top: 1px;
   right: 1px;
   bottom: 1px;
   left: 1px;
   image: url(:/icons/png/icon_checked_bk.png);
}

QMenu::separator
{
   height: 2px;
   background: lightblue;
}

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

/* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
QMenu::indicator:non-exclusive:unchecked
{
   image: url(:/images/checkbox_unchecked.png);
}

QMenu::indicator:non-exclusive:unchecked:selected
{
   image: url(:/images/checkbox_unchecked_hover.png);
}

QMenu::indicator:non-exclusive:checked
{
   padding-left: 9px;
   image: url(:/icons/png/icon_checked_bk.png);
}

QMenu::indicator:non-exclusive:checked:selected
{
   padding-left: 9px;
   image: url(:/icons/png/icon_checked_bk.png);
}

/* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
QMenu::indicator:exclusive:unchecked
{
   image: url(:/images/radiobutton_unchecked.png);
}

QMenu::indicator:exclusive:unchecked:selected
{
   image: url(:/images/radiobutton_unchecked_hover.png);
}

QMenu::indicator:exclusive:checked
{
   image: url(:/images/radiobutton_checked.png);
}

QMenu::indicator:exclusive:checked:selected
{
   image: url(:/images/radiobutton_checked_hover.png);
}

QMenu::icon
{
   margin-left: 15px;
}
