/* Lancaster DMS — brand lock: red #be282b, black #000000, white #ffffff, charcoal #292929, neutral greys only. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
  color: #292929;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #be282b; }

header.site {
  background: #000000;
  color: #ffffff;
  border-bottom: 4px solid #be282b;
  padding: 14px 20px 10px;
}
header.site .brand { font-size: 20px; letter-spacing: 3px; font-weight: bold; }
header.site .brand .autos { color: #ffffff; }
header.site .sub { font-size: 12px; color: #cccccc; margin-top: 2px; letter-spacing: 1px; }
header.site .userbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 10px; font-size: 14px;
}
header.site .userbar .who { color: #ffffff; }
header.site .userbar .role { color: #aaaaaa; }

nav.main {
  background: #292929;
  padding: 0 12px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
nav.main button {
  background: transparent; border: none; color: #dddddd;
  font-size: 15px; padding: 12px 16px; cursor: pointer;
  border-bottom: 3px solid transparent;
}
nav.main button:hover { color: #ffffff; }
nav.main button.active { color: #ffffff; border-bottom-color: #be282b; }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }

footer.site {
  background: #000000; color: #aaaaaa; font-size: 12px;
  text-align: center; padding: 12px 16px; letter-spacing: 0.5px;
}

h1.page { font-size: 24px; margin: 4px 0 16px; color: #292929; }
h2.section { font-size: 17px; margin: 22px 0 10px; color: #292929; border-bottom: 2px solid #dddddd; padding-bottom: 4px; }

.card {
  background: #ffffff; border: 1px solid #dddddd; border-radius: 6px;
  padding: 16px; margin-bottom: 14px;
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tile {
  background: #292929; color: #ffffff; border-radius: 6px; padding: 16px;
  border-top: 4px solid #be282b;
}
.tile .num { font-size: 32px; font-weight: bold; line-height: 1.1; }
.tile .lbl { font-size: 13px; color: #cccccc; margin-top: 4px; }
.tile.grey { background: #595959; border-top-color: #292929; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.vcard {
  background: #ffffff; border: 1px solid #dddddd; border-radius: 6px; padding: 14px;
  cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit;
}
.vcard:hover { border-color: #be282b; }
.vcard .stock { font-size: 12px; color: #777777; letter-spacing: 1px; }
.vcard .name { font-size: 17px; font-weight: bold; margin: 2px 0; }
.vcard .meta { font-size: 14px; color: #555555; }
.vcard .price { font-size: 17px; font-weight: bold; margin-top: 6px; }
.badge {
  display: inline-block; font-size: 11px; letter-spacing: 0.5px; padding: 2px 8px;
  border-radius: 10px; background: #eeeeee; color: #292929; border: 1px solid #cccccc;
}
.badge.sold { background: #be282b; color: #ffffff; border-color: #be282b; }
.badge.hidden { background: #292929; color: #ffffff; border-color: #292929; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; }
.facts .k { font-size: 12px; color: #777777; text-transform: uppercase; letter-spacing: 0.5px; }
.facts .v { font-size: 15px; margin-bottom: 8px; }

table.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rows th, table.rows td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #eeeeee; }
table.rows th { color: #777777; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
table.rows td.num, table.rows th.num { text-align: right; }
tr.padrow td { color: #777777; font-style: italic; }
tr.totalrow td { font-weight: bold; border-top: 2px solid #292929; }
.neg { color: #be282b; }

form.auth { max-width: 380px; margin: 30px auto; }
form.auth label { display: block; font-size: 13px; color: #555555; margin: 12px 0 4px; }
form.auth input, .toolbar input, .toolbar select {
  width: 100%; padding: 10px; font-size: 15px;
  border: 1px solid #bbbbbb; border-radius: 4px; background: #ffffff; color: #292929;
}
.btn {
  background: #be282b; color: #ffffff; border: none; border-radius: 4px;
  padding: 10px 18px; font-size: 15px; cursor: pointer;
}
.btn:hover { background: #a02023; }
.btn.secondary { background: #292929; }
.btn.secondary:hover { background: #000000; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: default; }
form.auth .btn { width: 100%; margin-top: 18px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar .search { flex: 1 1 220px; }
.toolbar .filter { flex: 0 1 180px; }
.toolbar input, .toolbar select { width: 100%; }

.error {
  background: #ffffff; border: 1px solid #be282b; color: #be282b;
  border-radius: 4px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px;
}
.notice {
  background: #ffffff; border: 1px solid #bbbbbb; color: #292929;
  border-radius: 4px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px;
}
.muted { color: #777777; font-size: 13px; }
.taskitem { padding: 10px 0; border-bottom: 1px solid #eeeeee; }
.taskitem:last-child { border-bottom: none; }
.taskitem .t { font-size: 15px; }
.taskitem .m { font-size: 13px; color: #777777; }
.prio-high { color: #be282b; font-weight: bold; }
.backlink { display: inline-block; margin-bottom: 12px; font-size: 14px; }

.bar { background: #eeeeee; border-radius: 4px; height: 10px; margin: 8px 0 4px; overflow: hidden; }
.barfill { background: #be282b; height: 100%; }
.eform { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.eform label { display: block; font-size: 13px; color: #555555; }
.eform input, .eform select {
  width: 100%; padding: 8px; font-size: 14px; margin-top: 3px;
  border: 1px solid #bbbbbb; border-radius: 4px; background: #ffffff; color: #292929;
}
