:root {
  --blue: #275f99;
  --blue-dark: #1d4a78;
  --ink: #2a3b4d;
  --muted: #6b7c89;
  --line: #d9e1e8;
  --bg: #f4f7fa;
  --ok: #1f7a43;
  --err: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--blue); }

.b2b-top { background: #fff; border-bottom: 1px solid var(--line); }
.b2b-top__in {
  max-width: 1080px;
  margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.b2b-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.b2b-brand img { display: block; width: auto; }
.b2b-brand span {
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  background: var(--blue);
  padding: .15rem .55rem;
  border-radius: 4px;
  font-size: .85rem;
}
.b2b-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.b2b-nav a { text-decoration: none; }
.b2b-nav a:hover { text-decoration: underline; }
.b2b-nav form { margin: 0; }

.b2b-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--blue);
  cursor: pointer;
}
.b2b-link:hover { text-decoration: underline; }

.b2b-main { max-width: 1080px; margin: 0 auto; padding: 2rem 1.25rem 3rem; min-height: 60vh; }

.b2b-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 1.5rem 1rem 2rem; }

.b2b-hero { text-align: center; padding: 3rem 1rem; }
.b2b-hero h1 { font-weight: 400; color: var(--blue); font-size: 2rem; margin: 0 0 1rem; }
.b2b-hero p { max-width: 640px; margin: 0 auto 1rem; }
.b2b-hero__actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.b2b-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
  margin: 0 auto 1.5rem;
  max-width: 1080px;
}
.b2b-card--narrow { max-width: 440px; }
.b2b-card--wide { max-width: 760px; }
.b2b-card h1 { margin: 0 0 .25rem; font-weight: 400; color: var(--blue); font-size: 1.6rem; }
.b2b-card h2 { margin: 1rem 0 .5rem; font-size: 1.1rem; color: var(--blue); font-weight: 600; }
.b2b-lead { color: var(--muted); margin: 0 0 1.25rem; }

.b2b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.b2b-box { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; }
.b2b-box h2 { margin-top: 0; }

.b2b-form { display: grid; gap: 1rem; }
.b2b-form--cols { grid-template-columns: 1fr 1fr; }
.b2b-form label { display: grid; gap: .3rem; font-size: .9rem; }
.b2b-form label span { font-weight: 600; }
.b2b-form input,
.b2b-form select {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid #b9c5d0;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.b2b-form input:disabled { background: #eef2f6; color: var(--muted); }
.b2b-form input:focus,
.b2b-form select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.b2b-span2 { grid-column: 1 / -1; }
.b2b-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.b2b-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: .65rem 1.2rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.b2b-btn:hover { background: var(--blue-dark); }
.b2b-btn--small { padding: .4rem .85rem; font-size: .9rem; }
.b2b-btn--ghost { background: #fff; color: var(--blue); }
.b2b-btn--ghost:hover { background: #eaf1f8; }

.b2b-alert { border-radius: 6px; padding: .7rem .9rem; margin: 0 0 1rem; font-size: .92rem; }
.b2b-alert.is-ok { background: #e7f5ec; color: var(--ok); border: 1px solid #b9dfc7; }
.b2b-alert.is-error { background: #fdecea; color: var(--err); border: 1px solid #f3c1bd; }

.b2b-links { margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }

@media (max-width: 640px) {
  .b2b-form--cols { grid-template-columns: 1fr; }
  .b2b-card { padding: 1.25rem; }
  .b2b-hero h1 { font-size: 1.55rem; }
}

/* Pedido */
.muted { color: var(--muted); font-size: .88rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--blue); font-weight: 600; white-space: nowrap; }
.data-table .order-num { text-align: right; }

.b2b-status { display: inline-block; padding: .08rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eef3f8; color: var(--blue); }
.b2b-status.is-confirmado { background: #e5f1fb; color: #14568f; }
.b2b-status.is-concluido { background: #e7f5ec; color: var(--ok); }
.b2b-status.is-cancelado { background: #fdecea; color: var(--err); }

.order-summary-static { margin: 1rem 0 0 auto; max-width: 26rem; display: grid; gap: .3rem; }
.order-summary-static div { display: flex; justify-content: space-between; gap: 1rem; }
.order-summary-static .is-final { font-size: 1.15rem; font-weight: 700; color: var(--blue); border-top: 1px solid var(--line); padding-top: .35rem; }