body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header, footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
}

nav a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
}

main {
  display: flex;
  flex: 1;
  padding: 1rem;
}

.content {
  flex: 3;
  padding-right: 1rem;
}

.sidebar {
  flex: 1;
  background: #f9f9f9;
  padding: 1rem;
  border-left: 2px solid #ccc;
}

.tabs {
  margin-bottom: 1rem;
}

.tabs button {
  padding: 0.5rem 1rem;
  border: none;
  background: #ccc;
  margin-right: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
}

.tabs button.active {
  background: #003366;
  color: white;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

.search-container {
  margin: 1rem 0;
  text-align: right;
}

#searchInput {
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 250px;
}

th {
  background-color: #f2f2f2;
}
.search-container {
  display: flex;
  justify-content: flex-start; /* push to left */
  align-items: center;
  text-align: left;
  width: 100%;
  margin: 1em 0;
}
.tabs button {
  margin-right: 8px;
  padding: 8px 16px;
  cursor: pointer;
}
<style>
  footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #003366;
    color: #fff;
    font-size: 0.9rem;
  }

  footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 0.5rem;
  }

  footer a:hover {
    text-decoration: underline;
  }
.text-page main {
  display: block !important;
  flex: unset !important;    /* remove inherited flex property */
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
</style>

