body, .dropdown-menu, .btn, .form-control {
    font-size: 0.875rem;
}
.btn-sm, .btn-group-sm > .btn {
    font-size: 0.75rem;
}
.btn-lg, .btn-group-lg > btn {
    font-size: 0.95rem;
}
.form-check-input {
    /* this accounts for change in font-size */
    margin-top: 0.125rem;
}
.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.main, .sidebar {
    padding-top: 0.5rem;
}
footer {
    font-size: 0.75rem;
}

.banner {
    display: block;
    text-align: center;
    font-size: 1rem;
    padding: 0.5em;
    position: sticky;
    top: 0;
    left: 0;
    height: 40px;
    z-index: 1020; /* the same as Bootstrap's navbar */
}

.banner-local {
    color: #000000;
    background: #ffc107;
}

.banner-local a {
    color: #000000;
    text-decoration: underline;
}

.banner-testing {
    color: #FFFFFF;
    background: #dc3545;
}

.banner-testing a {
    color: #FFFFFF;
    text-decoration: underline;
}

.navbar-banner-displacement {
    top: 40px; /* height of .banner */
}

.sidebar select {
    resize: vertical;
}
.sidebar .select2-container {
    min-width: 1rem;
    background-color: #FFF;
}
.sidebar label.col-form-label {
    padding-bottom: 0;
}

label.col-form-label {
    font-weight: bold;
}

table .badges-column {
    width: 13%;
}
table .additional-links {
    width: 70px;
}
table .additional-links-wider {
    width: 100px;
}
table .table-row-distinctive {
    border-top: 4px solid #dee2e6 !important;
}

caption {
    caption-side: top;
    color: #000000;
}

.form-group small {
    font-size: 0.8rem;
}

.tab-content .tab-pane {
    padding-top: 15px;
    padding-bottom: 15px
}

.edit-object, .delete-object {
    margin-bottom: 15px;
}

.main table pre {
    white-space: pre-wrap;       /* Since CSS 2.1 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/* Bootstrap4 styles for <a> applied to bare <button> */
.no-btn {
    border-radius: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    overflow: visible;
    text-transform: none;
    color: #dc3545;
    background-color: transparent;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: color 0.15s ease-in-out,
                background-color 0.15s ease-in-out,
                border-color 0.15s ease-in-out,
                box-shadow 0.15s ease-in-out;
    cursor: pointer;
    border: none;
    padding: 0;
    border-style: none;
}
.no-btn:hover {
    color: #a41d2a;
    text-decoration: underline;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: currentcolor;
}
.amy-form-inline {
    display: inline-block;
    margin: 0 0.5rem;
}


/* enable showing of field errors - crispy forms and bootstrap 4 */
.invalid-feedback {
    display: block;
}
p.invalid-feedback {
    margin-bottom: 0;
}

/* move radio-button circles down a little */
input[type="radio"], input[type="checkbox"] {
    top: 2px;
}

/* general resizable class styles */
.resizable-vertical {
    resize: vertical;
}
.resizable-horizontal {
    resize: horizontal;
}
.resizable {
    resize: both;
}

/* don't display honeypot field in comment forms */
form input[name=honeypot] {
    display: none;
}

/* comment form styling */
.commentform textarea {
    width: 100%;
    resize: vertical;
}

/* this setting will display long "Other" field in forms */
form .form-check label, form .checkbox label {
    display: block;
}

.markdownx.row .col textarea {
    width: 100%;
}

/* Select2 read-only with CSS: https://stackoverflow.com/a/55001516 */
select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible + .select2-container
.select2-selection {
    background: #eee;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container
.select2-selection__arrow,
select[readonly].select2-hidden-accessible + .select2-container
.select2-selection__clear {
    display: none;
}

/* Special case: multiple inputs in one form row (e.g. extensions in membership form on
   membership edit page) */
.form-group.row input + input {
    margin-top: 0.25em;
}

/* RECRUITMENT NOTES */
.recruitment-notes {
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.recruitment-notes .save-notes, .recruitment-notes .cancel-notes {
    margin-top: 0.5rem;
}
.recruitment-notes .add-notes {
    margin-top: -1.5rem;
}
.notes-content {
    white-space: pre-line;
    margin-top: 0;
    margin-bottom: 1rem;
    border-width: 2px !important;
}
.display-white-space {
    white-space: pre-line;
}

/* RELATIVE TIME */
relative-time {
    text-decoration: dotted underline 10%;
}

/* FORM inside btn-group  */
.btn-group > form.btn-group:not(:first-child) {
    margin-left: 0px;
}
