A:link 
	{
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	text-decoration: none; 
	}
A:visited 
	{
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	text-decoration: none; 
	color: blue
	}
A:active 
	{
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	text-decoration: none; 
	color:blue
	}
A:hover 
	{
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	text-decoration: underline; 
	color: red
	}
BODY
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color:black;
	}
P
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color:black;
	}
H2
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11pt;
	color:black;
	}

H2.blue-text {
  color: blue;
}

H2.red-text {
  color: red;
}

H2.magenta-text {
  color: magenta;
}

UL
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10pt;
	color:black;
	}
TD
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color:black;
	}
FORM
	{
	font-family: Courier New, sans-serif;
	font-size: 10pt;
	}
.sm
	{
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 8pt;
	}
.mono
	{
	font-family: Courier New, sans-serif;
	font-size: 10pt;
	}

TD.head
{
font-family: Verdana,Tahoma;
background-color: #DADADA;
font-size: 11px;
color: #000000;
font-weight: bold;
text-align: center;
}

PRE.wr
{
font-family: Verdana,Tahoma;
background-color: #F5F5F5;
font-size: 11px;
color: #000000;
font-weight: none;
white-space:pre-wrap;
word-wrap:break-word;
white-space:-o-pre-wrap;
}

TD.ccent, TD.cleft, TD.cright
{
font-family: Verdana,Tahoma;
background-color: #F5F5F5;
font-size: 11px;
color: #000000;
font-weight: none;
}

TD.nbgcent
{
font-family: Verdana,Tahoma;
font-size: 11px;
color: #000000;
font-weight: none;
text-align: center;
}

TD.ccent
{
text-align: center;
}

TD.cright
{
text-align: right;
}

TD.cleft
{
text-align: left;
}

a.vsl_help { text-decoration:none; color:#000; }
a.vsl_help span { display:none;}
a.vsl_help:hover { position:relative; }
a.vsl_help:hover span { position:absolute; display:block; left:10px; top:-16px;
	border:solid 1px #000; background:#ddd; color:#000; white-space:pre; padding:1px;}

body {font-family:arial; font-size:11px;}
	
	/* remove the list style */
	#nav {
		margin:0; 
		padding:0; 
		list-style:none;
	}	
	
		/* make the LI display inline */
		/* it's position relative so that position absolute */
		/* can be used in submenu */
		#nav li {
			float:left; 
			display:block; 
			width:130px; 
			background:#ccc; 
			position:relative;
			z-index:500; 
			margin:0 1px;
		}
		
		/* this is the parent menu */
		#nav li a {
			display:block; 
			padding:8px 5px 0 5px; 
			height:23px; 
			text-decoration:none; 
			color:#fff; 
			text-align:center; 
			color:#333;
		}

		#nav li a:hover {
			color:#fff;
		}
	
		/* you can make a different style for default selected value */
		#nav a.selected {
			color:#f00;
		}
	
		/* submenu, it's hidden by default */
		#nav ul {
			position:absolute; 
			left:0; 
			display:none; 
			margin:0 0 0 -1px; 
			padding:0; 
			list-style:none;
		}
		
		#nav ul li {
			width:130px; 
			float:left; 
			border-top:1px solid #fff;
		}
		
		/* display block will make the link fill the whole area of LI */
		#nav ul a {
			display:block;  
			height:15px;
			padding: 8px 5px; 
			color:#666;
		}
		
		#nav ul a:hover {
			text-decoration:underline;	
		}

		/* fix ie6 small issue */
		/* we should always avoid using hack like this */
		/* should put it into separate file : ) */
		*html #nav ul {
			margin:0 0 0 -2px;
		}

.container {
  width: 100%;
  padding: 15px;
  margin: 0 auto;
}

.container:after {
  content: "";
  display: table;
  clear: both;
}

.container div {
  float: left;
  margin-bottom: 15px;
  margin-left: 15px;
  margin-right: 15px;
}

.col-1-2 {
  width: 50%;
}

.col-1-3 {
  width: 33.3333333333%;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.justify {
  text-align: justify;
}


.login-form {
  max-width: 350px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  font-family: inherit;
}

.form-title {
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.primary-button {
  background-color: #222;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.primary-button:hover {
  background-color: #444;
}


.filter-panel {
  max-width: 1024px;
  margin: 0 auto 30px auto;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  font-family: system-ui, sans-serif;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
}

.filter-form {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  min-width: 180px;
}

.filter-group label {
  margin-bottom: 4px;
  color: #444;
  font-weight: 500;
}

.filter-group select {
  font-size: 14px;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.request-button {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.request-button button {
  background-color: #343a40;
  color: white;
  border: none;
  padding: 10px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease;
}

.request-button button:hover {
  background-color: #212529;
}


.request-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  font-family: sans-serif;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.request-form h3 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.bonus-penalty {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.bonus-penalty div {
  background-color: #f2f2f2;
  padding: 10px 20px;
  border-radius: 6px;
  min-width: 100px;
  text-align: center;
  font-weight: 500;
  font-family: inherit;
  font-size: 14px;
  box-shadow: inset 0 0 2px #ccc;
}

.submit-button {
  text-align: center;
  margin-top: 20px;
}

.submit-button input {
  background: #333;
  color: white;
  border: none;
  padding: 10px 30px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
}

.submit-button input:hover {
  background: #555;
}


.table-wrapper {
  max-width: 1000px;   /* Ограничим ширину */
  margin: 20px auto;   /* Центрирование */
  padding: 0 10px;     /* Немного отступов по краям */
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 0.95em;
  background-color: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.history-table th,
.history-table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.history-table th {
  background-color: #e0e0e0;
  font-weight: bold;
}

.history-table td.text-left{
  text-align: left;
  background-color: #F5F5F5;
  font-size: 11px;
  color: #000000;
  font-weight: none;
}

.history-table tfoot td {
  background-color: #fafafa;
  font-weight: bold;
}

.history-table thead tr:first-child th {
  border-bottom: 2px solid #ccc;
  background-color: #f8f8f8;
  font-size: 0.95em;
  font-weight: normal;
}

.history-table thead tr:last-child th {
  border-top: 1px solid #ddd;
}


.status-expired {
  background-color: #ffd6d6;
  color: #a00;
  font-weight: bold;
}

.status-cancelled {
  background-color: #ffd6d6;
  color: #a00;
  font-weight: bold;
}

@media (max-width: 768px) {
  .table-wrapper {
    padding: 0 5px;
  }

  .history-table {
    font-size: 0.8em;
  }

  .history-table th,
  .history-table td {
    padding: 6px;
  }
}

.back-link {
  text-align: center;
  margin: 40px 0 0 0;
}

.back-link a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  background-color: #f0f0f0;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.back-link a:hover {
  background-color: #e2e2e2;
  color: #000;
}

.form-error {
  color: #b00020;
  background-color: #fce4ec;
  border: 1px solid #b00020;
  border-radius: 4px;
  padding: 10px;
  margin-top: 15px;
  font-size: 0.95em;
  line-height: 1.4;
}

.login-error {
  color: #fff;
  background: #d9534f;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 10px 15px;
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}
