/*
primary font color: #212529
primary accent color: #174478 (dark blue)

group 2,3,4 colors: (From Default Chart Colors) 
#3c3a3a (gray)
#d44f1d (orange)
#72a435 (green)

other colors: (From Bootstrap 4)
#dc3545 (red/danger)
#ffc107 (yellow/warning)
#28a745 (green/success)
#17a2b8 (blue/info)

SASS Color Generator - http://scg.ar-ch.org/
primary accent 15% darker: #0b2038; (hovered links)
*/
.required {
  color: red
}

body,
tbody {
  font-size: 0.9rem !important;
}

body {
  padding-bottom: 20rem;

}

.cbFormMultiSelectText {
  margin-top: .25rem;
}

.cbFormMultiSelectText>label {
  margin-left: .25rem;
}

.cb-btn,
.cb-button {
  font-size: 0.7rem !important;
}

.row:not(.cbResultSetGridDataRow) {
  display: contents;
}

/* Fix for caspio grid edit */
.row .cbResultSetGridDataRow {
  display: inherit;
}

input[type="radio"],
input[type="checkbox"] {
  margin: 0 !important;
}


/* Theme Overrides */
.cbSearchButton {
  margin-bottom: 5px;
}

input[type="button"],
input[type="submit"],
button {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.cbg-caspian-tr {
  background: #bdd3da
}

a {
  color: #174478;
}

a:hover {
  color: #0b2038;
}

.dropdown-item.active,
.dropdown-item:focus {
  background-color: #174478;
}

.border-primary {
  border-color: #174478 !important;
}

.btn-primary,
.nav-pills .nav-link.active {
  background-color: #174478;
  border-color: #174478;
}

.btn-primary:hover {
  background-color: #0b2038;
  border-color: #0b2038;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 68, 120, 0.5);
}

/* z-index fix to go under CB modal */
.navbar {
  z-index: 50;
}

.modal-backdrop {
  z-index: 51;
}

.modal-lg {
  max-width: 60% !important;
}

.modal {
  z-index: 52;
}

/* Other General */
main {
  padding-top: 4.5rem;
}

iframe {
  width: 100%;
  border: 0;
}

.text-mono {
  font-family: Lucida Console, Monaco, monospace;
}

/* CB Specific */

/* Custom button styling that looks the same as one from CB Bootstrap 4 theme */
.cb-btn {
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  background: #174478;
  border: none;
  border-radius: 3px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-bottom: 5px;
  text-align: center;
  text-transform: uppercase;
}

/* Table sub classes */
.cb-table-sm table[data-cb-name="cbTable"] th,
.cb-table-sm table[data-cb-name="cbTable"] td {
  padding: .3rem;
}

.cb-table-striped table[data-cb-name="cbTable"] tr[class^="cbResultSetOddRow"] {
  background-color: rgba(0, 0, 0, .05);
}

.cb-table-hover table[data-cb-name="cbTable"] tr[class^="cbResultSetOddRow"]:hover,
.cb-table-hover table[data-cb-name="cbTable"] tr[class^="cbResultSetEvenRow"]:hover {
  background-color: rgba(0, 0, 0, .075)
}

/* Header element styling */
.cb-stylize-header h3 {
  margin-left: -1em;
  margin-top: 1em;
  padding: .35em;
  background-color: #bdd3da;
  color: rgba(0, 0, 0, .5);
  border-radius: .15em;
  border: black solid 1px;
}


.cb-stylize-header h4 {
  margin-left: -.5em;
  margin-top: 1em;
  color: rgba(0, 0, 0, .5);
  padding: .25em;
  background-color: #c9c9c9;
  border-radius: .15em;
  border: black solid 1px;
}

.cb-stylize-header h5 {
  margin-left: -.25em;
  color: rgba(0, 0, 0, .5);
  padding: .15em;
  background-color: #f8f9fa;
  border-radius: .15em;
  border: black solid 1px;
}

/* Nowrap */
.cb-table-nowrap table[data-cb-name="cbTable"] th,
.cb-table-nowrap table:last-of-type {
  white-space: nowrap;
}

/* Large forms */
.cb-form-lg input[type="text"],
.cb-form-lg select,
.cb-form-lg textarea,
.cb-form-lg input[type="file"] .cb-form-lg span[class^="cbFormData"] {
  padding: .5rem 1rem;
  font-size: 1.25rem;
  border-radius: .3rem;
}

.cb-form-lg input[type="file"],
.cb-form-lg span[class^="cbFormData"] {
  padding: .5rem 0;
}

/* Small forms */
.cb-form-sm input[type="text"],
.cb-form-sm select,
.cb-form-sm textarea,
.cb-form-sm input[type="file"] .cb-form-sm span[class^="cbFormData"] {
  padding: .25rem .5rem;
  font-size: .875rem;
  border-radius: .2rem;
}

.cb-form-sm input[type="file"],
.cb-form-sm span[class^="cbFormData"] {
  padding: .25rem 0;
}

/* Login form container */
.cb-login-cont {
  padding: 15px 0 0;
  margin: 0 auto;
  width: 267px;
}

.cb-login-cont input {
  width: 100%;
}

/* Fluid form */
.cb-form-fluid table[role='presentation'],
.cb-form-fluid input[type="text"],
.cb-form-fluid input[type="password"],
.cb-form-fluid input[type="file"],
.cb-form-fluid textarea,
.cb-form-fluid select {
  width: 100%;
}

.cb-form-fluid div[id$="RecordPassword_Meter"] {
  width: 100% !important;
}

.cb-form-fluid input[type="text"][name*="Date"] {
  /* width: calc(100% - 22px); */
  width: 100%;
}

/* Grid form */
.cb-form-grid input[type="text"],
.cb-form-grid input[type="password"],
.cb-form-grid input[type="file"],
.cb-form-grid select {
  width: 220px;
}

.cb-form-grid input[type="submit"] {
  margin: 0 3px;
}

.cb-form-grid textarea {
  width: 400px;
}

/* Responsive tabular */
.cb-res {
  overflow: auto;
}

/* Search form on same page */
.cb-hide-submit input.cbUpdateButton,
.cb-hide-submit input.cbSubmitButton,
.cb-hide-submit input.cbSearchButton,
.cb-hide-submit td[class^="cbSubmitButtonContainer"] {
  display: none;
}

.cb-form-search td {
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  h1.page-header {
    font-size: 20px;
    line-height: 34px;
    margin-top: 20px;
    box-shadow: 0 !important;
  }

  h3 {
    font-size: 18px;
  }

  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  /* responsive forms */
  .cb-form-resp table {
    width: 100% !important;
    margin: 0px !important;
  }

  .cb-form-resp td {
    display: block;
  }

  .cb-form-readonly table {
    width: 100% !important;
    margin: 0px !important;
  }

  .cb-form-readonly td {
    display: inline-block;
    float: left;
  }

  .cb-form-readonly td:nth-child(2n+1) {
    clear: left;
  }

  .cb-form-resp input,
  .cb-form-resp select,
  .cb-form-resp textarea {
    width: 100% !important;
  }

  .cb-form-resp input[type=radio],
  .cb-form-resp input[type=checkbox] {
    width: auto !important;
  }

  .cb-form-resp input[type="submit"] {
    margin-top: 5px;
    margin-left: 0;
    margin-right: 0;
  }

  .cb-form-resp img[alt~="Calendar"] {
    position: relative;
    left: -19px;
    top: 4px;
    z-index: 9999;
  }

  .cb-form-resp img[alt~="Audio"] {
    position: relative;
    left: -19px;
    top: 4px;
  }

  .cb-form-resp img[alt~="Download"] {
    position: relative;
    left: -46px;
    top: 4px;
  }

  .cb-form-resp input+span>a {
    display: inline-block;
    width: 1px;
    overflow: visible;
    position: relative;
    left: -8px;
  }

  .cb-form-resp input+a[href="#"],
  .cb-form-resp input+a[href="#"]+a {
    display: inline-block;
    width: 1px;
    overflow: visible;
    position: relative;
    left: -8px;
  }

  /* responsive tables */
  .cb-tab-resp * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  .cb-tab-resp *:before,
  .cb-tab-resp *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  .cb-tab-resp table[id^="PageActionsCtnr"] {
    border-spacing: 0px !important;
    border-collapse: separate !important;
    margin-bottom: 7px !important;
  }

  .cb-tab-resp table[id^="PageActionsCtnr"] td {
    display: block;
    width: auto !important;
    float: left;
    text-align: left;
    padding: 1px !important;
  }

  .cb-tab-resp table[id^="PageActionsCtnr"] td div {
    text-align: left !important;
  }

  .cb-tab-resp table[data-cb-name^="cbTable"] {
    border: none !important;
    background: transparent !important;
    display: block;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
  }

  .cb-tab-resp table[data-cb-name^="cbTable"] tbody {
    display: block;
  }

  .cb-tab-resp table[data-cb-name^="cbTable"] tr:first-child {
    display: block;
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .cb-tab-resp table[data-cb-name^="cbTable"] tr {
    display: block;
    border: 1px solid #dddddd;
    margin-bottom: 7px;
    width: 100%;
  }

  .cb-tab-resp table[data-cb-name^="cbTable"] td {
    display: block;
    border: none !important;
    position: relative !important;
    padding-bottom: 10px !important;
    text-align: left !important;
  }

  .cb-tab-resp table[data-cb-name^="cbTable"] td:before {
    padding-right: 5px;
  }

  .cb-tab-resp table[data-cb-name^="cbTable"] td[class^="cbResultSetActionCell"] {
    padding-bottom: 10px !important;
    padding-top: 7px !important;
  }

  /* responsive gallery */
  .cb-gal-resp * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

  .cb-gal-resp .cb-event>div {
    max-width: 100%;
  }

  .cb-gal-resp table[id^="PageActionsCtnr"] {
    border-spacing: 0px !important;
    border-collapse: separate !important;
  }

  .cb-gal-resp table[id^="PageActionsCtnr"] td {
    display: block;
    width: auto !important;
    float: left;
    text-align: left;
    padding: 1px !important;
  }

  .cb-gal-resp table[id^="PageActionsCtnr"] td div {
    text-align: left !important;
  }

  .cb-gal-resp table[data-cb-name^="cbTable"] {
    border-spacing: 0px !important;
    border-collapse: collapse !important;
    margin-bottom: 7px;
  }

  .cb-gal-resp table[data-cb-name^="cbTable"] td {
    display: block;
    width: 100% !important;
    float: left;
    text-align: left;
    margin-top: 10px;
  }

  .cb-gal-resp table[data-cb-name^="cbTable"] td div {
    text-align: left !important;
  }

  .cb-gal-resp table[data-cb-name^="cbTable"] td>div>div[name^="RACtnr"],
  .cb-gal-resp table[data-cb-name^="cbTable"] td>div>div[name^="RACtnr"]:hover {
    vertical-align: middle !important;
    white-space: normal !important;
    background: transparent !important;
    overflow: hidden !important;
    display: inline-block !important;
    padding: 0px !important;
    margin: -6px 12px 8px 12px !important;
    line-height: 0px;
    position: static !important;
    width: auto !important;
    opacity: 1.0 !important;
  }

}

input[type=file] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 150px;
}

/*Remove checkbox for file inputs*/
.cbResultSetTableCell .Edit {
  white-space: normal !important;
}

/* Green assessment links */

.cb-phase-link.finalized {
  background: #4caf50;
  padding: .5rem;
}

/*calendar header fix*/
#CalendarToolBox .NavBar {
  background-color: #C7CBD3;
  height: fit-content !important;
  width: 100%;
  margin: 0px;
  table-layout: fixed;
}

.modal-title {
  border: none !important;
  background-color: transparent !important;
  color: black !important;
}

.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.hidden {
  display: none !important;
}

.dropdown-menu-custom {
  left: -50px;
  position: relative;
}

/* Added: JG */
.disabled {
  cursor:not-allowed !important;
}

.modal-xl {
  max-width: 99% !important;
}