body {
    font-size: 12px;
    color: #000;
}

.top-nav, .container {
    max-width: inherit;
}

.top-nav {
    margin-bottom: 0;
}

.top-menu {
    padding: 0 2rem;
}

.top-menu-links a {
    margin: 0 2px 0 0;
    padding: 4px 9px 8px;
    background-color: #074b96;
    color: white;
    border-radius: 4px 4px 0 0;
}

.top-menu-links input {
    margin-bottom: 0;
    height: 2rem;
    line-height: normal;
    width: auto !important;
}

.top-menu-links input[type="submit"] {
    padding: 0 1rem;
    margin-left: 0.5rem;
}

.center {
    text-align: center;
    border-left: 1px solid white;
    border-right: 1px solid white;
}

.right {
    float: right;
    /* Somehow, this fixes a vertical alignment issue that the float causes in conjunction with padding? */
    line-height: 1;
}

.content {
    border-radius: 0 0 4px 4px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Lucida Grande",Tahoma,Verdana,Arial,Helvetica,sans-serif;
}

h3 {
    font-size: 17px;
}

th {
    padding: 5px;
}

td {
    padding: 0 5px;
}

.button, button, input[type="button"], input[type="reset"], input[type="submit"] {
    height: 2.5rem;
    line-height: 2.5rem;
}

th button {
    border: 1px solid white;
}

th hr {
    margin: 5px 0;
}

tr:nth-child(even) {
    background: #eee;
}

tr:nth-child(odd) {
    background: #fff;
}

thead th, tfoot th {
    background-color: #074b96;
    color: white;
    padding-left: 5px;
}

thead th a, tfoot th a {
    color: white;
    text-decoration: underline;
}

legend {
    margin-bottom: 0.5rem;
}

label {
    display: inline-block;
    width: 50%;
    font-size: 1.4rem;
    margin-bottom: 0;
}

div.input.text label, div.input.password label, div.input.textarea label, div.input.number label,
div.input.select label, div.input.tel label, div.input.email label {
    text-align: right;
    padding-right: 1rem;
}

input, select, textarea {
    margin-bottom: 0.5rem;
}

.input.radio, .input.checkbox {
    margin-bottom: 0.5em;
}

input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="month"], input[type="week"], input[type="datetime"], input[type="datetime-local"], input:not([type]), textarea, select {
    width: 50%;
    height: auto;
}

textarea {
    height: auto;
}

.textarea label {
    vertical-align: top;
}

#DateSelect h3 {
    margin-bottom: 0.5rem;
}

#DateSelect select {
    width: auto;
    margin-right: 10px;
}

.test, .test td, .test a {
    color: #a22 !important;
}

.numbers {
    text-align: right;
}

.positive {
    color: #0c0;
}

button {
    margin-right: 1em;
}

.button.float-right {
    margin-left: 1em;
    margin-right: 0;
}

.counters input {
    margin-bottom: 0;
    width: 5em;
}

.counters button {
    margin-bottom: 0;
    padding: 0 0.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
}

fieldset.crm {
    border: 1px solid #074b96;
    padding: 0 1rem;
}

fieldset.crm legend {
    padding: 0 1rem;
}

div.input.checkbox label {
    width: 100%;
}

.move_limits label {
    width: 75%;
}

.move_limits input {
    width: 25%;
}

label.unclickable {
    pointer-events: none;
}

label.unclickable > input {
    pointer-events: auto;
}

.login-page {
    -ms-flex-align: center;
    align-items: center;
    background: #e9ecef;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100vh;
    -ms-flex-pack: center;
    justify-content: center
}

.login-box {
    width: 360px
}

.error-message {
    background: #fcebea;
    color: #cc1f1a;
    border-color: #ef5753;
}

@media screen and (max-width: 640px) {
    .top-nav, .top-menu, .container, .content {
        padding: 0;
        padding-right: 0;
    }

    /* Better vertical spacing; temporary until hamburger menu */
    .top-menu {
        line-height: 3rem;
    }

    .login-box {
        margin-top: .5rem;
        width: 90%
    }

    /* Revert some Milligram things that make tables horizontal */
    table {
        display: table;
    }

    table tbody {
        display: table-row-group;
        white-space: normal;
    }

    table th, table td {
        display: table-cell;
        vertical-align: top;
    }
}
