/* This creates a skinny side bar fixed to the left of the page */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5rem;
  padding: 2rem 1rem;
  background-color: #f8f9fa;
  z-index: 1050;
  transition: width 0.1s ease-in-out;
}

.sidebar-lock {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 18rem;
  padding: 2rem 1rem;
  background-color: #f8f9fa;
  z-index: 1050;
  transition: width 0.1s ease-in-out;
}

/* when the user hovers on the sidebar, expand it */
.sidebar:hover {
  width: 18rem;
}

/* container for the sidebar header. make sure the contents don't wrap when
 * the sidebar is collapsed.
 */
.sidebar-item {
  display: flex;
  justify-content: left;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

/* position relative to the logo and hide by default */
.sidebar-item h2 {
  opacity: 0;
  margin-left: 1rem;
  margin-bottom: 0;
  transition: opacity 0.1s ease-in-out;
}

/* reveal when the sidebar is toggled */
.sidebar:hover .sidebar-item h2 {
  opacity: 1;
}

.sidebar-item span {
  font-size: 18px;
  font-family: Trebuchet MS;
  color: #2f528f;
}

.sidebar-item .nav-link {
  font-size: 17px;
  font-family: Trebuchet MS;
  color: #2f528f;
}

/* position the content relative to the collapsed sidebar */
.content {
  font-family: Trebuchet MS;
  font-size: 17px;
  margin-left: 5rem;
  padding: 0.5rem 3rem;
}

.content-lock {
  margin-left: 18rem;
  padding: 0.5rem 3rem;
}


.js-plotly-plot .plotly .modebar {
  padding-top: 0;
  margin-right: 0;
}

button {
  font-size: 12px !important;
  font-family: Trebuchet MS;
}

body {
  background-color: #0e253f;

}

.two.columns {
  width: 16.25%;
}

.column,
.columns {
  margin-left: 0.5%;
}

.pretty_container {
  border-radius: 5px;
  background-color: #f9f9f9;
  margin: 5px;
  padding: 10px;
  position: relative;
  box-shadow: 2px 2px 2px lightgrey;
}

.bare_container {
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}

.dcc_control {
  margin: 0;
  padding: 5px;
  width: calc(100%-40px);
}

.control_label {
  margin: 0;
  padding: 10px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  width: calc(100%-40px);
}

.rc-slider {
  margin-left: 0px;
  padding-left: 0px;
}

.flex-display {
  display: flex;
}

.container-display {
  display: flex;
}

#individual_graph,
#aggregate_graph {
  width: calc(100% - 30px);
  position: absolute;
}

#count_graph {
  position: absolute;
  height: calc(100% - 30px);
  width: calc(100% - 30px);
}

#countGraphContainer {
  flex: 5;
  position: relative;
}

#header {
  align-items: center;
}

#learn-more-button {
  text-align: center;
  height: 100%;
  padding: 0 20px;
  text-transform: none;
  font-size: 15px;
  float: right;
  margin-right: 10px;
  margin-top: 30px;
}
#title {
  text-align: center;
}

.mini_container {
  border-radius: 5px;
  background-color: #f9f9f9;
  margin: 10px;
  padding: 15px;
  position: relative;
  box-shadow: 2px 2px 2px lightgrey;
}

#right-column {
  display: flex;
  flex-direction: column;
}

#wells {
  flex: 1;
}

#gas {
  flex: 1;
}

#aggregate_data {
  align-items: center;
}

#oil {
  flex: 1;
}

#water {
  flex: 1;
}

#tripleContainer {
  display: flex;
  flex: 3;
}

#mainContainer {
  display: flex;
  flex-direction: column;
}

#pie_graph > div > div > svg:nth-child(3) > g.infolayer > g.legend {
  pointer-events: all;
  transform: translate(30px, 349px);
}

.dash-spreadsheet-inner.dash-spreadsheet.dash-empty-01.dash-no-filter.dash-fill-width {
  padding: 0 20px;
}

.nav-pills a {
  padding: 0 3px;
}

.nav-pills .nav-link.active {
  color: #fff;
  /*background-color: darkred;*/
}

.Select-menu-outer {
  display: block !important;
  --accent: blue;
  background-color: white;
}

.Select-arrow {
  --accent: blue;
}


/* ══════════════════════════════════════════════════════════════════════
   NEXT-DCA — dark "control room" theme, scoped under .dca-dark so it
   never leaks onto any other page in this app.
   ══════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@300;400;600&display=swap');

.dca-dark {
  font-family: 'IBM Plex Sans', Trebuchet MS, sans-serif;
  background: #0e1117;
  color: #e8eaf0;
  padding: 0.75rem 0.5rem 2rem 0.5rem;
  border-radius: 6px;
}

.dca-dark .dca-banner {
  background: linear-gradient(135deg, #1a2236, #0d1520);
  border: 1px solid #2a4060;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dca-dark .dca-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.7rem;
  font-weight: 600;
  color: #5bc8f5;
}
.dca-dark .dca-title-sep { color: #2a4060; font-size: 1.3rem; }
.dca-dark .dca-subtitle { color: #7a8fa8; font-size: 1.15rem; }

/* Tab-level page title (currently: Exports tab's "Export resaid Outputs") —
   smaller than the page banner's .dca-title but bigger than .dca-sec-label. */
.dca-dark .dca-page-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: #e8eaf0;
  margin-bottom: 0.2rem;
}

.dca-dark .dca-card {
  background: #161b26;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.dca-dark .dca-sec-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #5bc8f5;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dca-dark .dca-note { color: #7a8fa8; font-size: 1.15rem; margin-bottom: 0.5rem; }

.dca-dark .dca-param-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  background: #161b26;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}
.dca-dark .dca-param-col { flex: 1 1 200px; min-width: 190px; }
.dca-dark .dca-field { margin-bottom: 0.55rem; }
.dca-dark .dca-field-label {
  font-size: 1.1rem;
  color: #9aafc4;
  margin-bottom: 3px;
}
.dca-dark .dca-input,
.dca-dark .dca-input input {
  background: #0e1117 !important;
  color: #e8eaf0 !important;
  border: 1px solid #2a3040 !important;
  font-size: 1.15rem !important;
  padding: 0.5rem 0.7rem !important;
  height: auto !important;
}

/* Switch fields (backup_decline / outlier_correction / three_phase_mode) need
   more breathing room — the switch track is taller than a text input, so the
   default field spacing reads as cramped against the next field below it. */
.dca-dark .dca-field:has(.dca-switch) { margin-bottom: 1.3rem; }
.dca-dark .dca-switch {
  margin-top: 0.35rem;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0;
}
/* Every checkbox/radio in the dark page is a flex row so the icon and its
   label line up on the same center line, regardless of font-size — this
   replaces Bootstrap's default float + negative-margin layout, which only
   lines up correctly at Bootstrap's original (smaller) sizes. */
.dca-dark .form-check {
  display: flex;
  align-items: center;
  padding-left: 0;
  min-height: 1.9em;
}
.dca-dark .form-check-input {
  float: none;
  margin: 0 0.5em 0 0 !important;
  flex-shrink: 0;
}
.dca-dark .form-check-label {
  font-size: 1.1rem;
  line-height: 1.2;
  margin-left: 0;
}

/* Plain checkboxes/radios (Rate unit, Phase, Type Curve View, Log toggle
   when not a switch) stay circular/square at a slightly bigger size — the
   2.4em x 1.3em sizing below is for switch TRACKS only, scoped to
   .dca-switch, so it doesn't stretch ordinary radio dots into ellipses. */
.dca-dark .form-check-input[type="checkbox"],
.dca-dark .form-check-input[type="radio"] {
  width: 1.35em;
  height: 1.35em;
}
.dca-dark .dca-switch .form-check {
  min-height: 2rem;
}
.dca-dark .dca-switch .form-check-input {
  width: 2.4em !important;
  height: 1.3em !important;
  margin: 0 0.5em 0 0 !important;
}
.dca-dark .dca-switch .form-check-label { color: #9aafc4; }

/* Inline radio/checkbox groups (Rate unit: per month / per day, Phase:
   OIL/GAS/WATER, Type Curve View, etc.) — give each option real breathing
   room instead of Bootstrap's tight default 0.75rem gap. */
.dca-dark .form-check-inline {
  display: inline-flex;
  align-items: center;
  margin-right: 2rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}
.dca-dark .form-check-inline:last-child { margin-right: 0; }

.dca-dark .dca-toggle-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  color: #5bc8f5 !important;
  border-color: #2a4060 !important;
}

.dca-dark .dca-upload {
  border: 1px dashed #2a4060;
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  background: #0e1117;
}
.dca-dark .dca-upload-inner { color: #9aafc4; font-size: 1.1rem; }
.dca-dark .dca-upload-name { color: #4ade80; font-size: 1.05rem; margin-top: 3px; }

.dca-dark .dca-run-btn {
  font-weight: 600;
  font-size: 1.15rem;
  width: 100%;
}

.dca-dark .dca-run-status { margin-top: 0.5rem; }
.dca-dark .dca-alert {
  font-size: 1.15rem;
  padding: 0.55rem 0.9rem;
  margin-bottom: 0.4rem;
}

.dca-dark .dca-global-controls {
  background: #161b26;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  align-items: center;
}

.dca-dark .dca-metric-card {
  background: #0e1117;
  border: 1px solid #2a3040;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  /* Match .dca-tc-card's flex sizing so metric-card rows (e.g. Analog Well
     EUR on the Analogs + Type Curve tab) stretch to fill the row in equal
     shares instead of shrinking to their content width. */
  flex: 1 1 180px;
  min-width: 160px;
}
.dca-dark .dca-metric-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.6rem;
  font-weight: 600;
  color: #5bc8f5;
}
.dca-dark .dca-metric-lbl { font-size: 1rem; color: #9aafc4; margin-top: 0.15rem; }

.dca-dark .dca-tab-toolbar { margin: 0.5rem 0; }
.dca-dark .dca-page-label { color: #9aafc4; font-size: 1.15rem; padding-top: 0.4rem; }

.dca-dark .dca-well-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.dca-dark .dca-well-cell {
  background: #161b26;
  border: 1px solid #2a3040;
  border-radius: 6px;
}
.dca-dark .dca-well-cell-empty {
  height: 360px;
  border: 1px dashed #2a3040;
  background: #161b26;
}

.dca-dark .dca-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.dca-dark .dca-tc-card {
  background: #161b26;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  flex: 1 1 180px;
  min-width: 160px;
}
.dca-dark .dca-tc-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 3px;
}
.dca-dark .dca-tc-card-eur {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  font-weight: 600;
}
.dca-dark .dca-tc-card-params {
  font-size: 1.05rem;
  color: #9aafc4;
  line-height: 1.7;
  margin-top: 4px;
}

.dca-dark .dca-probit-badge {
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 4px;
  margin-right: 4px;
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
}

.dca-dark .dca-export-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.15rem;
  padding: 0.5rem 0.8rem;
  /* Bootstrap's default outline-secondary is a dim grey — barely readable
     against this page's dark navy background, so override with a slate
     blue-gray that matches the rest of the dark theme's accent colors. */
  color: #b8cbe0 !important;
  background-color: #1e2d3d !important;
  border-color: #3a5578 !important;
}
.dca-dark .dca-export-btn:hover,
.dca-dark .dca-export-btn:focus {
  color: #ffffff !important;
  background-color: #2a4060 !important;
  border-color: #4a6a95 !important;
}

/* dbc.Tabs / dash_table inside the dark page */
.dca-dark .nav-tabs {
  border-bottom: 1px solid #2a3040;
}
.dca-dark .nav-tabs .nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  padding: 0.6rem 1.1rem;
  background: #161b26;
  color: #9aafc4;
  border-color: #2a3040;
}
.dca-dark .nav-tabs .nav-link.active {
  background: #1e2d42 !important;
  color: #5bc8f5 !important;
  border-color: #2a4060 !important;
}
.dca-dark .tab-content {
  background: transparent;
  padding-top: 0.6rem;
}


/* Buttons using dbc size='sm' inside the dark page still need bigger text */
.dca-dark .btn-sm {
  font-size: 1.05rem !important;
  padding: 0.4rem 0.9rem !important;
}

/* DataTable inside the dark page */
.dca-dark .dash-spreadsheet-container .dash-spreadsheet-inner table {
  font-size: 1.05rem !important;
}