/* src/styles.css */
.menu {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  gap: 10px;
  padding: 20px 0px;
  margin: 0 auto;
}
@media (max-width: 550px) {
  .menu {
    grid-template-columns: repeat(2, 150px);
  }
}
:root {
  --primary-color: #007bff;
  --secondary-color: #f5f5f5;
  --background-color: orange;
  --text-color: black;
  --white-color: white;
  --border-color: #ddd;
  --box-shadow-color: rgba(0, 0, 0, 0.2);
  --font-family: sans-serif;
  --default-padding: 10px;
  --default-margin: 10px;
  --default-border-radius: 4px;
  --default-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
  --default-font-size: 16px;
  --default-input-height: 35px;
}
.menu a {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  color: black;
  text-decoration: none;
  font-size: 20px;
  border-radius: 10px;
  transition:
    margin 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  font-size: 1.2em;
  border: 1px solid #ddd;
}
.menu a:hover {
  margin: -1px;
  box-shadow: var(--default-box-shadow);
}
.menu a:active {
  margin: 0;
  transform: translateY(2px);
}
.menu a span {
  font-size: 50px;
  margin-bottom: 10px;
}
body {
  background-color: white;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  margin: 0;
  padding: 0;
}
header {
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 8px 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
#return-button {
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
}
.page-title {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 20px;
}
main.table-container {
  overflow-x: auto;
}
table {
  border-collapse: separate;
  border-spacing: 0px;
  min-width: 100%;
  border-radius: 6px;
  white-space: nowrap;
  table-layout: fixed;
}
table input {
  box-sizing: border-box;
  margin-inline: auto;
  display: block;
  padding: 5px;
  border: 2px solid #aaa;
  border-radius: 4px;
  font-size: 15px;
}
table input[type=text] {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
table:not(:has(td)) {
  content: "No data available";
}
td > * {
  width: 100%;
  box-sizing: border-box;
}
th,
td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #ddd;
}
button {
  background-color: white;
  color: black;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  border-radius: 20px;
  border: 1px solid #ddd;
  height: 40px;
  padding: 10px;
}
.hide {
  display: none;
}
button:hover {
  box-shadow: var(--default-box-shadow);
}
button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
th {
  background-color: #f5f5f5;
  font-weight: bold;
}
td > label {
  display: block;
  min-height: 100%;
}
td:has(label) {
  padding: 0;
}
td > label {
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
tr:nth-child(even) {
  background-color: #f9f9f9;
}
tr:nth-child(odd) {
  background-color: #f5f5f5;
}
tr:hover,
tr:active {
  background-color: #f0f0f0;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.loading-throbber {
  animation: spin 1.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-origin: center;
  display: flex;
  justify-content: center;
  font-size: 30px;
  user-select: none;
}
.no-data {
  text-align: center;
}
form div {
  display: flex;
  justify-content: space-between;
}
fieldset {
  border: none;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  padding: 0px 0px;
  overflow: hidden;
}
fieldset legend {
  background-color: #ddd;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 18px;
  margin-inline: auto;
}
fieldset .legend {
  display: flex;
  font-weight: bold;
  font-size: 18px;
  height: 30px;
  align-items: center;
  background-color: rgb(228, 221, 212);
}
fieldset .legend span {
  width: 100%;
  text-align: center;
}
form > fieldset > div:nth-child(even) {
  background-color: #f2f2f2;
}
form > fieldset > div {
  padding: 10px;
  align-items: center;
}
form fieldset div input[type=text] {
  padding: 5px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  height: var(--default-input-height);
}
form > fieldset > div > label {
  margin-right: 10px;
  width: 33.33%;
  text-align: right;
  display: block;
  font-size: 16px;
  margin: -10px 10px;
}
.fixed-button {
  bottom: 0;
  width: 100%;
  padding: 10px;
  margin: 0px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  height: 70px;
  position: sticky;
  z-index: 1;
  position: bottom;
}
table > thead {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}
.main-content {
  flex: 1;
  overflow-y: auto;
}
.modal-background {
  display: flex;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.4);
}
.popup {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-height: 80%;
  height: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: "white";
  overflow-y: hidden;
  border-radius: 5px;
}
.popup-content {
  overflow-y: auto;
}
.popup-close {
  float: right;
  cursor: pointer;
  font-size: 16px;
  margin: 0;
  padding: 10px;
}
.popup-title {
  text-align: center;
  margin: 0;
  font-size: 24px;
}
.sum-total {
  font-size: 20px;
  font-weight: bold;
  float: right;
  padding: 10px;
}
.sum-total::before {
  content: "$";
}
.search-box {
  padding: 10px;
  border: 1px solid #ddd;
  margin: 5px;
  border-radius: 20px;
  box-shadow: var(--default-box-shadow);
  font-size: 16px;
}
.login-form {
  display: flex;
  flex-direction: column;
  width: 300px;
  padding: 20px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: var(--default-box-shadow);
  gap: 10px;
}
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
input[type=text],
input:not([type]),
input[type=password],
input[type=email],
select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  height: var(--default-input-height);
  padding: 0px 10px;
  width: 66.67%;
  box-sizing: border-box;
}
.import-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: var(--default-box-shadow);
}
.import-detail {
  white-space: pre;
  overflow-x: auto;
}
h1 {
  text-align: center;
  margin: 0px;
}
.bold {
  font-weight: bold;
}
.raw {
  white-space: pre;
  font-family: monospace;
}
.grid-form {
  margin: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 10px;
}
.row-defer-render {
  content-visibility: auto;
  contain-intrinsic-size: 0 50px;
}
