@media (min-width: 992px) {
  .ui.top.fixed.menu .item.sidebar-button {
    display: none;
  }
}

@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .tablet-mobile-only {
    display: none !important;
  }
}

.ui.top.fixed.menu {
  background-color:#297453;
  height:22px;
}

.ui.top.fixed.menu .header .logo {
  width: 32px;
}

.ui.top.fixed.menu .item {
  padding-left: 0.8em;
  padding-right: 0.8em;
}

.ui.top.fixed.menu .dropdown.item .dropdown.icon {
  margin-left: 0.6em;
}

.ui.top.fixed.menu .ui.user-management.dropdown .menu {
  max-width: 300px;
}

.ui.top.fixed.menu .ui.user-management.dropdown .current-account-text {
  color: rgba(0,0,0,.5);
  margin-top: 0.2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui.top.fixed.menu .active-nav-section,
.ui.top.fixed.menu .active-nav-section:hover {
  color: #1b1c1d !important;
  background-color: #ffffff;
  border-radius: 5px 5px 0 0;
}

.ui.top.fixed.menu .org-name-dropdown {
  flex-shrink: 1;
  max-width: 220px; /* this number was carefully selected to make sure everything can fit on the top menu */
}

@media (max-width: 1120px) {
  .ui.top.fixed.menu .next-to-internal-menu.org-name-dropdown {
    max-width: 160px; /* this number was carefully selected to make sure everything can fit on the top menu */
  }
}

@media (max-width: 1060px) {
  .ui.top.fixed.menu .next-to-internal-menu.org-name-dropdown {
    max-width: 90px; /* this number was carefully selected to make sure everything can fit on the top menu */
  }
}

.ui.top.fixed.menu .org-name-dropdown .org-name {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topnav-spacer {
  height: 40px;
}

.subnav.menu {
  position: fixed;
  top: 40px; /* height of top menu */
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0;
  border-radius: 0;
  border-top: 0;
  /* hack to make the .subnav not stutter sometimes when scrolling in Chrome */
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  /* end hack *****************************************************************/
}

.subnav.menu .item,
.subnav.menu .item:first-child {
  border-radius: 5px;
  margin: 0.2em 0.1em;
}

.subnav.menu .item:before {
  content: none;
}

.subnav.menu .item.active-nav-section {
  /* copied from .ui.menu .active.item ****************************************/
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.95);
  font-weight: 400;
  -webkit-box-shadow: none;
  box-shadow: none;
  /* end copy *****************************************************************/
}

.subnav-spacer {
  /* this height corresponds to the computed height of the .subnav. this spacer
   * is what pushes down the contents of the page so that the floating/fixed .subnav
   * doesn't cover the content. */
  height: 40px;
}

.left.sidebar.menu .menu .disabled.item {
  color: rgba(255,255,255,.2) !important;
}

body > .ui.left.sidebar .menu .item {
  padding-top: 0.8em;
  padding-bottom: 0.8em;
}

.pushable > .pusher {
  /* This is done to avoid the situation where the .ui.top.fixed.menu gets hidden
   * when you elastic scroll (like when using the touchpad) up beyond the edge of
   * the page in iOS and Safari. I'm not sure what kind of weird effects it might
   * have, so if you discover that this CSS is causing major issues, you can safely
   * remove it because it is just a cosmetic fix.
   */
  overflow: visible;
}

.print-logo {
  display: none;
}

.page-content {
  position: relative;
  padding: 30px 20px;
}

.page-content .jump-links-container {
  display: none;
  position: fixed;
  width: 200px;
  word-wrap: break-word;
}

.page-content .jump-links-container .ui.menu {
  width: 100%;
  padding-right: 2.5em;
}

@media (min-width: 1200px) {
  .page-content.with-jump-links .jump-links-container {
    display: block;
  }

  .page-content.with-jump-links .main-content {
    margin-left: 200px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .page-content.with-jump-links,
  .page-content.with-jump-links + .page-footer {
    width: 1133px;
  }
}

@media (min-width: 1400px) {
  .page-content.with-jump-links,
  .page-content.with-jump-links + .page-footer {
    width: 1327px;
  }
}

.page-footer {
  padding: 1rem 20px;
}

.page-footer a {
  opacity: 0.6;
}

.page-content.ui.container,
.page-footer.ui.container {
  padding-left: 0;
  padding-right: 0;
}

.flashes-container.fluid {
  margin-left: 2em;
  margin-right: 2em;
}

code {
  border: 1px solid rgba(34,36,38,.15);
  border-radius: 4px;
  background-color: rgba(34,36,38,.03);
  color: #c7254e;
  padding: 0 2px;
  margin: 0 1px;
  word-wrap: break-word;
}

code.block {
  display: block;
  white-space: pre-wrap;
  margin: 1em 0;
  padding: 1em;
}

code.terminal.block {
  background-color: rgba(0,0,0,.87);
  color: #16ff45;
}

.help-target {
  display: inline-block;
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(0,0,0,.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ui.leo-standard.definition.table td:nth-child(1) {
  white-space: nowrap;
}

.ui.leo-standard.definition.table td:nth-child(2) {
  width: 60%;
}

td.wrapped-cell {
  word-break: break-all;
}

.dataTables_wrapper {
  margin: 1rem 0;
}

.dataTables_wrapper .ui.table th:not(.sorting_disabled) {
  cursor: pointer;
}

.dataTables_wrapper .ui.table th:focus,
.dataTables_wrapper .ui.pagination.menu .item.paginate_button:focus {
  outline: 0;
  background-color: #edeeef !important;
}

.dataTables_wrapper .ui.stackable.grid .row:first-child {
  padding: 1rem 0 0 0;
}

div.dataTables_wrapper .ui.stackable.grid div.row.dt-table {
  padding: 1rem 0;
}

.dataTables_wrapper .ui.stackable.grid .row:last-child {
  padding: 0 0 1rem 0;
}

@media (max-width: 767px) {
  .dataTables_wrapper .ui.stackable.grid {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
  }

  .dataTables_wrapper .ui.stackable.grid .row:first-child {
    padding: 1rem 0 0 0;
  }

  div.dataTables_wrapper .ui.stackable.grid div.row.dt-table {
    padding: 1rem 0;
  }

  .dataTables_wrapper .ui.stackable.grid .row:last-child {
    padding: 0 0 1rem 0;
  }

  .dataTables_wrapper .ui.stackable.grid > .row > .column {
    padding: 0 1rem !important;
  }
}

.ui.form .field.error .error {
  color: #9f3a38;
  margin-bottom: 0;
}

.ui.form .inline.field.error .error {
  display: block;
  font-weight: normal;
}

.ui.form .field .label-with-url {
  float: left;
}

.ui.form .field .field-url {
  float: right;
}

.ui.form .flask.select-multiple.field ul {
  list-style: none;
  padding-left: 1em;
  border: 1px solid rgba(34,36,38,.15);
  border-radius: .28571429rem;
  padding-top: 0.5em;
  margin-top: 0;
}

.ui.form .flask.select-multiple.field ul li {
  padding-bottom: 0.5em;
}

.clickable {
  cursor: pointer;
}

a.disabled {
  cursor: default;
  pointer-events: none;
  color: rgba(0, 0, 0, 0.5); /* TODO: better styling. no time right now. */
}

/**
 * .hidden is somewhat special in Semantic UI, and we will run into problems trying
 * to use the same class name, so don't do it.
 */
.leo-hidden {
  display: none !important;
}

.header-with-button-container {
  display: flex;
  align-items: center;
  margin: calc(2rem - .14285714em) 0 1rem; /* copied from .ui.header */
}

.header-with-button-container:first-child {
  margin-top: -.14285714em; /* copied from .ui.header */
}

.jump-link-target-wrapper .header-with-button-container,
.jump-link-target-wrapper .header-with-button-container:first-child {
  /* in this situation, .jump-link-target-wrapper will have the proper margins */
  margin-top: 0;
  margin-bottom: 0;
}

.header-with-button-container .ui.header {
  flex: 1 1 auto;
  margin-top: 0;
  margin-bottom: 0;
  align-self: flex-end;
}

.header-with-button-container .ui:not(.header) {
  flex: 0 0 auto;
  margin: 0 0 0 1em;
  align-self: flex-start;
}

.header-with-button-container .ui.dropdown {
  font-size: 1rem; /* this is necessary to undo the font size applied by .jump-link-target-wrapper */
}

.header-with-button-container .buttons {
  align-self: flex-start;
}

@media (max-width: 767px) {
  .header-with-button-container {
    flex-wrap: wrap;
  }
}

.full-window.page.dimmer .container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.full-window.page.dimmer .container .times.icon {
  position: absolute;
  top: 15px;
  right: 10px;
  color: #ffffff;
  cursor: pointer;
}

.full-window.page.dimmer .container > :not(.icon) {
  position: absolute;
  top: 50px;
  left: 50px;
  right: 50px;
  bottom: 50px;
  height: auto;
}

.flatpickr-day.selected {
  /* use the Semantic UI blue */
  background-color: #2185d0;
  border-color: #2185d0;
}

.flatpickr-day.selected:hover {
  /* use the Semantic UI hover blue */
  background-color: #1678c2;
  border-color: #1678c2;
}

.orbit-map-container {
  position: relative;
  height: 300px;
  border: 1px solid rgba(34, 36, 38, 0.15);
}

.full-window.page.dimmer .orbit-map-container {
  background-color: #ffffff;
}

.orbit-map-container iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border: none;
}

.orbit-map-container .buttons-container {
  position: absolute;
  display: flex;
  top: 0.5em;
  right: 0.5em;
}

.orbit-map-container .buttons-container > a,
.orbit-map-container .buttons-container > button {
  color: #666666;
  background-color: #ffffff;
  border: none;
  border-radius: 2px;
  box-shadow: 0px 1px 4px -1px rgba(0, 0, 0, 0.3);
}

.orbit-map-container .buttons-container .full-window-button {
  padding: 5px;
  cursor: pointer;
  outline: none;
}

.orbit-map-container .full-window-button .icon {
  margin: 0;
}

.orbit-map-container .orbit-visualization-view-link {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.9em;
  margin-right: 0.5em;
}

.orbit-map-container .orbit-visualization-view-link:hover {
  color: #666666;
}

.ui.fancy.table {
  /* table is initially hidden so there isn't a flash of un-fancified table before
   * the DataTable initializes. */
  display: none;
}

/**
 * Style the Highcharts exporting dropdown to be like Semantic UI's dropdowns.
 */
.highcharts-contextmenu .highcharts-menu {
  background: #fff !important;
  box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.15) !important;
  border: 1px solid rgba(34,36,38,.15) !important;
  border-radius: .28571429rem !important;
}

.highcharts-contextmenu .highcharts-menu hr {
  border: 0;
  border-top: 1px solid rgba(34,36,38,.1);
  height: 0;
  margin: .5em 0;
}

.highcharts-contextmenu .highcharts-menu .highcharts-menu-item {
  color: inherit !important;
  transition: none !important;
  background-color: transparent !important;
}

.highcharts-contextmenu .highcharts-menu .highcharts-menu-item:hover {
  background-color: rgba(0,0,0,.05) !important;
  color: inherit !important;
}

.highcharts-contextbutton,
.highcharts-reset-zoom {
  cursor: pointer;
}

.infinite.table {
  /* we initially hide the infinite table until we've loaded some data in it */
  display: none;
}

 /* all these sorting styles are taken from DataTables to match fancy tables */
.infinite.table th[data-sort] {
  position: relative;
  cursor: pointer;
  padding-right: 20px;
  user-select: none;
}

.infinite.table th[data-sort]::after {
  content: "\f0dc";
  color: #ddd;
  font-size: 0.8em;
  position: absolute;
  top: 12px;
  right: 8px;
  display: block;
  font-family: Icons;
}

.infinite.table th[data-sort-direction="asc"]::after {
  content: "\f0de";
  color: inherit;
  font-size: inherit;
}

.infinite.table th[data-sort-direction="desc"]::after {
  content: "\f0dd";
  color: inherit;
  font-size: inherit;
}

.infinite.table th[data-sort]:focus,
.infinite.table th[data-sort]:active {
  background-color: #edeeef;
}

.show-more-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-explanation {
  font-weight: normal;
  margin-left: 0.4em;
  font-size: 0.9em;
  color: rgba(0,0,0,0.6);
}

.jump-link-target {
  /* we set pointer-events: none to prevent it from covering and blocking clicks
   * to elements above the .jump-link-target. */
  pointer-events: none;
}

.jump-link-target * {
  pointer-events: auto;
}

/**
 * this is done to make the anchor jumps compensate for the two fixed bars at the
 * top of a page with jump links.
 * the top nav is 40px tall and add 20px of margin.
 * see https://css-tricks.com/hash-tag-links-padding/
 */
.jump-link-target::before {
  display: block;
  content: " ";
  margin-top: -60px;
  height: 60px;
  visibility: hidden;
}

.subnav + .page-content .jump-link-target::before {
  margin-top: -96px;
  height: 96px;
}

.jump-link-target-wrapper {
  margin: calc(2rem - .14285714em) 0 1rem; /* copied from .ui.header */
}

.jump-link-target-wrapper:first-child {
  margin-top: -.14285714em; /* copied from .ui.header */
}

.ric-uncertainty {
   color: rgba(0,0,0,.6);
   margin-left: 0.6em;
   font-size: 0.9em;
}

.deemphasized-text {
  color: rgba(0, 0, 0, 0.6);
}

.drilldown.table tbody td:not(:first-child) a:not(.button):not(.item):not(.normal-link) {
  color: rgba(0,0,0,.87); /* normal text color */
}

.drilldown.table tbody td:not(:first-child) a:not(.button):not(.item):not(.normal-link):hover {
  color: #1e70bf; /* normal link hover color */
}

.drilldown.table tbody td:first-child {
  width: 1%;
  white-space: nowrap;
}

.drilldown.table tbody td:first-child a {
  padding: 0 0.3em;
}

.ui.fancy.table thead th.sorting_disabled[data-column-filtering="true"] {
  padding-right: 25px;
}

.ui.fancy.table thead th.sorting_disabled[data-column-filtering="true"] .column-filtering.dropdown {
  position: absolute;
  top: 13px;
  right: 1px;
}

.ui.fancy.table thead th.sorting[data-column-filtering="true"],
.ui.fancy.table thead th.sorting_asc[data-column-filtering="true"],
.ui.fancy.table thead th.sorting_desc[data-column-filtering="true"] {
  padding-right: 40px;
}

.ui.fancy.table thead th.sorting[data-column-filtering="true"] .column-filtering.dropdown,
.ui.fancy.table thead th.sorting_asc[data-column-filtering="true"] .column-filtering.dropdown,
.ui.fancy.table thead th.sorting_desc[data-column-filtering="true"] .column-filtering.dropdown {
  position: absolute;
  top: 13px;
  right: 18px;
}

.ui.fancy.table thead th[data-column-filtering="true"] .column-filtering.dropdown i {
  color: #ddd;
}

.ui.fancy.table thead th[data-column-filtering="true"] .column-filtering.dropdown.filter-active i,
.ui.fancy.table thead th[data-column-filtering="true"] .column-filtering.dropdown:hover i {
  color: inherit;
}

.catalog-summary-stats {
  display: flex;
  flex-wrap: wrap;
}

.catalog-summary-stats .statistic {
  flex: 1 0 auto;
  margin-bottom: 0;
}

.ui.selection.dropdown.object-selector {
  cursor: default;
}

.object-selector .name-and-description-container {
  /* copied from .ui.search>.results .result */
  line-height: 1.33;
  /** end copy *******************************/
}

.object-selector.selection.dropdown .menu > .item {
  padding-top: .4rem !important;
  padding-bottom: .4rem !important;
}

.object-selector .menu .item .name {
  font-weight: bold;
}

.object-selector .menu .item .description {
  /* copied from .ui.search>.results .result .description */
  font-size: .92857143em;
  color: rgba(0,0,0,.4);
  /** end copy ********************************************/
}

.object-selector .menu > .message {
  white-space: normal;
}

.collection-manager .filter-checkboxes {
  margin-bottom: 1em;
}

.collection-manager .ui.checkbox {
  margin-right: 1em;
}

@media only screen and (max-width: 767px) {
  .radar-network.stackable.cards {
    margin-top: 0;
  }
}

.highcharts-tooltip-container {
  /* this is necessary so that the tooltip doesn't appear under the .pusher */
  z-index: 2;
}

.fleet-management-logo {
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.ui.loading.dropdown.api-key-selector-button:disabled {
  opacity: 1 !important;
}

.ui.loading.dropdown.api-key-selector-button > i.icon {
  /* for some reason, the icon gets made bigger for a .loading.dropdown which
   * causes the button height to change. so we just force it to be the height
   * for a normal .ui.button. */
  height: .85714286em !important; /* taken from .ui.button>.icon:not(.button) */
}

.miss-distance-breakdown.table td {
  padding: 0.2em 0.8em;
}

.miss-distance-breakdown.table td:first-child {
  background: none !important;
  width: 1%;
}

.miss-distance-breakdown.table .deemphasized-text {
  font-size: 0.85em;
  margin-left: 0.4em;
}

.very-compact.definition.table td {
  padding: .25em .7em;
}

.login-disabled-status:not(.has-linebreak) {
  margin-left: 0.3em;
}

.ui.form .three-and-half.wide.field {
  width: 21.875% !important;
}

.catalog-search-form .field > .ui.input + .ui.input,
.catalog-search-form .field > .date-time-picker + .date-time-picker {
  margin-top: 0.3em;
}

.catalog-search-form .fields .fields {
  /* Semantic UI incorrectly adds extra margin when there are nested .fields */
  margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .catalog-search-form.ui.form:not(.unstackable) .field .field:last-child {
    /* Semantic UI incorrectly adds extra margin when there are nested .field in mobile */
    margin-bottom: 0;
  }
}

.combined-hbr-breakdown .deemphasized-text {
  font-size: 0.85em;
  margin-left: 0.3em;
}

.internal.icon {
  color: #fbbd08;
}

.appended.internal.icon {
  margin-left: .42857143em;
}

.prepended.internal.icon {
  margin-right: .42857143em;
}

.internal.primary.button .internal.icon {
  color: #fbd308;
}

.internal.button .internal.icon {
  color: #fb9b08;
}

.internal.loading.button .internal.icon {
  color: inherit; /* this will make the icon property disappear when .loading is applied */
}

/*******************************************************************************
 ** hacks and workarounds
 ******************************************************************************/

/**
 * This is done so the toasts appear below the top menu. With jquery toast, you
 * can specify that it's top center but can't also specify an offset, so we just
 * hack around it.
 */
.jq-toast-wrap {
  top: 50px !important; /* top menu is 40px tall */
}

/**
 * Fixes bug in Semantic UI when using .angle.double.right as an icon inside a button.
 * The problem is that using the .right class adds unexpected styling.
 * Consider submitting to Semantic UI, but this exact selector may not be perfect.
 */
.ui.button:not(.icon)>.angle.double.right.icon:not(.button):not(.dropdown) {
  margin: 0 .42857143em 0 -.21428571em;
}

/**
 * Fixes bug in Semantic UI where the dropdown menu header's font size varies
 * with its parent's font size (em), such as when different sized buttons trigger
 * a dropdown menu. This is in contrast to the fact that the dropdown menu items
 * use rem. Seems weird that the items would use rem but the header em.
 * Consider submitting to Semantic UI.
 */
.ui.dropdown .menu > .header {
  font-size: .78571429rem;
}

/**
 * Works around bug in Semantic UI where nested tables are missing the horizontal row
 * dividers. This is due to the nested tables inheriting styling meant for its
 * parent. There is a PR with a fix scheduled for 2.3.2.
 * See https://github.com/Semantic-Org/Semantic-UI/pull/5410.
 */
.ui.table > tbody > tr > td {
  border-top: 1px solid rgba(34,36,38,.1) !important;
}
.ui.table > tbody > tr:first-child > td {
  border-top: none !important;
}

/**
 * Fixes bug in Semantic UI where in nested tables the left border of first sub-header is missing.
 */
.ui.celled.table > thead > tr:not(:first-child) > th:first-child {
  border-left: 1px solid rgba(34,36,38,.1);
}

/**
 * Fixes bug in Semantic UI where the loading icon inside a button isn't sized correctly
 * in certain situations. In particular, the loading icon seems designed to only really
 * work when the box-sizing is "border-box", but it doesn't apply that styling on the icon.
 * Instead, it inherits that value, so if the button is placed inside a container that
 * sets the box-sizing to something like "content-box", like the DataTable does, it won't
 * be sized correctly.
 */
.ui.loading.button::before,
.ui.loading.button::after {
  box-sizing: border-box;
}
