/* Vendor Verification Portal — Total Source Network (navy #0B1F3A / gold #E8BD4A) */
:root {
  --navy: #0B1F3A;
  --navy-2: #12294D;
  --gold: #E8BD4A;
  --ink: #1a1a1a;
  --gray: #5a5a5a;
  --line: #e3ddd0;
  --bg: #faf8f2;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { background: var(--navy); color: #fff; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 8px;
  background: var(--gold); color: var(--navy);
  font-weight: 800; font-size: 18px; letter-spacing: 1px;
}
.brand-text { font-weight: 700; font-size: 17px; line-height: 1.3; }
.brand-text small { font-weight: 400; color: #c9d2e0; font-size: 12px; }

/* content */
main.wrap { padding-top: 28px; padding-bottom: 48px; }
h1 { color: var(--navy); font-size: 30px; margin: 0 0 10px; }
h2 { color: var(--navy); font-size: 21px; margin: 34px 0 12px; }
h3 { color: var(--navy); font-size: 17px; margin: 22px 0 8px; }
p.lead { font-size: 16.5px; color: var(--ink); }
.rule { height: 3px; width: 72px; background: var(--gold); margin: 6px 0 18px; border: 0; }
.muted { color: var(--gray); font-size: 14px; }

/* steps */
.steps { list-style: none; margin: 18px 0 26px; padding: 0; counter-reset: step; }
.steps li {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px 14px 64px; margin-bottom: 12px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.steps li strong { color: var(--navy); }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 22px; margin: 16px 0;
}
.card.gold-top { border-top: 5px solid var(--gold); }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--gray); font-size: 13px; display: block; margin-top: 4px; }
.req { color: #b00020; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%; padding: 11px 12px; font-size: 15px;
  border: 1px solid #c9c2b2; border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
input[type="file"] { font-size: 14px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 14px; }
.checks label { font-weight: 400; color: var(--ink); display: flex; gap: 8px; align-items: center; margin: 0; }
.checks input { width: 17px; height: 17px; }

/* buttons */
.btn {
  display: inline-block; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 26px; text-decoration: none;
}
.btn:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { filter: brightness(0.95); }
.btn.small { padding: 8px 14px; font-size: 13.5px; }
.btn.danger { background: #8f1d2c; }
.btn + .btn { margin-left: 8px; }
.actions-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.actions-row .btn + .btn { margin-left: 0; }

/* alerts */
.alert { border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.alert.error { background: #fdecea; border: 1px solid #f1b7b0; color: #7a1f1a; }
.alert.success { background: #e9f5ec; border: 1px solid #b7dcc0; color: #1e5b2e; }
.alert.info { background: #eaf0fa; border: 1px solid #b9cbe8; color: #1d3a6e; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* tables */
table.grid { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.grid th, table.grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th { background: var(--navy); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
table.grid tr:hover td { background: #fbf9f4; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.pill.pending { background: #fdf3d7; color: #7a5b00; border: 1px solid #ecd27a; }
.pill.needs_info { background: #eaf0fa; color: #1d3a6e; border: 1px solid #b9cbe8; }
.pill.approved { background: #e9f5ec; color: #1e5b2e; border: 1px solid #b7dcc0; }
.pill.denied { background: #fdecea; color: #7a1f1a; border: 1px solid #f1b7b0; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tabs a {
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--navy);
  border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 8px 16px;
}
.tabs a.active, .tabs a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.count { background: var(--gold); color: var(--navy); border-radius: 12px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }
.tabs a.active .count { background: #fff; }

/* detail */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 14px; font-size: 14.5px; }
.kv dt { font-weight: 700; color: var(--navy); }
.kv dd { margin: 0; }
.doc-list { list-style: none; padding: 0; margin: 10px 0; }
.doc-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.doc-list li:last-child { border-bottom: 0; }
.history { list-style: none; padding: 0; margin: 10px 0; }
.history li { background: #fbf9f4; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.history .when { color: var(--gray); font-size: 12.5px; }

.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.topbar .who { color: var(--gray); font-size: 14px; }

/* footer */
.site-footer { background: var(--navy); color: #c9d2e0; font-size: 13.5px; padding: 22px 0; text-align: center; }

@media (max-width: 620px) {
  h1 { font-size: 24px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 8px; }
  table.grid th:nth-child(4), table.grid td:nth-child(4) { display: none; }
  .btn { width: 100%; text-align: center; margin-bottom: 8px; }
  .btn + .btn { margin-left: 0; }
}
