/* top-search-form */
.top-search-form {
    padding : 0;
    margin  : 0;
}


.top-search-form i.icon-search {
    position : relative;
    top      : 10px;
    left     : 25px;
}


.top-search-form input {
    margin-top         : 5px;
    padding-left       : 35px;
    height             : 30px;
    width              : 200px;

    -webkit-box-sizing : border-box;
    -moz-box-sizing    : border-box;
    box-sizing         : border-box;
    -webkit-transition : all .5s;
    -moz-transition    : all .5s;
    -ms-transition     : all .5s;
    -o-transition      : all .5s;
    transition         : all .5s;
}


.top-search-form input:focus {
    width : 300px;
}


/* filter */
.filter-form {
    margin-bottom : 30px;
    background    : #f1f1f1;
    padding       : 20px;
}


.filter-form a {
    font-size : 16px;
    color     : #555;
}


.filter-form .toggle {
    margin-top : 20px;
}


/* -- ссылки авторизация-регистрация -- */
header a:hover {
    text-decoration : none;
    color           : #174988
}


.login-action {
    padding-top : 65px;
}


/* -- выпадающее меню с профилем юзера -- */
.profile-info:after {
    border-bottom : 6px solid #FFFFFF;
    border-left   : 6px solid transparent;
    border-right  : 6px solid transparent;
    content       : "";
    display       : inline-block;
    left          : 10px;
    position      : absolute;
    top           : -6px;
}


.profile-info:before {
    border-bottom : 7px solid rgba(0, 0, 0, 0.2);
    border-left   : 7px solid transparent;
    border-right  : 7px solid transparent;
    content       : "";
    display       : inline-block;
    left          : 9px;
    position      : absolute;
    top           : -7px;
}


.profile-info {
    background-clip  : padding-box;
    background-color : #FFFFFF;
    border           : 1px solid rgba(0, 0, 0, 0.2);
    box-shadow       : 0 5px 10px rgba(0, 0, 0, 0.2);
    display          : none;
    float            : left;
    list-style       : none outside none;
    margin           : 2px 0 0;
    min-width        : 160px;
    padding          : 5px 0;
    position         : absolute;
    z-index          : 1000;
}


.profile-info ul {
    margin  : 0;
    padding : 0;
}


.profile-info li {
    list-style : none;
}


.profile-info li a {
    display         : block;
    padding         : 3px 20px;
    text-decoration : none;
    color           : #555555;
}


.profile-info li a:hover {
    background      : #396BAA;
    color           : #fff;
    text-decoration : none;
}


.profile-info i {
    margin : 2px 5px 0 0;
}


.profile-info a:hover i {
    background-image : url('/images/glyphicons-halflings-white.png');
}


/* -- навигация -- */
.main-nav .navbar-inner {
    padding : 10px 0;
}


.main-nav a.hide img {
    height     : 40px;
    margin-top : -3px;
}


.main-nav.affix {
    top        : 0;
    width      : 100%;
    z-index    : 1002;
    box-shadow : 0 1px 2px rgba(0, 0, 0, .5);
}


.main-nav.affix a.hide {
    display : block;
}


.navbar-fixed-bottom {
    z-index : 2500;
}


.main-nav.affix+.content {
    margin-top : 85px;
}


/* -- навигация авторизованного юзера -- */
.user-menu {
    font-size : 12px;
}


.user-menu li a {
    padding : 3px 25px;
}


.user-menu a i {
    margin-left : -20px;
    margin-top  : -1px !important;
}


.user-menu.affix {
    top     : 80px;
    z-index : 1002;
    width   : 240px;
}


.user-menu.affix-bottom {
    position : absolute;
    top      : auto;
    bottom   : 390px;
    width    : 240px;
}


/* -- контент -- */
.content {
    min-height    : 500px;
    margin-bottom : 30px;
}


/* -- блок с табами на главной -- */
.promo {
    margin-bottom : 30px;
}


.promo .nav-tabs {
    margin-bottom : 0;
    margin-left   : 1px;
    border        : 0;
}


.promo .nav-tabs > li {
    margin-bottom : -3px;
    position      : relative;
}


.promo .nav-tabs > li:last-child a,
.promo .nav-tabs > li:last-child > a:hover,
.promo .nav-tabs > li:last-child.active > a,
.promo .nav-tabs > li:last-child.active > a:hover {
    border-bottom : 1px solid #ccc;
}


.promo .nav-tabs > li.active:after {
    border-bottom : 10px solid transparent;
    border-right  : 10px solid #174584;
    border-top    : 10px solid transparent;
    content       : "";
    display       : inline-block;
    left          : -10px;
    top           : 25%;
    position      : absolute;
    margin-top    : -5px;
}


.promo .nav-tabs > li > a,
.promo .nav-tabs > li > a:hover,
.promo .nav-tabs > li.active > a,
.promo .nav-tabs > li.active > a:hover {
    color             : #555555;
    text-shadow       : 0 1px 0 #fff;
    border            : 0;
    border-top        : 1px solid #ccc;
    border-left       : 1px solid #ccc !important;
    border-right      : 1px solid #ccc;
    background-color  : #174988;
    background-image  : -moz-linear-gradient(top, #fff, #eee);
    background-image  : -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#eee));
    background-image  : -webkit-linear-gradient(top, #fff, #eee);
    background-image  : -o-linear-gradient(top, #fff, #eee);
    background-image  : linear-gradient(to bottom, #fff, #eee);
    background-repeat : repeat-x;
    filter            : progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
}


.promo .nav-tabs > li.active > a,
.promo .nav-tabs > li.active > a:hover {
    color             : #f1f1f1;
    text-shadow       : 1px 1px 0 #555555;
    border-left       : 1px solid #174988 !important;
    border-right      : 1px solid #174988 !important;
    border-top        : 1px solid #174988 !important;
    background-color  : #174988;
    background-image  : -moz-linear-gradient(top, #174988, #133d72);
    background-image  : -webkit-gradient(linear, 0 0, 0 100%, from(#174988), to(#133d72));
    background-image  : -webkit-linear-gradient(top, #174988, #133d72);
    background-image  : -o-linear-gradient(top, #174988, #133d72);
    background-image  : linear-gradient(to bottom, #174988, #133d72);
    background-repeat : repeat-x;
    filter            : progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff174988', endColorstr='#ff133d72', GradientType=0);
}


.promo .nav-tabs li h4 {
    font-weight : normal;
}


.promo .tab-content .padding {
    padding    : 15px;
    min-height : 320px;
}


/* -- блок "славы" на главной -- */
.fame-block a {
    display       : block;
    margin-bottom : 10px;
}


/* -- блоки на главной -- */
h3.block-header {
    font-weight   : normal;
    border-bottom : 1px solid #555;
}


h3.block-header i {
    margin-top  : 8px !important;
    margin-left : 10px;
}


/* -- блок коментариев и блогов на главной -- */
.comments-main {
    margin-bottom : 30px;
}


.comments-main .author {
    font-size     : 16px;
    display       : block;
    margin-bottom : 10px;
}


.comments-main .source {
    font-size       : 12px;
    display         : block;
    margin-bottom   : 10px;
    text-decoration : underline;
}


.comments-main .title-main {
    font-size       : 16px;
    display         : block;
    margin-bottom   : 10px;
    text-decoration : underline;
}


.comments-main .source:hover, .comments-main .title-main:hover {
    text-decoration : none;
}


.comments-main .info {
    font-size : 12px;
}


.comments-main .info span {
    display      : inline-block;
    margin-right : 20px;
}


.comments-main .info span i {
    margin-right : 10px;
}


/* -- блок новостей на главной -- */
.news {
    margin-bottom : 30px;
}


.title-news {
    display         : block;
    margin-bottom   : 10px;
    text-decoration : underline;
}


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


.news span {
    display      : inline-block;
    margin-right : 20px;
    font-size    : 12px;
}


.news span i {
    margin-right : 10px;
}


/* -- профиль пользователя -- */
.profile .img-polaroid {
    width              : 100%;
    -webkit-box-sizing : border-box;
    -moz-box-sizing    : border-box;
    box-sizing         : border-box;
}


.profile fieldset {
    margin-bottom : 15px;
}


.profile .attribute {
    color       : #333;
    font-weight : bolder;
}


.profile .row {
    margin-bottom : 10px;
}


/* -- рейтинг пользователя -- */
.progress {
    margin-bottom : 10px;
}


.rate:last-child {
    margin-bottom : 30px;
}


.rate .user {
    font-size : 16px;
}


/* -- блоги пользователя -- */
.blog span {
    display   : block;
    font-size : 12px;
}


.blog span i {
    margin-right : 10px;
}


.blog .title-blog {
    display         : inline-block;
    font-size       : 16px;
    text-decoration : underline;
    margin-bottom   : 10px;
}


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


/* -- компании пользователя -- */
.companies-list {
    margin-bottom  : 30px;
    padding-bottom : 10px;
}


.companies-list a span {
    display   : inline-block;
    margin    : 10px 15px 0 0;
    color     : #555555;
    font-size : 12px;
}


.companies-list a:hover {
    text-decoration : none;
}


.companies-list i {
    margin-right : 10px;
    margin-top   : 2px;
}


.companies-list legend {
    margin-bottom : 10px;
    line-height   : 20px;
}


.companies-list h4 {
    margin : 0;
}


.companies-list .attribute {
    margin-bottom : 20px;
}


.companies-list ul {
    margin-bottom : 0;
}


.rating a {
    text-decoration : none;
}


.rating .count {
    overflow : auto;
    margin   : 0;
    display  : inline;
}


.rating a:last-child {
    margin-left : 10px;
}


/* -- категории документов -- */
.categories small {
    color     : inherit;
    font-size : 18px;
}


.categories fieldset {
    margin-bottom : 30px;
}


.categories legend a:hover {
    text-decoration : none;
}


/* -- список документов -- */
legend .btn {
    margin-bottom : 10px;
}


.documents {
    width : 100%;
}


.documents tr:nth-child(even) {
    background : #f6f6f6;
}


.documents td, th {
    vertical-align : top;
}


.documents th {
    border-bottom : 1px solid #555;
}


.documents td {
    padding : 30px 0 20px 0;
}


.documents .index {
    width      : 50px;
    text-align : center;
}


.documents .user {
    width : 150px;
}


/* -- элемент списка документов -- */
.item .type {
    width         : 35%;
    padding-right : 20px;
}


.item .date {
    width : 20%;
}


.item h4 {
    margin-top : 0;
}


/* footer */
footer {
    /*TODO: убрать*/
    background : #133d72;
    padding    : 30px 0;
    color      : #f1f1f1;

    font-size  : .8em;
}


footer a {
    color : #fefefe;
}


footer a:hover,
footer a:focus {
    color : inherit;
}


footer h3 {
    font-weight : normal;
}


/* -- посты в блогах пользователей -- */
.post {
    margin-bottom : 30px;
}


.post h3 {
    margin-top  : 0;
    font-weight : normal;
}


/* -- статичные страницы -- */
.page {
    margin-bottom : 10px;
    padding       : 10px;
    background    : #f6f6f6;
    display       : none;
}


li.page {
    background : none;
}


.page .title i {
    margin-right : 10px;
}


.page-content img, .document-content img {
    padding            : 4px;
    background-color   : #fff;
    border             : 1px solid #ccc;
    border             : 1px solid rgba(0, 0, 0, 0.2);
    -webkit-box-shadow : 0 1px 3px rgba(0, 0, 0, 0.1);
    -moz-box-shadow    : 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow         : 0 1px 3px rgba(0, 0, 0, 0.1);
    width              : 100%;
    -webkit-box-sizing : border-box;
    -moz-box-sizing    : border-box;
    box-sizing         : border-box;
}


.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.document-content h1,
.document-content h2,
.document-content h3,
.document-content h4 {
    font-weight : normal;
}


/* -- корневые страницы списка -- */
.root {
    display : block;
}