@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --dd-charcoal: #171B1A;
  --dd-lime: #A5CF46;
  --dd-pale: #D5E8A9;
  --dd-sage: #8BA4A0;
  --dd-paper: #F7F8F5;
  --dd-muted: #4D5B54;
  --dd-bg: #F7F8F5;
  --line: #DCE3D8;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: #F7F8F5;
  color: #171B1A;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body { min-height: 100vh; }

.topbar {
  background: #171B1A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
}

.topbar a {
  background: transparent;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 18px;
  text-decoration: none;
}
.topbar .hlogo { display: inline-flex; align-items: center; gap: 8px; }
.topbar .hlogo img { height: 28px; width: auto; }

.topbar .product { font-weight: 500; font-size: 14px; }

/* Same secondary header action as the portal. Transparent on deep teal, white text and icon.
   The generic `a` rule below fills links with teal; this wins for a header Log out. */
.topbar .logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #fff;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.topbar .logout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  opacity: 1;
}
.topbar .logout:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  color: #fff;
  opacity: 1;
}
.topbar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

a, button, .btn {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
}

a, .btn {
  background: #A5CF46;
  color: #171B1A;
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  display: inline-block;
}

button {
  background: #A5CF46;
  color: #171B1A;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}

button.secondary { background: #171B1A; color: #fff; }

button:disabled { opacity: 0.55; cursor: default; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #465E21;
  outline-offset: 2px;
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.tabs button { background: #fff; color: #171B1A; border: 1px solid #768479; }
.tabs button[aria-selected="true"] { background: #171B1A; color: #fff; border-color: #171B1A; }

.banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 16px;
}

h1, h2 { margin: 0 0 8px; font-size: 22px; color: #171B1A; font-weight: 600; }
h2 { font-size: 18px; }

p.note { color: #171B1A; margin: 0 0 12px; }

form.stack, .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 12px;
}

label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }

label.check { flex-direction: row; align-items: center; gap: 8px; }

input, select {
  font: inherit;
  color: #171B1A;
  background: #FFFFFF;
  border: 1px solid #768479;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
}

table.data {
  display: table;
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
}

table.data thead { display: table-header-group; }
table.data tbody { display: table-row-group; }
table.data tr { display: table-row; }

table.data th, table.data td {
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data th {
  font-size: 13px;
  background: #F7F8F5;
}

table.data td .actions { display: flex; flex-wrap: nowrap; gap: 6px; }

.confirm {
  border: 1px solid #A5CF46;
  border-radius: 16px;
  padding: 12px;
  margin-top: 12px;
}
