/* Base font sizing */
html {
  font-size: 100%;
}

/* Typography & base styling */
body,
#iCaseworkContent,
.help-block,
html,
body, p, span, div, a,
#contentmain {
  background-color: #f8f9fa !important;
  color: #2c2a29 !important;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.link, a {
    border-bottom: .125rem solid #8ccdff;
    border-radius: 0;
    color: #1864ab;
    font-weight: 600;
    transition: border-bottom .2s
ease-in-out, background-color .2s
ease-in-out, color .2s
ease-in-out;
}

body,
h1, h2, h3, h4, h5, h6,
p, span, div,
.form-label, label,
.input-text {
  color: #2c2a29;
}

/* Horizontal rule */
hr {
  width: 100%;
  height: 0;
  margin: 1rem 0;
  border: 0;
  border-top: 0.0625rem solid rgba(0, 0, 0, 0.1);
  border-color: #bfbfbf;
  overflow: visible;
  box-sizing: content-box;
}

/* Button styles */
.btn {
  display: inline-block;
  width: auto;
  min-width: auto;
  min-height: auto;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem 0.625rem;
  font-size: 1rem;
  font-weight: 600 !important;
  line-height: 1.5;
  color: #fff !important;
  background-color: #257735 !important;
  border: 0;
  border-bottom: 0.25rem solid #195024;
  border-radius: 0 !important;
  font-family: inherit;
  margin-right: 1rem;
}

.btn:hover {
  transition: none;
  border-bottom: .25rem solid #195024;
    background-color: #257735 !important;
}

/* Form labels */
.form-label,
label {
  display: block;
  margin-bottom: 0.5rem !important;
  padding: .125rem .625rem 0 2.375rem;
  font-weight: 700;
      line-height: 1.5 !important;
      font-size: 1.125rem !important;
}

.form-row > .col, .form-row > [class*="col-"] {
    width: 100% !important;
    max-width: 100%;
    padding: 0;
  }

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
/*  padding-right: 0;
  padding-left: 0;*/
}

/* Form inputs */
input,
select {
  width: 100% !important;
  max-width: 25rem !important;
  height: 2.875rem !important;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  color: #2c2a29;
  background-color: #fff;
  border: 2px solid #4e5862 !important;
  border-radius: 0 !important;
}

/* Form text */
.form-text {
  display: block;
  /*font-size: 0.875rem;*/
  font-size: 1rem;
  font-weight: 400;
  color: #2c2a29;
}

/* Grouping styles */
.btn-group {
  width: auto;
}

.form-group {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  clear: both;
}

.form-check-inline {
  display: block;
}

/* Font Awesome hidden */
.contentmain-title .fa {
  display: none !important;
}

/* Form state styles */
.has-success .form-text,
.has-success .form-label {
  color: inherit;
}

.has-error label {
  font-weight: 600;
  color: inherit;
}

/* Table padding */
.table td,
.table th {
  padding: 0.75rem 0;
}

input[type=checkbox], input[type=radio] {
    padding: 0;
    cursor: pointer;
    height: 1.75rem;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 1.75rem;
    z-index: 1;
}

.checkbox label, .radio label {
    padding-left: 40px;
    clear: left;
    cursor: pointer;
    display: inline-block;
    margin: 0 0 1rem;
    padding: .125rem .625rem 0 2.375rem;
    position: relative;
    touch-action: manipulation;
}

.checkbox label:before, .radio label:before {
    background-color: #2c2a29;
    border: .125rem solid;
    height: 1.75rem;
    width: 1.75rem;
}
.radio label:after, .radio label:before {
    top: .875rem;
    left: .875rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.checkbox label:after, .radio label:before {
    content: "";
    display: block;
    position: absolute;
}

.input-group-addon {
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Dark mode overrides */
@media screen and (prefers-color-scheme: dark) {
  body,
#iCaseworkContent,
.help-block,
html,
body, p, span, div, a,
#contentmain {
    background-color: #343a40 !important;
    color: #fff !important;
  }
.form-text {
  color: #fff;
}

  body,
  h1, h2, h3, h4, h5, h6,
  p, span, div,
  .form-label, label,
  .input-text {
    color: #fff;
  }

  .has-error label {
    color: #f9bca9;
  }

  hr {
    border-color: #797979;
  }

  input, select, textarea, .input-group-addon {
    color: #fff !important;
    background-color: #2c2a29 !important;
    border: 2px solid #4e5862 !important;
  }
}



