/* Vivery's brand, taken from the live B2C sign-in pages and Vivery Manager (Vivery.css, sharedStyles.css). */
@font-face {
  font-family: 'Roobert';
  src: url('https://cdn.vivery.com/accessfood-resources/Roobert-Regular.woff') format('woff');
  font-weight: 400;
}
@font-face {
  font-family: 'Roobert';
  src: url('https://cdn.vivery.com/accessfood-resources/Roobert-SemiBold.woff') format('woff');
  font-weight: 600;
}
@font-face {
  font-family: 'Roobert';
  src: url('https://cdn.vivery.com/accessfood-resources/Roobert-Bold.woff') format('woff');
  font-weight: 700;
}

:root {
  --green: #00483d;
  --deep: #003029;
  --lime: #e1ffb3;
  --sage: #5f9575;
  --basil: #4a8260;
  --mist: #d8e4dc;
  --gray: #f1f1f1;
  --ink: #00483d;
  --muted: #4a6b62;
  --line: #d8e4dc;
  --accent: #00483d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    15px/1.5 'Roobert',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--gray);
}
a {
  color: var(--green);
}

/* ---- Sign-in pages: the same look as today's B2C pages ------------------------------------- */
body.auth {
  background: var(--green);
  color: var(--lime);
  min-height: 100vh;
  padding-bottom: 72px;
}
body.auth a {
  color: var(--lime);
}
.auth-main {
  max-width: 380px;
  margin: 0 auto;
  padding: 9vh 24px 24px;
}
.auth-main .spark {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}
.auth-main h1 {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 6px;
}
.auth-main .for-app {
  text-align: center;
  font-size: 14px;
  color: var(--mist);
  margin: 0 0 28px;
}
.auth-main .for-app strong {
  color: var(--lime);
  font-weight: 600;
}
.auth-main p.lead {
  color: var(--mist);
  text-align: center;
}
.auth-main label {
  display: block;
  font-size: 13px;
  color: var(--mist);
  margin: 14px 0 0;
}
.auth-main input[type='text'],
.auth-main input[type='tel'],
.auth-main input[type='email'],
.auth-main input[type='password'] {
  width: 100%;
  padding: 12px 0 10px;
  font: inherit;
  font-size: 17px;
  color: var(--lime);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--lime);
  border-radius: 0;
  outline: none;
}
.auth-main input::placeholder {
  color: var(--sage);
}
.auth-main input:focus {
  border-bottom-color: #fff;
}
.auth-main button,
.auth-main .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 22px;
  padding: 0;
  border-radius: 25px;
  border: 1px solid var(--lime);
  background: var(--lime);
  color: var(--green);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.auth-main button.secondary {
  background: transparent;
  color: var(--lime);
  margin-top: 12px;
}
.auth-main button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.auth-main .or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sage);
  font-size: 13px;
  margin: 26px 0 0;
}
.auth-main .or::before,
.auth-main .or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--basil);
}
.auth-main details {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}
.auth-main details summary {
  cursor: pointer;
  text-decoration: underline;
  list-style: none;
}
.auth-main details[open] summary {
  margin-bottom: 4px;
}
.auth-main details form {
  text-align: left;
}
.auth-main .small {
  font-size: 13px;
  color: var(--mist);
  text-align: center;
  margin-top: 18px;
}
.auth-main .code-big {
  font-size: 30px !important;
  letter-spacing: 10px;
  text-align: center;
  font-weight: 600;
}
.auth-main .error {
  background: #fbe3da;
  color: #7a2410;
}
.auth-main .ok {
  background: var(--lime);
  color: var(--green);
}
.auth-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  border-top: 1px solid var(--lime);
  background: var(--green);
}
.auth-footer a {
  flex: 1;
  text-align: center;
  padding: 18px 0;
  font-size: 14px;
  text-decoration: none;
  border-left: 1px solid var(--lime);
}
.auth-footer a:first-child {
  border-left: 0;
}
.dev-corner {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 12px;
  opacity: 0.7;
}

/* ---- Account and admin pages ---------------------------------------------------------------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top nav a {
  margin-left: 18px;
  text-decoration: none;
  font-weight: 600;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.brand img {
  height: 26px;
}
.tag {
  font-weight: 600;
  font-size: 11px;
  color: var(--green);
  background: var(--lime);
  border-radius: 10px;
  padding: 2px 8px;
}
.card {
  max-width: 560px;
  margin: 32px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.card.wide {
  max-width: 960px;
}
h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 4px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
p.lead,
.muted {
  color: var(--muted);
  margin-top: 0;
}
form {
  margin: 0;
}
.method {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
}
.method h2 {
  margin-top: 0;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 4px;
}
input[type='text'],
input[type='tel'],
input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--sage);
  border-radius: 22px;
}
.row {
  display: flex;
  gap: 8px;
  align-items: end;
}
.row > :first-child {
  flex: 1;
}
button,
.button {
  display: inline-block;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--green);
  border-radius: 22px;
  background: var(--green);
  color: var(--lime);
  cursor: pointer;
  text-decoration: none;
}
button.secondary {
  background: #fff;
  color: var(--green);
}
button.full {
  width: 100%;
  margin-top: 10px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.error {
  background: #fdecec;
  color: #9b1c1c;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.ok {
  background: #eaf7d6;
  color: var(--green);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.divider {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 4px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
code {
  font-size: 13px;
  background: #eef3ef;
  padding: 1px 5px;
  border-radius: 4px;
}
.pill {
  font-size: 12px;
  border-radius: 10px;
  padding: 2px 8px;
  background: var(--lime);
  color: var(--green);
}
.pill.off {
  background: #eef0ee;
  color: var(--muted);
}
.code-big {
  font-size: 28px;
  letter-spacing: 6px;
  font-weight: 700;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
}
.tile .big {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}
.tile.warn {
  border-color: #f5c2c2;
  background: #fff5f5;
}
.actions {
  display: flex;
  gap: 8px;
}
button.danger {
  background: #c92a2a;
  border-color: #c92a2a;
  color: #fff;
}
select {
  padding: 9px;
  font: inherit;
  font-size: 15px;
  border: 1px solid var(--sage);
  border-radius: 10px;
}
tr.event.fail td {
  background: #fff5f5;
}
tr.event.fail td:first-child {
  border-left: 3px solid #c92a2a;
}
tr.event.staff td:first-child {
  border-left: 3px solid #e8590c;
}
.chips {
  margin: 0 0 8px;
}
.chip {
  display: inline-block;
  font-size: 13px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}
.chip.on {
  background: var(--green);
  border-color: var(--green);
  color: var(--lime);
}
table.grid td,
table.grid th {
  font-size: 14px;
}
.warn-text {
  background: #fdecec;
  color: #9b1c1c;
}

/* Spacing that used to be inline style="" attributes. The content security policy blocks inline styles. */
.way-in-form {
  margin-top: 6px;
}
.sign-out {
  margin-top: 24px;
}
.console-nav {
  margin-top: 0;
}
.search-row {
  margin: 16px 0 8px;
}
.filter-row {
  margin-bottom: 12px;
}
.spaced {
  margin-top: 8px;
}
.nowrap {
  white-space: nowrap;
}
label.check {
  color: inherit;
}
