/*
 * Global compact Bootstrap scale.
 *
 * The project still uses Bootstrap's semantic classes, but renders each built-in
 * size one step smaller: lg -> default, default -> sm, sm -> xs, xs -> custom.
 */

.btn-lg,
.btn-group-lg > .btn {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
}

.btn {
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.btn-sm,
.btn-group-sm > .btn {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.btn-xs,
.btn-group-xs > .btn {
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 3px;
}

.input-lg,
.form-group-lg .form-control {
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
}

.form-control {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.input-sm,
.form-group-sm .form-control {
    height: 24px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 2px;
}

select.input-lg,
.form-group-lg select.form-control {
    height: 34px;
    line-height: 34px;
}

select.form-control {
    height: 30px;
    line-height: 30px;
}

select.input-sm,
.form-group-sm select.form-control {
    height: 24px;
    line-height: 24px;
}

textarea.form-control,
textarea.input-lg,
textarea.input-sm,
.form-group-lg textarea.form-control,
.form-group-sm textarea.form-control {
    height: auto;
}

.form-control-static {
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 12px;
}

.form-group-lg .form-control-static {
    min-height: 34px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 14px;
}

.form-group-sm .form-control-static {
    min-height: 24px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 11px;
}

.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
}

.input-group > .form-control,
.input-group > .input-group-addon,
.input-group > .input-group-btn > .btn {
    height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
    height: 24px;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 2px;
}

.input-group-lg > select.form-control,
.input-group-lg > select.input-group-addon,
.input-group-lg > .input-group-btn > select.btn {
    height: 34px;
    line-height: 34px;
}

.input-group > select.form-control,
.input-group > select.input-group-addon,
.input-group > .input-group-btn > select.btn {
    height: 30px;
    line-height: 30px;
}

.input-group-sm > select.form-control,
.input-group-sm > select.input-group-addon,
.input-group-sm > .input-group-btn > select.btn {
    height: 24px;
    line-height: 24px;
}

.input-group > .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group > .btn,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon:first-child {
    border-right: 0;
}

.input-group > .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group-addon:last-child {
    border-left: 0;
}

.input-group .form-control:not(:first-child):not(:last-child),
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}

.input-group-addon:not(:first-child):not(:last-child) {
    border-left: 0;
    border-right: 0;
}

.select2-container .select2-selection--single {
    height: 30px;
    min-height: 30px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px;
    padding-right: 20px;
    line-height: 28px;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 28px;
}

.input-group-sm .select2-container .select2-selection--single,
.form-group-sm .select2-container .select2-selection--single,
.select2-container.input-sm .select2-selection--single {
    height: 24px;
    min-height: 24px;
    font-size: 11px;
    border-radius: 2px;
}

.input-group-sm .select2-container .select2-selection--single .select2-selection__rendered,
.form-group-sm .select2-container .select2-selection--single .select2-selection__rendered,
.select2-container.input-sm .select2-selection--single .select2-selection__rendered {
    padding-left: 6px;
    padding-right: 18px;
    line-height: 22px;
}

.input-group-sm .select2-container .select2-selection--single .select2-selection__arrow,
.form-group-sm .select2-container .select2-selection--single .select2-selection__arrow,
.select2-container.input-sm .select2-selection--single .select2-selection__arrow {
    height: 22px;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 5px;
}

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
    padding: 3px;
}

.dropdown-menu {
    font-size: 12px;
}

.dropdown-menu > li > a {
    padding: 2px 14px;
}

.nav > li > a {
    padding: 7px 10px;
}

.navbar-nav > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar-brand {
    height: 40px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 20px;
}

.navbar {
    min-height: 40px;
}

.navbar-toggle {
    margin-top: 6px;
    margin-bottom: 6px;
    padding: 7px 8px;
}

.pagination > li > a,
.pagination > li > span {
    padding: 4px 9px;
    font-size: 12px;
}

.pagination-lg > li > a,
.pagination-lg > li > span {
    padding: 6px 12px;
    font-size: 14px;
}

.pagination-sm > li > a,
.pagination-sm > li > span {
    padding: 2px 6px;
    font-size: 11px;
}

.pager li > a,
.pager li > span {
    padding: 4px 10px;
    font-size: 12px;
}

.label,
.badge {
    font-size: 70%;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
}

.panel-heading,
.panel-body,
.panel-footer,
.list-group-item,
.well {
    padding: 10px;
}

.well-lg {
    padding: 19px;
}

.well-sm {
    padding: 6px;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 12px;
}

.popover {
    font-size: 12px;
}

.popover-title {
    padding: 6px 10px;
    font-size: 12px;
}

.popover-content {
    padding: 7px 10px;
}

.tooltip {
    font-size: 11px;
}
