﻿html {
  position: relative;
  min-height: 100%;
}

body {
    padding-top: 70px;
    padding-bottom: 20px;
    /* Margin bottom equal to or greater than footer height */
    margin-bottom: 40px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 40px;
  background-color: #f5f5f5;
}

thead {
    background-color: steelblue;
}

thead th {
    color: white;
    font-weight: bold;
}

/* Many radio buttons & fieldsets I don't want to have any special layout */
fieldset.noBorder {
    border: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

/*#region remove/add section*/
.btn-file {
    /* btn-file class idea from www.abeautifulsite.net/whipping-file-inputs-into-shape-with-bootstrap-3 */
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}
/*#endregion*/

/*#region BOOTSTRAP OVERRIDES ***********************************************
 * Undoing some of the styles that come w/ bootstrap 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 */
input, 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:not([multiple]), input[type=text].form-control.posdata-textbox, input[type=password].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;
}

/* 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;
}

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;
}
/*#endregion bootstrap overrides*/


/*#region JQUERY UI OVERRIDES ***********************************************
 * Mainly to make jQuery UI datepicker and the 3rd party timepicker look correct
 * with the Bootstrap theme "Cerulean" */
table.ui-timepicker * {
    /* Universal selector is necessary in this case */
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

/* Enforce Bootstrap's link coloring instead of jQuery UI's*/
a.jqGridLink {
    color: #2fa4e7 !important;
}

/*#endregion*/
