/* PSS程序全局字体设置 */
QWidget {
	font-size: 13px;
	font-family: "Arial";
}

/* ======界面特殊字体设置====== Start */
/* 主页登录时间 */
QLabel#HomeLoginTime {
	font-family: "Arial";
	font-size: 33px;
	font:bold;
}
QLabel#HomeLoginTimeShort {
	font-family: "Arial";
	font-size: 20px;
	font:bold;
}

/* 主页登录日期 */
QLabel#HomeLoginDate {
	font-size: 19px;
	font:bold;
}
/* 主页各模块标题字号 */
QLabel#HomeMouduleTitle {
	font-size: 15px;
}
/* 报警浮动框报警数目 */
QLabel#AlarmNotifyCount {
	font-size: 11px;
}

/*版本信息*/
QLabel#VersionProduct {
	font-family: "Verdana";
	font-size: 24px;
	font: bold;
}

/* ======界面特殊字体设置====== End */

/* 回放进度控制条表格样式*/
QTableView#PlaybackCtrlTable {
	border: 1px rgb(136,136,136);
	border-style:solid solid none none;
	color: white;
	background-color: rgb(57,67,82);
	gridline-color: rgb(136,136,136);
}
QTableView#PlaybackCtrlTable::item:selected {
	color: white;
	background:rgba(9, 112, 233, 255);
}
/* 日历样式 */
QTableView#CalendarView {
    font-size: 12px;
    background-color: rgb(197,202,211);
    gridline-color: rgb(134, 143, 159);
}
/*
QTableView#CalendarView::item:selected {
		color : black;
}
QTableView#CalendarView::item:disabled {
		color : #868f9f;
}		
*/
/*QGroupBox START*/
QGroupBox {
	border: 1px solid gray;
	border-radius: 5px;
	margin-top: 1ex; 
	font:bold;
}
QGroupBox::title {
	subcontrol-origin: margin;
	left: 12px;
	padding: 0 3px;
	color:black;
}
QGroupBox::indicator{
	width : 16 px;
	height:	16 px;
}
QGroupBox::indicator:checked{
	image:url("./Skin/theme1/common/check.ico");
}
QGroupBox::indicator::indeterminate{
	image:url("./Skin/theme1/common/indeterminate.ico");
}
QGroupBox::indicator:unchecked{
	image:url("./Skin/theme1/common/uncheck.ico");
}
QGroupBox::indicator:disabled{
	image:url("./Skin/theme1/common/check_disabled.ico");
}
/*QGroupBox END*/

/*QTreeView START*/
QTreeView::branch {background-color: transparent; }
QTreeView::item:selected {
	color: white;
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
}
QTreeView::item:disabled {
	color: grey;
}
QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings {
border-image: none;
	image: url(./Skin/theme1/devmanage/branch-closed.jpg);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings  {
border-image: none;
	image: url(./Skin/theme1/devmanage/branch-open.jpg);
}

QTreeView::indicator{
	width : 16 px;
	height:	16 px;
}
QTreeView::indicator:checked{
	image:url("./Skin/theme1/common/check.ico");
}
QTreeView::indicator::indeterminate{
	image:url("./Skin/theme1/common/indeterminate.ico");
}
QTreeView::indicator:unchecked{
	image:url("./Skin/theme1/common/uncheck.ico");
}
QTreeView::indicator:disabled{
	image:url("./Skin/theme1/common/check_disabled.ico");
}
/*QTreeView END*/

 
QMenu {
	font-size: 12px;
	background-image:url(./Skin/theme1/menu/menu-background.png);
	border: 1px solid #5c6576;
}
QMenu::item:enabled{
	height: 24px;
	padding: 0px 40px 0px 34px;
	color: #353b48;
	margin-left: 4px;
}
QMenu::item:disabled{
	height: 24px;
	padding: 0px 40px 0px 34px;
	color: #acb8c9;
	margin-left: 4px;
}
QMenu::item:enabled:selected {
	height: 24px;
	padding: 0px 40px 0px 34px;
	background-color: #aeb6c5;
	color: #353b48;
	margin-left: 4px;
}
QMenu::separator {
    	height: 1px;
    	background-color: #aeb6c5;
	margin-left: 38px;
    	margin-top: 2px;
	margin-right: 10px;
    	margin-bottom: 2px;
}
QMenu{menu-scrollable:1;}

QMenu#FishMenu { 
	font-size: 12px;
	background-image:url(./Skin/theme1/menu/menu-fisheyebtn.png);
	border: 1px solid #5c6576;
}

/*输入框 START*/
QLineEdit,QTextEdit { 
	color: white;
	background-color: #5c6576;
	border: 1px solid #485163;
}
QLineEdit:focus{
	background-color:rgb(172,183,199);
	color:black;
	border: 1px solid #2279c3
}
QLineEdit:!enabled,QTextEdit:!enabled,QListView:!enabled { 
	color: #6b6b6b;
	background-color: rgb(189,189,189);
}
QListView {
	alternate-background-color: rgb(195,201,213);
	background: #ced5e1;
	selection-color:black;
	selection-background-color: #90b4dd;
}

/*输入框 END*/

/*设备树输入框 START*/
QLineEdit#DevSearchInput { 
	color:rgb(154,155,156);
	background-color: rgb(92,101,118);
	border: none;
}
QLineEdit#DevSearchInput:focus{
	color: white;
}
/*设备树输入框 END*/

QDateTimeEdit{ border : none }
QDateTimeEdit { background-color : rgb(92,101,118); color:white;}

QScrollBar:horizontal {
	border: 1px rgb(114,114,114);
	border-style:solid none  solid none;
	height: 13px;
	margin: 0px 14px 0 14px;
	border-radius:0px 
 }
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
	background: rgb(137,137,137);
}
QScrollBar::handle:horizontal {
	background:url("./Skin/theme1/playback/handle.png");
	border-radius:0px
}
QScrollBar::add-line:horizontal {
	background:url("./Skin/theme1/playback/scrollRight.png");
	width: 14px;
	subcontrol-position: right;
	subcontrol-origin: margin;
}
QScrollBar::sub-line:horizontal {
	background:url("./Skin/theme1/playback/scrollLeft.png");
	width: 14px;
	subcontrol-position: left;
	subcontrol-origin: margin;
}

QScrollBar:vertical {
	border: 1px rgb(114,114,114);
	border-style: none solid none  solid;
	width: 13px;
	margin: 14px 0px 14px 0;
	border-radius:0px; 
 }
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
	background: rgb(137,137,137);
}
QScrollBar::handle:vertical {
	background:url("./Skin/theme1/playback/handle1.png");
	border-radius:0px;
	min-height:10px;
}
QScrollBar::sub-line:vertical {
	background:url("./Skin/theme1/playback/scrollTop.png");
	height: 14px;
	subcontrol-position: top;
	subcontrol-origin: margin;
}
QScrollBar::add-line:vertical {
	background:url("./Skin/theme1/playback/scrollBottom.png");
	height: 14px;
	subcontrol-position: bottom;
	subcontrol-origin: margin;
}

QHeaderView::section {
	background-color: rgb(174,182,197);
	color: black;
	border: 1px gray;
	padding: 5px 5px 5px 5px;
	border-style:none  solid solid none;
}
QHeaderView::section:checked
{
	background-color: rgb(174,182,197);
}

/* style the sort indicator */
 QHeaderView::down-arrow {
	width:12 px;
	height:	12 px;
	margin-right:5px;
  image: url("./Skin/theme1/common/down.png");
 }

 QHeaderView::up-arrow {
	width:12 px;
	height:	12 px;
	margin-right:5px;
  image: url("./Skin/theme1/common/up.png");
 }

QTableView {
	alternate-background-color: rgb(195,201,213);
	background: #ced5e1;
	selection-color:black;
	selection-background-color: #90b4dd;
}
QTableView::indicator{
	width:16 px;
	height:	16 px;
}
QTableView::indicator:checked{
	image:url("./Skin/theme1/common/check.ico");
}
QTableView::indicator::indeterminate{
	image:url("./Skin/theme1/common/indeterminate.ico");
}
QTableView::indicator:unchecked{
	image:url("./Skin/theme1/common/uncheck.ico");
}

QProgressBar::chunk{background-color: rgb(34, 121, 195);}
QProgressBar{border: 1px solid rgb(34, 121, 195);text-align: center;}
QLabel::disabled{color:rgb(0xe4,0xea,0xf4);}

QCheckBox::indicator{
	width : 14 px;
	height: 14 px;
}
QCheckBox::indicator:checked{
	image:url("./Skin/theme1/common/check.ico");
}
QCheckBox::indicator:unchecked{
	image:url("./Skin/theme1/common/uncheck.ico");
}
QCheckBox::indicator:disabled{
	image:url("./Skin/theme1/common/check_disabled.ico");
}

QSpinBox { background-color : rgb(92,101,118); color:white;}

/*up button of QSpinBox*/
QSpinBox::up-button
{
	subcontrol-origin: border;
  subcontrol-position: top right; /* position at the top right corner */
	background-image:url(./Skin/theme1/updownbtn/up_default.png);
	background-attachment: scroll;
	background-position: center;
}
QSpinBox::up-button:hover
{
	background-image:url(./Skin/theme1/updownbtn/up_hover.png);
	background-attachment:scroll;
	background-position: center;
}
QSpinBox::up-button:pressed
{
	background-image:url(./Skin/theme1/updownbtn/up_pressed.png);
	background-attachment:scroll;
	background-position: center;
}
QSpinBox::up-button:disabled
{
	background-image:url(./Skin/theme1/updownbtn/up_disabled.png);
	background-attachment: scroll;
	background-position: center;
}
/*down button of QSpinBox*/
QSpinBox::down-button
{
  subcontrol-origin: border;
  subcontrol-position: bottom right; /* position at bottom right corner */
	background-image:url(./Skin/theme1/updownbtn/down_default.png);
	background-attachment:scroll;
	background-position: center;
}
QSpinBox::down-button:hover
{
	background-image:url(./Skin/theme1/updownbtn/down_hover.png);
	background-attachment:scroll;
	background-position: center;
}
QSpinBox::down-button:pressed
{
	background-image:url(./Skin/theme1/updownbtn/down_pressed.png);
	background-attachment:scroll;
	background-position: center;
}
QSpinBox::down-button:disabled
{
	background-image:url(./Skin/theme1/updownbtn/down_disabled.png);
	background-attachment: scroll;
	background-position: center;
}
/*up button of QDateTimeEdit*/
QDateTimeEdit::up-button
{
	background-image:url(./Skin/theme1/updownbtn/up_default.png);
	background-attachment: scroll;
	background-position: center;
	height:10px;
}
QDateTimeEdit::up-button:hover
{
	background-image:url(./Skin/theme1/updownbtn/up_hover.png);
	background-attachment:scroll;
	background-position: center;
}
QDateTimeEdit::up-button:pressed
{
	background-image:url(./Skin/theme1/updownbtn/up_pressed.png);
	background-attachment:scroll;
	background-position: center;
}
QDateTimeEdit::up-button:disabled
{
	background-image:url(./Skin/theme1/updownbtn/up_disabled.png);
	background-attachment: scroll;
	background-position: center;
}
/*down button of QDateTimeEdit*/
QDateTimeEdit::down-button
{
	background-image:url(./Skin/theme1/updownbtn/down_default.png);
	background-attachment:scroll;
	background-position: center;
	height:10px;
}
QDateTimeEdit::down-button:hover
{
	background-image:url(./Skin/theme1/updownbtn/down_hover.png);
	background-attachment:scroll;
	background-position: center;
}
QDateTimeEdit::down-button:pressed
{
	background-image:url(./Skin/theme1/updownbtn/down_pressed.png);
	background-attachment:scroll;
	background-position: center;
}
QDateTimeEdit::down-button:disabled
{
	background-image:url(./Skin/theme1/updownbtn/down_disabled.png);
	background-attachment: scroll;
	background-position: center;
}

/* QFaceDetect */
QFaceDetect > QToolButton#btnExpand
{
	border-image:url(./Skin/theme1/Face/Expand.png) 0 592 0 0;
}
QFaceDetect  > QToolButton#btnExpand:hover
{
	border-image:url(./Skin/theme1/Face/Expand.png) 0 444 0 148;
}
QFaceDetect > QToolButton#btnExpand:pressed
{
	border-image:url(./Skin/theme1/Face/Expand.png) 0 296 0 296;
}
QFaceDetect > QToolButton#btnExpand:disabled
{
	border-image:url(./Skin/theme1/Face/Expand.png) 0 148 0 444;
}

QFaceDetect > QToolButton#btnContract
{
	border-image:url(./Skin/theme1/Face/Contract.png) 0 592 0 0;
}
QFaceDetect  > QToolButton#btnContract:hover
{
	border-image:url(./Skin/theme1/Face/Contract.png) 0 444 0 148;
}
QFaceDetect > QToolButton#btnContract:pressed
{
	border-image:url(./Skin/theme1/Face/Contract.png) 0 296 0 296;
}
QFaceDetect > QToolButton#btnContract:disabled
{
	border-image:url(./Skin/theme1/Face/Contract.png) 0 148 0 444;
}

QFaceDetect > QToolButton#btnLeft
{
	border-image:url(./Skin/theme1/Face/GoLeft.png) 0 48 0 0;
}
QFaceDetect  > QToolButton#btnLeft:hover
{
	border-image:url(./Skin/theme1/Face/GoLeft.png) 0 32 0 16;
}
QFaceDetect > QToolButton#btnLeft:pressed
{
	border-image:url(./Skin/theme1/Face/GoLeft.png) 0 16 0 32;
}
QFaceDetect > QToolButton#btnLeft:disabled
{
	border-image:url(./Skin/theme1/Face/GoLeft.png) 0 0 0 48;
}

QFaceDetect > QToolButton#btnRight
{
	border-image:url(./Skin/theme1/Face/GoRight.png) 0 48 0 0;
}
QFaceDetect  > QToolButton#btnRight:hover
{
	border-image:url(./Skin/theme1/Face/GoRight.png) 0 32 0 16;
}
QFaceDetect > QToolButton#btnRight:pressed
{
	border-image:url(./Skin/theme1/Face/GoRight.png) 0 16 0 32;
}
QFaceDetect > QToolButton#btnRight:disabled
{
	border-image:url(./Skin/theme1/Face/GoRight.png) 0 0 0 48;
}

/*设备管理*/
DevAddWidget  > QPushButton#btnAllDevice,
DevAddWidget  > QPushButton#btnEncodeDevice,
DevAddWidget  > QPushButton#btnDecodeDevice,
DevAddWidget  > QPushButton#btnMatrixDevice,
DevAddWidget  > QPushButton#btnControllerDevice,
DevAddWidget  > QPushButton#btnACSDevice,
DevAddWidget  > QPushButton#btnVDPDevice
{
    border-image:url(./Skin/theme1/devmanage/devicebutton_normal.png);  
}
DevAddWidget  > QPushButton#btnAllDevice:pressed,
DevAddWidget  > QPushButton#btnEncodeDevice:pressed,
DevAddWidget  > QPushButton#btnDecodeDevice:pressed,
DevAddWidget  > QPushButton#btnMatrixDevice:pressed,
DevAddWidget  > QPushButton#btnControllerDevice:pressed,
DevAddWidget  > QPushButton#btnACSDevice:pressed,
DevAddWidget  > QPushButton#btnVDPDevice:pressed
{
    border-image:url(./Skin/theme1/devmanage/devicebutton_select.png); 
}
DevAddWidget  > QPushButton#btnAllDevice:checked,
DevAddWidget  > QPushButton#btnEncodeDevice:checked,
DevAddWidget  > QPushButton#btnDecodeDevice:checked,
DevAddWidget  > QPushButton#btnMatrixDevice:checked,
DevAddWidget  > QPushButton#btnControllerDevice:checked,
DevAddWidget  > QPushButton#btnACSDevice:checked,
DevAddWidget  > QPushButton#btnVDPDevice:checked
{
    border-image:url(./Skin/theme1/devmanage/devicebutton_select.png); 
}
DevAddWidget  > QPushButton#btnAllDevice:disabled,
DevAddWidget  > QPushButton#btnEncodeDevice:disabled,
DevAddWidget  > QPushButton#btnDecodeDevice:disabled,
DevAddWidget  > QPushButton#btnMatrixDevice:disabled,
DevAddWidget  > QPushButton#btnControllerDevice:disabled,
DevAddWidget  > QPushButton#btnACSDevice:disabled,
DevAddWidget  > QPushButton#btnVDPDevice:disabled
{
    border-image:url(./Skin/theme1/devmanage/devicebutton_normal.png);
}

DevAddWidget  > QFrame#line
{
	border:none;
	border-bottom: 1px solid rgb(174,182,197);
}

/*设备搜索*/
AutoSearchOnlineDev QWidget#widget
{
	border: 1px solid rgb(130,135,144);
}

AutoSearchOnlineDev QWidget#wgtBackground
{
	border:none;
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #d1d0d0, stop: 1 #e9e8e8);
}

/*设备管理自定义表格*/
DevAddTableview QWidget#wgtFrame
{
	background-color: #ced5e1;
	border: 1px solid rgb(130,135,144);
	border-left: none;
}

/*设备配置主页面*/
DevCfgLeftBar QWidget#wgtTreeBar
{
	border: 1px solid rgb(180, 188, 201);
}

DevCfgLeftBar QWidget#wgtSwitchTree
{
	border:none;
	background: url(./Skin/theme1/DevCfg/common/Devconfig_Title.png);
}

/*门禁-人事管理-部门树*/
clsAcsDepTreeWidget clsMyTreeWidget#treeDepartment
{
     background-color:rgb(219,221,225); 
}

clsAcsDepTreeWidget clsMyTreeWidget#treeDepartment::item
{
     height: 20 px;
}


/*门禁-人事管理 人员权限-部门树边框*/
clsASCPersonManager QWidget#wgtFrame,
clsACSPersonAuthorityDlg QWidget#wgtFrame
{
	border: 1px solid rgb(130,135,144);
}

clsASCPersonManager QWidget#wgtTitle,
clsACSPersonAuthorityDlg QWidget#wgtTitle
{
	border-bottom: 1px solid rgb(130,135,144);
	background: url(./Skin/theme1/ACS/tree_title.png);
}

/*门禁-人事管理-指纹信息*/
clsACSFingerPrintInfoDlg QWidget#graphicsView
{
	background: rgb(219,221,225);
}

clsACSFingerPrintInfoDlg QTreeWidget#treeWidgetController,
clsAcsMassSendCardDlg QTreeWidget#treeWidgetController
{
     background-color:rgb(206,213,225); 
}

/*主控台表格字体选中颜色置为none，代码代理中设置选中色与未选中色相同（由于基类为treeview，设为选中色为白色了）*/
ACSMainControl DSGUI--DSTableView#tableEventInfoList::item:selected,
ACSMainControl DSGUI--DSTableView#tableEventInfoList::branch:selected
{	
	color: none;
}

