﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* Tighter spacing between calculator fields (Flatly adds 2% padding to form groups) */
.form-horizontal .form-group {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 10px;
}

/* Results under the graph: label left, value right */
dl.results-list {
    margin: 15px 0 0;
}

dl.results-list dt,
dl.results-list dd {
    display: inline-block;
    width: 50%;
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid #d5dbdb;
    vertical-align: top;
}

dl.results-list dd {
    text-align: right;
    font-weight: bold;
}

/* Show a muted dash until a result has been calculated */
dl.results-list dd:empty::before {
    content: "\2014";
    font-weight: normal;
    color: #95a5a6;
}

/* Collapsible legends: up arrow when closed, down arrow when open */
legend.collapsible {
    cursor: pointer;
    user-select: none;
}

legend.collapsible .toggle-arrow::before {
    content: "\25BC";
    font-size: 0.7em;
    margin-left: 6px;
}

legend.collapsible.collapsed .toggle-arrow::before {
    content: "\25B2";
}

/* The Flatly build uses padding: 5% on .form-control, which balloons (and clips selects) on wide containers */
select.form-control,
input.form-control {
    padding: 10px 15px;
}
