/* Navbar ---> */
@media only screen and (min-width: 768px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (min-width: 768px) {
    .navbar-nav.navbar-center {
        float: none;
        margin: 0 auto;
        display: table;
        table-layout: fixed;
    }
}

.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
    background-color: rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width:767px){
    .dropdown-menu{
        display: block;
        position: static;
        background-color:transparent;
        border:0 none;
        box-shadow:none;
        margin-top:0;
        position:static;
        width:100%;
    }
    .navbar-nav .dropdown-menu > li > a,
    .navbar-nav .dropdown-menu .dropdown-header {
        padding:5px 15px 5px 25px;
    }
    .navbar-nav .dropdown-menu > li > a{
        line-height:20px;
    }
    .navbar-default .navbar-nav .dropdown-menu > li > a{
        color:#777;
    }
    .form-control {
        width: auto;
    }
    h1 {
        width: 100%;
    }
}
/* <--- Navbar */


.grid-view {
    overflow-x: auto;
}




@media (min-width: 992px) {
    .modal.modal-large > .modal-dialog {
        width: 900px;
    }
}

a.border-dashed,
a.border-dashed:hover {
    border-bottom: 1px dashed;
    text-decoration: none;
}

.border-bottom-dashed {
    border-bottom: 1px dashed #999;
}

#sidebar {
    padding: 20px 20px 20px 0;
}

#mainmenu {
    background: white url(bg.gif) repeat-x left top;
}

#mainmenu ul {
    padding: 6px 20px 5px 20px;
    margin: 0px;
}

#mainmenu ul li {
    display: inline;
}

#mainmenu ul li a {
    color: #fff;
    background-color: transparent;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 8px;
}

#mainmenu ul li a:hover, #mainmenu ul li.active a {
    color: #6399cd;
    background-color: #eff4fa;
    text-decoration: none;
}

div.flash-error, div.flash-notice, div.flash-success {
    padding: .8em;
    margin-bottom: 1em;
    border: 2px solid #ddd;
}

div.flash-error {
    background: #fbe3e4;
    color: #8a1f11;
    border-color: #fbc2c4;
}

div.flash-notice {
    background: #fff6bf;
    color: #514721;
    border-color: #ffd324;
}

div.flash-success {
    background: #e6efc2;
    color: #264409;
    border-color: #c6d880;
}

div.flash-error a {
    color: #8a1f11;
}

div.flash-notice a {
    color: #514721;
}

div.flash-success a {
    color: #264409;
}

div.form .rememberMe label {
    display: inline;
}

div.view {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #c9e0ed;
}

div.search-form {
    padding: 10px;
    margin: 10px 0;
    background: #eee;
}

.portlet {

}

.portlet-decoration {
    padding: 3px 8px;
    background: #b7d6e7;
    border-left: 5px solid #6faccf;
}

.portlet-title {
    font-size: 12px;
    font-weight: bold;
    padding: 0;
    margin: 0;
    color: #298dcd;
}

.portlet-content {
    font-size: 0.9em;
    margin: 0 0 15px 0;
    padding: 5px 8px;
    background: #effdff;
}

.portlet-content ul {
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.portlet-content li {
    padding: 2px 0 4px 0px;
}

.operations {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.operations li {
    padding-bottom: 2px;
}

.operations li a {
    font: bold 12px Arial;
    color: #0066a4;
    display: block;
    padding: 2px 0 2px 8px;
    line-height: 15px;
    text-decoration: none;
}

.operations li a:visited {
    color: #0066a4;
}

.operations li a:hover {
    background: #80cfff;
}

/* CUSTOM */

/* Ссылки */
a {
    color: #428bca;
}

a:hover {
    color: #50b2ff;
    text-decoration: underline;
}

/* HTML */
h1 {
    margin: 0 0 20px 0;
    font-family: Open Sans, sans-serif;
}

body {
    background: #fff url(../img/bg_grid.png) top center;
    font-family: Open Sans, sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 1.5em;
    margin: 0;
    padding: 0;
    position: relative;
}

#page {
    margin: 0 auto;
    padding: 10px 0;
}

#header {
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

#logo a {
    text-decoration: none;
    display: block;
    float: left;
    margin: 0;
    padding: 0 0 0 52px;
    font-size: 24px;
    line-height: 48px;
    font-weight: normal;
    color: #000;
    height: 48px;
    background: url(../img/logo.png) no-repeat center left;
}

#logo a:hover {
    text-decoration: none;
    color: #50b2ff;
}

#breadcrumbs {
    margin: 0;
    padding: 0;
    font-style: italic;
}

#content {
    min-height: 400px;
    margin: 0;
    padding: 0;
}

#footer {
    margin: 20px auto 0;
    padding: 10px 0 0 0;
    text-align: center;
    border-top: 1px solid #c9e0ed;
}

#footer .description {
    line-height: 1em;
    color: #777;
}

.grid-view {
    display: block;
    clear: both;
    margin: 0 0 20px 0;
    padding: 0;
}

/* Кнопки операций */
.operations {
    text-align: center;
    padding: 5px;
    margin: 0 0 20px 0;
}

.operations.right {
    margin-left: 10px;
}

.operations.left {
    margin-right: 10px;
}

.operations > a {
    margin: 5px;
}

/* Инфо */
.info {
    text-align: center;
    padding: 5px;
    margin: 0 0 20px 0;
}

.info > .title {
    margin: 0 0 2px 0;
}

.info.right {
    margin-left: 10px;
}

.info.left {
    margin-right: 10px;
}

/* Навигация (блок) */
#user-nav {
    max-width: 180px;
    display: block;
    position: fixed;
    left: -150px;
    top: 20%;
    z-index: 10;
    margin: 0 -10px 20px 0;
    padding: 10px 15px 10px 18px;
    background: #1c5ba0 url(../img/bg_grid_small_white.png) top left;
    font-size: 13px;
    color: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 0.6s ease-in-out;
    -moz-transition: all 0.6s ease-in-out;
    -o-transition: all 0.6s ease-in-out;
    transition: all 0.6s ease-in-out;
}

#user-nav.active {
    left: -5px;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

#user-nav a {
    color: #fff;
    text-decoration: none;
}

#user-nav a:hover {
    color: #ff0;
    text-decoration: underline;
}

a.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    font-size: 30px;
    line-height: 1em;
    font-weight: normal;
    font-family: Times, serif;
    cursor: pointer;
    z-index: 2;
    color: #fff;
    margin: 0;
    padding: 2px 10px 0 0;
    text-decoration: none;
}

a.btn-close:hover {
    color: #ff0;
    text-decoration: none !important;
}

#user-nav .greeting-text {
    margin: 0 15px 20px 0;
    padding: 0;
    line-height: 1em;
    font-style: italic;
}

#user-nav ul.menu {
    margin: 0;
    padding: 0;
    display: block;
    font-size: 0;
}

#user-nav ul.menu li {
    list-style: none;
    margin: 0;
    font-size: 13px;
    line-height: 13px;
    display: block;
    min-height: 24px;
    width: 100%;
    vertical-align: middle;
}

#user-nav ul.menu li a {
    display: block;
    margin: 0;
    vertical-align: middle;
    position: relative;
    white-space: nowrap;
}

#user-nav ul.menu li a img {
    position: absolute;
    left: 0;
    top: 50%;
    margin: -12px 0 0 0;
    padding: 0;
}

#user-nav ul.menu li a span {
    display: inline-block;
}

#user-nav ul.menu > li > ul {
    margin: 0 0 0 45px;
    padding: 0;
}

#user-nav ul.menu > li > ul li {
    margin: 0;
    padding: 0 0 5px 0;
    font-size: 11px;
    line-height: 1em;
    min-height: 0;
}

#user-nav ul.menu > li > ul li a {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

#user-nav .login-form {
    margin: 0;
    padding: 0;
}

#user-nav .login-form input {
    width: 100%;
    margin: 0 0 5px 0;
    padding: 1px 3px;
    line-height: 1em;
    border-radius: 3px;
}

#user-nav .login-form input[type=text],
#user-nav .login-form input[type=password] {
    border: none;
    color: #000;
}

/* Иконки */
.icon-16 {
    display: block;
    min-height: 16px;
    padding-left: 30px;
    background-repeat: no-repeat;
    background-position: left center;
}
.icon-24 {
    display: block;
    height: 24px;
    line-height: 24px;
    padding-left: 30px;
    background-repeat: no-repeat;
    background-position: left center;
}

.icon-building-24 {
    background-image: url(../img/icon_building_24.png);
}

.icon-things-24 {
    background-image: url(../img/icon_things_24.png);
}

.icon-map-24 {
    background-image: url(../img/icon_map_24.png);
}

.icon-man-24 {
    background-image: url(../img/icon_man_24.png);
}

.icon-log-24 {
    background-image: url(../img/icon_log_24.png);
}

.icon-dollars-24 {
    background-image: url(../img/icon_dollars_24.png);
}

.icon-chart-24 {
    background-image: url(../img/icon_chart_24.png);
}

.icon-docs-24 {
    background-image: url(../img/icon_docs_24.png);
}

.icon-handshake-24 {
    background-image: url(../img/icon_handshake_24.png);
}

.icon-ruller-24 {
    background-image: url(../img/icon_ruller_24.png);
}

.icon-cement-24 {
    background-image: url(../img/icon_cement_24.png);
}

.icon-box-24 {
    background-image: url(../img/icon_box_24.png);
}

.icon-hard-hat-24 {
    background-image: url(../img/icon_hard_hat_24.png);
}

.icon-hammer-24 {
    background-image: url(../img/icon_hammer_24.png);
}

.icon-car-24 {
    background-image: url(../img/icon_car_24.png);
}

.datepicker table thead th {
    background: none;
}

.datepicker table tfoot th.clear:after {
    content: "Очистить";
}

.full-width {
    width: 100%;
}

.full-width .dropdown-toggle {
    width: 100%;
    text-align: left;
}

.full-width .dropdown-toggle > .dropdown-title {
    float: left !important;
    clear: none;
}

.full-width .dropdown-toggle > .caret {
    float: right !important;
    margin-top: 0.7em;
    clear: none;
}

.dropdown-menu a {
    cursor: pointer;
    position: relative;
}

.dropdown-menu a:hover {
    cursor: pointer;
    background: #f5f5f5;
}

.dropdown-menu a.is-checked:after {
    content: "✓";
    position: absolute;
    right: 0.5em;
}

.cursor-pointer {
    cursor: pointer;
}

.panel-group > .panel {
    margin-top: 2px !important;
    margin-bottom: 2px !important;;
}

.noborder {
    border: none !important;
}

.nomargin {
    margin: 0 !important;
}

.nomargin-top {
    margin-top: 0 !important;
}

.nopadding {
    padding: 0 !important;
}

.nopadding-left {
    padding-left: 0 !important;
}

.nopadding-right {
    padding-right: 0 !important;
}

.nopadding-top {
    padding-top: 0 !important;
}

/* Текст */
.txt-left {
    text-align: left;
}

.txt-right {
    text-align: right;
}

.txt-center {
    text-align: center;
}

.txt-justify {
    text-align: justify;
}

.txt-bold {
    font-weight: bold;
}

.txt-nowrap {
    white-space: nowrap;
}

.txt-primary {
    color: #428bca;
}

.txt-info {
    color: #d9edf7;
}

.txt-success {
    color: #00b521;
}

.txt-danger {
    color: #f2dede;
}

.txt-warning {
    color: #fcf8e3;
}

.txt-red,
a.txt-red,
li > a.txt-red {
    color: #e00000;
}

.txt-blue,
a.txt-blue,
li > a.txt-blue {
    color: #26bce1;
}

.txt-purple,
a.txt-purple,
li > a.txt-purple {
    color: #c900c9;
}

.txt-light-purple,
a.txt-light-purple,
li > a.txt-light-purple {
    color: #c98bc8;
}

.txt-white,
a.txt-white,
li > a.txt-white {
    color: #fff;
}

.txt-green,
a.txt-green,
li > a.txt-green {
    color: #00a700;
}

.txt-grey,
a.txt-grey,
li > a.txt-grey {
    color: #808080;
}

.txt-black,
a.txt-black,
li > a.txt-black {
    color: #000;
}

.bg-red {
    background: #e00000;
}

.bg-light-red {
    background: #ed9b94;
}

.txt-light-red {
    color: #ed9b94;
}

.bg-blue {
    background: #26bce1;
}

.bg-light-blue {
    background: #95cfdf;
}

.bg-purple {
    background: #c900c9;
}

.bg-light-purple {
    background: #c98bc8;
}

.bg-green {
    background: #00b700;
}

.bg-green {
    background: #00b700;
    border-color: #00b700;
}

.bg-light-green {
    background: #b2dcab;
}

.bg-grey {
    background: #808080;
}

.bg-light-grey {
    background: #cbcbcb;
}

.bg-internal {
    background: #fffbc3;
}

.bg-client {
    background: #eeffef;
}

.bg-draft, .bg-new {
    background-color: #95A4A7;
}

.bg-calculating {
    background-color: #ffe500;
    color: #000;
}

.bg-review, .bg-ready {
    background-color: #F39C11;
}

.bg-checked {
    background-color: #17A086;
}

.bg-refine, .bg-calc {
    background-color: #E84C3D;
}

.bg-approved {
    background-color: #27AE5F;
}

.bg-signed, .bg-installed {
    background-color: #2A80B9;
}

.bg-working {
    background-color: #333;
}

.bg-completed {
    background-color: #8F44AD;
}

.bg-canceled {
    background-color: #d7d5d8;
}

.bg-refused {
    background-color: #fff;
    border: 1px solid #000;
    color: #000;
}

.badge.bg-refused {
    padding: 2px 6px;
    line-height: 0.9em;
}

.txt-draft, .txt-new {
    color: #95A4A7;
}

.txt-calculating {
    color: #ffe500;
}

.txt-review, .txt-ready {
    color: #F39C11;
}

.txt-checked {
    color: #17A086;
}

.txt-refine, .txt-calc {
    color: #E84C3D;
}

.txt-approved {
    color: #27AE5F;
}

.txt-signed, .txt-installed {
    color: #2A80B9;
}

.txt-working {
    color: #333;
}

.txt-completed {
    color: #8F44AD;
}

.txt-canceled {
    color: #d7d5d8;
}

.txt-refused {
    color: #000;
}

.fa-circle.txt-refused {
    color: #fff;
    border: 1px solid #000;
    border-radius: 1em;
    font-size: 0.9em;
    line-height: 0.9em;
    padding: 0;
}

.grid-view table.items th.button-column {
    min-width: 65px;
}

.grid-view table.items th select {
    color: #333;
    font-weight: normal;
}

.grid-view table.items td {
    vertical-align: top;
}

.calendar-text {
    margin-top: .3em;
}

.file-text {
    margin-top: .2em;
}

.no-margin {
    margin: 0 !important;
}

.margin-top {
    margin-top: 1em !important;
}

.margin-top-small {
    margin-top: 0.5em !important;
}

.margin-bottom {
    margin-bottom: 1em !important;
}

.margin-bottom-small {
    margin-bottom: 0.5em !important;
}

.margin-left {
    margin-left: 1em !important;
}

.margin-left-small {
    margin-left: 0.5em !important;
}

.margin-left-large {
    margin-left: 2em !important;
}

.margin-right {
    margin-right: 1em !important;
}

.margin-right-small {
    margin-right: 0.5em !important;
}

.margin-right-large {
    margin-right: 2em !important;
}

.margin-negative-top {
    margin-top: -0.8em !important;
}

.margin-negative-top-small {
    margin-top: -0.5em !important;
}

.margin-negative-bottom {
    margin-bottom: -0.8em !important;
}

.margin-negative-bottom-small {
    margin-bottom: -0.5em !important;
}

.padding-top {
    padding-top: 1em !important;
}

.padding-top-small {
    padding-top: 0.5em !important;
}

.padding-bottom {
    padding-bottom: 1em !important;
}

.padding-bottom-small {
    padding-bottom: 0.5em !important;
}

.margin-small {
    margin: 5px !important;
}

.padding-small {
    padding: 5px !important;
}

.line-height-1 {
    line-height: 1em;
}

.text-small {
    font-size: 80%;
}

.text-thin {
    font-weight: normal;
}

.text-red {
    color: #ff0000;
}

.text-yellow {
    color: #ffc107;
}

.text-lower {
    text-transform: lowercase !important;
}

.text-upper {
    text-transform: uppercase !important;
}

.text-nowrap {
    white-space: nowrap;
}

.badge {
    font-weight: normal;
    line-height: 1em;
    padding: 2px 7px;
}

/* Таблицы */
/*.table-condensed th {
	vertical-align: middle;
	color:#fff;
	font-weight:normal;
	font-size:14px;
	background:#aaa;
	text-align: center;
	line-height: 1em;
}
.table-condensed td {
	vertical-align: top;
}



.table-responsive .table-hover > tbody > tr:hover > td,
.table-responsive .table-hover > tbody > tr:hover > th {
	background-color: #fffbc6;
}*/

/* Ведомости на странице объекта */
.object-estimates {
    margin: 40px 0 20px 0;
}

.object-estimates .estimate {
    width: 170px;
    height: 240px;
    background: #fff;
    border: 1px solid #ddd;
    float: left;
    margin: 0 9px 15px;
    padding: 5px 5px 40px;
    line-height: 1.25em;
    position: relative;
}

.object-estimates .add-estimate {
    text-align: center;
    font-weight: 300;
    line-height: 230px;
    color: #aaa;
}

.object-estimates .add-estimate:hover {
    color: #000;
}

.object-estimates a.estimate {
    text-decoration: none;
}

.object-estimates a.estimate:hover {
    text-decoration: none;
    box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.3);
}

.object-estimates .estimate .estimate-title {
    margin: 0 0 10px 0;
    padding: 0;
}

.object-estimates .estimate .estimate-status {
    position: absolute;
    right: 5px;
    bottom: 5px;
}

.object-estimates .estimate .estimate-discount {
    color: #ff3900;
    position: absolute;
    right: 5px;
    bottom: 40px;
}

.object-estimates .estimate .estimate-sum {
    color: #000;
    position: absolute;
    right: 5px;
    bottom: 25px;
}

.object-estimates a.estimate:hover {
    opacity: 1 !important;
}

/* Личный кабинет */
#user-dashboard .panel {
    position: relative;
}

#user-dashboard .panel .panel-heading {
    padding: 5px 10px;
}

#user-dashboard .panel .panel-heading:hover {
    background: #eee;
}

#user-dashboard .panel .panel-heading > a {
    padding: 15px 10px;
    display: block;
}

#user-dashboard .panel .control-buttons {
    top: 0;
    right: 5px;
    z-index: 3;
    position: absolute;
    visibility: hidden;
}

#user-dashboard .panel:hover .control-buttons {
    visibility: visible;
}

#user-dashboard .panel .actions a.disabled,
#user-dashboard .panel .actions a.not-recommended {
    opacity: 0.3 !important;
    cursor: not-allowed;
    pointer-events: auto;
}

#user-dashboard .panel .actions ul.list-inline li {
    margin: 0;
    padding: 0;
}

/* Isotope */
.isotope-element {
    width: 100%;
}

.isotope-sort-header a,
.isotope-sort-header a:hover {
    cursor: pointer;
    display: inline-block;
    line-height: 1em;
    border-bottom: 1px dashed;
    text-decoration: none;
    position: relative;
}

.isotope-sort-header a.active:before {
    content: "↓";
    position: absolute;
    left: -10px;
}

.isotope-sort-header a.active[data-sort-asc=false]:before {
    content: "↑";
}

/* Notify Custom Styles */
.notifyjs-bootstrap-base {
    padding: 0;
}

.notifyjs-bootstrap-base .title {
    float: left;
    font-weight: normal;
    text-shadow: none;
}

.notifyjs-bootstrap-base.notify-error {
    color: #980000;
    background: #ffd4d4;
}

.notifyjs-bootstrap-base.notify-success {
    color: #00460b;
    background: #cfecd0;
}

.notifyjs-bootstrap-base.notify-warning {
    color: #000000;
    background: #ecebb7;
}

.notifyjs-bootstrap-base.notify-info {
    color: #000000;
    background: #d7e4ec;
}

.notifyjs-bootstrap-base.notify-error,
.notifyjs-bootstrap-base.notify-success,
.notifyjs-bootstrap-base.notify-warning,
.notifyjs-bootstrap-base.notify-info {
    padding: 8px;
}

.notifyjs-bootstrap-base.notify-error > i,
.notifyjs-bootstrap-base.notify-success > i,
.notifyjs-bootstrap-base.notify-warning > i,
.notifyjs-bootstrap-base.notify-info > i {
    font-size: 1.5em;
    line-height: 1em;
}

.notifyjs-bootstrap-base .buttons {
    float: right;
    margin: 0 0 0 10px;
    font-weight: normal;
}

.notifyjs-bootstrap-base .buttons * {
    float: left;
    margin: 0 5px;
    color: #fff;
}

.tab-content {
    min-height: 50vh;
    position: relative;
}

.tab-content .tab-empty,
.tab-content .tab-loading {
    position: absolute;
    top: 48%;
    left: 0;
    right: 0;
}

#object-estimate-expenses > .row {
    color: #ccc;
}

#object-estimate-expenses > .row.enabled {
    color: inherit;
}

.mfp-title {
    padding-right: 0;
}

.mfp-gallery .mfp-title {
    padding-right: 100px;
}

.hoverable:hover {
    background: rgba(255, 240, 0, 0.20);
}