body {
    padding-top: 60px;
}

/* Название и версия приложения в навигационной панели.
   .navbar-inner в селекторе — чтобы перекрыть .navbar .brand из bootstrap-responsive (подключается позже) */
.navbar .navbar-inner .brand {
    margin-top: 6px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar .brand .brand-version {
    margin: -6px 0 0 53px;
    padding: 0;
    font-size: 12px;
}

.navbar .brand {
    color: #08c;
    font-weight: 400;
}

/* 60px to make the container go all the way to the bottom of the topbar */
.table {
    font-size: 12px;
}

.small-comment {
    margin-top: -6px;
    margin-left: 1px;
    font-size: 10px;
    line-height: 10px;
}

.alert-inline {
    padding: 6px 12px;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.nowrap {
    white-space: nowrap;
}

/* версия без отметки разрешённости (для разработчиков и тестировщиков), выровнена с label.checkbox */
.version-free {
    min-height: 20px;
    padding-left: 20px;
    margin-bottom: 5px;
}

/* число клиентов, у которых версия отмечена отдельно */
.client-marks {
    color: #08c;
}

/* номер версии фиксированной ширины, чтобы кнопки удаления стояли на одной вертикали */
.version-free .version-name {
    display: inline-block;
    width: 64px;
}

.version-free .remove-distribution {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 15px;
    font-size: 16px;
    text-align: center;
    color: #999;
    border-radius: 3px;
    text-decoration: none;
}

.version-free .remove-distribution:hover {
    color: #fff;
    background-color: #da4f49;
}

h5 {
    margin: 0;
}

small {
    font-size: 15px;
    color: #999;
    border-bottom: 1px solid #e5e5e5;
}

#result-message-block {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

legend {
    margin-top: 20px;
}

legend:nth-of-type(1) {
    margin-top: 0;
}

/* Заголовок страницы остаётся под навигационной панелью при прокрутке.
   Если legend стоит в блоке вместе с кнопками ("Добавить"), закрепляется весь блок .sticky-title */
legend,
.sticky-title {
    position: sticky;
    top: 41px; /* высота .navbar-fixed-top */
    z-index: 10;
    background-color: #fff;
}

.sticky-title legend {
    position: static;
}

/* bootstrap-responsive: на узком экране навигационная панель не закреплена */
@media (max-width: 979px) {
    legend,
    .sticky-title {
        top: 0;
    }
}