/* сброс стилей браузера */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	font-size: 100%;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1.2;
}
ol { 
	padding-left: 1.4em;
	list-style: decimal;
}
ul {
	padding-left: 1.4em;
	list-style: square;
}

/* конец кода сброса стилей браузера */

body {
      background-color: #B0C4DE;
	  font-family:      "Arial Narrow", Arial, sans-serif;
}
img {
	   position: fixed center;
	   padding: 0px;
	   margin: 10px 10px 10px 10px;
}
header { 
       text-align: center;
	   font-size: 300%;
}
h1 {
	text-shadow: 3px 3px 4px #444;
	
}
.p_center {
	    text-align: center;
		font-size: 120%;
		margin: 10px 0 10px 0;
}
#navbar ul{
        display: none;
        background-color: #f90;
        position: absolute;
        top: 100%;
      }
	  
      #navbar li:hover ul { display: block; }
      #navbar, #navbar ul{
        margin: 0;
        padding: 0;
        list-style-type: none;
      }
	  
      #navbar {
        height: 50px;
        background-color: #666;
        padding-left: 25px;
        min-width: 1900px;
      }
	  
      #navbar li {
        float: left;
        position: relative;
        height: 100%;
		border: solid 1px white;
		vertical-align: middle;
      }
	  
      #navbar li a {
        display: block;
        padding: 6px;
        width: 205px;
        color: #fff;
        text-decoration: none;
        text-align: center;
      }
	  
      #navbar ul li { float: none; }
      #navbar li:hover { background-color: #f90; }
      #navbar ul li:hover { background-color: #666; } 
	  
#logout {
	    background-color: red;
}

footer {
	    background-color: #222;
		text-align: center;
		text-decoration: none;
		vertical-align: middle;
		font-size: 80%;
		margin-top: 10px;
		position: fixed;
		bottom: 0;
		width: 100%
}

footer p {
	    color: white;
}

form li {
	    list-style-type: none;
		padding-top: 5px;
		padding-bottom: 5px;
}

legend {
	    font-weight: bold;
		font-size:  120%;
		font-stretch: condensed;
		font-style: italic;
}

.submitButton {
	    position: fixed left;
		text-align: center;
}

.subButton {
	padding:      10px 25px;
	margin-top:   15px;
	margin-bottom:15px;
	font-size:    1.2em;
	color:        white;
	background:   rgb(0, 2, 197);
	background:   linear-gradient(to bottom, rgba(0, 2, 197, .3) 40%, rgba(0, 2, 197, .8));
	border-radius:5px;
	box-shadow:   0 0 4px white;
}

.subButton:hover {
	background:   rgb(210, 105, 30);
	background:   linear-gradient(to bottom, rgba(210, 105, 30, .3) 40%, rgba(210, 105, 30, .8));
}

.subButton:disabled {
	background:   rgb(123, 160, 201);
	background:   linear-gradient(to bottom, rgba(123, 160, 201, .3) 40%, rgba(123, 160, 201, .8));
}
	

.subAJAXbutton {
	padding:      10px 25px;
	margin-top:   0;
	margin-bottom:30px;
	font-size:    1.2em;
	color:        white;
	background:   rgb(0, 2, 197);
	background:   linear-gradient(to bottom, rgba(0, 2, 197, .3) 40%, rgba(0, 2, 197, .8));
	border-radius:5px;
	box-shadow:   0 0 4px white;
}

.subAJAXbutton:hover {
	background:   rgb(210, 105, 30);
	background:   linear-gradient(to bottom, rgba(210, 105, 30, .3) 40%, rgba(210, 105, 30, .8));
}

#columnLeft p {
		text-align: left;
		vertical-align: middle;
}

#columnRight p {
		text-align: right;
		vertical-align: middle;
}

#columnLeft, #columnRight {
	    border: dotted 1px;
		padding-top: 5px;
		padding-bottom: 5px;
}

#error {
	    display: block;
		font-size: 110%;
	    text-align: center;
		font-weight: bold;
		color: red;
		background-color: #fff;
		margin: 10px;
		z-index:  2;
}

#correct {
	    display: block;
		font-size: 110%;
	    text-align: center;
		font-weight: bold;
		color: green;
		background-color: #fff;
		margin: 10px;
		z-index:  2;
}

#welcome {
	    text-align: center;
		font-weight: bold;
		font-size: 120%;
		color: green;
		background-color: #B0C4DE;
		margin: 10px 0 10px 0;
}

table {
	display:          table;
    margin:           auto;
	background-color: white;
	border-spacing:   0px;
	padding:          0px;
	border:           1px solid black;
	width:            1700px;
	border-collapse:  collapse;
	vertical-align: middle;
	border-bottom: none;
}

table:last-child {
	margin-bottom: 30px;
	border-bottom: 2px solid black;
}

.tdcompany {
	text-align: center;
	width:  80px;
	vertical-align: middle;
	border-collapse: collapse;
}

.tdtool {
	width:  200px;
	vertical-align: middle;
	border-collapse: collapse;
}

.tdarticle {
	width:  200px;
	vertical-align: middle;
	border-collapse: collapse;
}

td {
	border: 2px solid navy;
	border-spacing: 0px;
	border-collapse: collapse;
	vertical-align: middle;
	border-bottom: none;
}


.center {
	margin: auto;
	width:  80%;
	padding-bottom: 30px;
}

.inputTable {
	    display:          table;
		background-color: #B0C4DE;
        margin:           auto;
	    padding:          0px;
	    border-style:     none;
	    width:            1400px;
}

#inputTDR {
	    border-style:     none;
}

#inputTDL {
	    border-style:     none;
}

#millDimension {
	width:  1450px;
}

.outputTable {
	    display:          table;
	    background-color: white;
	    padding:          0px;
	    border:           1px solid black;
	    width:            80%;
		margin:           0 auto;
		border-collapse: collapse;
		vertical-align: middle;
}

#description {
	font-family:      "Arial Narrow", Arial, serif;
}

.overlay{
        background: #222;
		opacity: .6;
        position: fixed;
        top: 0px;
        bottom: 0px;
        left: 0px;
        right: 0px;
        z-index: 100;
}
		
.box{
        position: fixed;
        top: -200px;
        left: 30%;
        right: 30%;
        background-color: #fff;
        color: #7F7F7F;
        padding: 20px;
        border: 2px solid #c7d5ff;
		border-radius: 20px;
		box-shadow: 0 1px 5px #333;
        -moz-box-shadow: 0 1px 5px #333;
        -webkit-box-shadow: 0 1px 5px #333;
        z-index: 101;
}

a.boxclose{
        float: right;
        width: 26px;
        height: 26px;
        background: url(delete1.png) top left;
        margin-top: -30px;
        margin-right: -30px;
        cursor: pointer;
        }
		
.box h3{
        border-bottom: 1px dashed 005c99;
        margin: -20px -20px 0px -20px;
		font-size:    1.1em;
        padding: 10px;
        background:   rgb(0, 2, 197);
	    background:   linear-gradient(to bottom, rgba(0, 2, 197, .5) 40%, rgba(0, 2, 197, .9));
        color: white;
		border-radius: 20px 20px 0 0;
}

.fileButton input[type="submit"], #uploadBox {
	padding:      10px 25px;
	font-size:    1.2em;
	color:        white;
	background:   rgb(0, 2, 197);
	background:   linear-gradient(to bottom, rgba(0, 2, 197, .3) 40%, rgba(0, 2, 197, .8));
	border-radius:5px;
	box-shadow:   0 0 4px white;
}

.fileButton input[type="submit"]:hover, #uploadBox:hover {
	background:   rgb(210, 105, 30);
	background:   linear-gradient(to bottom, rgba(210, 105, 30, .3) 40%, rgba(210, 105, 30, .8));
}

.fileButton input[type="file"] {
	margin:       15px -10px 15px -10px;
	padding:      10px 25px;
	font-size:    1em;
	background:   white;
	border-radius:5px;
	box-shadow:   0 0 4px white;
	border: 2px solid #c7d5ff;
	width: 90%;
}

.fileBox {
	margin:       0 auto;
	background:   rgba(255,250,191, .8);
	border-radius:5px;
	box-shadow:   0 0 4px black;
	padding:      10px 25px;
	text-align:   center;
	width:        40%;
	margin-bottom:20px;
	margin-top:   20px;
}

.fileBox h3 {
	font-family:      Tahoma, "Arial Narrow", Arial, sans-serif;
	margin:           5px 0 5px 0;
	font-size:    1.2em;
}
	
#uploadBox a {
	display:      block;
	text-align:   center;
	font-size:    1.2em;
	color:        white;
	font-weight:  bold;
	text-decoration: none;
}
	
#uploadBox {
	width:  30%;
	margin: 0 auto;
	margin-top: 20px;
	margin-bottom: 20px;
}

.toolsForm {
	display:      block;
	margin:       0 auto;
	width:        40%;
	padding:      20px 20px 20px 20px;
}

.toolsForm label {
	padding:      10px 25px;
	font-size:    1.2em;
}

.difMaterial {
  display: none;
}

.difMaterial:target {
  display: block;
}

.manual {
  display: block;
  width:   70%;
  box-shadow:   0 0 4px black;
  padding:      10px 25px;
  background:   rgb(244, 245, 237);
  margin:       0 auto;
  line-height: 1.3;
  font-size:    1.2em;
}

.manual h2 {
	text-align: center;
	font-size:    1.5em;
	font-weight:  bold;
}

.manual figure {
	text-align: center;
	border: 1px dotted #16349e;
	width:   70%;
	margin:       0 auto;
}

.manual figcaption {
	border-top: 1px dotted #16349e;
}

.menu {
	line-height: 1.5;
	font-size:    1.2em;
	font-weight:  bold;
}

.manual li{
	margin-top: 5px;
	margin-bottom: 5px;
}

.manual code{
	font-size:    1.3em;
}

.makeManual h3 {
	font-size:    1.3em;
	font-weight:  bold;
	margin:  10px 0 10px 0;
}

.offline_menu li {
	list-style-type: none;
	text-align: center;
	font-size:    1.5em;
	width: 50%;
}

.offline_menu ul {
	margin-left: 30%;
}

.offline_menu li a {
	color:  white;
	text-decoration: none;
	display: block;
}

.offline_menu h2 {
	text-align: center;
	font-size:    1.5em;
	font-weight:  bold;
}

.offline_menu {
  display: block;
  width:   70%;
  box-shadow:   0 0 4px black;
  padding:      10px 25px;
  background:   rgb(244, 245, 237);
  margin:       0 auto;
  line-height: 1.3;
  margin-bottom: 30px;
}

.makeDescriptionHeader {
	font-size:    2em;
	font-weight:  bold;
	text-decoration: underline;
	text-align: center;
	margin-top: 30px;
}

.upArrow {
	display:          block;
	height:           50px;
	background:       linear-gradient(to bottom, rgba(0, 0, 139, .6) 40%, rgba(0, 0, 139, .9));
	position:         fixed;
	top:              500px;
	right:            0;
	border-radius:    10px 0px 0px 10px;
	border:           1px solid white;
	box-shadow:       0 0 4px black;
}

.upArrow  a {
	display:         block;
	float:           right;
	text-decoration: none;
    text-align:      center;
	font-weight:  bold;
	font-size:    1.5em;
	color:        white;
	margin-top:   10px;
	margin-right: 10px;
}

#insertInfo, #changeRes, #finistRes  {
	display: block;
	width:   60%;
	box-shadow:   0 0 4px black;
	padding:      10px 25px;
	background:   rgb(244, 245, 237);
	margin:       0 auto;
	margin-top: 10px;
	border-radius: 5px;
	line-height: 1.3;
  }
  
  #changeRes, #finistRes, #additionalRes, #ToleranceInfo  {
	display: block;
	width:   60%;
	box-shadow:   0 0 4px black;
	padding:      10px 25px;
	background:   rgb(244, 245, 237);
	margin:       0 auto;
	margin-top: 10px;
	border-radius: 5px;
	line-height: 1.3;
	margin-bottom: 30px;
  }

  #ToleranceInfo {
	width:   80%;
  }
 	
  .toleranceForm {
	font-size:    2em;
	font-weight:  bold;
	text-align: center;
	margin-top: 50px;
	margin-bottom: 50px;
}	

.conditionTable {
	display: block;
	width:   40%;
	margin: 10px;
	border-style: none;
	background:   rgb(244, 245, 237);
	line-height: 1.3;
  }	

