/* Uplift Stock — one clean stylesheet. Ease Standard: big targets,
   plain words, nothing cramped. */
* { box-sizing: border-box; }
body {
  margin: 0; background: #f4f6f8; color: #1c2733;
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: #0b5cad; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; }

/* header */
.topbar { background: #10243a; color: #fff; }
.topbar-in {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 8px; }
.brand-mark { font-size: 22px; }
.brand-name { font-size: 20px; font-weight: 700; }
.brand-by { font-size: 12px; opacity: .75; }
.who { display: flex; align-items: center; gap: 10px; }
.who-name { font-size: 14px; opacity: .9; }
.mainnav {
  max-width: 1080px; margin: 0 auto; padding: 0 16px 10px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mainnav a {
  color: #dbe7f3; text-decoration: none; font-size: 15px;
  padding: 10px 14px; border-radius: 8px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.mainnav a:hover { background: #1c3a5c; }
.mainnav a.on { background: #fff; color: #10243a; font-weight: 700; }

/* cards + type */
.card {
  background: #fff; border: 1px solid #dde4ea; border-radius: 12px;
  padding: 20px; margin: 0 0 16px;
}
h1 { font-size: 26px; margin: 6px 0 14px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
.muted { color: #5b6b7a; }
.small { font-size: 13px; }
.big { font-size: 20px; font-weight: 700; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: #fff; border: 1px solid #dde4ea; border-radius: 12px; padding: 16px; }
.tile .num { font-size: 30px; font-weight: 800; line-height: 1.1; }
.tile .lbl { color: #5b6b7a; font-size: 14px; }
.tile.alert { border-color: #e0a800; background: #fffaf0; }

/* buttons — primary actions at least 52px tall */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px; border-radius: 10px; border: 0;
  background: #0b5cad; color: #fff; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #094e92; }
.btn-secondary { background: #e8eef4; color: #10243a; }
.btn-secondary:hover { background: #d8e2ec; }
.btn-danger { background: #b3261e; }
.btn-danger:hover { background: #931d17; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid #5b7a99; }
.btn-ghost:hover { background: #1c3a5c; }
.btn[disabled] { opacity: .55; cursor: default; }

/* forms */
label.f { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 12px; font-size: 16px;
  border: 1px solid #b9c6d2; border-radius: 10px; background: #fff;
}
textarea { min-height: 90px; }
input.bigscan { font-size: 24px; min-height: 64px; }
.checkrow { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 16px; }
.checkrow input { width: 24px; height: 24px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.formrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.formrow > div { flex: 1 1 160px; }

/* tables */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e6ecf1; vertical-align: top; }
table.list th { color: #5b6b7a; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.num-cell { text-align: right !important; font-variant-numeric: tabular-nums; }

/* chips + flashes */
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #e8eef4; color: #33475c; }
.chip-low { background: #fde9c8; color: #7a5200; }
.chip-out { background: #fbd9d6; color: #7c1d17; }
.chip-ok { background: #d9f0dd; color: #14532d; }
.flash { border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; font-weight: 600; }
.flash-success { background: #d9f0dd; color: #14532d; }
.flash-error { background: #fbd9d6; color: #7c1d17; }

.foot { max-width: 1080px; margin: 0 auto; padding: 18px 16px 30px; color: #5b6b7a; font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.foot-wa { font-weight: 700; }

.assistant-out {
  white-space: pre-wrap; background: #fbfcfe; border: 1px solid #dde4ea;
  border-radius: 10px; padding: 16px; min-height: 120px; font-size: 16px;
}
