/* inventory tracker styles v2 (2019) */
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Helvetica Neue", Arial, sans-serif; background: #eef1f4; color: #2b3440; }
a { color: #1f6fb2; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.topbar { background: #2c3e50; color: #fff; border-bottom: 3px solid #e67e22; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo { color: #fff; text-decoration: none; font-size: 18px; letter-spacing: .5px; }
.logo b { color: #f39c12; margin-left: 2px; }
.tag { background: #e67e22; font-size: 11px; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; letter-spacing: 1px; }
.main { padding-top: 20px; padding-bottom: 40px; }
.panel { background: #fff; border: 1px solid #d5dbe1; border-radius: 4px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.panel h2, .panel h3 { margin-top: 0; }
.alert { border-left: 4px solid #c0392b; }
.small { color: #7f8c8d; font-size: 12px; font-family: Menlo, monospace; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }
.flash.ok { background: #dff0d8; color: #2d6a2d; border: 1px solid #c3e6c3; }
.flash.err { background: #f8d7da; color: #8a1f2b; border: 1px solid #f1b0b7; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stats div { background: #fff; border: 1px solid #d5dbe1; border-radius: 4px; padding: 10px 14px; color: #6b7785; }
.stats b { display: block; font-size: 22px; color: #2b3440; }
.stats .warn b { color: #d68910; }
.stats .bad b { color: #c0392b; }
.cols { display: grid; grid-template-columns: 1fr 280px; gap: 14px; align-items: start; }
.search { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid #b8c2cc; border-radius: 3px; background: #fff; }
.search input { flex: 1; min-width: 140px; }
button { font: inherit; padding: 6px 12px; border: 1px solid #b8c2cc; border-radius: 3px; background: #f7f9fa; cursor: pointer; }
button:hover { background: #e9eef2; }
button.primary { background: #2980b9; border-color: #2471a3; color: #fff; width: 100%; margin-top: 6px; }
button.primary:hover { background: #2471a3; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; color: #7f8c8d; border-bottom: 2px solid #d5dbe1; padding: 8px 6px; }
td { border-bottom: 1px solid #edf0f2; padding: 7px 6px; }
tr:nth-child(even) td { background: #fafbfc; }
tr.warn td:first-child { border-left: 3px solid #f39c12; }
tr.bad td:first-child { border-left: 3px solid #c0392b; }
tr.bad .num b { color: #c0392b; }
.num { text-align: right; }
.adj { white-space: nowrap; }
.adj form, td form { display: inline; }
.adj button { padding: 2px 7px; font-size: 12px; min-width: 34px; }
button.del { background: none; border: none; color: #c0392b; font-size: 12px; text-decoration: underline; padding: 2px; }
.side label { display: block; margin-bottom: 10px; font-weight: bold; font-size: 12px; color: #55606b; }
.side input { display: block; width: 100%; margin-top: 3px; font-weight: normal; }
.none { color: #7f8c8d; text-align: center; padding: 30px; }
.footer { color: #8795a1; font-size: 12px; padding-bottom: 30px; }
.deploy-badge { display: inline-block; background: #2c3e50; color: #dfe6ec; padding: 2px 10px 2px 8px; border-radius: 10px; font-family: Menlo, monospace; font-size: 11px; }
.deploy-badge i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.deploy-badge i.up { background: #2ecc71; }
.deploy-badge i.down { background: #e74c3c; }
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  th:nth-child(2), td:nth-child(2) { display: none; }
}
