
/* variables */
:root {
  --bc-main: #ecf0f1;
  --primary: #2c3e50;
  --dark: #01172d;
  --secondary: #95a5a6;
  --bright: #00bac3;
  --border: #dee2e6;
  --link: #167783;
  --bs-link-color: #167783;
  --bs-link-color-rgb: #00bac3;
  --c-red: #dc3545;
}

body {
  color: var(--primary);
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* general */
.text-primary {
  color: var(--primary) !important;
}

.text-light {
  color: var(--border) !important;
}

.text-dark {
  color: var(--dark) !important;
}

.text-bright {
  color: var(--bright) !important;
}

.text-muted {
  color: var(--secondary) !important;
}

.text-link {
  color: var(--link) !important;
}

.text-red { 
  color: var(--c-red) !important;
}

.bright-hover:hover {
  color: var(--bright) !important;
}
.dark-hover:hover {
  color: var(--primary) !important;
}

.fs-08 {
  font-size: 0.8rem !important;
}

/* buttons */
.btn-primary {
  --bs-btn-hover-color: var(--bright);
  --bs-btn-hover-bg: var(--dark);
  --bs-btn-hover-border-color: var(--secondary);
}

.btn-secondary {
  --bs-btn-color: var(--dark);
}

.btn-outline-secondary {
  --bs-btn-color: var(--link) !important;
}

/* table */
.table-container a {
  color: var(--link) !important; 
}

/* navigation: tabs, navbars */
.nav-tabs .nav-link.active {
  color: var(--link) !important;
}

#right-panel .nav-link {
  color: var(--link) !important; 
}

.navbar-dark, .navbar[data-bs-theme=dark] {
  --bs-navbar-color: var(--border);
  --bs-navbar-hover-color: var(--bright);
  --bs-navbar-active-color: var(--bright);
  --bs-navbar-brand-color: var(--bc-main);
  --bs-navbar-brand-hover-color: var(--bright);
}

/* pagination */
.pagination {
  --bs-pagination-color: #fff;
  --bs-pagination-bg: var(--bright);
  --bs-pagination-hover-bg: var(--link);
  --bs-pagination-focus-color: var();
  --bs-pagination-active-bg: var(--link);
  --bs-pagination-disabled-bg: var(--link);
}

.page-link {
  color: var(--dark);
}

/* table cell */
.cell-scroll-x {
  max-width: 155px;
  white-space: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-gutter: stable;
}
.cell-scroll-x:hover{
  overflow-x: auto;
}
@supports (-webkit-touch-callout: none) {
  .cell-scroll-x{
    padding-bottom: 5px;
    margin-bottom: -5px;
  }
}


/* tooltip */
.tooltip .tooltip-inner {
  background-color: var(--dark) !important;
  color: var(--bc-main) !important;
  font-size: 0.85rem !important;
  line-height: 1.35 !important;
  max-width: 420px !important;
  text-align: left !important;
}
.tooltip .tooltip-arrow::before {
  border-top-color: var(--dark) !important;
  border-bottom-color: var(--dark) !important;
}

.select-no-arrow {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
  padding-right: 0.5rem; /* optional: tighten spacing */
}

::placeholder {
  color: var(--secondary) !important;
  opacity: 1 !important;
  font-style: italic !important;
}
::-webkit-input-placeholder {
  color: var(--secondary) !important;
  font-style: italic !important;
}
::-moz-placeholder {
  color: var(--secondary) !important;
  font-style: italic !important;
}

.expr-val {
  min-height: 31px;
}

input:disabled {
  color: var(--secondary) !important;
  opacity: 1 !important;
  font-style: italic !important;
}

/* feature.browser.html */

.card-body {
  padding: 0;
  padding-top: 1rem;
}

.filter-group {
  margin-bottom: .25rem;
}

.filter-group-sum {
  padding: .5rem;
  border: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-radius: .25rem;
  background-color: var(--bc-main);
  color: var(--link);
}

.filter-group-content {
  padding: .5rem !important;
  border: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-radius: .25rem;
  border-top: 0 !important;
  border-bottom-right-radius: .25rem !important;
  border-bottom-left-radius: .25rem !important;
  background-color: #fff !important;
}

.row-sel-controls{
  gap: var(--row-sel-gap, .25rem);
}

/* results.html */

.form-check-input {
  border-color: var(--secondary);
}

.table-container {
  max-width: 100%;
  overflow-x: auto;
}

.table-container table {
  width: max-content;
  min-width: 100%;
}

.table-container th,
.table-container td {
  white-space: nowrap;
}

.table-scroll-top { overflow-x:auto; overflow-y:hidden; height:14px; position:sticky; top:0; z-index:20; background: var(--bs-light); }
.table-scroll-top-inner { height:1px; }

.row-select-col { display: none; }
body.row-select-active .row-select-col { display: table-cell; }

.th-seq { position: relative; }
.th-seq, .td-seq { /* width set via JS inline style */ }
.seq-wrap { /* width set via JS inline style */ }
.seq-wrap { min-width: 300px; width: 100%;}
.col-resizer{
  position: absolute;
  top: 0;
  right: -2px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.seq-cell{
  display: inline;
  overflow: visible;
  max-width: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 300;
  white-space: nowrap;
}
.seq-prefix {color: var(--secondary);}
.motif-hit {color: #c00; font-weight: 700;}



/* fonts */

/* lato-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/lato-v25-latin-300.716309aab2bc.woff2") format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-300italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  src: url("../fonts/lato-v25-latin-300italic.9d09d1df9053.woff2") format('woff2'); 
}
/* lato-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lato-v25-latin-regular.e1b3b5908c9c.woff2") format('woff2');
}
/* lato-italic - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/lato-v25-latin-italic.efee2d080d7b.woff2") format('woff2'); 
}
/* lato-700 - latin */
@font-face {
  font-display: swap; 
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/lato-v25-latin-700.de69cf9e514d.woff2") format('woff2'); 
}
/* lato-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/lato-v25-latin-700italic.865e46af8163.woff2") format('woff2'); 
}
