/*
======================
CSS Reset
======================
*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, 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;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
  box-sizing: border-box;
}

tr, td {
  box-sizing: border-box;
}

/*
======================
CSS Data
======================
*/

body {
  font-family: Helvetica;
  font-size: 16px;
  padding: 0px 20px;
  box-sizing: border-box;
}

div {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #4297d7;
}

h1 {
  font-size: 1.5rem;
  text-align: center;
  clear: both;
  margin: 18px;
}

h2 {
  font-size: 1.25rem;
  margin-top: 12px;
  clear: both;
}

form > h2 {
  text-align: center;
  margin: 12px;
}

h3 {
  font-size: 1rem;
  margin-top: 8px;
  clear: both;
}

nav {
	display: inline-block;
	text-align: left;
}

nav > ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
	list-style-image: none;
}

nav > ul > li {
  display: inline-block;
}

nav > ul > li > a {
display:block;
color:#000;
padding: 0px 32px;
position:relative;
font-size: 1rem;
-webkit-transition: opacity 0.5s;
transition: opacity 0.5s;
}

nav > ul > li > a:hover {
opacity: 0.6;
}

input, select, option, textarea {
  width: 100%;
  margin: 6px 0px;
  padding: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

option {
  background-color: #f8f8f8;
}

input[readonly], select[readonly] {
  background-color: #DCDCDC;
}

button {
  text-align: center;
}

label {
  box-sizing: border-box;
}

th {
  text-align: center;
  font-weight: bold;
}

b {
  font-weight: bold;
}

/*================*\
|| Простые классы ||
\*================*/

.center {
 text-align: center;
}

.left {
 text-align: left;
}

.right {
 text-align: right;
}

.rounded {
  border-radius: 8px;
}

.pointer {
  cursor: pointer;
}

.clear {
  clear: both;
}

/*================*\
||   Остальное    ||
\*================*/


#header {
  width: 100%;
  height: 70px;
  margin-top: 12px;
}

#logo {
  float: left;
}

#content-wrapper {
 width: 100%;
}

#content {
 width: 1024px;
 margin: 0 auto;
}

.base-table {
  width: 100%;
  box-sizing: border-box;
}

.base-table th {
  background-color: #87CEFA;
  padding: 6px;
  vertical-align: middle;
  font-size: 0.9em;
}

.base-table td {
  padding: 6px;
  vertical-align: middle;
  font-size: 0.9em;
}

.base-table tr:nth-child(2n) td {
  border: 1px solid #dfeffc;
}

.base-table tr:nth-child(2n+1){
  background-color: #dfeffc;
}

.base-table tr:nth-child(2n+1) td, th {
  border: 1px solid #ffffff;
}

.base-table-footer {
  font-style: italic;
  background-color: #4682B4;
  color: #ffffff;
  font-size: 0.9em;
}

.hovered tr:hover {
  background-color: #7FFFD4;
}

.rounded {
  border-radius: 8px;
}

.small-icon {
  width: 32px;
  height: auto;
}

.clickable td {
  cursor: pointer;
}

.ticket-info {
  max-width: 600px;
  margin: 0 auto;
}

.ticket-info th, .ticket-info td {
  vertical-align: middle;
}

.ticket-info img {
  margin-right: 8px;
  vertical-align: middle;
}

.ui-tabs {
  margin: 30px auto;
}

.ui-tab {
  max-height: 500px;
  overflow-x: hidden;
  overflow-y: auto;
}

.margin-auto {
  margin: 20px auto;
}

.ticket-comment {
  margin: 12px;
  padding: 10px;
  border: 2px solid #dfeffc;
  background-color: #ffffff;
}

.ticket-comment-header {
  font-size: 0.8em;
  margin-bottom: 8px;
}

.ticket-comment-header span {
  font-weight: bold;
}

.ticket-comment-data span {
  font-weight: bold;
}

.ticket-photo {
  display: inline-block;
  margin: 8px;
}

.ticket-history {
  background-color: #ffffff;
}

.ticket-history > .base-table {
  margin: 0px;
}

.ticket-history > .base-table span {
  font-weight: bold;
}

.ticket-history > .base-table td {
  font-size: 0.85em;
  padding: 3px;
}

#shadow-block {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: none;
}

#dialog-block {
  width: 800px;
  height: 560px;
  margin: 20px auto;
  border: 7px solid #dfeffc;
  background-color: rgba(255,255,255,1);
  overflow-y: auto;
}

#dialog-block-title {
  width: 100%;
  height: 60px;
  background-color: rgba(150,150,150,0.4);
}

#dialog-block-title a {
  margin: 8px;
  float: right;
}

#dialog-block-title h3 {
  float: left;
  margin: 17px;
  font-size: 1.2em;
  text-align: center;
  font-weight: bold;
  color: #2779aa;
}

#dialog-block-content {
  padding: 10px;
}

#dialog-block-load-data {
  width: 100%;
  text-align: center;
}

#edit-buttons-panel {
  border: 1px solid #dfeffc;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

#ticket-add-comment-form label {
  display: inline-block;
  font-weight: bold;
  text-align: left;
  margin: 6px;
}

#ticket-add-comment-form textarea {
  width: 100%;
  height: 150px;
}

#page-wrapper {
  width: 100%;
}

#centralwindow {
    width: 400px;
    padding: 20px 12px;
    border: 1px solid black;
    text-align: left;
    margin: 5% auto;
}

.second-level {
  display: block;
  padding: 12px;
}

.form-db {
  width: 100%;
}

.form-db form {
  width: 600px;
  margin: 0 auto;
}

.form-db-field {
  width: 100%;
  margin: 12px;
}

.form-db-field label {
  font-weight: bold;
  font-size: 16px;
}

#quick-panel {
 width: 700px;
 text-align: right;
 float: right;
}

#quick-panel a{
  margin: 6px;
  font-size: 0.8rem;
}

#mainmenu-wrapper {
  float: left;
  width: 872px;
  position: relative;
  height: 28px;
}

#mainmenu {
 position: absolute;
 bottom: 0px;
 left: 0px;
}


#scrollup {
position: fixed;
opacity: 0.5;
padding: 15px 10px 10px;
right: 10px;
bottom: 10px;
display: none;
cursor: pointer;
}

#bottom-block {
  width: 100%;
  text-align: right;
  font-size: 10px;
  padding: 12px;
}

.button-icon {
  margin: 0px;
  padding: 0px;
  vertical-align: top;
}

/*
================= Формы =========================
*/
.reg-form-wrapper {
  width: 100%;
  text-align: center;
}

.reg-form-div {
  width: 400px;
  padding: 20px 12px;
  border: 1px solid black;
  text-align: left;
  margin: 5% auto;
}

.profile-form-div {
  width: 900px;
  padding: 20px 12px;
  border: 1px solid black;
  text-align: left;
  margin: 0 auto;
  overflow: hidden;
}

.form-div {
  width: 900px;
  padding: 20px 12px;
  border: 1px solid black;
  text-align: left;
  margin: 0 auto;
  overflow: hidden;
}

.reg-form-label {
  font-size: 1rem;
}

.reg-form-input {
  width: 100%;
  margin-bottom: 12px;
  padding: 6px;
}

.profile-form-div .reg-form-label {
  margin-right: 6px;
}

.profile-form-div .reg-form-input {
  width: 200px;
  margin-right: 12px;
}

.reg-form-link {
  margin-right: 12px;
  font-size: 0.85rem
}

.reg-form-button {
  float: right;
}

.photo-blocks {
  width: 100%;
  border: 2px solid #dfeffc;
  padding: 12px;
  overflow: hidden;
}

.photo-block {
  position: relative;
  float: left;
  width: 180px;
  min-height: 112px;
  height: auto;
  border: 1px solid black;
  padding: 0px;
  text-align: center;
  padding: 12px;
  margin: 12px;
}

#add-photo {
  visibility: hidden;
}

#wait-file-block {
  display: none;
  padding: 12px;
}


/*
================= Окна сообщений ================
*/
.message-box-wrapper { 
  padding: 12px;
}
.message-box { 
  padding: 12px 12px;
  margin: 0 auto;
}

.message-box b, .message-box span { 
  font-weight: bold;
}
/*
=============== Пагинатор ================
*/

.paginator 
{
  text-align:center;
  padding-top:20px;
  font-size:14px;
  font-weight:bold;
  padding-bottom:30px;
}
.paginator a 
{
  text-decoration:none;
  margin-left:5px;
  margin-right:5px;
  color:#5D656B;
}
.paginator span 
{
  padding-left:6px;
  padding-right:6px;
  background-color:#7C7C7C;
  color: #e5e5e5;
  padding-top:3px;
  padding-bottom:2px;
}

/*
=============== Фильтры ================
*/

.filter-panel {
  width: 100%;
  height: auto;
  border: 2px solid #dfeffc;
  margin: 12px 0px;
  padding: 12px;
  position: relative;
}

.filter-panel a {
  margin-right: 32px;
}

#custom-filter {
  display: none;
}

.filter-block {
  width: 30%;
  float: left;
  margin-right: 32px;
}

/*
============= Календарь ===============
*/

.calendar {
  width: 100%;
  text-align: center;
  vertical-align: middle;
}

.calendar th, .calendar td {
  border: 1px solid #dfeffc; 
  padding: 4px;
  width: 128px;
  vertical-align: middle;
  font-size: 0.9em;
}

.calendar .date-row {
  font-weight: bold;
  font-size: 1.1em;
}

.month-menu {
  width: 100%;
  padding-bottom: 18px;
  text-align: center;
}

.month-link {
  display: inline-block;
}

.month-name {
  display: inline-block;
  margin: 0px 200px;
  font-size: 1.2em;
}

.holiday {
  background-color: #FF7F50;
  color: #ffffff;
}

.today {
  border: 2px solid blue !important;
}

.shift-data p {
  margin-bottom: 12px;
}