@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Roboto:wght@400;700&display=swap");
.grid-container {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "header header header" "nav nav nav" "left body aside" "footer footer footer";
}
.grid-container .grid-header {
  grid-area: header;
}
.grid-container .grid-body-left {
  grid-area: left;
  padding: 5px;
  background-color: #CCCCCC;
}
.grid-container .grid-nav {
  grid-area: nav;
}
.grid-container .grid-body {
  grid-area: body;
}
.grid-container .grid-aside {
  grid-area: aside;
}
.grid-container .grid-footer {
  grid-area: footer;
}

.vert-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 200px;
  display: block;
}
.vert-menu > li {
  margin: 0;
  background-color: #999999;
}
.vert-menu > li a {
  display: inline-block;
  width: 200px;
  padding: 10px;
  text-decoration: none;
  color: #FFFFFF;
}
.vert-menu > li:hover {
  background-color: #CCCCCC;
}
.vert-menu > li:hover a {
  color: #000000;
}
.vert-menu > li:hover ul {
  max-height: 300px;
}
.vert-menu > li:hover ul li {
  background-color: #888;
}
.vert-menu > li:hover ul li a {
  color: #9ef1c8;
  padding: 10px 10px 10px 20px;
}
.vert-menu > li:hover ul li:hover {
  background-color: #CCCCCC;
}
.vert-menu > li:hover ul li:hover a {
  color: #000000;
}
.vert-menu > li ul {
  transition: max-height 1s;
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
}
.horz-menu {
  background-color: #AAAAAA;
}
.horz-menu ul {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
}
.horz-menu ul ul {
  display: none;
  position: absolute;
  top: 30px;
}
.horz-menu ul ul a {
  border-radius: 0;
}
.horz-menu ul ul li {
  width: 175px;
  float: none;
  display: list-item;
  position: relative;
}
.horz-menu ul ul ul li {
  position: relative;
  top: -30px;
  left: 175px;
}
.horz-menu ul li {
  display: inline-block;
}
.horz-menu ul li:hover ul {
  display: inherit;
}
.horz-menu a {
  display: block;
  padding: 0 10px;
  margin: 0 5px;
  background-color: #884300;
  color: #FFFFFF;
  line-height: 30px;
  text-decoration: none;
  border-radius: 10px 10px 0 0;
}
.horz-menu a:hover {
  background-color: #430088;
  color: #FFFFFF;
}
.horz-menu li > a:after {
  content: " +";
}
.horz-menu li > a:only-child:after {
  content: "";
}

#order-table {
  border-collapse: collapse;
}
#order-table thead, #order-table tfoot {
  font-weight: bold;
  background-color: #CCCCCC;
}
#order-table thead td, #order-table tfoot td {
  text-align: center;
}
#order-table tbody tr td:nth-child(1) {
  width: 10px;
  text-align: center;
}
#order-table tbody tr td:nth-child(2), #order-table tbody tr td:nth-child(3) {
  width: 100px;
  text-align: center;
}
#order-table tbody tr td:nth-child(4) {
  width: 100px;
}
#order-table tbody tr td:nth-child(5), #order-table tbody tr td:nth-child(6) {
  width: 300px;
}
#order-table tbody tr td:nth-child(7), #order-table tbody tr td:nth-child(8) {
  width: 100px;
  text-align: center;
}
#order-table tbody tr td:nth-child(11), #order-table tbody tr td:nth-child(9), #order-table tbody tr td:nth-child(10) {
  text-align: center;
  width: 75px;
}

.table-highlight {
  border-collapse: collapse;
}
.table-highlight thead, .table-highlight tfoot {
  font-weight: bold;
  background-color: #CCCCCC;
}
.table-highlight thead th, .table-highlight tfoot th {
  border-right: thin black solid;
  border-left: thin black solid;
}
.table-highlight thead td, .table-highlight tfoot td {
  text-align: center;
}
.table-highlight tbody tr:hover {
  background-color: #EEEEEE;
}

.subgrid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto auto;
  grid-template-areas: "subhead" "subbody" "subtotal" "subcontrol";
  height: 100%;
  width: 100%;
}
.subgrid .subgrid-head {
  grid-area: subhead;
}
.subgrid .subgrid-subtotal {
  grid-area: subtotal;
}
.subgrid .subgrid-body {
  grid-area: subbody;
}
.subgrid .subgrid-control {
  grid-area: subcontrol;
}

html, body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  height: 100vh;
  min-height: 500px;
  min-width: 1400px;
  box-sizing: border-box;
  font-size: 10pt;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0 0 0.5em 0;
}

.align-right {
  text-align: right;
}

.align-center {
  text-align: center !important;
}

.header, .footer {
  color: #FFFFFF;
  background-color: #008843;
  font-weight: bold;
  display: block;
  height: 30px;
}
.header p, .footer p {
  margin: 0;
  text-align: center;
  padding: 5px;
}

form table tr td:nth-of-type(odd) {
  text-align: right;
}
form table tr td:nth-of-type(odd) ::after {
  content: ":";
}

.alert {
  color: red;
  font-weight: bold;
}

.inline-form-space input, .inline-form-space select {
  margin-right: 10px;
}

.grayout {
  background-color: #999999;
  opacity: 0.5;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  grid-template-areas: "title" "content" "control";
  background: white;
}
.dialog .dialog-title {
  grid-area: title;
  background-color: #008843;
  color: #FFFFFF;
  padding: 5px;
}
.dialog .dialog-content {
  grid-area: content;
  padding: 5px;
}
.dialog .dialog-control {
  grid-area: control;
  background-color: #999999;
  color: #FFFFFF;
  text-align: right;
  padding: 5px;
}

.tooltip {
  position: relative;
}
.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #dddddd;
  color: black;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  left: 0;
  top: 30px;
  text-align: left;
  width: 175px;
  z-index: 1;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.control-box {
  background-color: #999999;
}
.pad-5 {
  padding: 5px;
}

.bulletin {
  display: block;
  border: thin black solid;
  border-radius: 10px;
  padding: 10px;
  margin: 5px;
}
.bulletin .notice {
  background-color: #9ef1c8;
}
