@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&subset=cyrillic');

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 20px;
    overflow-y: scroll;
    background: #fafafa;
    color: #333;
}
h2 {
    font-weight: 500;
    text-align: center;
    margin: 0 auto 16px;
}
#container {
    flex: 1;
}
#header {
    background: #222;
    padding: 0 16px;
}
#footer {
    padding: 16px;
}
#message {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    visibility: hidden;
    z-index: 9999;
}
#message.active {
    cursor: pointer;
    background: #c83f4d;
    visibility: visible;
}
.message-container {
    width: 320px;
    margin: 0 auto;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    color: #fff;
}

/* header-menu and user-menu */
.header-menu, .user-menu {
    width: 100%;
}
.header-menu a, .user-menu a {
    display: block;
    color: #ddd;
    text-decoration: none;
}
.header-menu a:hover, .user-menu a:hover {
    color: #fafafa;
}
.header-menu ul li, .user-menu ul li {
    display: block;
    float: left;
    position: relative;
    line-height: 40px;
}
.header-menu ul li ul, .user-menu ul li ul {
    display: none;
    position: absolute;
    top: auto;
    left: 0;
    background: #333;
    padding: 6px 16px;
    z-index: 100;
    -webkit-box-shadow: 0 9px 15px -6px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 9px 15px -6px rgba(0, 0, 0, 0.25);
    box-shadow: 0 9px 15px -6px rgba(0, 0, 0, 0.25);
    -webkit-border-bottom-right-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    -moz-border-radius-bottomleft: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}
/* .user-menu ul li ul {
    width: 100%;
} */
.header-menu .parent.active .submenu, .user-menu .parent.active .submenu {
    display: block;
}
.header-menu ul li ul li, .user-menu ul li ul li {
    display: block;
    white-space: nowrap;
    float: none;
    text-align: left;
}

/* user-menu */
.user-menu ul {
    float: right;
}
.user-menu ul li ul {
    left: auto;
    right: 0;
}


/* select xml act equipment installation */
.form-xml-container {
    width: 50%;
    max-width: 320px;
    margin: 0 auto;
}
.form-xml-container .heading {
    text-align: center;
    padding: 8px;
}
.form-xml-select-container {
    width: 100%;
    margin: 0 auto 16px;
}
.form-xml-submit-container {
    width: 50%;
    margin: 0 auto;
}
.form-xml-container .btn {
    display: block;
    width: 100%;
    max-width: none;
}

/* dashboard */
.dashboard {
    padding: 16px 8px;
}

.dashboard .wrapper {
    max-width: calc(1200px + 16px);
}
.dashboard-box {
    min-height: 64px;
    font-size: 14px;
    line-height: 18px;
    margin: 0 8px;
    padding: 16px;
    background: #fff;
    color: #444;
    text-align: left;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #d0d0d0;
    -webkit-box-shadow: 0 9px 15px -6px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 9px 15px -6px rgba(0, 0, 0, 0.15);
    box-shadow: 0 9px 15px -6px rgba(0, 0, 0, 0.15);
}
.dashboard-box ul li {
    margin: 0 0 8px;
}

/* main-menu */
.main-menu {

}
.main-menu ul li {
    display: block;
    margin:0 0 16px;
}
.main-menu a {
    display: block;
    text-align: center;
    min-height: 52px;
    line-height: 52px;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #d0d0d0;
    color: #555555;
    text-decoration: none;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.main-menu a:hover  {
    border: 1px solid #a50e3c;
    color: #a50e3c;
}
.main-menu a:active {
    background: #a50e3c;
    border: 1px solid #a50e3c;
    color: #fff;
}
/* orders */
.orders {
    padding: 16px;
}
.order {
    font-weight: 500;
}
.order a {
    display: block;
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
    text-decoration: none;
}
.order a:hover {
    color: #a50e3c;
}
.order span {
    font-size: 14px;
    color: #555;
    font-weight: 400;

}

.form-footer {
    text-align: center;
    padding: 16px;
}

/* other css */
.app-remove-dut {
    text-decoration: none;
    color: #aeaeae;
}
.app-remove-dut:hover {
    color: #a50e3c;
}
.req {
    color: #a50e3c;
}
.error-field {
    border: 1px solid #a50e3c !important;
}

/* Account login */
.login-page {
    background: #eee;
}
.login-form-container {
    min-width: 280px;
    padding: 32px;
    background: #ffffff;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.login-form-container h1 {
    text-align: center;
    font-size: 18px;
    color: #555;
    font-weight: 500;
    margin:0 0 16px;
}
.login-form-container .btn {
    display: block;
    width: 100%;
    max-width: 100%;
}
.login-form-container .message {

}
.login-form-container .message-content {
    font-size: 14px;
    text-align: center;
    height: 14px;
    line-height: 14px;
    margin-bottom: 16px;
    color: #cc4a48;
}

/* activity-container's */
.activity-container {

}
.activity-container.work {
    padding: 16px;
}
.activity-container.select-xml {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* duts_params */
.dut-countainer {
    position: relative;
    border: 1px solid #e0e0e0;
    margin-bottom: 32px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
div .dut-countainer:last-child {
    margin-bottom: 0;
}
.dut-countainer:after {
    content: '';
    clear: both;
    display: block;
    float:none;
    height: 0;
    position: relative;
    visibility: hidden;
}
.dut-heading {
    position: absolute;
    padding: 0 8px;
    height: 32px;
    line-height: 32px;
    left: 50%;
    top: -16px;
    transform: translate(-50%, 0);
    text-align: center;
    background: #fafafa;
    white-space: nowrap;
}
.dut-damage-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 8px 16px;
    position: relative;
    border: 1px solid #e0e0e0;
    margin-bottom: 16px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.dut-damage-heading {
    position: absolute;
    padding: 0 8px;
    height: 32px;
    line-height: 32px;
    left: 50%;
    top: -16px;
    transform: translate(-50%, 0);
    text-align: center;
    background: #fafafa;
    white-space: nowrap;
}
.dut {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

/* Dynamic Tables Styles */
.warehouse-table {
    width: 100%;
    border: 1px solid #d0d0d0;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.warehouse-table input[type='text'] {
    font-size: 14px;
    padding: 0 8px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}
.warehouse-table thead td {
    text-align: center;
    vertical-align: middle;
    padding: 0 !important;
}

.warehouse-table thead tr:first-child td {
    background: #f0f0f0;
    font-size: 14px;
    line-height: 32px;
    font-weight: 500;
    color: #444;
    border-bottom: 1px solid #d0d0d0;
}
.warehouse-table thead tr:last-child td {
    background: #f0f0f0;
    line-height: 32px;
    font-size: 14px;
    color: #555;
}
.warehouse-table tbody td {
    padding: 8px;
    background: #fff;
    border: 1px solid #d0d0d0;
}
.warehouse-table tfoot tr:last-child td {
    padding:4px;
}
.warehouse-table tfoot tr:last-child td .btn-o {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
}
/* tarirovka */
.tar-table {
    width: 100%;
}
.tar-table thead td {
    text-align: center;
    vertical-align: middle;
    padding: 0 !important;
}
.tar-table thead tr:last-child td:first-child {
    padding-right: 4px;
    padding-bottom: 8px !important;
}
.tar-table thead tr:last-child td:last-child {
    padding-left: 4px;
    padding-bottom: 8px !important;
}
.tar-table thead span {
    background: #f0f0f0;
    color: #555;
    display: block;
    line-height: 48px;
    height: 48px;
}
.tar-table thead tr:first-child td span {
    border-bottom: 1px solid #d0d0d0;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-topleft: 4px;
    -moz-border-radius-topright: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.tar-table thead tr:last-child td:first-child span {
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    border-bottom-left-radius: 4px;
}
.tar-table thead tr:last-child td:last-child span {
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-radius-bottomright: 4px;
    border-bottom-right-radius: 4px;
}
.tar-table tr {
    width: 100%;
}
.tar-table tr td {
    width: 50%;
    color: #555555;
    padding-bottom: 8px;
}
.tar-table tbody tr td:first-child {
    padding-right: 4px;
}
.tar-table tbody tr td:last-child {
    padding-left: 4px;
}
/* calibration-actions */
.calibration-actions {
    text-align: center;
    margin: 0 0 16px;
}
.docs-table {
    width:100%;
}
.docs-table tr td {
    color: #555555;
    font-size: 16px;
    line-height: 40px;
    padding: 0 8px;
    border: 1px solid #d0d0d0;
    vertical-align: middle;
}



/* input-datetime-container */
.input-datetime-container {

}
.input-datetime-content input[type="text"] {
    display: inline-block;
    padding: 0 10px;
}
.input-datetime-content input[type="text"].day,
.input-datetime-content input[type="text"].month,
.input-datetime-content input[type="text"].hours,
.input-datetime-content input[type="text"].minutes {
    width: 48px;
}
.input-datetime-content input[type="text"].year {
    width: 64px;
    margin-right: 8px;
}
