/* Ewangan Enkerai admin. Same colours and fonts as the website, tuned for
   long working sessions: calm surfaces, clear tables, obvious actions. */
@font-face {
  font-family: 'Figtree';
  src: url('fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --paper: #faf7f1;
  --cream: #f3ecdf;
  --ink: #16130f;
  --text: #2a2620;
  --muted: #6a6356;
  --line: #e7dfd0;
  --line-strong: #d3c7b0;
  --green: #1f5a44;
  --green-deep: #163f31;
  --green-soft: #e3eee8;
  --mint: #a8dcc0;
  --amber: #8a5a00;
  --amber-soft: #fbf0d9;
  --red: #a8361f;
  --red-soft: #fbe7e1;
  --blue: #1f4f7a;
  --blue-soft: #e4edf6;

  --font-display: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgb(22 19 15 / 0.05), 0 4px 16px -8px rgb(22 19 15 / 0.12);
  --sidebar: 248px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--green-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  margin: 0 0 12px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------ Shell */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #d9d3c7;
  padding: 18px 14px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.brand:hover {
  color: var(--white);
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink);
}
.brand__mark .icon {
  width: 20px;
  height: 20px;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  color: #a39b8c;
}

.nav {
  display: grid;
  gap: 2px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #d9d3c7;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.nav a:hover {
  background: rgb(255 255 255 / 0.07);
  color: var(--white);
}
.nav a[aria-current='page'] {
  background: rgb(168 220 192 / 0.14);
  color: var(--white);
}
.nav a[aria-current='page'] .icon {
  color: var(--mint);
}
.nav__count {
  margin-left: auto;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.sidebar__foot {
  margin-top: auto;
  padding: 14px 8px 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 13px;
}
.sidebar__foot strong {
  display: block;
  color: var(--white);
  font-weight: 600;
}
.sidebar__foot span {
  color: #a39b8c;
}
.sidebar__links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.sidebar__links a,
.sidebar__links button {
  color: #d9d3c7;
  font: inherit;
  font-size: 13px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sidebar__links a:hover,
.sidebar__links button:hover {
  color: var(--white);
}

.main {
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 40px) 64px;
}
.main__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Mobile: the sidebar becomes a bar with a menu. */
.mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  /* minmax(0, 1fr), not 1fr: a wide table must scroll, not stretch the page. */
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
  .mobile-bar {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--ink);
    color: var(--white);
  }
  .mobile-bar summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
  }
  .mobile-bar summary::-webkit-details-marker {
    display: none;
  }
  .mobile-bar .brand {
    padding: 0;
  }
  .mobile-bar__menu {
    padding: 4px 12px 16px;
  }
  .mobile-bar__toggle {
    font-size: 14px;
    font-weight: 600;
    color: var(--mint);
  }
  .main {
    padding-top: 20px;
  }
}

/* ------------------------------------------------------------ Page head */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 22px;
}
.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
}
.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.crumb:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------ Flash */
.flash {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid;
  font-weight: 500;
}
.flash--success {
  background: var(--green-soft);
  border-color: #bcd8c9;
  color: var(--green-deep);
}
.flash--error {
  background: var(--red-soft);
  border-color: #f0c4b8;
  color: #7c2412;
}

/* ------------------------------------------------------------ Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card + .card,
.stack > * + * {
  margin-top: 20px;
}
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.card__head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.card__body {
  padding: 20px;
}
.card__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--main {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  align-items: start;
}
.grid--main > * + * {
  margin-top: 0;
}
.grid > .card + .card {
  margin-top: 0;
}
@media (max-width: 1000px) {
  .grid--main,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------ Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
a.stat:hover {
  border-color: var(--line-strong);
  color: inherit;
}
.stat__label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.stat__value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__note {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.stat--alert .stat__value {
  color: var(--red);
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .page-head__actions {
    width: 100%;
  }
}

/* ------------------------------------------------------------ Tables */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: #fdfbf7;
}
.table .num,
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table td.num {
  font-weight: 500;
}
.table a.row-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.table a.row-link:hover {
  color: var(--green);
  text-decoration: underline;
}
.table .sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.table tfoot td {
  font-weight: 700;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.table--compact td {
  padding: 9px 16px;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.struck {
  text-decoration: line-through;
  color: var(--muted);
}

.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
  flex: none;
}
.avatar--initial {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--green);
  font-size: 14px;
}

/* ------------------------------------------------------------ Empty state */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}
.empty .btn {
  margin-top: 12px;
}

/* ------------------------------------------------------------ Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: #efebe3;
  color: #514a3e;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}
.badge--green {
  background: var(--green-soft);
  color: var(--green);
}
.badge--amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge--red {
  background: var(--red-soft);
  color: var(--red);
}
.badge--blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge--plain::before {
  display: none;
}

/* Sponsorship cover: 0, 50 or 100 percent. */
.cover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.cover__bar {
  width: 54px;
  height: 6px;
  border-radius: 99px;
  background: #ece6da;
  overflow: hidden;
}
.cover__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
}
.cover--50 .cover__bar i {
  width: 50%;
  background: #c08a1e;
}
.cover--100 .cover__bar i {
  width: 100%;
}

progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: #ece6da;
  overflow: hidden;
  appearance: none;
}
progress::-webkit-progress-bar {
  background: #ece6da;
}
progress::-webkit-progress-value {
  background: var(--green);
}
progress::-moz-progress-bar {
  background: var(--green);
}

/* ------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn--primary:hover {
  background: #2f2a23;
  color: var(--white);
}
.btn--green {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.btn--green:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}
.btn--danger {
  border-color: #e3b3a6;
  color: var(--red);
}
.btn--danger:hover {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red);
}
.btn--small {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
}
.btn--link {
  border: 0;
  background: none;
  padding: 0;
  min-height: 0;
  color: var(--green);
  text-decoration: underline;
}
.btn--link:hover {
  color: var(--green-deep);
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ------------------------------------------------------------ Forms */
.form {
  display: grid;
  gap: 18px;
}
.form-section {
  display: grid;
  gap: 16px;
}
.form-section + .form-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-section > h2 {
  margin-bottom: -4px;
}
.form-section > .hint {
  margin-top: -10px;
}
.fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fields--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fields--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fields .wide {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .fields,
  .fields--3,
  .fields--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 5px;
  align-content: start;
}
.field > label,
.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.field-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='date'],
input[type='search'],
input[type='tel'],
input[type='file'],
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input[type='file'] {
  padding: 6px;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(31 90 68 / 0.15);
}
input[readonly] {
  background: var(--paper);
  color: var(--muted);
}
.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--red);
}
input.num {
  text-align: right;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--ink);
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
  flex: none;
}
.check span small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
}
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.filters .field {
  min-width: 150px;
}
.filters .field--grow {
  flex: 1 1 220px;
}
.filters label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.filters input,
.filters select {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 14px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.tabs a:hover {
  color: var(--ink);
}
.tabs a[aria-current='page'] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ------------------------------------------------------------ Detail lists */
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
  font-size: 14px;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.profile {
  display: flex;
  gap: 18px;
  align-items: center;
}
.profile__photo {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--cream);
  flex: none;
}
.profile__photo--initial {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--green);
}

.note {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14px;
}
.note--warn {
  background: var(--amber-soft);
  border-color: #efd9a8;
  color: #5c3c00;
}
.note--info {
  background: var(--blue-soft);
  border-color: #c7d8ea;
  color: #183d5e;
}
.note--good {
  background: var(--green-soft);
  border-color: #bcd8c9;
  color: var(--green-deep);
}
.note strong {
  color: inherit;
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-plain li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.list-plain li:last-child {
  border-bottom: 0;
}
.list-plain .when {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Steps on a fee payment: draft, approved, paid, received. */
.steps {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  flex: 1;
  position: relative;
  padding-top: 30px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ece6da;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  z-index: 1;
}
.steps li::after {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(-50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: #ece6da;
}
.steps li:first-child::after {
  display: none;
}
.steps li.is-done {
  color: var(--ink);
}
.steps li.is-done::before {
  content: '✓';
  background: var(--green);
  color: var(--white);
}
.steps li.is-done::after {
  background: var(--green);
}
.steps strong {
  display: block;
  color: inherit;
}

/* Inline "are you sure" panels built with <details>. */
.confirm > summary {
  list-style: none;
  cursor: pointer;
}
.confirm > summary::-webkit-details-marker {
  display: none;
}
.confirm[open] > summary {
  margin-bottom: 12px;
}
.confirm__panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.nowrap {
  white-space: nowrap;
}
.mt {
  margin-top: 16px;
}
.mb-0 {
  margin-bottom: 0;
}
.big-number {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pager {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------ Sign in */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--cream);
}
.auth__card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.auth .brand {
  color: var(--ink);
  padding: 0 0 22px;
}
.auth .brand small {
  color: var(--muted);
}
.auth h1 {
  font-size: 22px;
  margin-bottom: 4px;
}
.auth p {
  color: var(--muted);
}
.auth .btn {
  width: 100%;
  min-height: 44px;
}

/* ------------------------------------------------------------ Letters and updates */
.letter-body {
  white-space: pre-line;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.updates {
  list-style: none;
  margin: 0;
  padding: 0;
}
.updates li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.updates li:first-child {
  border-top: 0;
}
.updates h3 {
  margin: 2px 0 4px;
  font-size: 15px;
}
.updates .thumb {
  float: right;
  width: 72px;
  height: 72px;
  margin-left: 12px;
  border-radius: 8px;
  object-fit: cover;
}
.updates p {
  margin: 0;
}
.letters-mini li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.letters-mini li:first-child {
  border-top: 0;
}
.letters-mini .sub {
  white-space: pre-line;
}

/* ------------------------------------------------------------ Receipt */
.receipt {
  max-width: 720px;
}
.receipt__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.receipt__amount {
  text-align: right;
}

@media print {
  body {
    background: var(--white);
    font-size: 12pt;
  }
  .sidebar,
  .mobile-bar,
  .page-head__actions,
  .no-print,
  .flash {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .main {
    padding: 0;
  }
  .card {
    box-shadow: none;
    border-color: #ccc;
  }
}
.mb-section {
  margin-bottom: 20px;
}
/* Less important table columns are hidden on phones. */
@media (max-width: 600px) {
  .hide-sm {
    display: none;
  }
}
