/*/////////////////////////////////////////////////////////////////////////
//                                                                       //
//   Switchy! Chrome Proxy Manager and Switcher                          //
//   Copyright (c) 2009 Mohammad Hejazi (mohammadhi at gmail d0t com)    //
//   Dual licensed under the MIT and GPL licenses.                       //
//                                                                       //
/////////////////////////////////////////////////////////////////////////*/

body {
	padding: 0 18%;
	cursor: default;
	background-color: #fafbff;
	?-webkit-user-select: none;
	
	direction: rtl;
	text-align: right;
	direction: ltr;
	text-align: left;
	
	visibility: hidden;
}

body, td, input, select, textarea, button {
	color: #4e607d;
	font: menu;
	font-size: 9pt;
}

hr {
	height: 0px;
	border: 0;
	border-top: solid 1px #ddd;
	margin: 15px 0;
}

small {
	font-size: 7.5pt;
	font-weight: normal;
}

.ltr, .ltr * {
	direction: ltr !important;
	text-align: left !important;
}

.link {
	text-decoration: none;
}

.button {
	?width: 120px;
	min-width: 120px;
	color: #567;
	display: inline-block;
	cursor: pointer;
	text-align: center;
	padding: 6px;
	border: solid 1px #abc;
	border-radius: 2px;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f0f5fc), color-stop(1, #e0e9f4));
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0, #fff), color-stop(0.4, hsl(0, 0%, 96%)), color-stop(0.41, hsl(0, 0%, 92%)));
	-webkit-box-shadow: 0px 1px 2px #ddd;
}

.button.bold {
	font-weight: bold;
}

.button:hover {
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f6fafe), color-stop(1, #e3ebf7));
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0, #fff),  color-stop(0.4, hsl(215, 67%, 96%)), color-stop(0.41, hsl(213, 48%, 92%)));
}

.button:active {
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #e0e9f4), color-stop(1, #f5f9f4));
}

.button img {
	vertical-align: text-bottom;;
}

#optionsTable {
	width: 100%;
}

#optionsTable td {
	padding: 0px;
}

#header {
	font-size: 18pt;
	text-shadow: #ccc 1px 1px 3px;
	border: solid 1px #abc;
	border-radius: 6px;
	padding: 3px;
	margin-bottom: 10px;
	background-color: #eaeeff;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f4f9ff), color-stop(1, #e5ecf9));
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0, #fff), color-stop(0.48, hsl(217, 73%, 97%)), color-stop(0.51, hsl(217, 62%, 95%)));
	-webkit-box-shadow: 0px 1px 2px #ddd;
}

#header img {
	vertical-align: middle;
	margin: 0 4px;
}

#header * {
	font-size: 18pt;
	text-shadow: #ccc 1px 1px 3px;
}

#header .close {
	padding: 15px;
	cursor: pointer;
}

#tabsRow td {
	?border: solid 1px #d1dbdf;
	?border-radius: 6px 6px 0px 0px;
	background-color: #f8fafd;
	border-bottom: solid 1px #d1dbdf;
}

#tabsContainer {
	border-bottom: solid 1px #d1dbdf;
	background-color: #fafbff;
	margin-bottom: -4px;
}

#tabsContainer div {
	?width: 125px;
	vertical-align: bottom;
	font-size: 9pt;
	font-weight: bold;
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0, hsl(197, 54%, 97%)), color-stop(1, hsl(207, 43%, 96%)));
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0.4, #fff), color-stop(0.41, hsl(207, 0%, 98%)));
	border: solid 1px #abc;
	border-radius: 3px 3px 0px 0px;
	margin-bottom: -1px;
	display: inline-block;
	text-align: center;
	padding-top: 6px;
	padding-bottom: 7px;
	padding-left: 8px;
	padding-right: 8px;
	color: #7e90ad;
	cursor: pointer;
	opacity: 0.8;
	-webkit-transition: opacity 0.5s, -webkit-box-shadow 0.3s;
	-webkit-margin-start: 2px;
}

#tabsContainer div:first-child {
	-webkit-margin-start: 0px;
}

#tabsContainer div.selected {
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0, hsl(195, 80%, 99%)), color-stop(1, hsl(216, 56%, 98%)));
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0.4, #fafcfd), color-stop(0.41, hsl(207, 43%, 96%)), color-stop(0.8, hsl(216, 56%, 98%)));
	border-bottom: solid 1px #eaeff3;
	?border-bottom: solid 1px hsl(216, 56%, 98%);
	?color: #5e708d;
	-webkit-box-shadow: 0px 0px 1px #ddd;
	-webkit-transition: opacity 0.5s, -webkit-box-shadow 0.3s;
	opacity: 1;
}

#tabsContainer div.normal:hover {
	background: none;
	background-color: hsl(197, 54%, 97%);
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0.4, #fff), color-stop(0.41, hsl(216, 60%, 98%)));
}

#tabsContainer div label {
	cursor: pointer;
}

#tabProfilesBody, #tabNetworkBody, #tabGeneralBody, #tabImportExportBody, #tabRulesBody {
	display: none;
}

.cover {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 100;	
}

#body {
	height: 100%;
	padding: 13px;
	?padding-left: 23px;
	border: solid 1px #abc;
	border-radius: 0px 0px 6px 6px;
	background-color: hsl(216, 56%, 98%);
	-webkit-box-shadow: 0px 0px 2px #eee;
}

#body .title {
	font-weight: bold;
	margin-bottom: 2px;
	?margin-left: -8px;
	?text-shadow: #eee 1px 1px 2px;
}

#body .control {
	text-align: right;
}

#body .spacer, #body .spacer25 {
	height: 25px;
}

#body .spacer20 {
	height: 20px;
}

#body .spacer10 {
	height: 10px;
}

#body .spacer5 {
	height: 5px;
}

#proxyTable {
	border-spacing: 0px;
	border-collapse: collapse;
}

#proxyTable th, #proxyTable td {
	padding: 0px;
}

#proxyTable th div, .tab .title {
	text-align: start;
	padding: 5px 0px 8px 0px;
	margin-bottom: 0px;
	font-size: 9pt;
	font-weight: bold;
}

#proxyTable td {
	vertical-align: top;
}

#proxyProfiles, .rulesTable {
	width: 100%;
	height: 100%;
	border: solid 1px #d0d6d9;
	border-spacing: 1px;
	margin-bottom: 10px;
	?padding: 1px;
	table-layout: fixed;
}

#proxyProfiles th, #proxyProfiles td, .rulesTable th, .rulesTable td {
	text-align: start;
}

#proxyProfiles th, .rulesTable th {
	height: 28px;
	padding: 0px 8px;
	font-size: 9pt;
	font-weight: normal;
	border: solid 0px #d2e4e9;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f2f7fe), color-stop(1, #e1eaf6));
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0, #fff), color-stop(0.48, hsl(217, 73%, 96%)), color-stop(0.51, hsl(217, 62%, 94%)));
}

#proxyProfiles td {
	height: 28px;
	border: solid 1px #e0e4e6;
	overflow: hidden;
	vertical-align: middle;
	cursor: pointer;
	background-color: #fafbff;
	?background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f8fbfe), color-stop(1, #eef3fd));
}

#proxyProfiles tr:nth-child(odd) td {
	background-color: #f8fafc;
}

#proxyProfiles td:first-child {
	?border-left: none;
}

.rulesTable {
	border-spacing: 0px;
	-webkit-box-shadow: 0px 0px 2px #ddd;
}

.rulesTable th {
	border-left: solid 1px #e2e7e9;
	border-bottom: solid 1px #d7dbe0;
	font-weight: bold;
	color: #6e809d;
	white-space: nowrap;
	overflow: hidden;
}

.rulesTable td {
	height: 29px;
	border-top: solid 1px #e2e7e9;
	border-left: solid 1px #e2e7e9;
	background-color: #fafcfe;
	overflow: hidden;
	padding: 1px;
	?white-space: nowrap;
}

.rulesTable td:first-child, .rulesTable th:first-child {
	?border-left: none;
}

.rulesTable tr:nth-child(odd) td {
	background-color: #f8fafc;
}

.rulesTable .defaultRow td {
	background-color: #f0f3f4 !important;
}

#proxyProfiles td:hover {
	?background-color: #f8fbfe;
	?background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f8fbfe), color-stop(1, #f2f7fe));
}

#proxyProfiles .selected td {
	border: solid 1px #cde;
	font-size: 9pt;
	font-weight: bold;
	background-color: #d5e5f3;
	background-color: #e0e9ea;
	background-color: #dae4ff !important;
	background: -webkit-gradient(linear, left top, left bottom, 
		color-stop(0, hsl(217, 62%, 95%)), color-stop(1, hsl(217, 62%, 91%)));
}

#proxyProfiles td:first-child {
	padding: 0px 8px;
	white-space: nowrap;
}

#proxyProfiles td:last-child {
	text-align: center;
}

#proxyProfiles td input, .rulesTable td input {
	width: 100% !important;
	min-height: 24px;
	height: 100%;
	padding: 0px 3px;
	display: none;
}

.rulesTable td select {
	display: block;
	?border: solid 1px #f9fbfe;
	border: solid 1px #ccddee;
	?background-color: #f9fbfe;
	width: 100% !important;
	min-height: 22px;
	height: 22px !important;
	margin: 0px 2px 0px 0px;
}

?#rulesTable td select:hover {
	background-color: #fff;
	border: solid 1px #ccddee;
}

.rulesTable td input[type='radio'] {
	display: inline-block;
	width: auto;
}

.rulesTable td input {
	?display: block;
	font-size: 9pt;
	z-index: 30;
}

.rulesTable td .tag {
	?display: inline;
	position: relative;
	z-index: 100;
	float: right;
	font-size: 8pt;
	background-color: #8ac;
	color: #fff;
	padding: 2px;
	margin-right: 4px;
	?border: solid 1px #d1dbdf;
	border-radius: 3px;
}

#ruleListsTable input {
	display: block;
}

#proxyProfiles td span, .rulesTable td span {
	-webkit-padding-start: 6px;
}

#proxyProfiles td img, .rulesTable td img {
	cursor: pointer;
}

#proxyProfiles .color {
	height: 100%;
	padding: 6px;
}

#proxyProfiles .color div {
	cursor: pointer;
	height: 100%;
}

#proxyProfiles .blue {
	background-color: #9ce;
	outline: solid 1px #7ac;
}

#proxyProfiles .green {
	background-color: #9d9;
	outline: solid 1px #7b7;
}

#proxyProfiles .red {
	background-color: #fa8;
	outline: solid 1px #d86;
}

#proxyProfiles .yellow {
	background-color: #fe9;
	outline: solid 1px #dc7;
}

#proxyProfiles .purple {
	background-color: #d497ee;
	outline: 1px solid #b477ce;
}

#proxyProfiles .cblue {
	color: #47b;
}

#proxyProfiles .cgreen {
	color: #5b5;
}

#proxyProfiles .cred {
	color: #d63;
}

#proxyProfiles .cyellow {
	color: #ca0;
}

#proxyProfiles .delete, .rulesTable .delete {
	background: url("../images/delete.png") center no-repeat;
	cursor: pointer;
	height: 100%;
}

#proxyProfiles .templateRow, .rulesTable .templateRow {
	display: none;
}

#proxyProfiles .unknown td {
	background-color: #fbf9f4 !important;
	cursor: default;
}

#proxyProfiles .unknown td:nth-child(2) * {
	display: none;
}

#proxyProfiles .unknown .delete {
	display: none;
}

#profileDetails, #tabNetworkBody table, #tabGeneralBody table, .optionGroup {
	width: 100%;
	height: 100%;
	border: solid 1px #d1dadd;
	border-spacing: 8px;
	empty-cells: show;
	padding: 6px;
	background-color: #f4f8fa;
}

#profileDetails td {
	vertical-align: middle;
	white-space: nowrap;
}

#profileDetails td:nth-child(2) {
	width: 70%;
}

#profileDetails td:nth-child(4) {
	width: 30%;
	white-space: normal;
}

#profileDetails input[type="text"] {
	width: 100%;
	padding-left: 2px;
	padding-right: 2px;
}

#profileDetails input, .tab input {
	margin: 0;
	vertical-align: text-bottom;
	?font-size: 10pt;
}

#profileDetails input[disabled] {
	background-color: #eee;
	border: solid 1px #ccc;
	padding: 2px 1px;
}

#profileDetails hr {
	margin: 6px 0;
}

#profileDetails .disabled, .tab .disabled, .tab .disabled * {
	color: #aaa;
}

#profileDetails .indent td:first-child, .tab .indent td:first-child {
	-webkit-padding-start: 22px !important;
}

.tab div.indent {
	-webkit-padding-start: 16px;
	padding-bottom: 8px;
}

#profileDetails .section td {
	padding: 10px 0px 3px 0px;
}

#profileDetails .section label, .tab .section label {
	padding: 10px 0px;
}

#tabRulesBody td, #tabNetworkBody td, #tabGeneralBody td, #tabImportExportBody td {
	white-space: nowrap;
	padding: 2px;
}

#tabRulesBody select, #tabNetworkBody select, #tabGeneralBody select, #tabImportExportBody select {
	width: 200px;
	height: 140%;
}

#tabRulesBody td:nth-child(2), #tabNetworkBody td:nth-child(2), #tabGeneralBody td:nth-child(2), #tabImportExportBody td:nth-child(2) {
	width: 100%;
}

#tabImportExportBody input[type='text'] {
	width: 100%;
	height: 85%;
	padding: 0px 3px;
} 

#tabImportExportBody input[type='text'].initial {
	color: #888;
	font-style: italic;
} 

#ruleListTable {
	?table-layout: fixed;
}

#ruleListTable td:nth-child(2) {
	width: 70%;
}

#ruleListTable td:nth-child(5) {
	width: 30%;
}

#ruleListTable td:nth-child(3) {
	width: 0%;
}

#ruleListTable select {
	height: 22px;
}

#ruleListTable input, #ruleListTable select {
	width: 100%;
}

#proxyList {
	width: 100%;
	margin-top: -5px;
	border-spacing: 0;
	border-collapse: collapse;
}

#proxyList td:first-child {
	white-space: nowrap;
	padding-right: 10px;
}

#proxyList td:nth-child(2) {
	width: 100%;
}

#proxyList input {
	margin: 0;
}

#txtProxyListURL {
	width: 100%;
}
