/* global settings */
* {
	padding: 0;
	margin: 0;
	border: none;
	font: Helvetica,Tahoma,Arial,"微软雅黑","宋体",sans-serif;
	position: relative;
}

/* Can not define global font-size which causes font-size lose effectiveness on link with class: text-ellipsis  */
INPUT, DIV, SPAN {
	font: 13px/1.5 Helvetica,Tahoma,Arial,"微软雅黑","宋体",sans-serif;
}

A {
	font: 12px/1.3 Helvetica,Tahoma,Arial,"微软雅黑","宋体",sans-serif;
	line-height: 20px;
}

A:visited {
	color: #4B649A;
}

DIV {
	-moz-box-sizing: border-box;
}

.text-ellipsis {
	-moz-binding: url("chrome://ntab/skin/ellipsis.xml#ellipsis");
}
/* end */

/** styles for layout **/
HTML {
	/*always show vertical scroll bar*/
	overflow-y: scroll;
}

HTML, BODY{
	height: 100%;
}

DIV.div-table {
	display: table;
}

DIV.div-table > DIV {
	display: table-row;
}

DIV.div-table > DIV > DIV{
	display: table-cell;
}

DIV#layout {
	width: 100%;
	height: 100%;
}

DIV#layout > DIV:first-child > DIV {
	height: 30px;
	padding-right: 10px;
	vertical-align: middle;
}

DIV.hide {
	display: none;
}
/* end */

/** styles for switch buttons **/
#layout > DIV:first-child DIV.button-switch {
	float: right;
	margin-right: 10px;
	cursor: pointer;
	width: 25px;
	height: 18px;
	text-align: center;
}

#layout > DIV:first-child DIV.feedback {
	float: right;
	top: -1px;
}

#layout > DIV:first-child DIV.feedback A {
	text-decoration: none;
	margin: 0 10px;
	padding-left: 23px;
	background: url("chrome://ntab/skin/icon/feedback.png") no-repeat scroll 0 0 transparent;
}

#layout > DIV:first-child DIV.feedback A:hover {
	text-decoration: underline;
}

#layout > DIV:first-child DIV.text-browser {
	display: none;
	float: left;
	margin-left: 20px;
	padding: 0 10px;
	cursor: pointer;
	color: #6C90A5;
	border: 1px solid #7796B3;
	-moz-border-radius: 3px;
	background: -moz-linear-gradient(center top , #FFFFFF, #F2EFE9) repeat scroll 0 0 transparent;
	font-size: 12px;
}

#layout > DIV:first-child DIV.text-browser:hover {
	background: -moz-linear-gradient(center top , #B3DDF6, #0B4469) repeat scroll 0 0 transparent;
	color: #FFF;
}

DIV#set_default_browser_msg {
	display: none;
	cursor: default !important;
}

DIV#set_homepage_msg: {
	display: none;
	cursor: default !important;
}

#layout > DIV:first-child DIV.selected {
	cursor: auto;
}

#ntab-view-switchers-box {
	overflow: hidden;
	float: right;
}

#ntab-view-switchers-box[class*=blank] {
	opacity: 0.4;
}

#ntab-view-switchers-box:hover {
	opacity: 1;
}

DIV#btn_blank {
	background: url("chrome://ntab/skin/icon/blank.png") no-repeat scroll 0 0 transparent;
}
DIV#btn_blank:hover,
DIV#btn_blank[class*=selected] {
	cursor: auto;
	background: url("chrome://ntab/skin/icon/blank2.png") no-repeat scroll 0 0 transparent;
}

DIV#btn_nav {
	background: url("chrome://ntab/skin/icon/nav.png") no-repeat scroll 0 0 transparent;
}
DIV#btn_nav:hover,
DIV#btn_nav[class*=selected] {
	background: url("chrome://ntab/skin/icon/nav2.png") no-repeat scroll 0 0 transparent;
}

DIV#btn_search {
	background: url("chrome://ntab/skin/icon/search.png") no-repeat scroll 0 0 transparent;
}
DIV#btn_search:hover,
DIV#btn_search[class*=selected] {
	background: url("chrome://ntab/skin/icon/search2.png") no-repeat scroll 0 0 transparent;
}

DIV#btn_quickdial {
	background: url("chrome://ntab/skin/icon/dial.png") no-repeat scroll 0 0 transparent;
}
DIV#btn_quickdial:hover,
DIV#btn_quickdial[class*=selected] {
	background: url("chrome://ntab/skin/icon/dial2.png") no-repeat scroll 0 0 transparent;
}

/* end */

/* styles for quick dial */
DIV#quick_dial {
	width: 100%;
	height: 100%;
	padding-top: 0px;
}

DIV#quick_dial > DIV:first-child {
	height: 45px;
}


#quick_dial_search_box {
	text-align: center;
}

#quick_dial_search_box IFRAME {
	overflow: hidden;
	height: 45px;
	width: 100%;
	visibility: hidden;
}

#quick_dial_box {
	margin: auto;
}

#quick_dial_box > DIV {
	height: 50%;
}

#quick_dial_box > DIV > DIV {
	padding: 7px;
}

DIV.quick-dial-item {
	width: 224px;
	height: 180px;
	padding: 4px;
	border: 1px solid transparent;
}

DIV.quick-dial-item:hover {
	border: 1px solid rgb(179, 221, 245);
	-moz-border-radius: 4px;
	-moz-box-shadow: 1px 1px 10px #A9A9A9;
}

DIV.quick-dial-item DIV.loading {
	background: url("chrome://ntab/skin/throbber.gif") no-repeat scroll center center transparent;
}

DIV.quick-dial-item-drag-over {
	border: 1px solid rgb(210, 149, 17);
	opacity: 0.6;
	-moz-border-radius: 4px;
	-moz-box-shadow: 1px 1px 10px #A9A9A9;
}

DIV.quick-dial-item DIV.btn-opt {
	float: right;
	margin: 3px 3px 0 0;
	cursor: pointer;
	visibility: hidden;
	height: 20px;
	width: 20px;
}

div.quick-dial-item div.btn-opt-edit {
	background: url("chrome://ntab/skin/icon/edit.png") no-repeat scroll 0 0 transparent;
}

div.quick-dial-item div.btn-opt-edit:hover {
	background: url("chrome://ntab/skin/icon/edit2.png") no-repeat scroll 0 0 transparent;
}

div.quick-dial-item div.btn-opt-del {
	background: url("chrome://ntab/skin/icon/del.png") no-repeat scroll 0 0 transparent;
}

div.quick-dial-item div.btn-opt-del:hover {
	background: url("chrome://ntab/skin/icon/del2.png") no-repeat scroll 0 0 transparent;
}

DIV.quick-dial-item:hover DIV.btn-opt {
	visibility: visible;
}

/*height: 100% is not working under firefox3.5*/
DIV.quick-dial-item > DIV > DIV {
	height: 140px;
}

DIV.quick-dial-item > DIV:first-child > DIV {
	height: 30px;
}

DIV.quick-dial-item > DIV:last-child > DIV > DIV {
	-moz-border-radius: 4px;
	border: 4px solid #C6E7F6;
	background-color: rgb(243, 251, 254);
	overflow: hidden;
	height: 100%;
	text-align: center;
	cursor: pointer;
	-moz-box-shadow: 0 1px 11px #CCC;
}

DIV.quick-dial-item:hover > DIV:last-child > DIV > DIV {
	-moz-box-shadow: none;
}

DIV.quick-dial-item .dial-bar {
	width: 100%;
	height: 100%;
}

DIV.quick-dial-item .dial-bar .dial-title {
	cursor: move;
}

DIV.quick-dial-item .dial-bar .dial-title > DIV {
	height: 20px;
}

DIV.quick-dial-item .dial-bar .dial-opt-box {
	width: 20px;
}

DIV.quick-dial-item .dial-bar .dial-favicon {
	width: 16px;
	padding-right: 3px;
	vertical-align: bottom;
}

DIV.quick-dial-item .dial-bar .dial-favicon > DIV {
	text-align: center;
}

DIV.quick-dial-item .dial-bar .dial-favicon > DIV > IMG {
	max-height: 16px;
	max-width: 16px;
}

DIV.quick-dial-item .dial-bar .dial-favicon > DIV.dial-def-favicon > IMG{
	padding-bottom: 1px;
}

DIV.quick-dial-item .quickdial-add {
	background: url(chrome://ntab/skin/icon/add60x60.png) no-repeat scroll center 22px transparent;
}

DIV.quick-dial-item .quickdial-add SPAN {
	display: inline-block;
	font-size: 12px;
	border: 1px solid #B3DDF5;
	padding: 3px 5px 3px 23px;
	margin-top: 96px;
	background: url(chrome://ntab/skin/icon/add13x13.png) no-repeat scroll 6px center transparent;
	-moz-border-radius: 8px;

}
/* end */

/* styles for navigation and search */
#nav,
#search {
	height: 100%;
	text-align: center;
	overflow-y: hidden;
}

#nav IFRAME,
#search IFRAME {
	height: 100%;
	/* set height dynamically in js*/
	width: 100%;
	overflow: hidden;
}
/* end */


/* styles for prompt */
#prompt-dialog {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 1000;
	background-color: rgba(0,0,0,0.4);
}

#prompt-dialog > DIV > DIV {
	vertical-align: middle;
	text-align: center;
}

#prompt-container {
	margin: auto;
	width: 372px;
	border: 1px solid rgb(225, 225, 225);
	-moz-border-radius: 5px;
	padding: 5px 15px 14px;
	background-color: #FFF;
}

#prompt-container .prompt-close-btn {
	float: right;
	cursor: pointer;
}

#prompt-container A.prompt-btn {
	cursor: pointer;
	border: 1px solid rgb(199, 199, 199);
	padding: 2px 10px;
	margin-right: 10px;
	-moz-border-radius: 2px;
	background: -moz-linear-gradient(center top , #FDFDFD, #EDEDED);
	color: #000;
	text-decoration: none;
}

DIV.confirm-msg {
	font-size: 16px;
	padding: 0 20px 10px;
}

DIV.prompt-add-dial > DIV:first-child INPUT[type=checkbox] {
	display: none;
}

DIV.prompt-add-dial > DIV:first-child SPAN.refresh {
	display: none;
}

DIV.prompt-add-dial > DIV:first-child > INPUT[type=text] {
	width: 220px !important;
	font-size: 12px;
}

DIV.prompt-edit-dial > DIV:first-child {
	text-align: left;
	padding-bottom: 6px;
}

DIV.prompt-edit-dial > DIV:first-child > LABEL {
	font-weight: bold;
	font-size: 15px;
	padding-left: 24px;
}

DIV.prompt-edit-dial > DIV:first-child > INPUT[type=text] {
	border: 1px solid #D9D9D9;
	-moz-border-radius: 5px;
	padding: 2px 5px;
	width: 198px;
	margin-top: 5px;
}

DIV.prompt-edit-dial > DIV:first-child > INPUT[type=text]:first-child {
	margin-top: 0;
}

DIV.prompt-edit-dial DIV.tabbox {
	border: 1px solid #DDD;
	-moz-border-radius: 5px;
	margin: 10px 0;
}

DIV.prompt-edit-dial DIV.tabs {
	padding: 0 5px;
	margin-top: 5px;
	overflow: hidden;
	border-bottom: 1px solid #EFEFEF;
}

DIV.prompt-edit-dial DIV.tabs > DIV.tab {
	cursor: pointer;
	float: left;
	padding: 2px 10px;
}

DIV.prompt-edit-dial DIV.tabs > DIV.selected {
	background-color: #F0F0F0;
	-moz-border-radius: 3px 3px 0 0;
}

DIV.prompt-edit-dial DIV.tabpanels {
	clear: both;
}

DIV.prompt-edit-dial DIV.tabpanels > DIV {
	display: none;
}

DIV.prompt-edit-dial DIV.tabpanels > DIV:first-child {
	display: block;
}

DIV.prompt-edit-dial DIV.tabpanels > DIV.tabpanel {
	padding-left: 5px;
	padding-top: 5px;
}

DIV.prompt-edit-dial DIV.sites-list {
	height: 210px;
	text-align: left;
	overflow-y: auto;
}

DIV.prompt-edit-dial DIV.sites-list A {
	color: #4B649A;
	text-decoration: none;
}

DIV.prompt-edit-dial DIV.sites-list A:hover {
	text-decoration: underline;
}

DIV.prompt-edit-dial DIV.sites-list > DIV > DIV {
	height: 20px;
	vertical-align: middle;
	overflow: hidden;
}

DIV.prompt-edit-dial DIV.sites-list > DIV > DIV:first-child > IMG {
	padding: 4px 10px 0 7px;
	max-height: 16px;
	max-width: 16px;
}

DIV.prompt-edit-dial DIV.sites-list > DIV > DIV:last-child {
	padding-right: 10px;
}

DIV#prompt-content-box DIV.pick-file {
	margin-bottom: 10px;
}

DIV#prompt-content-box DIV.pick-file > SPAN {
	padding-right: 10px;
}
/* end */

/* styles for history */
#history,
#show_history {
	width: 910px;
	margin: auto;
	padding: 15px 5px 0;
	margin-bottom: 20px;
}

#show_history > DIV.show-btn,
#history > DIV.tabbox > DIV.tabs > DIV.hide-btn {
	float: right;
	padding: 10px 10px 0 0;
	color: #BBB;
	cursor: pointer;
	-moz-user-select: none;
}

#history > DIV.tabbox > DIV.tabs {
	overflow: hidden;
	border-bottom: 1px solid #B3DDF6;
	margin-bottom: 5px;
}

#history > DIV.tabbox > DIV.tabs > DIV.tab {
	float: left;
	margin: 5px 0 0;
	padding: 5px 10px 0;
	cursor: pointer;
}

#history > DIV.tabbox > DIV.tabs > DIV.selected {
	background: -moz-linear-gradient(center top , #D2E0EC, #E0ECF8) repeat scroll 0 0 transparent;
	-moz-border-radius: 3px 3px 0 0;
	text-shadow: 0 1px 1px white;
}

#history > DIV.tabbox > DIV.tabs > DIV.homepagetab {
	float: left;
	margin: 5px 0 0px;
	padding: 5px 10px 0;
	cursor: pointer;
}

#history > DIV.tabbox > DIV.tabs > DIV.homepagetab > a.homepagetabanchor {
	font-size:13px;
	text-decoration: none;
}

#history > DIV.tabbox > DIV.tabpanels {
	height: 40px;
}

#history > DIV.tabbox > DIV.tabpanels > DIV.tabpanel {
	display: none;
}

#history > DIV.tabbox > DIV.tabpanels > DIV.tabpanel:first-child {
	display: block;
}

#history > DIV.tabbox > DIV.tabpanels > DIV.sites-list {
	overflow: hidden;
}

#history > DIV.tabbox > DIV.tabpanels > DIV.sites-list > DIV {
	max-width: 180px;
	height: 20px;
	float: left;
	padding: 0 10px;
	overflow: hidden;
	margin-top: 3px;
}
#history > DIV.tabbox > DIV.tabpanels #nav_sites_panel > DIV {
	padding:0;
}


#history > DIV.tabbox > DIV.tabpanels > DIV.sites-list > DIV.more {
	float: right;
}

#history > DIV.tabbox > DIV.tabpanels > DIV.sites-list > DIV > A {
	font-size: 12px;
	text-decoration: none;
	color: #16428a;
}

#history > DIV.tabbox > DIV.tabpanels > DIV.sites-list > DIV > A:hover {
	text-decoration: underline;
}

#history > DIV.tabbox > DIV.tabpanels > DIV.sites-list > DIV > A.second{
	margin-left: 3px;
	padding-left: 6px;
	background: url("chrome://ntab/skin/icon/bg.png") no-repeat scroll 0px 5px transparent;
}

#history > div.tabbox > div.tabpanels > div.nav-sites {
	height: 70px;
	overflow: hidden;
}
#history > div.tabbox > div.tabpanels > div.nav-sites > div {
	width: 90px;
	text-align: center;
}

#history > div.tabbox > div.tabpanels > div.nav-sites > div > div {
	float: left;
	margin: 2px 5px 0 0;
	height: 16px;
	width: 16px;
}
/* end */

/* styles for background customization */
body.withbg #show_history > div.show-btn,
body.withbg #history > div.tabbox > div.tabs > div.hide-btn,
body.withbg DIV.dial-used,
body.withbg DIV#history,
body.withbg #quick_dial A,
body.withbg #history div.tabs div.selected {
	color: white !important;
	text-shadow: 0 1px 3px black !important;
}

body.withbg #history div.tabs div.selected {
	background: none;
}
/* end */
