body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

h1 {
  color: #333;
}

header.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  width: 360px;
  height: 70px;
  object-fit: contain;
}

.header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
}

.header-controls {
  display: contents;
}

.header-title {
  grid-column: 2;
  grid-row: 1;
  width: min(420px, 100%);
  text-align: center;
}

.header-title h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.header-top .logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.header-top #manual_btn {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.header-btn {
  height: 36px;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-width: 400px;
}

input[type='file'] {
  display: none;
}

table {
  width: 95%;
  border-collapse: collapse;
  margin: 16px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 13px;
  table-layout: auto;
  max-width: 100%;
  word-wrap: break-word;
}

th,
td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

th {
  background-color: #4285F4;
  color: white;
  text-align: center;
  font-size: 13px;
  padding: 8px;
  line-height: 1.2;
}

td a {
  display: block;
  text-align: center;
  font-size: 13px;
}

#loading {
  text-align: center;
  margin: 20px;
  font-weight: bold;
  color: #555;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #4285F4;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 350px) {
  .logo {
    width: 70vw;
    height: auto;
  }
}

@media (max-width: 1150px) {
  .header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .header-controls {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 1;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .header-title {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}
