* {
    box-sizing: border-box;
    outline: none;
}
html, body {
    padding: 0;
    margin: 0;
}
body {
    font-family: Tahoma, sans-serif;
    color: #333;
}
h1 {
    margin: 0 0 1.25em;
}
h1::after {
    content: attr(data-count);
    color: red;
    padding-left: 10px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    padding: 8px;
    text-align: center;
}
td:first-child,
td:nth-child(2) {
    text-align: left;
}
th {
    background-color: #f2f2f2;
}
input[type="text"],
select,
button {
    border-radius: 3px;
}
input[type="text"]::placeholder {
    color: #333;
}
input,
select {
    padding: 5px;
    border: 1px solid #333;
}
input {
    border-color: #333;
}
select {
    color: #333;
    background-color: #fff;
}
button {
    height: 32px;
    color: #fff;
    padding: 5px 10px;
    background-color: #333;
    border: 0;
    transition: background-color .3s ease-in-out;
    cursor: pointer;
}
button:hover {
    background-color: #000;
}
details {
    min-width: 304px;
}
summary {
    text-align: left;
}
.wrap {
    max-width: calc(100% - 20px);
    padding-block: 20px;
    margin-inline: auto;
}
.table-wrap {
    overflow-y: scroll;
}
.form-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.src-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.src-container label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    width: 100%;
}
.form-container .src-container {
    padding: 8px;
    background: #f2f2f2;
    border-radius: 3px;
}
.form-container .src-container input {
    padding: 3px;
    margin: 0;
}
.highlighted-cell {
  background-color: #ffe4e1;
  transition: background-color .3s ease-in-out;
}
.search-navigation {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
#search {
  padding: 8px;
  flex-grow: 1;
}
#prev-match, #next-match {
    padding: 8px 12px;
    max-width: 70px;
}
#match-counter {
  margin-left: 10px;
  color: #666;
  font-size: 0.9em;
}
@media screen and (max-width: 980px) {
    input[type="text"],
    select,
    button {
        width: 100%;
        margin: 0;
    }
    .src-container input[type="text"] {
        max-width: calc(100% - 150px);
    }
    .form-container {
        flex-direction: column;
    }
    .form-container .src-container {
        width: 100%;
        max-width: 100%;
    }
}
@media screen and (max-width: 769px) {
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 18px;
    }
    table {
        font-size: 12px;
    }
    select {
        height: 32px;
    }
    .table-wrap {
        max-height: 260px;
    }
    .src-container input[type="text"] {
        max-width: 190px;
    }
    .form-container .src-container input[type="text"] {
        max-width: calc(100% - 130px);
    }
}
@media screen and (min-width: 770px) {
    .table-wrap {
        min-height: 260px;
        max-height: calc(100vh - 390px);
    }
    .src-container {
        max-width: 304px;
    }
}
@media screen and (min-width: 981px) {
    .form-container .src-container {
        max-width: 100%;
        font-size: 0.85em;
    }
    .form-container input[type="text"], select {
        max-width: 157px;
    }
    .form-container button {
        margin-left: auto;
    }
}