a {
  text-decoration: none;
  color: #000;
}
#header {
  width: 100%;
  display: flex;
  justify-content: space-between; /* разнести кнопку "+" и форму по краям */
  align-items: center;
  gap: 10px;
  margin-bottom: px;
  margin-top: 7px;
  flex-wrap: nowrap;
  padding-bottom: 0.5em;
  padding-left: 0.5em;
  padding-right: 0.5em; /* запрет переноса */
}
#header a,input[type="submit"], input[type="text"] {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
input[type="submit"], input[type="text"] {
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
}
input[type="submit"] {
  background-color: #007acc;
  color: #fff;
  cursor: pointer;
  width: 60px;
  height: 40px;
  font-weight: bold;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  user-select: none;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}
input[type="submit"]:hover {
  background-color: #005fa3;
}
input[type="text"] {
  flex-grow: 1;
  min-width: 200px;
  max-width: 400px;
  border: 1px solid #007acc;
}
input[type="text"]:focus {
  outline: none;
  border-color: #005fa3;
  box-shadow: 0 0 6px rgba(0,122,204,0.5);
}

form[role="search"] {
  flex-grow: 1;
  display: flex;
  gap: 10px;
  min-width: 0; /* чтобы input не выходил из flex */
}
form[role="search"] input[type="text"] {
  /* input занимает максимум места слева */
  flex-grow: 1;
  min-width: 0; /* важно для сокращения на мобильных */
  max-width: none;
}
form[role="search"] input[type="submit"] {
  /* кнопка поиска прижата справа внутри формы */
  flex-shrink: 0;
  width: 80px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
}
td, th {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color:#6B2E3A;
  color: #fff;
  user-select: none;
}
tbody tr:hover {
  background-color: #f3bd48;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* Мобильная версия стили */
@media screen and (max-width: 600px) {
  #header {
    gap: 6px;
  }
  input[type="submit"], input[type="text"] {
    font-size: 14px;
    height: 32px;
  }
  input[type="submit"] {
    width: 50px;
  }
  input[type="text"] {
    min-width: 100px;
  }
  table {
    font-size: 16px;
  }
}
