* {
  box-sizing: border-box;
  font-family: "Helvetica Neue", "Arial Nova", Arial, sans-serif;
}

input, select, textarea {
  font-family: "PragmataPro", monospace;
}

body {
  margin: 0px;
  background: ghostwhite;
  color: #000;
}

hr {
  border: none;
  border-bottom: 1px solid #aaa;
  margin: 25px 0;
}

.top-bar {
  background: gold;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.top-bar h1 {
  margin: 0;
  font-size: 1.8rem;
  text-align: center;
}

.dataset-actions {
  display: flex;
  gap: 10px;
}

.btn, button.linkish {
  border: 1px outset #eee;
  background: #ccc;
  border-radius: 7px;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-weight: bold;
}
.btn:hover, button.linkish:hover {
  background: #ddd;
}
.btn:active, button.linkish:active {
  border: 1px inset #eee;
}

.save-status {
  text-align: right;
  font-size: 1rem;
}

.tab-bar {
  display: flex;
  gap: 0;
  background: gainsboro;
  padding: 10px 5px 10px 5px;
  justify-content: center;
  align-items: center;
}

.tab {
  border: 0px solid #aaa;
  border-left-width: 1px;
  background: none;
  padding: 0.8rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  color: #000;
}

.tab:first-child {
  border-left-width: 0px;
}

.tab.active {
  background: gold;
  border-left-color: gold;
  border-bottom-color: gold;
  color: #000;
}

.tab.active + .tab {
  border-left-color: gold;
}

#appMain {
  padding: 0;
}

.tab-panel {
  display: none;
  background: ghostwhite;
  padding: 20px;
  color: #000;
}

.tab-panel.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 0.75rem 1rem;
}

.form-grid > span {
  font-weight: bold;
  text-align: right;
  line-height: 2.2rem;
}

.form-row {
  display: contents;
}

.form-row > span {
  align-self: center;
  font-size: 1.5rem;
  font-weight: bold;
}

input,
select,
textarea {
  border: 1px solid #000;
  border-radius: 4px;
  background: #fffccc;
  font-size: 1rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.5rem;
  box-shadow: 2px 2px 0 #999;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid gold;
}

input, select { width: fit-content; }

textarea {
  min-height: 6rem;
  resize: vertical;
}

#hoses .inner-tabs-row {
  margin-top: 20px;
}

.inner-tabs {
  float: left;
  padding-left: 10px;
  position: relative;
  bottom: -1px;
}

.inner-tabs button {
  border: 1px solid #000;
  background: #fff;
  padding: .75rem 1rem;
  margin-right: 10px;
  border-radius: 8px 8px 0 0;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1rem;
  box-shadow: 2px 2px 0 0 #999;
}

.inner-tabs button.active {
  border-bottom-color: gold;
  background: gold;
  font-weight: bold;
}

.inner-tabs-row > button:last-child {
  float: right;
  position: relative;
  bottom: -80px;
  z-index: 300;
  right: 40px;
}

.stack {
  display: grid;
  gap: 0;
}

.card {
  padding: 20px;
  background: gainsboro;
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 2px 2px 0 0 #999;
  position: relative;
  z-index: 100;
}

.card h4 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: normal;
}

.data-table, .form-grid {
  clear: both;
  padding: 20px;
  background: #fff;
  z-index: 200;
  position: relative;
  border-radius: 8px;
  border: 1px solid #000;
  width: 100%;
  margin-bottom: 20px;
}

.data-table td, .data-table th {
  text-align: left;
  padding: 5px 0;
}

.row-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.small {
  font-size: 1rem;
}

.placeholder h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.placeholder p {
  font-size: 1.5rem;
}

.help {
  color: #366fb5;
  font-size: 1rem;
}
