select, input, textarea, button { margin: 5px; }
table { border: black solid 1px; border-collapse: collapse; margin-bottom: 15px; }
table th, table td { padding: 3px 8px; }
table td { border-bottom: #666 solid 1px; vertical-align: top; }
table thead th { text-align: center; position: sticky; top: 0; background-color: #c9dff0; }

h1 { text-align: center; }

.login { text-align: center; }
.login-message { width: 75%; margin: 20px auto; }
.footer { margin-top: 30px; clear: both; text-align: center; font-size: 80%; }

body { background-color: #eee; }

.logout { position: absolute; right: 5px; top: 5px; }

#tabs { display: none; }

.help { font-style: italic; }

.lowstock { color: red; }
.nearlowstock { color: #F81; }

.badge { background: #c00; color: white; border-radius: 8px; padding: 0 6px; font-size: 80%; }

.flash { background: #dfd; border: 1px solid #494; padding: 10px; margin: 10px 0; }
.flash.error { background: #fdd; border-color: #a33; }

.card, .panel { border: 1px ridge #888; background: #f8f8f8; padding: 10px; margin-bottom: 20px; }
.panel { text-align: center; }
.card h3 { margin-top: 0; }
.request-new { border-left: 6px solid #c00; }
.request-closed { opacity: 0.7; }
.columns { display: flex; gap: 40px; margin: 8px 0; }
.message { margin: 8px 0; padding: 5px; border-left: 3px solid #bbb; }

.button { display: inline-block; padding: 2px 10px; border: 1px solid #777; border-radius: 3px; background: #e9e9ed; color: black; text-decoration: none; cursor: pointer; font: inherit; }
button.primary { font-weight: bold; background: #c9dff0; padding: 6px 14px; }

form.stacked > label { display: block; margin-bottom: 6px; }
fieldset { margin: 10px 0; }
details { margin: 5px 0; }
summary { cursor: pointer; font-weight: bold; }
.choice { display: inline-block; margin-right: 20px; padding: 4px 0; }

table.sort thead th { cursor: pointer; padding-right: 20px; background-repeat: no-repeat; background-position: 100% 100%; }
table.sort thead th.tablesorter-headerAsc { background-image: url('img/up-arrow.png'); background-color: #acc8dd; }
table.sort thead th.tablesorter-headerDesc { background-image: url('img/down-arrow.png'); background-color: #acc8dd; }

table.inventory td.editable, table.inventory td.dropdown { cursor: text; min-width: 30px; }
table.inventory td.editable:hover, table.inventory td.dropdown:hover { background: #ffd; }
table.inventory tr.inactive { display: none; }
.showInactive { float: right; }

#report td { text-align: center; border: solid #DDD 1px; }
#report tr > td:first-child { text-align: left; }
#report { overflow-x: auto; }

.row-striped { background-color: #f8f8f8; }

/* public pages */
.public { max-width: 700px; margin: 0 auto; background: white; padding: 15px 20px; }
.public input[type=text], .public input[type=tel], .public input[type=email], .public textarea, .public select { max-width: 100%; box-sizing: border-box; width: 100%; margin: 3px 0; font-size: 100%; padding: 5px; }
.public .consent input { transform: scale(1.4); margin-right: 8px; }
.hp { position: absolute; left: -9999px; }
#sig-canvas { width: 100%; height: 180px; border: 2px dashed #666; background: white; touch-action: none; cursor: crosshair; }

h2.print { display: none; }

@media print {
  h2.print { display: block; }
  #tabs > ul, #reports, .logout, body > h1, .footer, .search, .showInactive, .flash, button, .help, .button { display: none; }
  body { background-color: white; }
  table { border: 0; }
  table thead th { position: static; }
}

@media screen and (max-width: 800px) {
	#tabs table { display: block; overflow-x: auto; }
	.columns { display: block; }
}
