@import url("https://fonts.googleapis.com/css?family=Poppins");

.search-results-container {
  position: relative;
  width: 100%;
  overflow: auto;

  /* padding: 0 17px 0 0; */
  /* box-sizing: content-box; */
  /* bottom: -1px; */
  border-radius: 0 0 11px 11px;
  border-top: 1px solid var(--table-border-color);
}

.search-results-container.scroll-map {
  /* border-top: none; */
}

.search-results-table {
  width: 100%;
  height: 100%;
  background: var(--table-sec-background);
  border-spacing: 0;
  overscroll-behavior-x: none;
}

.search-results-table:not(.scrolled-y),
.search-results-table.hasNotes {
  border-bottom: 1px solid var(--table-border-color);
}

.search-results-table th {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.125em;
  color: var(--text-color);
  background-color: var(--table-sec-background);
  height: 100%;
  padding: 5px;
}

.search-results-table thead {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 12;
  background: var(--color-white);
  border-bottom: 1px solid var(--table-border-color);
}

.search-results-table thead tr:first-child th:first-child {
  position: sticky;
  z-index: 3;
  left: 0;
  /*background: var(--color-white);*/
  background-color: var(--table-sec-background);
}

.search-results-table thead .asset-content {
  z-index: 5;
  transform: translateZ(0);
}

.search-results-table thead tr:first-child th:first-child:after {
  content: none;
}

.search-results-table tbody td:first-child {
  position: sticky;
  z-index: 11;
  left: 0;
  background-color: var(--color-white);
}

/* .signIn-modal-active .search-results-table thead tr,
.signIn-modal-active .search-results-table thead tr th, */
.signIn-modal-active .search-results-table tbody td:first-child {
  overflow: hidden;
}

.signIn-modal-active .search-results-table thead {
  background-color: unset;
}

.signIn-modal-active thead.large-height::before {
  overflow: hidden;
}

.search-results-table thead .bottom-shadow,
.search-results-table thead tr:last-child>th {
  position: relative;
}

.search-results-table thead:before {
  content: "";
  background: linear-gradient(180deg,
      var(--thead-scroll-gradient-prim) 0%,
      var(--thead-scroll-gradient-sec) 100%);
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: var(--custom-thead-height);
  height: 23px;
  pointer-events: none;
  opacity: 0;
  transition: all 300ms ease-in-out;
  /* border-top: 1px solid var(--table-border-color-dark); */
}

.safari-only .search-results-table thead:before {
  border-top: 1px solid var(--table-border-color-dark);
}


/* -- AlexS March 16 -- top shadow -- */

/* .search-results-table thead.fleet:before {top: 57px;  }
  .search-results-table thead.contacts:before {top: 57px;}
  .search-results-table thead.reserves:before {top: 67px; }
  .search-results-table thead.resources:before {top: 67px; }
  .search-results-table thead.production:before {top: 67px; }
  .search-results-table thead.pipelines:before 	{top: 90px;  }
  .search-results-table thead.mining:before 	{top: 100px;  }
  .search-results-table thead.timeline:before 	{top: 116px;  }  
  .search-results-table thead.projects:before 	{top: 144px; } 
  .search-results-table thead.projects-small:before	{top: 158px; }   
  .search-results-table thead.costs:before 		{top: 167px;  }
  .search-results-table thead.alerts:before 	{top: 139px; }  */


.search-results-table.scrolled-y .tippy-wrap {
  z-index: 1;
}

.search-results-table.scrolled-x:not(.scrolled-y) td:first-child,
.search-results-table.scrolled-x:not(.scrolled-y) tr:first-child th:first-child {
  z-index: 13 !important;
}


@media screen and (min-width: 1919px) {
  .search-results-table thead.large-height:before {
    top: 54px;
  }

  /* -- AlexS March 16 -- */
  /* .search-results-table thead.fleet:before {top: 57px;  }
  .search-results-table thead.contacts:before {top: 57px;  }
  .search-results-table thead.reserves:before {top: 67px; }
  .search-results-table thead.resources:before {top: 67px; }
  .search-results-table thead.production:before {top: 67px;  } 
  .search-results-table thead.pipelines:before 	{top: 90px;  }
  .search-results-table thead.mining:before 	{top: 100px;  }
  .search-results-table thead.timeline:before 	{top: 116px;  }  
  .search-results-table thead.projects:before 	{top: 144px; }
  .search-results-table thead.projects-small:before	{top: 158px; }   
  .search-results-table thead.costs:before 		{top: 167px; } 
  .search-results-table thead.alerts:before 	{top: 139px; } */

}

/* -- AlexS Aug 15 -- */
@media screen and (max-width: 1918px) {
  /* .search-results-table thead.contacts:before {top: 85px;  }
  .search-results-table thead.reserves:before {top: 67px; } */
}

@media screen and (max-width: 1148px) {
  /* .search-results-table thead.reserves:before {top: 47px; }
  .search-results-table thead.resources:before {top: 80px; } */
}

.search-results-table thead:after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  opacity: 0;
  background: var(--table-border-color-dark);
}

.scrolled-y thead:after {
  opacity: 1;
}

.scrolled-y thead:before {
  opacity: 1;
  transition: all 300ms ease-in-out;
}

.search-results-table tr:first-child th:first-child:after,
.search-results-table thead tr:first-child th:first-child:after,
.search-results-table tbody tr td:first-child:after {
  content: "";
  background: linear-gradient(90deg,
      var(--thead-scroll-gradient-prim) 0%,
      var(--thead-scroll-gradient-sec) 100%);
  position: absolute;
  top: -1px;
  bottom: 0;
  left: 100%;
  width: 0px;
  pointer-events: none;
  transition: all 300ms ease-in-out;
  z-index: 2;
}

.ps--active-x .scrolled-x tr:first-child th:first-child:after,
.ps--active-x .scrolled-x thead tr:first-child th:first-child:after,
.ps--active-x .scrolled-x tbody tr td:first-child:after {
  width: 24px;
  transition: all 300ms ease-in-out;
}

.search-results-table tbody tr:nth-child(2n) td:first-child {
  background-color: var(--table-sec-background);
}

.search-results-table th:not(:last-child),
.search-results-table tbody td:not(:last-child) {
  border-right: 1px solid var(--table-border-color);
}

.search-results-table th[colspan],
.search-results-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid var(--table-border-color);
}

.search-results-table th,
.search-results-table td {
  text-align: center;
  vertical-align: middle;
}

.search-results-table tbody tr:first-child td {
  border-top: 1px solid var(--table-border-color);
}

th.rotated {
  vertical-align: middle;
  text-align: center;
}

th.primary-bg {
  background-color: var(--table-primary-background);
}

th.secondary-bg {
  background-color: var(--table-secondary-background);
}

th.purple-bg {
  background-color: var(--table-purple-background);
}

th.green-bg {
  background-color: var(--table-green-background);
}

th.gray-bg {
  background-color: var(--table-gray-background);
}

th.year {
  padding: 27px 19px;
}

.search-results-table tbody tr {
  background-color: var(--color-white);
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3125em;
  color: var(--text-color);
}

.search-results-table tbody tr:nth-child(2n) {
  background-color: var(--table-sec-background);
}

.asset {
  margin: auto;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.owner-content {
  vertical-align: middle;
}

.owner-content .asset {
  text-align: start;
}

.search-results-table thead tr:first-child th.asset-content:first-child {
  padding: 0;
}

.asset-content {
  vertical-align: top;
}

.asset-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.asset-label {
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
}

.phone-label {
  padding: 6px 0;
  display: flex;
  position: relative;
  left: -2px;
}

.shaft-label {
  padding: 6px 4px;
  display: flex;
  justify-content: space-between;
  position: relative;
  float: right;

}

.asset-label div {
  display: flex;
  align-items: center;
}

.asset-label .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.asset-label .flag {
  position: relative;
  margin-right: 12px;
  border-radius: 50%;
  min-width: 24px;
  min-height: 24px;
}

.asset-label .flag.multi-operation,
.asset-label .flag.single-operation {
  overflow: visible;
}

.asset-label .flag.multi-operation:before,
.asset-label .flag.single-operation:before {
  position: absolute;
  content: "";
  top: 14px;
  left: 14px;
  display: block;
  width: 12px;
  height: 12px;
  background-color: #fafafa;
  background-position: center;
  border-radius: 50%;
  border: 1px solid var(--header-mobile-nav-bg-color);
  -webkit-print-color-adjust: exact !important;
}

.asset-label .flag.single-operation:before {
  background-image: url("/img/icons/singleoperation.svg");
}

.asset-label .flag.multi-operation:before {
  background-image: url("/img/icons/multiopertion.svg");
}

.asset-label .icon img {
  width: 100%;
  height: 100%;
}

.asset-label a {
  text-decoration: none;
  font-size: 14px;
  font-family: "Poppins";
  font-weight: 500;
  color: var(--text-color);
}

td:not(.asset-label) {
  vertical-align: middle;
  text-align: center;
}

td .asset-label {
  text-align: left;
}

.marker span {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
}

.marker .warning {
  background-color: var(--marker-warning);
}

.marker .success {
  background-color: var(--marker-sucess);
}

.marker .danger {
  background-color: var(--marker-danger);
}

.marker .info {
  background-color: var(--marker-info);
}

.locked {
  filter: blur(4px);
  opacity: 0.5;
  user-select: none;
}

.safari-only .locked {
  /* safari left smoothing */
  padding: 5px 10px;
  margin-left: -10px;
}

.sub-rows-content {
  font-family: "Poppins";
  font-style: normal;
  font-size: 12px;
  line-height: 20px;
  text-align: left;
}

.sub-rows-content.linked-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sub-rows-content div,
.sub-rows-content li {
  padding: 5px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marker .sub-rows-content div {
  height: 32px;
  width: 32px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.sub-rows-content.description li {
  height: 40px;
  white-space: normal;
  text-overflow: ellipsis;
}

.sub-rows-content div:not(:last-child),
.sub-rows-content li:not(:last-child) {
  border-bottom: 1px solid var(--table-border-color);
}

.nowrap-text {
  display: inline-block;
  white-space: nowrap;
}

/*[class*="col-"] {*/
/*span#MainBody_Contacts_GridViewSample_lblPhone_1*/
span[id*="MainBody_Contacts_GridViewSample_lblPhone_"] {
  padding: 0 12px;
}

.table-text {
  display: inline-block;
  padding: 0 12px;
}

.mailto-links li {
  padding: 0 12px;
}

.search-results-table th.rotated:last-child {
  border-right: none;
}

#commodityOptions-menu div.ui-menu-item-wrapper,
#yearsOptions-menu div.ui-menu-item-wrapper {
  font-size: 12px;
  text-align: center;
}

.search-results-table tr:hover {
  /* background-color: var(--table-background-hover-color) !important; */
}

.search-results-table tr:hover td {
  background-color: var(--table-background-hover-color) !important;
}

#export_buttons_modal,
#export_buttons_modal_mobile,
#export_buttons_mining_modal {
  position: absolute;
  display: none;
  border-radius: 8px;
  padding: 6px;
  margin-top: 4px;
  border: none;
  box-shadow: 0 0 9px rgba(0, 0, 0, 0.1);
  top: 30px;
  background-color: var(--color-white);
  cursor: auto;
}

#export_buttons_modal_mobile,
#export_buttons_mining_modal {
  z-index: 100;
  left: 10px;
  top: 38px;
}

#export_buttons_modal.open_modal,
#export_buttons_modal_mobile.open_modal,
#export_buttons_mining_modal.open_modal {
  display: block;
}

#export_buttons_modal div,
#export_buttons_modal_mobile div,
#export_buttons_mining_modal div {
  display: flex;
  font-size: 12px;
  font-family: 'Poppins';
  align-items: center;
  padding: 6px 8px;
  font-weight: 400;
  border-radius: 8px;
  border: none;
}

#export_buttons_modal div:hover,
#export_buttons_modal_mobile div:hover,
#export_buttons_mining_modal div:hover {
  background-color: var(--table-border-color);
  cursor: pointer;
}

#export_buttons_modal div img,
#export_buttons_modal_mobile div img,
#export_buttons_mining_modal div img {
  margin-right: 6px;
}

.alertTrigger {
  display: none!important;
}

.alertTriggerCreate {
  display: flex !important;
}

.alertTriggerRemove {
  display: none !important;
}

.alertTrigger[data-remove] {
  pointer-events: none;
}

.alertTrigger[data-remove] .alertTriggerCreate {
  display: none !important;
}

.alertTrigger[data-remove] .alertTriggerRemove {
  display: flex !important;
}

@media screen and (max-width: 1919px) {
  th.rotated {
    vertical-align: bottom;
  }

  th.rotated span {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    white-space: normal;
  }

  .search-results-table tbody tr {
    font-size: 12px;
  }
}

/* @media screen and (max-width: 768px) { */
@media screen and (max-width: 1150px) {

  /* @media screen and (max-width: 1200px) { */
  .search-results-container {
    border-radius: 12px;
  }

  .sub-rows-content {
    font-size: 11px;
  }

  tbody td {
    max-width: 76px;
  }

  tbody td:first-child {
    max-width: 90px;
  }

  tbody td span {
    display: inline-block;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  tbody td span::after {
    content: '';
    display: block;
  }

  .asset-label div {
    max-width: 100%;
  }

  .asset-label .flag {
    flex-shrink: 0;
    margin-right: 8px;
  }

  .asset-label {
    /* flex-wrap: wrap;
    justify-content: center;
    gap: 4px; */
  }

  .asset-label .mobile-tooltip>a {
    pointer-events: none;
  }

  .label-locked,
  .label-alert {
    display: inline-block;
    width: 25px;
  }

  .safari-only .label-locked {
    /* safari left smoothing */
    padding: 5px;
    margin-left: -5px;
    width: 30px;
  }
}