body {
	margin:0px 0px 4px 0px;
	background-color:#000000;
	direction:rtl;
	font-family:Arial, Helvetica, sans-serif;
	font-size:15px;
	color:#FFFFFF;
	line-height:24px;
	outline:none;
}
a:link {
	text-decoration:underline;
	color:#FFCC00;
	outline: none;
}
a:visited {
	text-decoration:underline;
	color:#FFCC00;
	outline: none;
}
a:hover {
	text-decoration:underline;
	color:#FFCC00;
	outline: none;
}
a:active {
  outline: none;
  text-decoration:underline;
  color:#FFCC00;
}
p {
	margin:0px;
	padding:0px;
}
.main {
	background-color:#831818;
	border-left:solid 7px #F5F0CE;
	border-right:solid 7px #F5F0CE;
}
.menu {
	font-family:Tahoma, Arial, Helvetica, sans-serif;
	font-size:13px;
	color:#FFFFFF;
	line-height:24px;
	display:block;
	width:100%;
	height:24px;
	text-indent:14px;
}
a.menu:link {
	text-decoration:none;
	color:#FFFFFF;
}
a.menu:visited {
	text-decoration:none;
	color:#FFFFFF;
}
a.menu:hover {
	text-decoration:none;
	color:#FFFFFF;
	background:url(images/active2.gif) no-repeat top right;
}
.submenu {
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	color:#FF9900;
}
a.submenu:link {
	text-decoration:none;
	color:#FF9900;
}
a.submenu:visited {
	text-decoration:none;
	color:#FF9900;
}
a.submenu:hover {
	text-decoration:underline;
	color:#FF9900;
}
.active {
	background:url(images/active.gif) no-repeat top right;
}
.borderpic {
	border:solid 2px #FFB701;
}
#container a img {
	border:solid 3px #FF8900;
}
#container a:hover img {
	border-color: #FD4113;
}
#container a:hover {  /* wakeup IE */
	border-width: 0;
}
.copyright {
	font-size:11px;
}
.issue div {
	float:right;
	margin:0px 0px 30px 30px;
	width:104px;
	height:87px;		/* 137 */
	padding:1px;
}
pre {
	direction:rtl;
	font-family:Arial, Helvetica, sans-serif;
	font-size:15px;
	color:#FFFFFF;
	line-height:24px;
}
div {
   white-space: pre-wrap;
}  

.form-container {
  max-width: 600px;
  margin: auto;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: right; /* Align form content to the right */
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
}

/* Radio buttons and labels are aligned horizontally */
.input-group radio-group {
  display: inline-flex; /* Ensures elements are displayed in a row */
  justify-content: flex-end; /* Aligns content to the right */
  gap: 20px; /* Space between radio buttons */
  align-items: center; /* Vertically align labels and inputs */
}

.radio-group label {
  display: inline-flex; /* Align each label and its radio button horizontally */
  align-items: center;
}

.input-group {
  margin-bottom: 10px; /* Reduced space between elements */
  text-align: right;
}

.file-input { display:inline-block; padding:6px; font-size:1em; border:1px solid #ccc; border-radius:4px; width:auto; box-sizing:border-box; }

.form-actions {
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
  gap: 10px; /* Small space between buttons */
  margin-top: 10px; /* Smaller margin above buttons */
}

.form-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px; /* Reduced padding for smaller buttons */
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

.form-button:hover {
  background-color: #45a049;
}

form.exit-form, form.logout-form {
  display: inline-block;
}

/* upload overrides */


.form-row{display:flex;flex-direction:row;direction:rtl;align-items:left;gap:20px;margin:20px 0;}
.form-label{min-width:140px;text-align:right;}
.radio-group { display:flex; flex:1; max-width:520px; justify-content:space-evenly; align-items:center; }
.radio-group label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.actions-row { display:flex; direction:rtl; align-items:center; gap:16px; margin-top:6px; justify-content:flex-start; }
.actions-row .form-button{width:160px;padding:10px 16px;}
.progress-wrap{display:block;visibility:hidden;height:26px;clear:both;margin:0 0 8px auto;width:340px;}
#progress{width:100%;}
#progress-text,#result{text-align:right;}


/* force transparent container */
.form-container { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }

/* uniform button sizing */
button.form-button, input.form-button {
  width: 170px;
  height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 16px;
}

/* file-row layout */
.file-row{display:flex; flex-direction:row; direction:rtl; align-items:center; gap:12px; margin-top:12px;}
.file-row .file-input { display:inline-block; padding:6px; font-size:1em; border:1px solid #ccc; border-radius:4px; width:auto; box-sizing:border-box; }
.file-row .form-button{width:160px; height:42px; display:inline-flex; align-items:center; justify-content:center;}

.upload-form { text-align:right; margin-top:4px !important; }

/* --- login layout patch (RTL) --- */
.login-form { margin: 0; padding: 0; }

.login-row {
  display: flex;
  direction: rtl;              /* username on the RIGHT, then password, then button on the LEFT */
  justify-content: flex-start; /* align row to the right edge (in RTL) */
  align-items: center;
  gap: 10px;
}

.login-row .form-control {
  width: 150px;          /* tweak to taste */
  height: 42px;
  box-sizing: border-box;
  padding: 8px 10px;
  font-size: 16px;
}

.login-row .login-btn {
  height: 42px;          /* same height as inputs */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 14px;
}