/* Define table styles */
table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
  font-family: "Inter", sans-serif;
}

/* Define table header styles */
th {
  background-color: #f2f2f2;
}

/* Define table row hover styles */
tr:hover {
  background-color: #dbf0ff !important;
  cursor:pointer !important;
}

/* Define table row hover styles */
th:hover {
  background-color: #dbf0ff !important;
  cursor:pointer !important;
}

th {
  cursor:pointer;
}

.sort-icon {
    margin-left: 5px;
    width: 12px;
    height: 12px;
    vertical-align: middle;
}

#loan_table_search

{padding:12px;font-family: inter;margin-bottom:15px;border-radius:5px;border:1px #d9d9d9 solid;}

#knapp

{padding:12px;font-family: inter;border:1px #b7b7b7 solid;border-radius:5px;margin-left:5px;display:inline-block;background:white;color:black;}

#knapp:hover

{padding:12px;font-family: inter;border:1px #0d6efd solid;border-radius:5px;margin-left:5px;transition:0.2s;}

.expandable-row.selected + .additional-row .additional-content {
  display: block;
  animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.25rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ui-autocomplete li {
    list-style-type: none;
    padding: 0.5rem;
    cursor: pointer;
}

.ui-autocomplete li:hover {
    background-color: #f3f3f3;
}


#search-wrapper {
  position: relative;
  width: 100%;
  height: 50px;
}

#autocomplete-results {
  position: absolute;
  background-color: #fff;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  max-height: 250px;
  overflow: auto;
  z-index: 10;
  border-radius: 5px;
  padding: 10px;
  display:none;
  border:1px #6699e9 solid;
}

.autocomplete-result {
  cursor: pointer;
}

.autocomplete-result:hover {
  background-color: #f1f1f1;
}

.search-wrapper, .checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.checkbox_text {
  font-family: inter;
  font-weight: 400;
  font-size:1.4em;
  margin-right:5px;
}

.fcheck {
  width:25px;
  height:25px;
  border-radius:100% !important;
  margin-left: 5px;
}

#remaining-entries-wrapper {
  background-color: #f2f2f2;
  padding: 10px;
  margin-top: 20px;
}

#show-remaining-entries {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#show-remaining-entries:hover {
  background-color: #3e8e41;
}

.loan-table-wrapper {
    height: 50vh;
    overflow: auto;
}

#loan-table thead {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
}

.loan-table-header {
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 2;
}

.search-and-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1024px;

}

#loan-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

table#loan-table tr.child-row {
  display: none;
}

.hidden-row.child-row {
  display: none;
}
.hidden-row.child-row:visible {
  display: grid;
}

.checkbox-wrapper
{display:none !important;}

.disclaimer
{display:grid;margin-bottom:15px;}

.disclaimer p
{margin-bottom:15px;}

.imgco {
  width: 150px;
  margin-top:10px;
}

.hello {
font-family: inter;
font-size:22px;
font-weight: 300;


}

.tinytxt
{
  font-family: inter;
  font-size: 14px;
  opacity:0.8;
}

table#loan-table {
  width: 100%;
  table-layout: fixed;
}

table#loan-table th,
table#loan-table td {
  width: 100px; /* Set the width of each column here */
  overflow: hidden;
  text-overflow: ellipsis; /* Truncate text that exceeds the column width */
  white-space: nowrap; /* Prevent text from wrapping to the next line */
  border:none;
  font-family: inter;
  font-size:16px;
}

table#loan-table tr.child-row td {
  word-wrap: break-word;
}
