/*******************************************/
/*
/* context_menu
/*
/*******************************************/

#context_menu_background
{
   background: #191919;
   border-top-left-radius: 14px;
   border-top-right-radius: 14px;
   border-bottom-left-radius: 14px;
   border-bottom-right-radius: 14px;
   border: 2px solid rgba(255, 255, 255, 10%);
}

#context_menu_header
{
   background:  qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(239, 171, 25, 70%), stop:1 rgba(239, 171, 25, 70%));         /* horizontal gradient */
   border-top-left-radius: 10px;
   border-top-right-radius: 10px;
   min-height: 10px;
   max-height: 10px;
   color: #FFFFFF;
   enabled: 0;    /* I know, I know, not a CSS value but I need this setting here */
}

#context_menu_header:hover
{
   background:  qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(5, 103, 138, 70%), stop:1 rgba(5, 103, 138, 70%));         /* horizontal gradient */
}

#context_menu_header:pressed
{
   background:  qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 128, 64, 70%), stop:1 rgba(0, 128, 64, 70%));             /* horizontal gradient */
}

#context_menu_footer
{
   background:  qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(239, 171, 25, 70%), stop:1 rgba(239, 171, 25, 70%));         /* horizontal gradient */
   border-bottom-left-radius: 10px;
   border-bottom-right-radius: 10px;
   min-height: 10px;
   max-height: 10px;
   color: #FFFFFF;
   enabled: 0;    /* as with the other one, not a CSS value but I need this setting here */
}

#context_menu_footer:hover
{
   background:  qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(5, 103, 138, 70%), stop:1 rgba(5, 103, 138, 70%));          /* horizontal gradient */
}

#context_menu_footer:pressed
{
   background:  qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 128, 64, 70%), stop:1 rgba(0, 128, 64, 70%));             /* horizontal gradient */
}

#context_menu_separator
{
   background: rgba(255, 255, 255, 30%);
   min-height: 1px;
}

/******************************/
/* Vertical Scrollbar			*/
/******************************/
#scrollbars:vertical
{
   border: 0px;
   background: rgba(0, 0, 0, 100%);   
   width: 20px;
/* margin: 20px 0 20px 0; */
}

/*******************************/
/* The Grab Handle             */
/*******************************/
#scrollbars::handle:vertical
{
   background: rgba(255, 255, 255, 20%);
   min-height: 20px;
   border: 0px;
}

#scrollbars::handle:vertical:hover
{
   background: rgba(255, 255, 255, 25%);
   min-height: 20px;
}

/********************************/
/* Bottom button with the arrow */
/********************************/
#scrollbars::add-line:vertical
{
   background: rgba(0, 0, 0, 100%);   
   height: 21px;
/* subcontrol-origin: margin; */
   border: 0px;
}

#scrollbars::add-line:vertical:pressed
{
   border: 0px solid #808080;
   background: rgba(255, 255, 255, 25%);
   height: 20;
   subcontrol-origin: margin;
   border-bottom: 0px solid #323641;
   border-radius: 0px;
}

/*******************************/
/* Top button with the arrow   */
/*******************************/
#scrollbars::sub-line:vertical
{
   background: rgba(0, 0, 0, 100%);
   height: 21px;
/* subcontrol-origin: margin; */
   border: 0px;
}

#scrollbars::sub-line:vertical:pressed
{
   background: rgba(255, 255, 255, 25%);
}

#scrollbars::down-arrow:vertical
{
   border: 0px;
   image: url(:/icons/png/bright/scrollbar-arrow-down.png);
}

#scrollbars::up-arrow:vertical
{
   border: 0px;
   image: url(:/icons/png/bright/scrollbar-arrow-up.png);
}


#scrollbars::add-page:vertical, #scrollbars::sub-page:vertical
{
   background: none;
   border-radius: 0px;
}


/******************************/
/* Horizontal Scrollbar       */
/******************************/
#scrollbars:horizontal
{
   border: 0px;
   background: #EBEBEB;
   height: 20px;
   margin: 0px 20px 0px 20px;
}

/*******************************/
/* The Grab Handle             */
/*******************************/
#scrollbars::handle:horizontal
{
   background: #C7C7C7;
   min-width: 20px;
}

#scrollbars::add-line:horizontal
{
border: 0px;
   background: #D9D9D9;
   width: 20px;
   border-bottom: 0px solid #323641;
   subcontrol-position: right;
   subcontrol-origin: margin;
}

#scrollbars::sub-line:horizontal
{
   border: 0px;
   background: #D9D9D9;
   width: 20px;
   border-bottom: 0px solid #323641;
   subcontrol-position: right;
   subcontrol-origin: margin;
   subcontrol-position: left;
   subcontrol-origin: margin;
}

#scrollbars:left-arrow:horizontal
{
   border: 0px;
   image: url(:/icons/png/dark/scrollbar-arrow-left.png);
}

#scrollbars::right-arrow:horizontal
{
   border: 0px;
   image: url(:/icons/png/dark/scrollbar-arrow-right.png);
}

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

#context_menu_widget_label
{
   background: rgba(255, 255, 255, 0%);
   font-family: "Nimbus Sans L";
   font-weight: bold;
   font-size: 10pt;
/* text-decoration: underline;*/
   color: rgba(100, 100, 100, 100%);
   padding-top: 1px;
}

/* The button in the context_menu */
#context_menu_push_button
{
   background: rgba(156, 202, 219, 30%);
   color: #FFFFFF;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   font-weight: bold;
   border-left: 0px;
   font-family: "Nimbus Sans L";
   border-left: 0px solid #697275;
   border-top: 1px solid rgba(255, 255, 255, 20%);
   border-bottom: 1px solid rgba(255, 255, 255, 20%);
   border-right: 1px solid rgba(255, 255, 255, 20%);
   margin-top: 5px;
   margin-bottom: 7px;
   margin-right: 5px;
}

#context_menu_push_button::hover
{
   color: rgba(255, 255, 255, 100%);
   background: rgba(255, 255, 255, 30%);
}

#context_menu_push_button:pressed
{
   background: rgba(255, 255, 255, 30%);
}

#context_menu_line_edit
{
   color: #FFFFFF;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   border-radius: 0px;
   background: rgba(156, 202, 219, 30%);
   border: 1px solid rgba(255, 255, 255, 20%);
   border-right: 0px;
   padding: 2px;
}

#context_menu_line_edit:hover
{
   border: 1px solid rgba(147, 147, 255, 50%);
   background: rgba(255, 255, 255, 30%);
   color: #FFFFFF;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   border-radius: 0px;
}

/* Combo Box in context_menu */
#context_menu_combo_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: #FFFFFF;
   border: 1px solid rgba(107, 171, 212, 100%);
   border-right: 0px;
   margin-bottom: 1px;
}

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

#context_menu_combo_box:hover
{
   border: 1px solid #4791F0;
   color: #FFFFFF;
}

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

#context_menu_combo_box:editable
{
   color: #FFFFFF;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   border-radius: 0px;
   background: rgba(156, 202, 219, 30%);
   border: 1px solid rgba(255, 255, 255, 20%);
   border-right: 0px;
}

#context_menu_combo_box:editable:hover
{
   border: 1px solid rgba(147, 147, 255, 50%);
   background: rgba(255, 255, 255, 30%);
   color: #FFFFFF;
   border-top-left-radius: 0px;
   border-top-right-radius: 0px;
   border-bottom-left-radius: 0px;
   border-bottom-right-radius: 0px;
   border-radius: 0px;
}

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

#context_menu_combo_box::drop-down
{
   subcontrol-origin: padding;
   subcontrol-position: top right;
   width: 30px;
   border-left: 0px solid #65A8CA;
   border-right: 0px solid #65A8CA;
   background: rgba(255, 255, 255, 20%)
}

#context_menu_combo_box::drop-down:hover
{
   color: #FFFFFF;
   background: rgba(255, 255, 255, 15%);
}

#context_menu_combo_box::drop-down:pressed
{
   color: #FFFFFF;
   background: rgba(217, 217, 217, 70%);
}

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

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

QAbstractItemView
{
   background: rgba(98, 65, 50, 77%);
   border: 1px dashed #62656C;
   selection-background-color: rgba(255,255,255,20%);
   selection-color: #FFFFFF;
   color: #FFFFFF;
   font-size: 10pt;
   font-weight: bold;
   font-family: "Nimbus Sans L";
   min-height: 35px;
/* min-width: 60px; */
   border: 1px solid rgba(255,255,255,20%);
}

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

/******************************/
/* Vertical Scrollbar			  */
/******************************/
QScrollBar:vertical
{
   border: 0px;
   background: #EBEBEB;
   width: 20px;
   margin: 20px 0 20px 0;
}

/*******************************/
/* The Grab Handle             */
/*******************************/
QScrollBar::handle:vertical
{
   background: #C7C7C7;
   min-height: 20px;
}

/********************************/
/* Bottom button with the arrow */
/********************************/
QScrollBar::add-line:vertical
{
   border: 0px;
   background: #D9D9D9;
   height: 20;
   subcontrol-origin: margin;
   border-bottom: 0px solid #323641;
}

QScrollBar::add-line:vertical:pressed
{
   border: 0px solid #808080;
   background-color: rgba(178, 178, 178, 100%);
   height: 20;
   subcontrol-origin: margin;
   border-bottom: 0px solid #323641;
}

/*******************************/
/* Top button with the arrow   */
/*******************************/
QScrollBar::sub-line:vertical
{
   border: 0px;
   background: #D9D9D9;
   height: 21;
   subcontrol-origin: margin;
   border-bottom: 0px solid #323641;
}

QScrollBar::sub-line:vertical:pressed
{
   border: 0px;
   background-color: rgba(178, 178, 178, 100%);
   height: 21;
   subcontrol-origin: margin;
   border-bottom: 0px solid #323641;
}

QScrollBar::down-arrow:vertical
{
   border: 0px;
   image: url(:/icons/png/dark/scrollbar-arrow-down.png);
}

QScrollBar::up-arrow:vertical
{
   border: 0px;
   image: url(:/icons/png/dark/scrollbar-arrow-up.png);
}


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


/******************************/
/* Horizontal Scrollbar       */
/******************************/
QScrollBar:horizontal
{
   border: 0px;
   background: #EBEBEB;
   height: 20px;
   margin: 0px 20px 0px 20px;
}

/*******************************/
/* The Grab Handle             */
/*******************************/
QScrollBar::handle:horizontal
{
   background: #C7C7C7;
   min-width: 20px;
}

QScrollBar::add-line:horizontal
{
   border: 0px;
    background: #D9D9D9;
   width: 20px;
   border-bottom: 0px solid #323641;
   subcontrol-position: right;
   subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal
{
   border: 0px;
   background: #D9D9D9;
   width: 20px;
   border-bottom: 0px solid #323641;
   subcontrol-position: right;
   subcontrol-origin: margin;
   subcontrol-position: left;
   subcontrol-origin: margin;
}

QScrollBar:left-arrow:horizontal
{
   border: 0px;
   image: url(:/icons/png/dark/scrollbar-arrow-left.png);
}

QScrollBar::right-arrow:horizontal
{
   border: 0px;
   image: url(:/icons/png/dark/scrollbar-arrow-right.png);
}

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

QMenu
{
   background: rgba(255, 255, 255, 100%);
   border: 1px solid #C0C0C0;
   border-top: 3px solid orange;
   border-bottom: 4px solid #0A84FF;
   border-radius: 0px;
}

QMenu::item
{
   background: rgba(255, 255, 255, 100%);
   padding: 3px 20px 3px 25px;
   border: 1px solid transparent; /* reserve space for selection border */
   min-height: 31px;
   font-family: "Nimbus Sans L";
   font-weight: bold;
   font-size: 9pt;
   color: #808080;
   border-radius: 0px;
}

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

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

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

QMenu::separator
{
   height: 1px;
   background: lightblue;
   margin-left: 0px;
   margin-right: 0px;
/* border: 1px solid rgba(100, 100, 100, 50%); */
}

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

/* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
QMenu::indicator:non-exclusive:unchecked
{
   padding-left: 17px;
   image: url(:/icons/png/icon_unchecked.png);
   margin-left: 7px;
   margin-right: -10px;
}

QMenu::indicator:non-exclusive:unchecked:selected
{
   padding-left: 17px;
   image: url(:/icons/png/icon_unchecked.png);
   margin-left: 7px;
   margin-right: -10px;
}

QMenu::indicator:non-exclusive:checked
{
   padding-left: 17px;
   image: url(:/icons/png/icon_checked.png);
   margin-left: 7px;
   margin-right: -10px;
}

QMenu::indicator:non-exclusive:checked:selected
{
   padding-left: 17px;
   image: url(:/icons/png/icon_checked.png);
   margin-left: 7px;
   margin-right: -10px;
}

/* 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: 25px;
}

