fieldset
{
  border: 1px solid silver;
  border-radius: 0;
  padding: 12px;
  width: 100%;
  margin: 0 auto;
}

legend
{
  padding: 0 12px;
  margin-left: 12px;
  font-weight: bold;
  font-size: 12px;
  color: #999;
  border: 0;
  width: auto;
  margin: 0;
}

input[type="checkbox"],
input[type="radio"]
{
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

form
{
  width: 100%;
  margin: 0 auto;
}

  /* form label
  {
    display: block;
    font-weight: bold;
    color: #999;
    width: 100%;
    margin-bottom: 12px;
    line-height: 1.5em;
  }

    form label:last-child
    {
      margin-bottom: 0;
    } */

button.js-button
{
  min-width: 80px;
  height: 40px !important;
  color: #656565;
  line-height: 1.42857143;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(0,0,0,.08);
  border-radius: 3px;
  background-color: #f6f6f6;
  background-image: linear-gradient(#f6f6f6,#f1f1f1);
}

  button.js-button-primary,
  button.js-button-primary:hover,
  .k-button.js-button-primary
  {
    background: #0078C9;
    color: white;
  }

  button.js-button-green,
  button.js-button-green:hover,
  .k-button.js-button-green
  {
    background: #24A40B;
    color: white;
  }

  button.js-button-yellow,
  button.js-button-yellow:hover,
  .k-button.js-button-yellow
  {
    background: #e2e516;
    color: black;
  }

  button.js-button-red,
  button.js-button-red:hover,
  .k-button.js-button-red
  {
    background: #E61E15;
    color: white;
  }


#breadcrumb a,
button.k-button,
button .spinner-text
{
  font-size: 12px;
}

button.favorite .spinner-text,
button.default .spinner-text
{
  font-size: 20px;
}

input.js-input
{
  /* height: 40px !important;
  border-color: rgba(0,0,0,.08);
  border-width: 1px; */
}

label.js-label
{
  display: block;
  font-family: Arial;
  font-weight: normal;
  font-size: 15px;
  margin-bottom: 4px;
  color: black;
}

  label.js-label-radio,
  label.js-label-checkbox
  {
    display: inline;
    font-size: 14px;
    font-weight: normal;
    margin-left: 12px;
  }

  label.mobile
  {
    background: white;
    position: absolute;
    top: 0;
    left: 10px;
    z-index: 10;
    padding: 0 10px;
    font-size: 12px;
    color: #006699;
    font-weight: bold;
  }

    label.mobile.show
    {
      top: -8px;
      opacity: 1;
      display: inline-block;
    }

    label.mobile.hide
    {
      top: 0;
      opacity: 0;
      display: none;
    }

input,
textarea,
div.k-list-scroller ul li
/* span.k-dropdown-wrap span */
{
  font-family: "Calibri" !important;
  font-size: 15px !important;
}

.k-textarea, 
.k-textbox, 
.k-combobox .k-dropdown-wrap, 
.k-editor,
.js-checkbox,
.k-dropdown .k-dropdown-wrap, 
.k-dropdowntree .k-dropdown-wrap
{
  border-color: #a9a9a9;
}

  .field.hidden
  {
    display: none;
  }

  form .field,
  .dialog .field,
  .tabstrip .field
  {
    position: relative;
    margin-bottom: 12px;
    clear: both;
  }

  .k-grid .field
  {
    margin-bottom: 8px;
  }

  form .field.inline label,
  form .field.inline input
  {
    float: left;
  }

  form .field.error input,
  form .field.error textarea,
  form .field.error select,
  table .field.error .data
  {
    /* color: #e61a00; */
    color: red !important;
    background: #fdc8c1 !important;
  }

    .field.error .message
    {
      color: red;
    }

  form .field.error label
  {
    color: red;
  }

  table .field.error .data
  {
    min-height: 40px;
    border-radius: 3px;
    padding: 8px;
  }

  form .field .close
  {
    width: 20px;
    height: 20px;
    border: 1px solid #a9a9a9;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    font-size: 10px;
    position: relative;
    top: 0;
    margin-top: -30px;
    float: right;
    border-radius: 3px;
    margin-right: 10px;
  }

form .messages,
form .message
{
  font-style: italic;
  font-size: 10px;
  /* color: #e61a00; */
  color: red;
  margin: 24px 0 24px 0;
  display: none;
}

  form .message
  {
    margin: 0;
    display: block;
    position: absolute;
  }

form.hidden
{
  margin: 0;
  padding: 0;
  display: none;
}

button.js-button
{
  min-width: 80px;
}

button.js-button-small
{
  min-width: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  width: 24px !important;
  height: 24px !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

  button.js-button-small .k-i-lock,
  button.js-button-small .k-i-unlock
  {
    font-size: 24px;
  }

button.favorite,
button.default
{
  min-width: auto;
  width: 40px;
  height: 40px;
  font-size: 20px;
  /* color: gray; */
}

  button.favorite.active,
  button.default.active
  {
    color: #f58329;
  }

.dialog.k-window-content
{
  overflow: hidden;
}

.dialog .nodata
{
  height: 40px;
  position: relative;
  top: 40px;
}

.dialog-body
{
  overflow-y: auto;
  overflow-x: hidden;
  margin-right: -12px;
  padding-right: 12px;
  /* padding-bottom: 100px; */
}

.dialog-body table.taxCodes
{
  font-size: 12px;
}

  .dialog-body table.taxCodes td
  {
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

.dialog-buttons
{
  border-top: 1px solid #e3e3e3;
  margin: 0 -24px 0 -24px;
  padding: 12px 24px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: white;
  z-index: 2;
}

.dialog .messages
{
  padding-bottom: 50px;
}

.k-list-container .k-footer .addItem,
.k-list-container .k-footer .editItem
{
  width: calc(100% - 8px);
  border: 1px solid rgba(0,0,0,0.08);;
  border-radius: 3px;
  margin: 4px auto;
  justify-content: center;
  color: rgba(0,0,0,0.5);
}

.k-list-container .k-list-scroller .edit,
.k-list-container .k-virtual-content .edit
{
  border: 1px solid rgba(0,0,0,0.08);
  height: 30px;
  width: 30px;
  /* padding: 8px; */
  border-radius: 3px;
  background: #f6f6f6;
  position: relative;
  /* right: -4px; */
  /* top: -3px; */
  display: none;
  font-size: 12px;
  color: gray;
  z-index: 1;
}

  .k-list-container .k-list-scroller .edit.active,
  .k-list-container .k-virtual-content .edit.active
  {
    display: block;
  }


@media only screen and (max-width: 480px)
{
  .dialog .flexgrid-col
  {
    margin-right: 12px;
  }

    .dialog .flexgrid-col:last-child
    {
      margin-right: 0;
    }

  .dialog-body
  {
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 100px;
  }
  
  .dialog label
  {
    position: absolute;
    top: -8px;
    left: 8px;
    padding: 0 6px;
    margin: 0;
    background: white;
    z-index: 1;
  }

  .dialog .field
  {
    /* margin-bottom: 12px; */
  }

  .dialog .field .js-input
  {
    /* width: 100%; */
  }

    .dialog .field:last-child
    {
      margin-bottom: 0;
    }

  .dialog-buttons
  {
    margin: 0 -12px;
    padding: 12px;
  }

  #gridDialog input[readonly="readonly"]
  {
    background: white;
    font-style: normal;
  }

  #frmGridDialogFields
  {
    margin: -24px -24px 12px -24px;
    padding: 24px 24px;
    border-bottom: 1px solid #ededed;
    max-height: 480px;
    overflow: auto;

    /* stupid Android hack to push fields up */
    padding-bottom: 200px;
  }

  #frmFilterDialogFields
  {
    padding-top: 8px;
    padding-bottom: 48px;
    margin-bottom: 12px;
    max-height: 480px;
    overflow: auto;
  }

  #frmFilterDialogButtons
  {
    text-align: right;
    position: absolute;
    bottom: 0;
    width: 100%;
    /* right: 12px; */
    /* height: 40px; */
    padding: 12px;
    border-top: 1px solid #ededed;
    /* padding-top: 12px; */
    margin: 0 -12px;
    background: white;
  }

  .k-grid button.js-button,
  .kendoGrid button.js-button,
  .k-grid tbody button.k-button
  {
    min-width: 40px;
  }

  button.js-button-small .k-i-lock,
  button.js-button-small .k-i-unlock
  {
    font-size: 18px;
  }
}