a.header-link {
    color: rgb(51, 51, 51);
}

.cal-day {
    text-align: center;
    border-radius: 3px;
    color: #333;
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.cal-day-events-1 {
    background-color: #8BC34A;
    font-weight: bold;
}

.cal-day-events-2 {
    background-color: #FFEB3B;
    font-weight: bold;
}

.cal-day-events-3 {
    background-color: #FF4081;
    font-weight: bold;
}

.cal-legend {
    display: inline-block;
    width: 1em; height: 1em;
    vertical-align: middle;
}

.cal-month {
    font-weight: bold;
}

.row.card {
    width: 13rem;
    margin: 1rem 1rem 0 0;
    display: inline-block;
    vertical-align: top;
    padding: 0.5rem 0;
}

input:required ~ label:after {
    content: " *";
    color: red;
}

.input-help {
    position: absolute;
    right: 0;
    padding: 0;
}

.greyed-out {
    color: #999;
}

.color-red {
    color: red;
}

.color-green {
    color: green;
}

.center-column {
    margin: 0 auto;
    max-width: 1024px;
    box-sizing: border-box;
}


/* material dashboard pro seems to have conflicting values. must overwrite. */
.is-filled .bmd-label-floating {
    top: -.7rem;
}


/**
 * Flexible table layout. Collapses into mobile view.
 */

.flexi-table {
    display: flex;
    flex-direction: row;
}

.flexi-table-head > * {
    font-weight: bold;
    border: none !important;
}

/*
 * Note: the min-width constraints in .flexi-table and .flexi-item-4 force the table to be aligned properly.
 * It (and the 40% in .flexi-item-width-4) assumes there will be six regular columns plus one flexi-item-4 column.
 * You *must* edit these numbers if you change the number of columns.
 */
.flexi-table > * {
    flex-grow: 1;
    flex-basis: 0;
    min-width: 10%;
    font-size: 0.8em; /* This is to make the dates fit in the columns */

    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid rgba(0,0,0,.06);
}

.flexi-item-2 {
    flex-grow: 2;
    min-width: 20%;
}

.flexi-item-3 {
    flex-grow: 3;
    min-width: 30%;
}

.flexi-item-4 {
    flex-grow: 4;
    min-width: 40%;
}

.flexi-field-title {
    display: none;
}

@media only screen and (max-width: 850px) {
    .flexi-table {
        flex-direction: column;
    }

    .flexi-table-head {
        display: none;
    }
    .flexi-table > * {
        padding: .25rem;
        border: none;
    }
    .flexi-table > *:last-child {
        margin-bottom: 3rem;
    }
    .flexi-item-title {
        font-size: 1.4em;
    }
    .flexi-field-title {
        display: inline;
    }
}

/**
 * Tweaks to make the page consistent with other apps/pages
 */

body {
  margin: 0 auto;
  padding: 0 10px;
  max-width: 1024px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 28px;
}

h2 {
  border-bottom: 1px solid rgba(0,0,0,.1);
}

pre {
  line-height: 18px;
  margin-left: 40px;
  margin-right: 40px;
  padding: 10px;
  background-color: rgba(0,0,0,.06);
}

.card {
  font-size: 1.05rem;
}
