@import url("https://cdn.datatables.net/1.10.20/css/jquery.dataTables.css");
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

.custom-table {
    border-collapse: collapse; /* Collapse borders */
    width: 100%; /* Full-width */
    border: 1px solid #ddd; /* Add a grey border */
    font-size: 18px; /* Increase font-size */
}
  
.custom-table th, .custom-table td {
    text-align: left; /* Left-align text */
    padding: 12px; /* Add padding */
}

.custom-table tr {
    /* Add a bottom border to all table rows */
    border-bottom: 1px solid #ddd;
}

.custom-table th {
    color: #fff !important;
}

.custom-table tr.header {
    /* Add a grey background color to the table header and on hover */
    background-color: #283239;
    color: #fff;
}

.custom-table tr:hover {
    background-color: #283239 !important;
    color: #fff !important;
}

.custom-table tr:hover > .sorting_1 {
  background-color: #283239 !important;
    color: #fff !important;
}

.header-search-section {
    position: absolute;
    right: 0;
    cursor: pointer;
    color: #fff;
}

.header-search-section.is-mobile, 
.header-search-section.is-desktop {
  display: none;
}

.header-search-section.is-mobile {
  right: 40px;
  bottom: 24px;
}

/*
custom dataTables Styles
*/

.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  color: #fff !important;
  border: 1px solid #f51515;
  background: linear-gradient(to bottom, #f51515 0%, #f51515 100%);
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9901; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    /* border: 1px solid #888; */
    width: 80%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  #main-header,
  .et_pb_scroll_top.et-pb-icon {
      z-index: 9900 !important;
  }

  #header-search-section-modal .modal-content {
      margin: 10% auto;
      width: 75%;
      position: relative;
  }

  #header-search-section-modal .modal-content .search-suggestions {
      max-height: 400px;
      overflow-y: auto;
  }

  #header-search-section-modal .modal-content .search-suggestions .search-row:hover {
      background-color: #283239;
      color: #fff;
      cursor: pointer;
  }

  #header-search-section-modal .modal-content .search-suggestions .search-row:hover a {
    color: #fff;
  }

  .vertical-align-middle {
      vertical-align: middle;
  }

  #header-search-section-modal .modal-content .search-bar {
      border-bottom: 1px solid #ddd;
  }

  #header-search-section-modal .modal-content .search-bar .search-input {
      border: unset;
      width: calc(100% - 50px);
      color: #283239;
      font-weight: 500;
      font-size: 1rem;
  }

  .search-row {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #E6E6E5;
    padding: 10px;
    display: inline-block;
  }

  .search-empty-result {
    width: 100%;
    height: auto;
    padding: 10px;
    display: inline-block;
  }

  /* .search-empty-result .search-error.german, 
  .search-empty-result .search-error.english {
    display: none;
  } */

  .search-error {
    color: #283239;
    font-weight: 500;
    text-align: center;
  }

  .search-row a {
    color: #283239;
  }

  .search-row-code {
      float: left;
      max-width: 40%;
      width: 100%;
  }

  .search-row-description {
    float: left;
    /* margin-left: 5%; */
    max-width: 60%;
    width: 100%;
  }

  .loader-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.25);
    display: none;
  }

  .loader {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    z-index: 1001;
    text-align: center;
  }

  .loader-wrapper .loader p {
    font-weight: bold;
    font-size: 16px;
  }

  .sk-chase {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 0 auto;
    animation: sk-chase 2.5s infinite linear both;
  }
  
  .sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0; 
    animation: sk-chase-dot 2.0s infinite ease-in-out both; 
  }
  
  .sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: rgb(31, 124, 73);
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both; 
  }
  
  .sk-chase-dot:nth-child(1) { animation-delay: -1.1s; }
  .sk-chase-dot:nth-child(2) { animation-delay: -1.0s; }
  .sk-chase-dot:nth-child(3) { animation-delay: -0.9s; }
  .sk-chase-dot:nth-child(4) { animation-delay: -0.8s; }
  .sk-chase-dot:nth-child(5) { animation-delay: -0.7s; }
  .sk-chase-dot:nth-child(6) { animation-delay: -0.6s; }
  .sk-chase-dot:nth-child(1):before { animation-delay: -1.1s; }
  .sk-chase-dot:nth-child(2):before { animation-delay: -1.0s; }
  .sk-chase-dot:nth-child(3):before { animation-delay: -0.9s; }
  .sk-chase-dot:nth-child(4):before { animation-delay: -0.8s; }
  .sk-chase-dot:nth-child(5):before { animation-delay: -0.7s; }
  .sk-chase-dot:nth-child(6):before { animation-delay: -0.6s; }
  
  @keyframes sk-chase {
    100% { transform: rotate(360deg); } 
  }
  
  @keyframes sk-chase-dot {
    80%, 100% { transform: rotate(360deg); } 
  }
  
  @keyframes sk-chase-dot-before {
    50% {
      transform: scale(0.4); 
    } 100%, 0% {
      transform: scale(1.0); 
    } 
  }

  .custom-table.collapsed tbody tr td:nth-child(1) {
    cursor: pointer;
  }

  .custom-table.collapsed tbody tr:not(.child) td:nth-child(1):before {
    font-family: "Material Icons";
    content: "\e145";
    vertical-align: middle;
    color: #f51515;
    font-size: 1.125rem;
    cursor: pointer;
    margin-right: 5px;
  }

  .custom-table.collapsed tbody tr.parent > td:nth-child(1):before {
    content: "\e909";
  }
 

  /*
  Media Breakpoints
  xs: 576px;
  sm: 768px;
  md: 980px;
  lg: 1200px;
  */

  @media (min-width: 0) and (max-width: 576px) {

    .search-row-description, .search-row-code {
      max-width: 50%;
    }
  }

  @media (min-width: 0) and (max-width: 980px) {

    .header-search-section.is-mobile {
      display: block;
    }

  }

  @media (min-width: 981px) {
    .header-search-section.is-desktop {
      display: block;
    }
  }

  @media (min-width: 0) and (max-width: 1400px) {
    #header-search-section-modal .modal-content {
      width: 95%;
    }

    /* .search-row-description, .search-row-code {
      max-width: 100%;
    } */
  }