/*
 *   Copyright (c) 2022 Esri
 *   All rights reserved.

 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at

 *   http://www.apache.org/licenses/LICENSE-2.0

 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */
@page {
  size: auto;
  margin: 5mm;
}
/* Hide elements */
.calcite-shell-container,
#offscreenResults,
.esri-screenshot__offscreen-pop-up-container,
.esri-screenshot__offscreen-legend-container,
.esri-screenshot__screenshot-div,
.popover_components,
.esri-page__back-to-cover-page,
.esri-page__scroll-container,
.esri-page {
  display: none;
}

.print-container {
  width: 100vw;
  height: 100vh;
}

.print-title {
  margin: 0px;
  font-size: 18px;
  font-weight: 430;
  white-space: nowrap;
}
.print-title img {
  max-height: 50px;
  vertical-align: middle;
  margin: 0.5em;
}

.print-map-container {
  break-before: avoid;
  break-inside: avoid;
}
.print-map-container img {
  margin: 0 auto;
}

.print-map-components-container {
  padding: 1em;
}

/*.map-image-container {
  width: calc(100% - 5mm);
  float: none;
  break-after: always;
}*/
@media (orientation: landscape) {
  .map-image-container {
    break-after: page;
  }
}
@media (orientation: landscape) {
  .map-image-container {
    break-after: avoid;
  }
}
#printScalebar {
  margin-top: 0.5em;
  width: fit-content;
  margin-bottom: 1em;
}

.esri-scale-bar.esri-widget {
  opacity: 1;
  background: #fff;
}

.esri-scale-bar__label {
  color: #232323;
}

.esri-scale-bar__line {
  background: transparent;
}

.esri-scale-bar__label {
  color: #232323;
}

.esri-scale-bar__line--bottom:before,
.esri-scale-bar__line--bottom:after {
  display: none;
}

.popup-content {
  break-inside: avoid;
}

.esri-widget {
  background-color: #fff;
  color: #242424;
}

.esri-widget__table {
  break-inside: avoid;
  color: #232323;
}

/*.legend-container {
  max-width: 80%;
  height: fit-content;
}

.esri-legend {
  justify-content: space-evenly;
  margin-top: 1em;
}*/
.esri-legend__group-layer {
  break-inside: avoid;
}

.esri-legend__service {
  border: none;
}

.esri-legend,
.esri-widget__heading {
  color: #232323;
  border: none;
  background-color: #fff;
}

.instant-apps-header__logo-scale--m,
.instant-apps-header__logo-scale--m,
.instant-apps-header__logo-scale--m {
  display: none;
}
