.magicbox-grid {
	direction: rtl;
	border-collapse: collapse;
	border: 1px solid #404040;
	margin: 2em auto 1em;
	width: 640px;
	font-size: 9pt;
	cursor: default;
	background: #FFFFFF;
	font-family: inherit;
	font-size: inherit;
}

.magicbox-grid > caption {
	text-align: right;
	font-weight: bold;
	margin-bottom: 0.5em;
	color: #00A050;
	line-height: 2.4em;
	font-family: inherit;
	font-size: inherit;
}

.magicbox-grid > caption > em {
	float: left;
	font-style: normal;
	text-align: left;
	line-height: 1.2em;
}

.magicbox-grid thead th {
	text-align: center;
	border: 1px solid #404040;
	padding: 0.5em 1em 0.6em;
	background: #606060;
	color: #FFFFFF;
}

.magicbox-grid tbody td {
	text-align: center;
	border: 1px solid #404040;
	padding: 0.4em 0.5em 0.5em;
	font-family: inherit;
	font-size: inherit;
}

.magicbox-grid tbody td button:disabled {
	background: #C0C0C0 !important;
	color: #A0A0A0 !important;
	border: 1px solid #A0A0A0 !important;
	cursor: default !important;
}

.magicbox-grid tbody tr[data-status="1"] {
	background-color: #A0F0FF;
}

.magicbox-grid tbody tr[data-status="2"] {
	background-color: #FFE0C0;
}

.magicbox-grid tbody tr[data-used="1"] {
	background-color: #A0F0FF;
}


/******************************************************************************/


.magicbox-msg {
	direction: rtl;
	margin: 1em auto 2em;
	width: 640px;
	border: 1px solid #A0A0A0;
	border-radius: 8px;
	background: #F0F0F0;
	color: #404040;
	padding: 1em;
	text-align: center;
	box-sizing: border-box;
}

.magicbox-msg[role=""] {
	display: none;
}

.magicbox-msg[role="error"] {
	border-color: #E00000;
	box-shadow: 0px 0px 4px rgba(255,0,0,0.5);
	background: #FFF0F0;
	color: #A00000;
}

.magicbox-msg[role="info"] {
	border-color: #0090C0;
	background: #C0F0FF;
	color: #0080A0;
}

.magicbox-msg[role="success"] {
	border-color: #80C0A0;
	box-shadow: 0px 0px 4px rgba(128,192,160,0.5);
	background: #C0FFE0;
	color: #40A070;
}

/******************************************************************************/

.magicbox-layout{
	direction: rtl;
	margin: 1em auto 2em;
	width: 640px;
	border: 1px solid #A0A0A0;
	border-radius: 8px;
	background: #F0F0F0;
	color: #404040;
	text-align: right;
	box-sizing: border-box;
}

.magicbox-layout-row {
	display: block;
	margin: 1em;
}

/******************************************************************************/

.magicbox-wnd {
	font-family: Vazir,Tahoma;
	font-size: 9pt;
	position: fixed;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	background: rgba(0,0,0,0.6);
	line-height: 1em;
	display: none;
}

.magicbox-wnd-wrap {
	position: fixed;
	left: 50%;
	top: 50%;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	min-width: 240px;
	background: #FFFFFF;
	border: 1px solid #E0E0E0;
	border-radius: 0px;
}

.magicbox-wnd-title {
	border-bottom: 1px solid #404040;
	margin: 0px;
	background: #404040;
	color: #FFFFFF;
	cursor: default;
	overflow: auto;
}

.magicbox-wnd-title > span {
	display: inline-block;
	line-height: 24px;
	margin: 4px 8px;
	font-weight: bold;
}

.magicbox-wnd-title > button {
	font-size: 0px;
	box-shadow: none;
	padding: 0px;
	border: 1px solid #F0F0F0;
	border-radius: 100%;
	background: #808080 center center no-repeat;
	width: 24px;
	height: 24px;
	float: left;
	margin: 4px;
}

.magicbox-wnd-title > button[role="close"] {
	background-image: url("../images/close-button.png");
	background-color: #D00000;
	border-color: #FFA0A0;
}

.magicbox-wnd-title > button[role="close"]:hover {
	background-color: #F02020;
}

.magicbox-wnd-content {
	margin: 8px;
	padding: 8px;
	line-height: 1.5em;
}

.magicbox-wnd-buttons {
	background: #404040;
	padding: 4px;
	text-align: center;
}

.magicbox-wnd-button {
	box-shadow: none;
	padding: 0.2em 0.5em 0.3em;
	border: 0px solid Transparent;
	border-radius: 0px;
	background: #E0E0E0;
	margin: 4px;
	font-weight: normal;
	color: #404040;
	height: auto;
	line-height: 1.5em;
	cursor: pointer;
	font-family: Vazir, Tahoma;
	font-size: 9pt;
}

.magicbox-wnd-button:hover {
	padding: 0.2em 0.5em 0.3em;
	height: auto;
	font-family: Vazir, Tahoma;
	font-size: 9pt;
	background: #F0F0F0;
}
