/*
  This software is free software; the user may do whatever they like with it.
  It was developed by Franck LEFEVRE for the company K1 (https://k1info.com),
  with the help of a team of kind and amusing robots.
  Please use the enormous power of this software to do good things for people
  and things, always ensuring that it does not harm anything or anyone.
*/

/* 2025-12-22 17:52:53 UTC: Initial local stylesheet inspired by the visual
   style of https://acredit.kzone.k1info.com/, adapted for the subsidy search
   single-page interface with simple layout and form styling. */
/* 2025-12-22 18:10:35 UTC: Added a scrollable container for the results table
   so that up to 50 structures can be displayed without extending the page
   height excessively. */

/*
  Basic CSS styles for a simple web UI.
  Provides layout, typography, and form element styling.
*/
html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  height: 100%;
}

nav {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 1em;
}

main {
  max-width: 900px;
  margin: 1em auto;
  padding: 0 1em;
}

section {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1em;
  margin-bottom: 1em;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
}

form > div {
  margin-bottom: 1em;
}

label {
  display: block;
  margin-bottom: 0.25em;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

button {
  padding: 0.5em 1em;
  background-color: #f80061;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #c6004f;
}

a {
  color: #0066cc;
}

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

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

th {
  background-color: #f0f0f0;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

footer {
  text-align: center;
  font-size: 0.9em;
}

.table-scroll {
  max-height: 220px;
  overflow-y: auto;
}

