/*************************
 *         FORMS         *
 *************************/

/* Checkbox and radio button lists shall not have bullet points for every
   item. */
.controls>ul {
    list-style-type: none;
    padding-left: 2em;
}

/* Input fields should only take up to 400px width and not stretch over the
   whole screen */
.input-group,
input.form-control,
select.form-control {
    max-width: 400px;
}

.input-group-narrow {
    /* Choosing a very small value that will always be filled with the input
     * type and input-group-addon. That way we don't allow a gap between the
     * two. See: https://github.com/oTree-org/otree-core/issues/257
     */
    max-width: 200px;
}

/* Dropdowns shall occupy only the needed space. */
select.form-select {
    width: auto;
}

.form-control-errors {
    margin-top: 5px;
    color: #b94a48;
}

/* Hide those input spinners on webkit and mozilla browsers */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Slider Widget */
.slider [data-slider-value] {
    min-width: 5em;
}

.asteriskField {
    display: none;
}

.radio {
    margin-top: 0px;
}

.help-block {
    margin-top: 5px;
    margin-bottom: 5px;
}



/* DEBUG TOOLBAR */

.scrollable {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto;
}

table.table-debug td.debug-var-name {
    width: 20% !important;

}

table.table-debug td.debug-var-value {
    max-width: 0px;
}

.top-left-fixed-alert {
    position: fixed;
    top: 0;
    left: 0;
    background-color: lightgray;
    font-style: italic;
    visibility: hidden;
    /* need to be on top of bs4 navbar which is 1030 */
    z-index: 1100;
}


.otree-body {
    max-width: 970px;
    /*
    moved it from otree-title to here,
    because semantically it is not part of the title.
    there is padding on top whether there is a title or not.
    */
    margin-top: 60px;
}

.otree-title:empty {
    display: none;
}

.powered-by-otree {
    font-size: small;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    opacity: 0.5;
    color: #999;
}
.page-header {
    margin-top: 40px;
}

.otree-content {
    margin-top: 10px;
}

.debug-info {
    /*max-width: 970px;*/
}

.powered-by-otree {
    font-size: small;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    opacity: 0.5;
    color: #999;
}