﻿/* Undoing some of the styles that come w/ Bootstrap 3 defualt and/or Cerulean theme */

.assignList {
    width: 20em;
    height: 20em !important; /* override Bootstrap */
}

.availList {
    width: 20em;
    height: 20em !important; /* override Bootstrap */
}

/* Set width on the form input elements since they're 100% wide by default */
.posdata-form input, .posdata-form select {
    max-width: 280px;
}

/* Exception to the above style */
input.TypeField {
    max-width: none;
    width: 100%;
}

/* 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;
}

.dl-horizontal.buttonList dt, .dl-horizontal.dl-narrow dt {
    width: auto;
}

.dl-horizontal.dl-narrow dd {
    margin-left: 60px;
    margin-bottom: 5px;
}

input[type=text].hasDatepicker.form-control.posdata-datepicker {
    padding: 1px;
    height: 26px;
    width: 90px;
    min-width: 85px;
}

select.form-control.posdata-textbox:not([multiple]), input[type=text].form-control.posdata-textbox, input[type=password].form-control.posdata-textbox,
input[type=number].form-control.posdata-textbox {
    padding-top: 1px;
    padding-bottom: 1px;
    height: 26px;
}

/* Mainly used to give some space between Bootstrap rows. May use an empty <div> or one that is already a Bootstrap row. */
.top-buffer {
    margin-top: 2em;
}

/* For a Bootstrap row whose elements, of differing heights, should all be vertically centered */
.row-centered {
    display: flex;
    align-items: center;
}

/* For a Bootstrap column to horizontally center-align */
.col-center {
    text-align: center;
}

.form-horizontal .control-label.posdata-label {
    /* 9px looks misaligned with my overriden input/select heights in an inline/horizontal form
     * (tho the top 9px looks correct with the inline radio buttons)
    */
    padding-top: 1px;
    text-align: left;
}

.form-inline .control-label.posdata-label {
    /* 9px looks misaligned with my overriden input/select heights in an inline/horizontal form
     * (tho the top 9px looks correct with the inline radio buttons)
    */
    margin-right: 9px;
}

/* This is for when I want a separate label for the whole set of inline radio buttons and their labels */
.radio-inline.posdata-radioinline {
    padding-top: 0px;
}

/* I want button links to look mostly like regular Bootstrap buttons */
a.btn-link, a.btn-link:hover {
    color: white !important;
    text-decoration: none;
}

/* MVC table header has blue background */
a.sortableTblHead {
    color: white;
    font-weight: bold;
}

button[disabled], html input[disabled] {
    cursor: not-allowed;
}

/* I just want a little more "dimming" than Bootstrap's default */
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    opacity: 0.35;
    filter: alpha(opacity=35);
}

/* The -5px sibling top margin messes up horizontal radio buttons */
.radio + .radio,
.checkbox + .checkbox {
    margin-top: 5px;
}

legend.posdata-legend {
    width: inherit; /* or try auto */
    /*padding: 0 10px;*/
    /*border-bottom: none;*/
    margin-bottom: 2px;
    padding-top: 10px;
    font-size: 1.2em;
}

/* To allow links to really look just like buttons: override font family Glyphicons Halflings */
a.btn span.glyphicon {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
    /* To allow the icon in a link-that-looks-like-a-button to look just like a Bootstrap button: just for the icon, need to
    override the above override that's meant for the text. */
    a.btn span.glyphicon::before {
        font-family: 'Glyphicons Halflings';
        font-style: normal;
        font-weight: normal;
    }

/* Used when I want a help-block to appear inline with the control it is describing. */
.force-inline-block > * {
    display: inline-block;
}

/* Bootstrap text-left class won't work inside a form-horiztonal: My CSS selector needs to be more specific to override Bootstrap. */
.posdata-left {
    text-align: left !important;
}
