/*
 * Application-wide styles. Propshaft serves every stylesheet in this directory
 * as its own file; ApplicationHelper#application_stylesheets links them in the
 * order the old Sprockets bundle had (the other files alphabetically, then this
 * one, then the vendor CSS), so the same rules keep winning.
 */
 .logo {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 20px;
}

.top-bar {
  background: #ff8b11;
  color: #fff;
  padding: 2rem;
  position: relative;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .user-dropdown {
  display: flex;
  align-items: center;
  position: relative;
  width: 14rem;
}

.top-bar .user-icon {
  margin-right: 10px;
  background-image: url("/assets/icons/account-circle-fill_2_white-8491d70b.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 99;
}

.company-section {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 3%; 
  justify-content: flex-start;
}

.top-bar .user-info-profile{
  margin-left: 10px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.top-bar .user-name{
  margin: 0;
  font-size: 17px;
  font-weight: bold !important;
}
.top-bar .user-role{
  margin-left: -15% !important;
  color: #e5f0ff;
  font-size: 15px;
}
.top-bar .dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 100px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  top: 110%;
  right: 0;
}

.top-bar .dropdown-content a,
.top-bar .dropdown-content .button_to button {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #000;
}
/* «Terminar sessão» is a form's button (layouts/application.html.erb): as wide as the links. */
.top-bar .dropdown-content .button_to button {
  width: 100%;
  text-align: left;
}
.top-bar .dropdown-content a:hover,
.top-bar .dropdown-content .button_to button:hover {
  background-color: #f1f1f1;
}
.top-bar .dropdown-content {
  display: none;
}

.top-bar .dropdown-content.show {
  display: block;
}

.user-dropdown {
  cursor: pointer;
}

.top-bar button {
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.top-bar button:hover {
  color: #ccc;
}

.top-bar .user-info-profile, .company-section {
  flex-wrap: nowrap;
}

.sidebar-nav .sidebar-brand {
  margin-bottom: 20px;
}

#page-content-wrapper {
  padding: 0px;
}

#page-container-fluid {
  padding: 0px;
}

.padding-left-0 {
  padding-left: 0px;
}

.padding-margin-0 {
  padding: 0;
  margin: 0;
}

.no-gutters-100 {
  margin-right: 0;
  margin-left: 0;
  width: 100%;
}

.form-columns {
  display: grid;
  grid-gap: 1rem;
}

@media (min-width: 768px) {
  .form-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .form-columns {
    grid-template-columns: repeat(1, 1fr);
    padding-left: 2em;
    padding-right: 2em;
  }
}

.top-bar .top-bar-image {
  background-image: url("/assets/e-lic_nav_bar_white-db9fca03.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 125px;
  height: 55px;
  padding-left: 48%;
  margin-left: 27%;
}

.top-bar .user-dropdown {
  display: flex;
  align-items: center;
  position: relative;
  width: 14rem;
}


.top-bar.small-container .user-dropdown {
  width: 45%;
  min-width: 140px;
  margin-right: -6%;
}

.top-bar.small-container .user-info-profile,
.top-bar.small-container .company-section {
  flex-wrap: nowrap;
}

.top-bar.small-container .user-name, 
.top-bar.small-container .user-company {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.pagination {
  display: flex;
  justify-content: center;
  max-height: 35px;
  text-align: center;
  margin-bottom: 0px;
  cursor: default; }
  .pagination a, .pagination span, .pagination em {
    padding: 0.2em 0.5em; }
  .pagination .disabled {
    color: #aaaaaa; }
  .pagination .current {
    font-style: normal;
    font-weight: bold;
    color: #ff0084; }
  .pagination a {
    border: 1px solid #dddddd;
    color: #0063dc;
    text-decoration: none; }
    .pagination a:hover, .pagination a:focus {
      border-color: #003366;
      background: #0063dc;
      color: white; }
  .pagination .page_info {
    color: #aaaaaa;
    padding-top: 0.8em; }
  .pagination .previous_page, .pagination .next_page {
    border-width: 2px; }
  .pagination .previous_page {
    margin-right: 1em; }
  .pagination .next_page {
    margin-left: 1em; }

.top-bar.small-container .user-icon {
  display: none !important;
}

.top-bar.small-container .top-bar-image {
  background-image: url("/assets/e-lic_logo_branco_sem_fundo_mini-00c048c4.png");
  width: 95px !important;
  height: 42px !important;
  margin-bottom: 1%;
  padding-left: 40%;
  margin-left: 14%;
}

.uppercase-text {
  text-transform: uppercase !important;
}

/* Styling for required fields */
label.required::after {
  content: '*';
  color: red;
  margin-left: 5px;
}

/* styling for slider checkbox */
.slider-checkbox {
  position: relative;
  width: 60px;
  height: 34px;
}

.slider-checkbox-input {
  display: none;
}

.slider-checkbox-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.4s;
}

.slider-checkbox-label:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

.slider-checkbox-input:disabled + .slider-checkbox-label {
  background-color: #ddd;
  cursor: default;
}

.slider-checkbox-input:disabled + .slider-checkbox-label:before {
  background-color: #aaa;
}

.slider-checkbox-input:checked + .slider-checkbox-label {
  background-color: #7CFC00;
}

.slider-checkbox-input:checked + .slider-checkbox-label:before {
  transform: translateX(34px);
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out; /* Adjust the transition duration and easing as needed */
}

#observations-show {
  padding-left: 15px;
  padding-right: 15px;
}

.row.justify-content-center.my-5.border.rounded.no-gutters-100.bg-light {
  background-color: #e6e6e6 !important;
}

.dropdown-button::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid white; /* You can change the color to match your design */
  margin-left: 5px; /* Adjust the margin as needed to position the arrow */
}

.dropdown-button-black::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid black;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.dropdown-button-black {
  padding-right: 16px;
}

.select2-container--default .select2-selection--single {
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  height: calc(1.5em + 0.75rem + 2px) !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important ;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 26px;
  position: absolute;
  top: 17% !important;
  right: 1px;
  width: 20px;
}

.no-wrap {
  white-space: nowrap;
}

#wrapper {
  overflow-x: hidden;
}

.admin-widget-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
  margin: 3% 5%;
}

.admin-widget {
  background-color: #eff1f5;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  padding: 10px;
  text-align: center;
}

.admin-widget-span2 {
  grid-column: span 2;
}

.admin-widget-span3 {
  grid-column: span 3;
}

.admin-widget-span6 {
  grid-column: span 6;
}

#admin-licence-widget {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
}

#admin-licence-widget-text {
  vertical-align: center;
  align-items: center;
  display: inline-flex;
  margin: 0px auto;
  grid-column: span 4;
}

#admin-licence-widget-text > .border-inner-div {
  border-left: 2px solid #cecece;
  height: 70%;
  width: 2px;
  margin: 15% 10px;
}

#admin-licence-widget-graph {
  grid-column: span 6;
}

.graph-widget {
  max-height: 175px;
}

@media (max-width: 768px) {
  .admin-widget-container {
    grid-template-columns: 1fr;
  }

  .admin-widget {
    grid-column: span 1;
  }

  .graph-widget {
    max-height: 250px;
  }

  #admin-licence-widget {
    grid-template-columns: 1fr;
  }

  #admin-licence-widget-text {
    margin: 0px auto;
  }
}

.breadcrumbs-div {
  min-height: 40px;
}

.no-margin {
  margin: 0;
}

.top-margin-20 {
  margin-top: 20px;
}

.widget-button {
  width: 50px;
  height: 50px;
  font-weight: bolder !important;
  font-size: 25px !important;
}

.admin-data-list {
  max-height: 100px;
  overflow-y: auto;
}

.dashboard-selector-div {
  padding-top: 3px;
  position: relative;
}

.dashboard-selector-div > .border-inner-div {
  border-bottom: 2px solid #cecece;
  width: 70%;
  margin: 7px 15%;
}

.hidden {
  display: none;
}

.pointer {
  cursor: pointer;
}

.report-option {
  display: inline-block !important;
}

.margin-bottom-0 {
  margin-bottom: 0 !important;
}

.report-option[type="checkbox"]:checked {
  accent-color: #eb6200 !important;
}

.report-option[type="radio"]:checked {
  accent-color: #eb6200 !important;
}

.link-faded {
  color: #D68C57;
  text-decoration: underline;
}
.link-faded:hover {
  background-color: transparent;
  color: #FE6A00;
  font-weight: bold;
  text-decoration: underline;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

.bold {
  font-weight: bold;
}
