body {
  background: #f5f5f5;
  margin: 0;
}

/* Header shell */
.nbh-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Optional: keep header contents aligned with your site width */
.nbh-header .container {
  max-width: 1200px;
  width: 90%;
}

/* Desktop header height */
.nbh-header-inner {
  height: 145px;
  display: table;
  width: 100%;
}

.nbh-headrow {
  display: table-row;
}

.nbh-headcell {
  display: table-cell;
  vertical-align: middle;
}

.nbh-left {
  width: 1%;
  white-space: nowrap;
}

.nbh-right {
  text-align: right;
}

/* Logo */
.nbh-logo {
  max-height: 110px;
  width: auto;
  display: block;
}

/* Buttons */
.nbh-actions .btn {
  margin-left: 8px;
}

/* Prevent global link colors from affecting header buttons */
.nbh-header .nbh-actions a.btn,
.nbh-header .nbh-actions a.btn:link,
.nbh-header .nbh-actions a.btn:visited {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

/* Header button hover and focus state */
.nbh-header .nbh-actions a.btn:hover,
.nbh-header .nbh-actions a.btn:focus {
  background: #CCCCCC;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
}

/* =========================
   Mobile layout
   ========================= */
@media (max-width: 767px) {

  /* White header area */
  .nbh-header-inner {
    height: 105px;
  }

  .nbh-logo {
    max-height: 70px;
  }

  .nbh-actions .btn {
    margin-left: 0;
  }

  /* Black menu bar */
  .nbh-mobile-menubar {
    background: #000000;
    height: 44px;
    line-height: 44px;
    text-align: center;
  }

  .nbh-mobile-menubtn {
    background: transparent;
    border: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 0 14px;
  }

  .nbh-mobile-menubtn:hover,
  .nbh-mobile-menubtn:focus {
    color: #ffffff;
    outline: none;
  }

  /* Center dropdown under menu bar */
  .nbh-mobile-menubar .dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    min-width: 240px;
    margin-top: 0;
  }

  /* Header container sizing on mobile */
  .nbh-header .container {
    width: 94%;
    max-width: 1200px;
  }
}


/* Overrides */
/* Panel container */
.panel-default {
  border-color: #d8dde1;
}

/* Panel heading */
.panel-default > .panel-heading {
  background-color: #e3e8eb;
  color: #666666;
  border-color: #d8dde1;
}

/* Badge inside heading */
.panel-default > .panel-heading .badge {
  background-color: #666666;
  color: #e3e8eb;
}

/* Panel body top border when collapsible */
.panel-default > .panel-collapse > .panel-body {
  border-top-color: #d8dde1;
}

.panel-default .panel-footer {
  background-color: #e3e8eb;
  color: #666666;
  border-top-color: #d8dde1;
}

/* Base well */
.well {
  background-color: #e3e8eb;
  border-color: #d8dde1;
  color: #666666;
}

/* Optional, large and small wells */
.well-lg,
.well-sm {
  background-color: #e3e8eb;
  border-color: #d8dde1;
}


/* =========================================================
   NEW: content container + card + sidenav + table wrap
   ========================================================= */

/* Prevent single bad elements from forcing horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Use this class on your page wrapper: <div class="page-wrap nbh-container"> */
.nbh-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Keep the old 90% feel on desktop, but with a max width */
@media (min-width: 992px) {
  .nbh-container {
    width: 90%;
  }
}

/* Slightly tighter on phones */
@media (max-width: 767px) {
  .nbh-container {
    width: 94%;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Consistent gutters */
.nbh-content-row {
  margin-left: -10px;
  margin-right: -10px;
}
.nbh-content-row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

/* Sidenav panel */
.nbh-sidenav {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

.nbh-sidenav-header {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeeee;
  background: #e3e8eb;
}

.nbh-sidenav-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #333333;
}

.nbh-sidenav-title span {
  font-weight: 400;
  color: #666666;
}

.nbh-sidenav-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.nbh-sidenav-list li {
  margin: 0;
  padding: 0;
}

.nbh-sidenav-list a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #444444;
  text-decoration: none;
}

.nbh-sidenav-list a:hover,
.nbh-sidenav-list a:focus {
  background: #f2f2f2;
  color: #111111;
  text-decoration: none;
}

/* Main content card */
.nbh-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

.nbh-card-body {
  padding: 18px;
}

@media (max-width: 767px) {
  .nbh-card-body {
    padding: 14px;
  }
}

/* Make legacy template headings behave inside the card */
.nbh-card h1 {
  height: auto;
}

/* Table overflow containment */
.nbh-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #ffffff;
}

/* Set a reasonable minimum width so columns do not collapse */
.nbh-table-wrap table {
  min-width: 980px;
}

/* Optional: keep alerts from touching edges when inside cards */
.nbh-card .alert {
  margin-bottom: 18px;
}





/* Standardize the checkbox accent color site-wide */
input[type="checkbox"] {
  accent-color: #000000;  /* unchecked outline and check color */
}
input[type="checkbox"]:checked {
  accent-color: #000000;  /* color when checked */
}

