@import "select2.min.css";

@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,600,700,900');

* {
    margin: 0;
    padding: 0;
    outline: none;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

html {
    height: 100%;
}

body {
    background: url(../images/bg.png);
}

.auth {
    background: url(../images/auth-bg.jpg) no-repeat center;
    background-size: cover;
}

.hidden {
    display: none;
}

header {
    max-width: 1200px;
    box-sizing: border-box;
    padding: 0 20px;
    margin: 0 auto;
    background: #FFF;
}

footer {
    background: #FFF;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 15px 20px 10px;
    margin: 0 auto;
    line-height: 30px;
    text-align: center;
    font-size: 14px;
}

footer hr {
    border: none;
    margin: 0 15px 10px;
    border-top: 1px solid #EEE;
}

.content {
    max-width: 1200px;
    box-sizing: border-box;
    padding: 20px 20px 0;
    min-height: calc(100vh - 177px);
    margin: 0 auto;
    background: #FFF;
}

.auth .content {
    background: none;
    padding-top: 0;
}

.top-panel {
    padding: 25px 0;
}

.top-panel:after {
    content: '';
    display: block;
    clear: both;
}

.top-panel .date {
    color: #005270;
    font-weight: 700;
    font-size: 14px;
    background: url(../images/date.svg) no-repeat left 1px;
    background-size: 16px;
    padding-left: 20px;
}

.top-panel .clock {
    color: #005270;
    margin-left: 15px;
    font-weight: 700;
    font-size: 14px;
    background: url(../images/clock.svg) no-repeat left 1px;
    background-size: 16px;
    padding-left: 20px;
}

.top-panel .clock i {
    font-style: normal;
    color: #005270;
}

.top-panel .logout {
    color: #444;
    font-size: 15px;
}

.top-panel .logout:hover {
    text-decoration: none;
}

.top-panel .col {
    width: 33.33%;
    line-height: 20px;
    font-size: 15px;
    color: #444;
    box-sizing: border-box;
    float: left;
}

.top-panel .col:nth-child(2) {
    text-align: center;
}

.top-panel .col:nth-child(3) {
    text-align: right;
}

.top-panel .user {
    background: url(../images/user.svg) no-repeat left center;
    background-size: 20px;
    padding-left: 28px;
}

.blue {
    background: #007ca0;
    background: linear-gradient(to bottom, rgb(0, 124, 160) 0%, rgb(1, 33, 56) 100%);
}

.blue:hover {
    background: #005270;
}

.legend {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend div {
    line-height: 20px;
    margin: 10px;
}

.legend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    vertical-align: text-top;
}

.legend .green {
    background: green;
}

.legend .gray {
    background: gray;
}

.select2-container {
    margin-bottom: 16px;
    font-size: 14px;
}

.places {
    padding-top: 15px;
}

.places:after {
    content: '';
    clear: both;
    display: block;
}

.places .col {
    width: 33.33%;
    float: left;
}

.places h2 {
    font-size: 20px;
    color: #005270;
    margin: 0 10px 10px;
    text-align: center;
    line-height: 34px;
    border-bottom: 1px solid #EFEFEF;
    padding-bottom: 10px;
}

.places h2 i {
    font-size: 16px;
    font-style: normal;
    display: inline-block;
    color: #FFF;
    font-weight: 500;
    width: 30px;
    height: 30px;
    margin-left: 4px;
    background: #CCC;
    vertical-align: top;
    line-height: 34px;
    border-radius: 50%;
}

.places .contracts {
    padding: 0 10px;
    border-left: 1px solid #EFEFEF;
    border-right: 1px solid #EFEFEF;
}

.places .contracts:after {
    content: '';
    clear: both;
    display: block;
}

.places span {
    display: inline-block;
    padding: 10px 14px;
    cursor: pointer;
    margin: 0 5px 5px 0;
    border-radius: 3px;
    float: left;
}

.places span b {
    color: #FFF;
}

.places .green {
    background: green;
}

.places .gray {
    background: gray;
}

.calendar {
    border: 1px solid #E0E0E0;
    box-sizing: border-box;
    border-radius: 4px;
    padding: 0 0 10px;
    margin: 0 auto 25px;
    max-width: 450px;
}

.calendar.loading,
.time-table.loading {
    opacity: .5;
}

.calendar h4 {
    position: relative;
    text-align: center;
    padding: 14px 0 0;
    margin: 0 20px 15px;
}

.calendar span {
    font-size: 14px;
    line-height: 20px;
    color: #005270;
}

.calendar .prev {
    width: 24px;
    height: 24px;
    background: #005270;
    border-radius: 12px;
    top: 13px;
    position: absolute;
    left: 0;
    display: block;
    cursor: pointer;
}

.calendar .prev:after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-left: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
    display: block;
    transform: rotate(45deg);
    left: 9px;
    top: 8px;
}

.calendar .next {
    width: 24px;
    height: 24px;
    background: #005270;
    border-radius: 12px;
    top: 13px;
    position: absolute;
    right: 0;
    display: block;
    cursor: pointer;
}

.calendar .next:after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-left: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
    display: block;
    transform: rotate(-135deg);
    left: 6px;
    top: 8px;
}

.calendar table {
    width: 100%;
    border: none;
}

.calendar th {
    color: #AAA;
    font-size: 12px;
    font-weight: 400;
    padding-bottom: 10px;
}

.calendar td {
    color: #828282;
    font-size: 14px;
    text-align: center;
    font-weight: 400;
    padding: 3px 0;
}

.calendar td a {
    display: block;
    padding: 5px;
    width: 21px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 50%;
}

.calendar td .inactive {
    cursor: default;
    color: #CCC;
}

.calendar td .today {
    background: #cfe3ff;
}

.calendar td .active {
    background: #005270;
    color: #FFF;
}

nav ul {
    display: flex;
    flex-direction: row;
}

nav li {
    display: block;
    width: 100%;
}

nav li a {
    height: 40px;
    display: block;
    border-left: 1px solid #FFF;
    color: #FFF;
    line-height: 40px;
    text-decoration: none;
    text-align: center;
}

nav li:nth-child(1) a {
    border-left: none;
}

nav li .active {
    background: #005270;
}

.login-form {
    position: absolute;
    background: rgba(0, 0, 0, .8);
    width: 400px;
    padding: 30px;
    box-sizing: border-box;
    top: 200px;
    left: calc(50% - 200px);
}

.login-form label {
    display: block;
    color: #FFF;
    font-size: 15px;
}

.login-form .circle {
    width: 120px;
    height: 120px;
    position: absolute;
    left: calc(50% - 60px);
    top: -60px;
    border-radius: 50%;
}

.login-form .circle:after {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    background: url(../images/login-user.png) no-repeat center;
}

.login-form .name {
    line-height: 30px;
    text-align: center;
    padding-top: 45px;
    font-size: 26px;
    color: #FFF;
    font-weight: 600;
    margin: 0 auto 25px;
}

.login-form input[type=email],
.login-form input[type=password] {
    background: none;
    border: none;
    border-bottom: 1px solid #FFF;
    border-radius: 0;
    color: #FFF;
    margin-bottom: 25px;
    padding: 0;
}

.login-form input.error {
    border: none !important;
    border-bottom: 1px solid red !important;
}

.login-form .result p {
    font-size: 14px;
}

.max-width {
    max-width: 400px;
}

.title {
    color: #555;
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 26px;
}

.title select {
    border-radius: 5px;
    display: inline-block;
    vertical-align: middle;
    border: none;
    font-size: 20px;
    color: #555;
    font-weight: 700;
    padding: 0 2px;
}

.title a {
    font-size: 20px;
    color: #005270;
}

.title a:hover {
    text-decoration: none;
}

.hint {
    padding: 10px;
    background: #EFEFEF;
    border-radius: 5px;
    margin: 20px 0;
    position: relative;
}

.hint:after {
    content: '!';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #005270;
    color: #FFF;
    width: 30px;
    line-height: 30px;
    text-align: center;
    display: block;
    border-radius: 50%;
    font-weight: 600;
}

.search form {
    position: relative;
    width: calc(25% - 6px);
    float: left;
    margin-left: 8px;
}

.search form.w-450 {
    max-width: 450px;
    width: 100%;
    float: none;
    margin: 0 auto 20px !important;
}

.search form:first-child {
    margin-left: 0;
}

form input[type=text],
form input[type=email],
form input[type=password] {
    display: block;
    box-sizing: border-box;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0 8px;
    width: 100%;
    height: 36px;
    line-height: 36px;
    margin-bottom: 16px;
    font-size: 14px;
}

form label {
    display: block;
}

form label b {
    font-size: 14px;
    font-weight: 400;
    display: inline-block;
    margin-bottom: 6px;
    color: #01304a;
}

form .input-title {
    display: block;
    font-size: 18px;
    color: #005270;
    margin-top: 20px;
    margin-bottom: 5px;
}

form textarea {
    display: block;
    box-sizing: border-box;
    border: 1px solid #CCC;
    border-radius: 3px;
    padding: 0 8px;
    width: 100%;
    height: 120px;
    resize: none;
    line-height: 22px;
    margin-bottom: 10px;
    transition: all .1s linear;
    font-size: 14px;
}

form select {
    display: block;
    box-sizing: border-box;
    border: 1px solid #CCC;
    border-radius: 3px;
    padding: 0 8px;
    width: 100%;
    height: 36px;
    line-height: 36px;
    margin-bottom: 10px;
    transition: all .1s linear;
    font-size: 14px;
}

form input[type=submit] {
    display: block;
    border-radius: 4px;
    box-sizing: border-box;
    border: none;
    width: 100%;
    max-width: 400px;
    color: #FFF;
    height: 36px;
    font-size: 14px;
    cursor: pointer;
    line-height: 36px;
}

form input[type=submit].find {
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    right: 8px;
    top: 9px;
    background: url(../images/find.png) no-repeat center;
    cursor: pointer;
}

form input[type=submit].find.loading {
    background: url(../images/submit.gif) no-repeat center;
    background-size: 16px;
}

form input[type=submit].loading {
    color: transparent;
    background: #005270 url(../images/loader.gif) no-repeat center;
    background-size: 26px;
}

form fieldset {
    border: 1px solid #DDD;
    padding: 15px 9px 2px;
    position: relative;
    margin-top: 30px;
    margin-bottom: 20px;
    border-radius: 4px;
}

form fieldset h3 {
    font-size: 15px;
    color: #005270;
    position: absolute;
    top: -12px;
    background: #FFF;
    padding: 0 8px;
}

form fieldset a {
    color: #005270;
    text-decoration: underline;
    transition: all .2s;
    cursor: pointer;
    display: inline-block;
    position: relative;
    margin-left: 12px;
    font-size: 15px;
}

form fieldset a:hover {
    color: #666;
    text-decoration: none;
}

form fieldset a:before {
    content: '';
    display: block;
    position: absolute;
    width: 8px;
    height: 2px;
    left: -11px;
    top: 9px;
    background: #005270;
}

form fieldset a:after {
    content: '';
    display: block;
    position: absolute;
    width: 2px;
    height: 8px;
    left: -8px;
    top: 6px;
    background: #005270;
}

form fieldset a:hover:after,
form fieldset a:hover:before {
    background: #666;
}

form .select-row label {
    width: 32%;
    margin-left: 2%;
    float: left;
}

form .select-row label:nth-child(1) {
    margin-left: 0;
}

form .select-row:after {
    content: '';
    display: block;
    clear: both;
}

form .row {
    margin: 0 0 20px;
    height: 16px;
}

form .row input[type=checkbox] {
    width: 16px;
    display: block;
    height: 16px;
    border: 1px solid #CCC;
    float: left;
}

form .row b {
    display: block;
    font-weight: 400;
    font-size: 15px;
    color: #444;
    float: left;
    margin-left: 5px;
    line-height: 16px;
}

form .error {
    border: 1px solid red !important;
}

form .result {
    padding-top: 10px;
    font-size: 15px;
    margin-top: 4px;
    line-height: 16px;
}

form .result.success {
    color: green;
}

form .result.error {
    color: red;
}

form .result.error {
    border: none !important;
}

.status-ul {
    margin-left: 20px;
}

.status-ul li {
    font-size: 16px;
    line-height: 30px;
}

.dictionaries {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.dictionaries a {
    display: block;
    width: 50%;
    max-width: 300px;
    text-align: center;
    background: #CCCCCC38;
    border-radius: 10px;
    padding-top: 30px;
    height: 170px;
    text-decoration: none;
    transition: background .1s linear;
}

.dictionaries a:hover {
    background: #0052701A;
}

.dictionaries a img {
    display: block;
    margin: 0 auto 25px;
    fill: red;
}

.dictionaries a b {
    color: #005270;
    font-size: 16px;
}

.table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.unfixed {
    table-layout: auto;
}

.table .left {
    text-align: left;
}

.table th {
    border: 1px solid #CCC;
    background: #EFEFEF;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    color: #005270;
}

.table th.w-90 {
    width: 90px !important;
}

.table tr th:nth-child(1) {
    width: 30px;
}

.table tr th:nth-child(3) {
    width: 220px;
}

.table tr th:nth-child(4) {
    width: 60px;
}

.unfixed tr th {
    width: auto !important;
}

.table tr th:nth-child(5) {
    width: 220px;
}

.table .nothing-found {
    padding: 50px 0;
}

.table td {
    border: 1px solid #CCC;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    color: #444;
}

.table .print {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url(../images/print.svg) no-repeat center;
    background-size: 18px;
}

table i {
    font-style: normal;
    font-size: 14px;
    color: #005270;
}

table a {
    color: #005270;
    font-size: 15px;
}

table a:hover {
    text-decoration: none;
}

.button {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    color: #FFF !important;
    background: #005270;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.button:hover {
    background: #006384;
}

.profile .info {
    margin-left: 20px;
    margin-bottom: 30px;
}

.profile .info li {
    margin-bottom: 5px;
    color: #444;
    font-size: 15px;
}

.profile .car {
    margin-top: 20px;
}

.profile .car p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.profile .car h3 {
    color: #005270;
    line-height: 30px;
    font-size: 18px;
}

.profile .car h3 .button {
    float: right;
    padding: 4px 10px;
    line-height: 22px;
}

.profile .car h3 span {
    font-size: 14px;
    display: inline-block;
    line-height: 30px;
    vertical-align: top;
    color: #a50000;
}

.mb-12 {
    margin-bottom: 12px;
}

.breadcrumbs {
    margin: 5px 0 20px;
    position: relative;
}

.breadcrumbs .add {
    position: absolute;
    right: 0;
    top: -7px;
    color: #FFF !important;
    background: #005270;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.breadcrumbs .add:hover {
    background: #006384;
}

.breadcrumbs a {
    color: #005270;
    text-decoration: underline;
    transition: all .2s;
    font-size: 14px;
}

.breadcrumbs a:hover,
.breadcrumbs a.active {
    color: #666;
    text-decoration: none;
}

.pagination {
    list-style: none;
    text-align: center;
    padding-top: 20px;
}

.pagination li {
    display: inline-block;
    width: auto;
    float: none;
}

.pagination a,
.pagination span {
    display: inline-block;
    text-decoration: none;
    color: #005270;
    padding: 1px 7px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 3px;
}

.pagination .active span {
    background: #005270;
    color: #FFF;
}

.contract {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.contract td {
    padding: 10px;
    border: 1px solid #CCC;
    font-size: 15px;
}

.contract tr td:nth-child(1) {
    width: 200px;
    background: #FAFAFA;
    color: #005270;
}

.contract .first td {
    background: #eae7e7 !important;
    color: #005270 !important;
    font-weight: 600;
    font-size: 18px;
}

.contract .first a {
    float: right;
    display: inline-block;
    margin-left: 24px;
    line-height: 20px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.contract .first .print {
    padding-left: 24px;
    background: url(../images/print.svg) no-repeat left 3px;
    background-size: 18px;
}

.contract .first .status {
    padding-left: 24px;
    background: url(../images/date.svg) no-repeat left 2px;
    background-size: 18px;
}

.contract .first .storage {
    padding-left: 22px;
    background: url(../images/storage.svg) no-repeat left 2px;
    background-size: 18px;
}

.contract .first a:hover {
    text-decoration: underline;
}

.statistics {
    padding-top: 10px;
    padding-bottom: 45px;
}

.statistics:after {
    content: '';
    display: block;
    clear: both;
}

.statistics .month {
    width: calc(100% / 12);
    float: left;
    position: relative;
    text-align: center;
    height: 120px;
    border-bottom: 1px solid #CCC;
    box-sizing: border-box;
}

.statistics .month b {
    position: absolute;
    bottom: -40px;
    color: #005270;
    width: 100%;
    left: 0;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
}

.statistics .month b i {
    font-style: normal;
    display: block;
    color: #444;
    margin-top: -2px;
}

.statistics .month span {
    display: block;
    position: absolute;
    bottom: 0;
    left: 7%;
    width: 86%;
}

@media screen and (max-width: 700px) {
    .places .col {
        width: 100%;
        float: none;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #EFEFEF;
    }

    nav li a {
        font-size: 12px;
    }

    .top-panel {
        position: relative;
        padding-bottom: 50px;
    }

    .top-panel .user {
        width: 70%;
    }

    .top-panel .col:nth-child(2) {
        width: 100%;
        float: none;
        position: absolute;
        top: 60px;
    }

    .top-panel .col:nth-child(3) {
        width: 30%;
    }

    .breadcrumbs a {
        font-size: 14px;
    }

    .places span {
        margin-bottom: 5px;
    }

    .places h2 {
        margin-top: 25px;
    }

    .search form {
        width: calc(50% - 6px);
        margin-left: 12px;
    }

    .search form:nth-child(3) {
        margin-left: 0;
    }

    .statistics .month b {
        overflow: hidden;
        margin: 0 3px;
        width: calc(100% - 6px);
        box-sizing: border-box;
        font-size: 12px;
    }

    .title {
        font-size: 18px;
    }

    .title select {
        font-size: 16px;
    }

    .title a {
        font-size: 18px;
    }

    .table {
        table-layout: auto !important;
    }

    .table td,
    .table a {
        font-size: 13px;
    }

    .contract .first a {
        float: none;
        display: block;
        max-width: 50%;
        margin: 15px 0 5px;
    }

    .main-table tr th:nth-child(4),
    .main-table tr td:nth-child(4),
    .main-table tr th:nth-child(5),
    .main-table tr td:nth-child(5),
    .main-table tr th:nth-child(7),
    .main-table tr td:nth-child(7) {
        display: none;
    }

    .car-table tr th:nth-child(6),
    .car-table tr td:nth-child(6) {
        display: none;
    }
}

@media screen and (max-width: 550px) {
    nav ul {
        flex-wrap: wrap;
    }

    nav li {
        width: 33.33%;
    }
}

::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:window-inactive {
    background: #999;
    border-radius: 4px;
}
