@import './variaveis-de-estilo.scss';
@import './tooltip-style.scss';

@import '~@fortawesome/fontawesome-pro/css/all.min.css';  // FontAwesome Pro
@import '~bootstrap-css-only/css/bootstrap.min.css'; // Bootstrap

html, body { height: 100%; }
body { margin: 0; }

body,
.mat-sidenav-content,
.doc-drawer-side-content,
.mat-drawer-container
{
  background-color: $cinza-mais-escuro;
}

.content-wrapper {
  background-color: $cinza-mais-escuro !important;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: $cinza-claro;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: $cinza;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: $cinza-escuro;
}

body, .distance-legend-label, input  {
  font-family: "Arial","Helvetica Neue",Arial,Helvetica,sans-serif, monospace !important;
  font-size: 12px !important;
}

.btn {
  font-size: 14px !important;
}

@media (max-width: 1600px) {
  body, tooltip, .form-group label {
    font-size: 9px !important;
  }

  .btn, .card-header .card-title {
    font-size: 12px !important;
  }

}

.main-side-nav-content .mat-expansion-panel {
  border-radius: 0px;
}

.apolo-icon {
  background-image: url('./imgs/apolo-small.png');
}

.md-icon {
  background-image: url('./imgs/logo-md.png');
}

.sisgeodef-icon {
  background-image: url('./imgs/logo-sisgeodef.png');
}

.marca-sisgeodef-icon {
  background-image: url('./imgs/marca-sisgeodef.png');
}

.md-icon {
  background-image: url('./imgs/logo-md.png');
}

.circle-area-icon {
  background-image: url('./imgs/icons_circle-area.svg');
}

.polygon-area-icon {
  background-image: url('./imgs/icons_polygon-area.svg');
}

.square-area-icon {
  background-image: url('./imgs/icons_square-area.svg');
}

.graphics-icon {
  background-image: url('./icons/graphics.svg');
}

.windrose-icon {
  background-image: url('./icons/windrose.svg');
}

.two-d-icon {
  background-image: url('./icons/2d.svg');
}

.three-d-icon {
  background-image: url('./icons/3d.png');
}

.legend-icon {
  background-image: url('./icons/legend.svg');
}

.settings-icon {
  background-image: url('./icons/settings.svg');
}

.draw-line-icon {
  background-image: url('./icons/line.svg');
}

.draw-ellipse-icon {
  background-image: url('./icons/ellipse.svg');
}

.flex-span {
  flex: 1 1 auto;
}

$dark-color: #1a2226;
$nav-font-color: #b8c7ce;

@mixin md-icon-size($size: 20px) {
  font-size: $size;
  height: $size;
  width: $size;
  line-height: $size;
}

@mixin base-document-type-icon($size: 1.1px, $color: #ccc) {
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 14.5px 12.5px;
  width: 17.5px;
  height: 18px;
  background-position: center;
  display: inline-block;
}

.doc-type-text {
  background-image: url('./imgs/text.ico');
  @include base-document-type-icon();
}

.doc-type-spreadsheet {
  background-image: url('./imgs/spreadsheet.ico');
  @include base-document-type-icon();
}

.doc-type-presentation {
  background-image: url('./imgs/presentation.ico');
  @include base-document-type-icon();
}

.leaf-folder {
  @include base-document-type-icon();
}

.example-tree-invisible {
  display: none;
}

.toolbar:not(.primary) span,
.card-header .card-title,
.toolbar:not(.primary) label,
.main-header label,
.card-header .navbar-brand,
.modal-header  {
  font-size: 14px;
  line-height: 16px;
  color: #747474;
  font-weight: bold;
  font-style: normal;
}

.card-header .navbar {
  padding: 0;
}

.card-header .btn-primary {
  color: white;
}

.btn-primary {
  background-color: $azul !important;
  border-color: $azul !important;
}

.card-header .card-subtitle {
  margin-top: 8px !important;
  color: rgba(0, 0, 0, 0.54);
}

.table {
  margin-top: 10px;
  border: 1px solid $cinza;
  box-sizing: border-box;
  border-radius: 4px;
  thead {
    background: $cinza-claro;
    th {
      font-weight: bold !important;
      color: $cinza-escuro !important;
    }
  }
  thead,
  td,
  td:first-of-type,
  th:first-of-type {
    padding-left: 10px;
  }
  tbody {
    border-bottom-width: 0;
  }
  tbody:nth-child(odd), tbody tr:nth-child(odd) {
    background: $azul-mais-claro !important;
  }
  tbody:nth-child(even), tbody tr:nth-child(even) {
    background: $branco !important;
  }
  thead th:not(:last-child), tbody td:not(:last-child), tbody tr td:not(:last-child) {
    border-right: 1px solid $azul-claro;
  }
  td {
    padding: 0.25rem;
    vertical-align: middle !important;
  }

}

.table-sm td, .table-sm th {
  padding: .15rem .3rem !important;
}

.card-header {
  height: auto !important;
  padding: .5rem .75rem !important;
}

tooltip {
  font-size: 12px !important;
}


.card-header .card-title {
  font-size: 14px;
  font-weight: bold;
}

$btn-acoes-size: 20px;

.column-acoes {
  max-width: 85px;
  vertical-align: top !important;

  a, button {
    color: white;
  }

  .btn:active, .btn:focus {
    box-shadow: none !important;
  }

  .btn:not(:last-of-type) {
    margin-right: 11px;
  }

  .btn {
    padding: 0;
    width: $btn-acoes-size;
    height: $btn-acoes-size;
    display: inline-block !important;
    vertical-align: middle !important;
    span, i {
      width: $btn-acoes-size;
      height: $btn-acoes-size;
      padding-top: 3px;
      font-size: 14px;
      color: white;
      display: block;
    }

    .fa-pencil, .fa-users {
      background: #E6930E;
    }

    .fa-times {
      background: #B64343;
      font-size: 16px;
      padding-top: 1px;
    }

    .fa-chevron-right, .fa-file, .fa-book-open {
      background: $azul;
    }

    .fa-book-open {
      font-size: 12px;
    }
  }

}

.card-header .row {
  margin: 0;
}

.accordion .card-header .btn {
  padding: 0;
}

i.calendar {
  font-family: "FontAwesome";
  content: "\f073";
  font-weight: 900;
  color: $preto;
}

.table > thead > tr > th {
  border-top: inherit !important;
}

.card-footer .btn, .modal-footer .btn {
  margin-left: 3px;
}

.card-footer {
  padding: 0.5rem !important;
}

.accordion .card {
  overflow: visible !important;
}

.toggle-children-wrapper-collapsed
.toggle-children,
.leaf-folder {
  background-image: url('./imgs/folder-solid.svg');
  background-repeat: no-repeat;
}

.toggle-children {
  width: 13.5px;
  height: 10px;
}



.toggle-children-wrapper-expanded
.toggle-children {
  background-image: url('./imgs/folder-open-solid.svg');
  transform: none;
}

td a.btn-icon-only {
  padding: 0;
}

.node-wrapper .btn {
  padding: 0 0.25rem;
}

.opened .fas {
  transform: rotate(180deg);
}

.accordion.no-padding .card-body {
  padding: 0;
}

.header-right-section *:not(:last-child) {
  margin-right: 10px;
}

.accordion.white-header .card-header {
  background-color: white;
}

.accordion.white-header .card-header {
  background-color: white;
}

.card-disabled .card-header {
  background-color: $cinza-claro !important;
  * {
    color: $cinza;
  }
}

.accordion.light-blue-header .card-header {
  background-color: $azul-claro;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
  padding-top: 7px;
  padding-bottom: 7px;
  .card-title {
    color: $azul;
  }
}

.btn-link {
  color: $azul;
}

.card.main-card {
  height: calc(100vh - 48px);
  border-radius: 0;
}

.sidebar-toggle.btn.focus {
  box-shadow: none !important;
}

.btn-no-outline.btn:focus {
  outline: none;
  box-shadow: none;
}

.form-group label {
  font-weight: bold;
  font-size: 12px;
  line-height: 14px;
  color: #474747;
  margin: 0 10px .5rem;
}

.btn-outline-primary {
  color: $azul !important;
  border-color: $azul !important;
}

.btn-outline-primary:hover {
  color: white !important;
  background-color: $azul !important;
}

.btn.btn-app i {
  display: block;
  color: $cinza-escuro;
  font-size: 30px;
}

.btn-toolbar .btn-group .btn-app {
  margin-bottom: 0;
  height: auto;
  border: none;
  background-color: inherit;
}

.node-wrapper .btn:not(.text-danger) .fas {
  color: $cinza-escuro;
}

.bkg-primary {
  background-color: $azul !important;
}

.text-custom-primary {
  color: $azul !important;
}

.btn.bkg-primary, .btn.bkg-primary i {
  color: white;
}

.btn-group-margin > *:not(:last-child) {
  margin-right: 10px;
}

.btn-group-margin .btn-sq-lg {
  border-radius: 4px !important;
}

.btn-sq-lg {
  width: 120px !important;
  height: 120px !important;
  span {
    text-align: justify;
    font-weight: 700;
    line-height: 13.8px;
    font-size: 12px;
  }
  i {
    margin-bottom: 3px;
    display: block;
  }
  i::after {
    content: '\a';
    white-space: pre;
  }
}

.btn:hover i {
  color: #212529;
}

.form-rounded {
  border-radius: 15px !important;
}

.page-item.active .page-link {
  background-color: $azul !important;
  border-color: $azul !important;
}

th[sortable] {
  cursor: pointer;
}

th[sortable]::before {
  font-family: "FontAwesome";
  font-weight: normal;
  color: black;
  display: block;
  float: left;
  margin-right: 0.5rem;
}

th[sortable].asc::before {
  content: "\f0d8";
}

th[sortable].desc::before {
  content: "\f0d7";
}

th[sortable]::before {
  content: "\f0dc";
}

.zoom-area-icon {
  background-image: url('./imgs/zoom-area-icon.png');
}

.brazil-icon {
  background-image: url('./imgs/brazil-icon.png');
}

.my-location-icon {
  background-image: url('./imgs/my-location-icon.png');
}

.nadir-icon {
  background-image: url('./imgs/nadir-icon.png');
}

.bus-icon {
  background-image: url('./imgs/departure_board.png');
}

.question-icon {
  background-image: url('./imgs/question-icon.png');
}

.undo-icon {
  background-image: url('./imgs/undo-icon.png');
}

.btn-app-png {
  align-items: center !important;
  flex-direction: column !important;
  display: flex !important;
  span {
    text-align: center !important;
  }
}

@mixin btn-app-background {
  filter: invert(60%) sepia(2%) saturate(91%) hue-rotate(128deg) brightness(89%) contrast(84%) !important;
  margin-left: 0 !important;
}

.aviso-radio-icon {
  background-image: url('./icons/aviradio-noborder.png');
  @include btn-app-background();
}

.buffer-icon {
  background-image: url('./icons/buffer-icon.png');
}

.cormet-icon {
  background-image: url('./imgs/cormet.png');
  @include btn-app-background();
}

.plataforma-icon {
  background-image: url('./icons/plataforma-noborder.png');
  @include btn-app-background();
}

.metoc-icon {
  background-image: url('./icons/metoc-noborder.png');
  @include btn-app-background();
}

.pcn-icon {
  background-image: url('./icons/pcn-noborder.png');
  @include btn-app-background();
}

.custom-icon {
  background-size: 20px;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: center;
}

.distance-legend {
  margin-left: 60px;
  border: none !important;
  background-color: $azul !important;
  border-radius: 0 !important;
  height: 25px !important;
  bottom: 20px !important;
  left: 0px !important;
}

.sidebar-open .distance-legend{
  left: $sidebar-width !important;
}

.distance-legend-label {
  font-size: 11px !important;
  font-weight: bold !important;
  line-height: 0 !important;
  color: $branco !important;
}

.distance-legend-scale-bar {
  height: 9px !important;
  top: 10px !important;
  border-color: $branco;
}

.form-check-input {
  height: 1.5rem !important;
}

.accordion > .card > .card-header {
  padding: .35rem .75rem;
}

.accordion > .card .card-body {
  padding: .25rem;
}

#canvasSimbolo {
  display: none;
  background-color: white;
}

.btn.focus, .btn:focus {
  box-shadow: none !important;
}

.ngb-dp-day, .ngb-dp-week-number, .ngb-dp-weekday {
  width: 1.75rem !important;
  height: 1.75rem !important;
}

.ngb-dp-month-name {
  height: 1.75rem !important;
  line-height: 1.75rem !important;
}

.invalid-feedback {
  display: flex !important;
}

.tooltip {
  z-index: 30000;
}

.form-control-sm {
  height: calc(1.25em + .5rem + 2px) !important;
}

.card-title {
  font-weight: bold;
  color: $cinza-escuro !important;
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
  i {
    cursor: pointer !important;
  }
}

.rotating-icon {
  animation: rotation 2s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

.success {
  background-color: $verde;
}

.error {
  background-color: $vermelho-escuro;
}

.info {
  background-color: $azul;
}

.warning {
  background-color: $amarelo;
}

.yellow {
  background-color: $amarelo;
}

.red {
  background-color: $vermelho-escuro;
}

.blue {
  background-color: $azul;
}

.green {
  background-color: $verde;
}

.grey {
  background-color: $cinza-claro;
}

.white {
  background-color: $branco;
}

.width100 {
  width: 100%;
}
