@charset "UTF-8";
/* ==========================================================================
   DockServer — re-skinned to match the Gas Clip Technologies main website
   Brand palette pulled from gctnew/css/_variables.scss
   GCT-Blue #003057 | GCT-Orange #ff7f30
   ========================================================================== */
/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
/* Count padding/border inside element widths so width:100% never overflows */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #fff;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  /* room for the fixed footer */
  margin-bottom: 80px;
  /* guard against any stray element pushing past the viewport edge */
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif;
  color: #003057;
}

a {
  color: #003057;
}
a:hover, a:focus {
  color: #ff7f30;
}

/* --------------------------------------------------------------------------
   Site header (orange accent strip + blue brand bar)
   -------------------------------------------------------------------------- */
.gct-topbar {
  height: 0.5rem;
  background-color: #ff7f30;
  width: 100%;
}

.gct-header {
  background-color: #003057;
  color: #fff;
  padding: 0;
}
.gct-header .gct-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.gct-header .gct-logo {
  height: 52px;
  width: auto;
  padding: 5px;
  object-fit: contain;
  justify-self: start;
}
.gct-header h1 {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  font-size: 1.9rem;
  text-align: center;
}
@media (max-width: 600px) {
  .gct-header h1 {
    font-size: 1.3rem;
  }
  .gct-header .gct-logo {
    height: 40px;
  }
}

/* --------------------------------------------------------------------------
   Navbar (Bootstrap navbar-default re-skinned to brand)
   -------------------------------------------------------------------------- */
.navbar-default {
  background-color: #003057;
  border: none;
  border-radius: 0;
  margin-bottom: 1rem;
  min-height: 52px;
}
.navbar-default .navbar-brand {
  color: #fff;
  padding-top: 9px;
  padding-bottom: 9px;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
  color: #fff;
}
.navbar-default .navbar-text,
.navbar-default .navbar-nav > li > a {
  color: #fff;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
  color: #003057;
  background-color: rgba(255, 127, 48, 0.8);
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  color: #003057;
  background-color: #ff7f30;
}
.navbar-default .navbar-toggle {
  border-color: #ff7f30;
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
  background-color: #ff7f30;
}
.navbar-default .navbar-toggle .icon-bar {
  background-color: #fff;
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: rgba(255, 255, 255, 0.15);
}
.navbar-default .dropdown-menu {
  background-color: #003057;
  border: none;
}
.navbar-default .dropdown-menu > li > a {
  color: #fff;
}
.navbar-default .dropdown-menu > li > a:hover, .navbar-default .dropdown-menu > li > a:focus {
  color: #003057;
  background-color: #ff7f30;
}
.navbar-default .caret {
  color: #fff;
}

@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: #fff;
  }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: #003057;
    background-color: #ff7f30;
  }
}
/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  background-color: #ff7f30;
  border-color: #ff7f30;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active {
  background-color: #e8691a;
  border-color: #e8691a;
  color: #fff;
}

.open > .dropdown-toggle.btn-primary {
  background-color: #e8691a;
  border-color: #e8691a;
  color: #fff;
}

/* Brand button used in the nav bar */
.btn-gct {
  background-color: #ff7f30;
  border: 1px solid #ff7f30;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
}
.btn-gct:hover, .btn-gct:focus {
  background-color: #e8691a;
  border-color: #e8691a;
  color: #fff;
}
.btn-gct.active {
  background-color: #003057;
  border: 1px solid #ff7f30;
  color: #fff;
}

.btn-success {
  background-color: #003057;
  border-color: #003057;
  color: #fff;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
  background-color: #001f38;
  border-color: #001f38;
  color: #fff;
}

.btn-hide {
  margin-right: 20px;
}

.btn-dl {
  margin-bottom: 5px;
}

.dispButton {
  margin: 0;
  padding: 2px 5px;
  background: #003057;
  border: 1px solid #ff7f30;
  color: #fff;
}

.button-center {
  text-align: center;
  margin: 0 auto;
}

/* DataTables export buttons */
/* Stock DataTables uses `div.dt-buttons { float: left }`, which outranks a plain
   `.dt-buttons` rule. Match its specificity (and add !important) so the wrapping
   text-center div (set via the dom option) can center the buttons. */
.dataTables_wrapper div.dt-buttons {
  float: none !important;
  display: inline-block;
}

.dt-buttons .btn,
.dt-button {
  background-color: #003057 !important;
  border-color: #003057 !important;
  color: #fff !important;
  background-image: none !important;
}
.dt-buttons .btn:hover,
.dt-button:hover {
  background-color: #ff7f30 !important;
  border-color: #ff7f30 !important;
  color: #003057 !important;
}

/* --------------------------------------------------------------------------
   Panels / cards / tabs
   -------------------------------------------------------------------------- */
.panel-primary {
  border-color: #003057;
}
.panel-primary > .panel-heading {
  background-color: #003057;
  border-color: #003057;
  color: #fff;
  font-weight: 600;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #003057;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
/* Wide tables scroll inside their own box instead of widening the page */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --- Lightweight table (Logs / Reports — replaces DataTables) ----------- */
.table-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.table-search {
  padding: 0.4rem 0.6rem;
  min-width: 220px;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.table-search:focus {
  outline: none;
  border-color: #ff7f30;
  box-shadow: 0 0 0 2px rgba(255, 127, 48, 0.25);
}

.table-info {
  color: #666;
  font-size: 0.9rem;
}

.lite-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.lite-table th,
.lite-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}
.lite-table thead th {
  background-color: #003057;
  color: #fff;
  white-space: nowrap;
}
.lite-table thead th.sortable {
  cursor: pointer;
  user-select: none;
}
.lite-table thead th.sortable::after {
  content: "↕"; /* ↕ idle indicator */
  margin-left: 0.4rem;
  font-size: 0.85em;
  opacity: 0.5;
}
.lite-table thead th.sort-asc::after {
  content: "▲"; /* ▲ */
  opacity: 1;
}
.lite-table thead th.sort-desc::after {
  content: "▼"; /* ▼ */
  opacity: 1;
}
.lite-table tbody tr:nth-child(odd) {
  background-color: #f4f7fa;
}
.lite-table tbody tr:hover {
  background-color: #d3ffff;
}

/* --- Pass/Fail status indicators (colorblind-safe) ---------------------- */
/* Okabe-Ito palette: hues AND brightness differ, so they stay distinct under
   red-green colorblindness. Shape (triangle vs circle, set in dispStatus())
   and the value text provide non-color cues as well. */
.status-pass {
  color: #009e73; /* bluish-green */
}

.status-fail {
  color: #d55e00; /* vermillion */
  font-weight: 700;
}

.status-muted {
  color: #888;
}

.status-normal {
  color: #333;
}

table#dockTable {
  /* keep horizontal scrollbar from showing up in Edge/Firefox */
  display: block;
  width: 98% !important;
}
table#dockTable thead {
  background-color: #003057;
  color: #fff;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f4f7fa;
}

.table-hover > tbody > tr:hover {
  background-color: #d3ffff;
}

.dataTables_scrollBody {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #ff7f30 !important;
  border-color: #ff7f30 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Header address + misc helpers
   -------------------------------------------------------------------------- */
.gct-logo {
  padding-left: 5px;
  padding-top: 5px;
}

.headerAddress {
  font-size: 1em;
  padding-top: 15px;
  color: #003057;
}

.dateLine {
  margin: 5px 0;
}

.hideDiv {
  display: none;
}

.smallFont {
  font-size: 0.85em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #e9e9e9;
  color: #333;
  border-top: 3px solid #ff7f30;
  padding: 12px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Blink / status helpers
   -------------------------------------------------------------------------- */
.blink {
  color: red;
  font-weight: bold;
  animation: blink 2s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    opacity: 0;
  }
  75% {
    opacity: 0.5;
  }
}
/* ==========================================================================
   Modern layout framework (replaces Bootstrap)
   ========================================================================== */
/* --- Layout containers ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

/* Centered, narrow column for login / form cards (was col-md-6 offset-3) */
.narrow {
  max-width: 560px;
  margin: 0 auto;
}

/* Generic flex row helper */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

/* Superuser company selector on the dashboard */
.company-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.company-filter select {
  width: auto;
  min-width: 240px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.company-filter select:focus {
  outline: none;
  border-color: #ff7f30;
  box-shadow: 0 0 0 2px rgba(255, 127, 48, 0.25);
}

/* Date-range selector row (showlogs/home dateline) */
.dateline-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

/* --- Card (replaces .panel .panel-primary) ----------------------------- */
.card {
  background: #fff;
  border: 1px solid #003057;
  border-radius: 6px;
  margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-header {
  background-color: #003057;
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.card-header h4 {
  color: #fff;
  margin: 0;
}

.card-body {
  padding: 1rem;
  /* clear floated submit buttons (.pull-right) */
}
.card-body::after {
  content: "";
  display: table;
  clear: both;
}

/* --- Forms (replaces form-horizontal / form-group / control-label) ------ */
.form .field {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0.35rem 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
@media (max-width: 600px) {
  .form .field {
    grid-template-columns: 1fr;
  }
}

.field-label {
  font-weight: 600;
  padding-top: 0.4rem;
}

.field-inline {
  font-weight: 400;
  display: inline-block;
}

/* Inputs / selects (replaces .form-control) */
.input {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  font: inherit;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.input:focus {
  outline: none;
  border-color: #ff7f30;
  box-shadow: 0 0 0 2px rgba(255, 127, 48, 0.25);
}

/* Checkbox rows (replaces bootstrap .checkbox) */
.check-row {
  margin: 0.25rem 0;
}
.check-row label {
  font-weight: 400;
}

/* Note box (replaces .well) */
.note {
  background: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

/* --- Buttons: base class (was provided by Bootstrap) ------------------- */
.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  margin-bottom: 0;
  font: inherit;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  background-color: #e0e0e0;
  color: #333;
  user-select: none;
}
.btn:hover, .btn:focus {
  text-decoration: none;
}

.btn-default {
  background-color: #f0f0f0;
  border-color: #ccc;
  color: #333;
}
.btn-default:hover, .btn-default:focus {
  background-color: #e2e2e2;
}

/* Info button = unselected timeframe pill in dateline */
.btn-info {
  background-color: #dfe6ec;
  border-color: #cfd9e1;
  color: #003057;
}
.btn-info:hover, .btn-info:focus {
  background-color: #cdd9e2;
  color: #003057;
}

.btn-xs {
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
}

.btn-lg,
.btn-large {
  padding: 0.6rem 1.2rem;
  font-size: 1.05rem;
}

/* --- Alerts (replaces .alert / .close[data-dismiss]) ------------------- */
.alert {
  position: relative;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-success {
  background-color: #e6f4ea;
  border-color: #bce0c7;
  color: #1d6b34;
}

.alert-warning {
  background-color: #fff6e6;
  border-color: #ffe0a6;
  color: #8a5a00;
}

.alert-danger {
  background-color: #fbe7e7;
  border-color: #f3c0c0;
  color: #9b1c1c;
}

.alert-info {
  background-color: #e7f1fb;
  border-color: #bcd9f3;
  color: #1d4f7c;
}

.alert-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  padding: 0 0.25rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
}
.alert-close:hover {
  opacity: 1;
}

/* --- Utility helpers --------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.pull-right {
  float: right;
}

.pull-left {
  float: left;
}

@media (max-width: 768px) {
  .hide-sm {
    display: none;
  }
}
/* ==========================================================================
   Navigation bar (replaces Bootstrap navbar + its JS)
   ========================================================================== */
.ds-nav {
  background-color: #003057;
  margin-bottom: 1rem;
}

.ds-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.ds-nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ds-nav-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.ds-nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ds-dropdown {
  position: relative;
}

.ds-dropdown-toggle {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  font: inherit;
}
.ds-dropdown-toggle:hover {
  color: #ff7f30;
}
.ds-dropdown-toggle .fa-user {
  margin-right: 0.35rem;
}

.ds-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 210px;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background-color: #003057;
  border-top: 2px solid #ff7f30;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 1000;
}
.ds-dropdown-menu li a {
  display: block;
  padding: 0.45rem 1rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.ds-dropdown-menu li a:hover {
  background-color: #ff7f30;
  color: #003057;
}

.ds-dropdown.open .ds-dropdown-menu {
  display: block;
}

.ds-nav-logout {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}
.ds-nav-logout:hover {
  color: #ff7f30;
}

/* Hamburger — hidden on desktop */
.ds-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  margin: 0.4rem 0;
  padding: 0;
  background: transparent;
  border: 1px solid #ff7f30;
  border-radius: 4px;
  cursor: pointer;
}
.ds-nav-toggle span {
  display: block;
  height: 3px;
  width: 22px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .ds-nav-toggle {
    display: flex;
  }
  .ds-nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  .ds-nav-menu.open {
    display: flex;
  }
  .ds-nav-left,
  .ds-nav-right {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .ds-dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
  }
}
/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .no-print {
    display: none;
  }
  .print-center {
    text-align: center;
  }
}
