.subscribed-features-form {
  display: flex;
  flex-direction: column;

  .feature-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    .feature-box {
      display: flex;
      flex-direction: column;
      height: 400px;
      width: calc(100% * (1/3) - 10px);
      border: solid thin black;
      margin: 5px;
      padding: 5px;

      .sync-countries-box {
        margin-top: 10px;

        div {
          display: flex;

          select {
            flex: 1;
            margin-right: 5px;
          }
        }
      }
    }

    .feature-box:has(input[type=checkbox]:checked) {
      opacity: 100%;
    }

    .feature-box:has(input[type=checkbox]:not(:checked)) {
      opacity: 40%;

      select, button {
        pointer-events: none;
      }
    }
  }
}
/* ========================= */
/*         FORM PAGE         */
/* ========================= */

.title {
  font-size: 1.75rem;
}

.form-field {
  border-radius: 0.8rem;
  min-width: 400px;
}

.form-label {
  font-size: 1.2rem;
}

.remove-alternative-name {
  background-color: #f8d7da;
}

.remove_alternative-name:hover {
  background-color: #c66b6b;
}

.btn-light {
  background-color: #e0e0e0;
}

.btn-light:hover {
  background-color: #c0c0c0;
}
/* ========================= */
/*      MAPTILES PAGE        */
/* ========================= */
.blank-flag {
  background-color: white;
  border: 1px solid #ccc;
}

.countries {
  max-height: 500px;
  overflow-y: auto;
}

/* ========================= */
/*     COMPANY NAMES PAGE    */
/* ========================= */

.badge {
  color: #212529;
  background-color: #e0c8f0;
  padding: 0.6rem 1rem;
  margin: 0.2rem 0.2rem;
  border-radius: 1rem;
  position: relative;
}

.badge .btn {
  position: absolute;
  right: -0.5rem;
  top: -0.5rem;
  padding: 0;
  height: 1.5rem;
  width: 1.5rem;
  background-color: #eee;
  border-color: #eee;
  display: none;
}

.badge:hover .btn {
  display: block;
}

.badge:hover {
  background-color: #c0a0d0;
}

.badge:hover .btn:hover {
  background-color: #c0c0c0;
  border-color: #c0c0c0;
}

.table-container {
  border-radius: 1rem;
  overflow-x: auto;
  border: 2px solid #eee;
}

.table thead {
  background-color: #eee;
}

.table th {
  padding: 1rem;
}

.table td {
  padding: 0.5rem 1rem;
  vertical-align: middle;
}

.company-name {
  min-width: 20rem;
}

.alternative-names {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.alternative-name-input {
  width: 100%;
  max-width: 10rem;
  border: none;
}

.alternative-name-input:focus {
  border: none;
  box-shadow: none;
  max-width: 30rem;
}

.search-bar {
  background-color: #eee;
  padding: 0.8rem 1rem;
}

/* ========================= */
/*         TABS PAGE         */
/* ========================= */
.nav-link {
  margin: 10px 0;
}

.divider {
  display: flex;
  height: calc(100vh - 200px);
  padding: 1rem;
}

/* ========================= */
/*        UPLOAD PAGE        */
/* ========================= */

.dropzone {
  border: 2px dashed #0087f7;
  border-radius: 5px;
  cursor: pointer;
}

.dz-message {
  color: #0087f7;
}

.dropzone:hover {
  border-color: #a0a0a0;
  background-color: #f0f0f0;

  > .dz-message {
    color: #a0a0a0;
  }
}

.dropzone .dz-preview {
  border: 2px solid #eee;
  margin: 10px 0;
}

.dropzone .dz-preview .dz-remove {
  display: none;
}

.btn-light {
  background-color: #e0e0e0;
}

.btn-light:hover {
  background-color: #c0c0c0;
}

.btn-delete {
  cursor: pointer;
}

.btn-delete .bi {
  font-size: 1rem;
  cursor: pointer;
}

#upload_button:disabled {
  background-color: #a0a0a0;
  border-color: #a0a0a0;
}

.badge-danger {
  color: #fff !important;
  background-color: #dc3545 !important;
}
div#driver-popover-item {
  display: none;
  position: absolute;
  background: #fff;
  color: #2d2d2d;
  margin: 0;
  padding: 15px;
  border-radius: 5px;
  min-width: 250px;
  max-width: 300px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, .4);
  z-index: 1000000000
}

div#driver-popover-item .driver-popover-tip {
  border: 5px solid #fff;
  content: "";
  position: absolute
}

div#driver-popover-item .driver-popover-tip.bottom {
  bottom: -10px;
  border-color: #fff transparent transparent
}

div#driver-popover-item .driver-popover-tip.bottom.position-center {
  left: 49%
}

div#driver-popover-item .driver-popover-tip.bottom.position-right {
  right: 20px
}

div#driver-popover-item .driver-popover-tip.left {
  left: -10px;
  top: 10px;
  border-color: transparent #fff transparent transparent
}

div#driver-popover-item .driver-popover-tip.left.position-center {
  top: 46%
}

div#driver-popover-item .driver-popover-tip.left.position-bottom {
  top: auto;
  bottom: 20px
}

div#driver-popover-item .driver-popover-tip.right {
  right: -10px;
  top: 10px;
  border-color: transparent transparent transparent #fff
}

div#driver-popover-item .driver-popover-tip.right.position-center {
  top: 46%
}

div#driver-popover-item .driver-popover-tip.right.position-bottom {
  top: auto;
  bottom: 20px
}

div#driver-popover-item .driver-popover-tip.top {
  top: -10px;
  border-color: transparent transparent #fff
}

div#driver-popover-item .driver-popover-tip.top.position-center {
  left: 49%
}

div#driver-popover-item .driver-popover-tip.top.position-right {
  right: 20px
}

div#driver-popover-item .driver-popover-tip.mid-center {
  display: none
}

div#driver-popover-item .driver-popover-footer {
  display: block;
  margin-top: 10px
}

div#driver-popover-item .driver-popover-footer button {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #d4d4d4;
  text-decoration: none;
  text-shadow: 1px 1px 0 #fff;
  color: #2d2d2d;
  font: 11px/normal sans-serif;
  cursor: pointer;
  outline: 0;
  background-color: #f1f1f1;
  border-radius: 2px;
  zoom: 1;
  line-height: 1.3
}

div#driver-popover-item .driver-popover-footer button.driver-disabled {
  color: grey;
  cursor: default;
  pointer-events: none
}

div#driver-popover-item .driver-popover-footer .driver-close-btn {
  float: left
}

div#driver-popover-item .driver-popover-footer .driver-btn-group,
div#driver-popover-item .driver-popover-footer .driver-close-only-btn {
  float: right
}

div#driver-popover-item .driver-popover-title {
  font: 19px/normal sans-serif;
  margin: 0 0 5px;
  font-weight: 700;
  display: block;
  position: relative;
  line-height: 1.5;
  zoom: 1
}

div#driver-popover-item .driver-popover-description {
  margin-bottom: 0;
  font: 14px/normal sans-serif;
  line-height: 1.5;
  color: #2d2d2d;
  font-weight: 400;
  zoom: 1
}

div#driver-popover-item .driver-popover-description ul {
  padding-left: 1rem;
  margin-top: 0;
}

.driver-clearfix:after,
.driver-clearfix:before {
  content: "";
  display: table
}

.driver-clearfix:after {
  clear: both
}

.driver-stage-no-animation {
  transition: none !important;
  background: transparent !important;
  outline: 5000px solid rgba(0, 0, 0, .75)
}

div#driver-page-overlay {
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: block;
  width: 100%;
  height: 100%;
  zoom: 1;
  filter: alpha(opacity=75);
  opacity: .75;
  z-index: 100002 !important;
  transition: all .3s
}

div#driver-highlighted-element-stage {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 300px;
  background: #fff;
  z-index: 100003 !important;
  display: none;
  border-radius: 2px;
  transition: all .3s
}

.driver-highlighted-element {
  z-index: 100004 !important
}

.driver-position-relative {
  position: relative !important
}

.driver-fix-stacking {
  z-index: auto !important;
  opacity: 1 !important;
  transform: none !important;
  -webkit-filter: none !important;
  filter: none !important;
  perspective: none !important;
  transform-style: flat !important;
  transform-box: border-box !important;
  will-change: unset !important
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

:root {
  box-sizing: border-box;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  position: relative;
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: calc(1em + 0.5rem);
  margin: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

#root {
  font-family: 'Barlow', sans-serif;
}

/* override mapbox css */
/* mapbox download link */
.ccus-mapbox-download-button:hover {
  background-color: #ffa188;
}

.ccus-mapbox-download-button {
  display: flex;
  justify-content: center;
  color: #fff;
  height: fit-content;
  width: 100%;
  padding: 10px;
  background-color: #ff6250;
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14),
    0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  font-size: 0.8rem;
  min-width: 64px;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  line-height: 1.75;
  border-radius: 4px;
  border: none;
  letter-spacing: 0.02857em;
  text-transform: uppercase;
  cursor: pointer;
}

.mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl {
  display: flex;
  border-radius: 0;
}

.mapboxgl-ctrl-group button + button {
  border-left: 1px solid #ddd;
}

.mapbox-popup > .mapboxgl-popup-tip {
  border-bottom-color: rgb(205, 215, 222);
}

.mapboxgl-popup-close-button {
  color: #ffa188;
}

.mapbox-popup > .mapboxgl-popup-content {
  background-color: rgba(42, 46, 73, 0.75);
  backdrop-filter: blur(20px);
  color: #fff;
}

.mapboxgl-popup-content p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05333em;
}

.mapboxgl-popup-content span {
  font-weight: 400;
  letter-spacing: 0.00938em;
}

.mapboxgl-popup-content div {
  padding-top: 10px;
  font-weight: 400;
  letter-spacing: 0.00938em;
}

.ccus-mapbox-info-panel {
  overflow: auto;
  max-height: 35vh;
  margin: 5px 0 0;
  padding: 5px 5px 0 0;
}

.ccus-mapbox-info-panel::-webkit-scrollbar {
  width: 0.875rem;
  scrollbar-width: 0.875rem;
  scrollbar-color: rgba(42, 46, 73, 0) rgba(42, 46, 73, 0);
}

.ccus-mapbox-info-panel::-webkit-scrollbar-track {
  box-shadow: none;
  border-radius: 10px;
  background-color: transparent;
}

.ccus-mapbox-info-panel::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: transparent;
}

.ccus-mapbox-info-panel:hover {
  scrollbar-color: rgba(205, 215, 222, 0.4) rgba(0, 0, 0, 0);
}

.ccus-mapbox-info-panel:hover::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25);
  background-color: rgba(205, 215, 222, 0.1);
}

.ccus-mapbox-info-panel:hover::-webkit-scrollbar-thumb {
  background-color: rgba(205, 215, 222, 0.4);
}

/* override dygraph css */
.dygraph-legend {
  position: absolute;
  display: flex;
  flex-direction: column;
  background-color: rgba(128, 128, 128, 0.9);
  padding: 5px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 11px;
  color: white;
  font-family: 'Barlow', sans-serif;
  z-index: 10;
  max-width: 35%;
}

.dygraph-label-rotate-right {
  top: 50px !important;
  left: -150px !important;
  transform: rotate(-90deg) !important;
  -webkit-transform: rotate(-90deg) !important;
  -moz-transform: rotate(-90deg) !important;
  -o-transform: rotate(-90deg) !important;
  -ms-transform: rotate(-90deg) !important;
}

.dygraph-legend-line {
  width: 15px;
  height: 15px;
  border-bottom: solid 10px;
  margin-right: 5px;
}

.dygraph-title {
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-weight: bold;
}

.dygraph-label,
.dygraph-axis-label {
  font-family: 'Barlow', sans-serif;
}

/* driver.js style */
div#driver-popover-item {
  display: none;
  position: absolute;
  background: #fff;
  color: #2d2d2d;
  margin: 0;
  padding: 15px;
  border-radius: 5px;
  min-width: 250px;
  max-width: 300px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  z-index: 1000000000;
}

div#driver-popover-item .driver-popover-tip {
  border: 5px solid #fff;
  content: '';
  position: absolute;
}

div#driver-popover-item .driver-popover-tip.bottom {
  bottom: -10px;
  border-color: #fff transparent transparent;
}

div#driver-popover-item .driver-popover-tip.bottom.position-center {
  left: 49%;
}

div#driver-popover-item .driver-popover-tip.bottom.position-right {
  right: 20px;
}

div#driver-popover-item .driver-popover-tip.left {
  left: -10px;
  top: 10px;
  border-color: transparent #fff transparent transparent;
}

div#driver-popover-item .driver-popover-tip.left.position-center {
  top: 46%;
}

div#driver-popover-item .driver-popover-tip.left.position-bottom {
  top: auto;
  bottom: 20px;
}

div#driver-popover-item .driver-popover-tip.right {
  right: -10px;
  top: 10px;
  border-color: transparent transparent transparent #fff;
}

div#driver-popover-item .driver-popover-tip.right.position-center {
  top: 46%;
}

div#driver-popover-item .driver-popover-tip.right.position-bottom {
  top: auto;
  bottom: 20px;
}

div#driver-popover-item .driver-popover-tip.top {
  top: -10px;
  border-color: transparent transparent #fff;
}

div#driver-popover-item .driver-popover-tip.top.position-center {
  left: 49%;
}

div#driver-popover-item .driver-popover-tip.top.position-right {
  right: 20px;
}

div#driver-popover-item .driver-popover-tip.mid-center {
  display: none;
}

div#driver-popover-item .driver-popover-footer {
  display: block;
  margin-top: 10px;
}

div#driver-popover-item .driver-popover-footer button {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #d4d4d4;
  text-decoration: none;
  text-shadow: 1px 1px 0 #fff;
  color: #2d2d2d;
  font: 11px / normal sans-serif;
  cursor: pointer;
  outline: 0;
  background-color: #f1f1f1;
  border-radius: 2px;
  zoom: 1;
  line-height: 1.3;
}

div#driver-popover-item .driver-popover-footer button.driver-disabled {
  color: grey;
  cursor: default;
  pointer-events: none;
}

div#driver-popover-item .driver-popover-footer .driver-close-btn {
  float: left;
}

div#driver-popover-item .driver-popover-footer .driver-btn-group,
div#driver-popover-item .driver-popover-footer .driver-close-only-btn {
  float: right;
}

div#driver-popover-item .driver-popover-title {
  font: 19px / normal sans-serif;
  margin: 0 0 5px;
  font-weight: 700;
  display: block;
  position: relative;
  line-height: 1.5;
  zoom: 1;
}

div#driver-popover-item .driver-popover-description {
  margin-bottom: 0;
  font: 14px / normal sans-serif;
  line-height: 1.5;
  color: #2d2d2d;
  font-weight: 400;
  zoom: 1;
}

.driver-clearfix:after,
.driver-clearfix:before {
  content: '';
  display: table;
}

.driver-clearfix:after {
  clear: both;
}

.driver-stage-no-animation {
  transition: none !important;
  background: transparent !important;
  outline: 5000px solid rgba(0, 0, 0, 0.75);
}

div#driver-page-overlay {
  background: #000;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: block;
  width: 100%;
  height: 100%;
  zoom: 1;
  filter: alpha(opacity=75);
  opacity: 0.75;
  z-index: 100002 !important;
  transition: all 0.3s;
}

div#driver-highlighted-element-stage {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 300px;
  background: #fff;
  z-index: 100003 !important;
  display: none;
  border-radius: 2px;
  transition: all 0.3s;
}

.driver-highlighted-element {
  z-index: 100004 !important;
}

.driver-position-relative {
  position: relative !important;
}

.driver-fix-stacking {
  z-index: auto !important;
  opacity: 1 !important;
  transform: none !important;
  -webkit-filter: none !important;
  filter: none !important;
  perspective: none !important;
  transform-style: flat !important;
  transform-box: border-box !important;
  will-change: unset !important;
}

.accordion-item {
  border: 1px solid #ccc;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 5px;
}

.accordion-header {
  font-weight: bold;
  cursor: pointer;
}

.accordion-body {
  margin-top: 10px;
  display: none;
}

.btn-toggle-more {
  background: none;
  border: none;
  color: blue;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 10px;
}
