/* ---------------------------------------------------------------------------
   A thin layer over Bootstrap 3.4.1. Everything here is an override or an
   addition; the structural work is all Bootstrap's.
   ------------------------------------------------------------------------ */

body {
  background: #eef1ea;
  color: #1d2622;
}

.mono {
  font-family: "IBM Plex Mono", Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

/* --- Brand colour: wine replaces Bootstrap's default blue for actions ----- */

.btn-primary {
  background-color: #6b1f2e;
  border-color: #571825;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:hover {
  background-color: #571825;
  border-color: #45131d;
}
.btn-primary.disabled,
.btn-primary[disabled] {
  background-color: #6b1f2e;
  border-color: #571825;
}

a, .btn-link { color: #6b1f2e; }
a:hover, a:focus, .btn-link:hover { color: #45131d; }

.navbar-default .navbar-brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d2622;
}

.page-header {
  border-bottom-color: #d3dbcf;
  margin-top: 30px;
}

.page-header h1 small { display: block; margin-top: 8px; font-size: 60%; }

.panel, .well, .modal-content {
  border-radius: 3px;
  box-shadow: none;
}

.well { background: #f7f9f5; border-color: #d3dbcf; }

/* --- Seating groups inside the tables modal ------------------------------ */

.seating-block + .seating-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2e7de;
}

.seating-head {
  margin: 0 0 10px;
  color: #6b1f2e;
}

.seating-head .glyphicon { font-size: 13px; color: #a98a4e; }

.seating-head small {
  color: #7d887c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  margin-left: 6px;
}

/* --- Seating tabs -------------------------------------------------------- */

#tablesBody .nav-tabs { margin-bottom: 16px; }

#tablesBody .nav-tabs > li > a {
  color: #5c6660;
  padding: 9px 14px;
}

#tablesBody .nav-tabs > li > a:hover { background-color: #f2f5ef; }

#tablesBody .nav-tabs > li.active > a,
#tablesBody .nav-tabs > li.active > a:hover,
#tablesBody .nav-tabs > li.active > a:focus {
  color: #6b1f2e;
  font-weight: 600;
  border-bottom-color: transparent;
}

#tablesBody .nav-tabs .badge {
  background-color: #b9c2b6;
  margin-left: 4px;
  font-size: 11px;
}

#tablesBody .nav-tabs > li.active .badge { background-color: #6b1f2e; }

/* --- Table rows ---------------------------------------------------------- */

.table-row { padding: 11px 15px; }

.table-row .table-name { font-weight: 600; }

.list-group-item .badge {
  background-color: #a98a4e;
  text-transform: lowercase;
  font-weight: 400;
}

.list-group-item:hover { background-color: #f7f9f5; }
.list-group-item:hover .table-name { color: #6b1f2e; }

/* Long lists scroll inside the modal rather than pushing it off screen. */
#tablesModal .modal-body {
  max-height: 65vh;
  overflow-y: auto;
}

/* --- Modals -------------------------------------------------------------- */

.modal-header { border-bottom-color: #e2e7de; }
.modal-footer { border-top-color: #e2e7de; }

.modal-title { font-weight: 600; }

.modal-sub {
  margin: 6px 0 0;
  font-size: 13px;
}

.summary-table {
  background: #f7f9f5;
  border: 1px solid #e2e7de;
  margin-bottom: 22px;
}

.summary-table th {
  width: 34%;
  font-weight: 400;
  color: #7d887c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle !important;
}

.summary-table td { font-weight: 600; }

.summary-table > tbody > tr > th,
.summary-table > tbody > tr > td { border-top: 0; padding: 7px 12px; }

.summary-table > tbody > tr + tr > th,
.summary-table > tbody > tr + tr > td { border-top: 1px solid #e6ebe3; }

.help-block.hint { margin-bottom: 0; font-size: 12px; }

.empty-state { padding: 26px 12px; }

/* Bootstrap 3 tints every .help-block inside a .has-error group red, which
   makes a neutral hint read as a second error. Keep hints muted. */
.has-error .help-block.hint { color: #7d887c; }

@media (max-width: 767px) {
  .page-header h1 { font-size: 26px; }
  .modal-footer .btn-lg { width: 100%; margin-bottom: 8px; }
  .modal-footer .btn-link.pull-left { float: none !important; display: block; }
}

/* Adjacent-night buttons in the empty state. */
.empty-nav { margin-top: 20px; }
.empty-nav .btn { margin: 0 5px 8px; }
