/* GENERATED FILE - DO NOT EDIT.
   Source: shared/prep-auto.css - run `npm run sync:shared` after editing. */

/* Prep rows LakbayBook adds by itself (shared/prep-auto.js, owner 2026-10-03). Web + app. */
.prep-auto .prep-item-wrap,
.prep-doc .prep-item-wrap {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.prep-auto-tag {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #eef2ec;
  color: #2d5a45;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.prep-auto-sub,
.prep-doc-when {
  color: #6c776f;
  font-size: 0.76rem;
  line-height: 1.35;
}
.prep-auto.is-passport input[type="checkbox"]:disabled {
  opacity: 1;
  cursor: default;
}
.prep-auto.is-warn .prep-auto-sub {
  color: #7a5310;
}
.prep-auto-warn {
  margin-right: 0.3rem;
  color: #c9861b;
}
.prep-auto-badge {
  margin-left: 0.3rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #fff1d1;
  color: #7a5310;
  font-size: 0.7rem;
  font-weight: 700;
}
.prep-auto-link {
  margin-left: 0.25rem;
  color: #2d5a45;
  font-weight: 700;
  text-decoration: underline;
  /* "Add date" stays one link on one line: the hint wraps before it (ui-sweep 700 px) */
  white-space: nowrap;
}
.prep-docs-status,
.prep-docs-foot {
  margin: 0.4rem 0 0;
  color: #6c776f;
  font-size: 0.78rem;
  line-height: 1.4;
}
.prep-doc.is-optional .prep-text {
  color: #4b5650;
}

/* Layout (web broke 2026-10-03: the website's prep rows are wrapping flex rows, so the checkbox, text and
   Open link landed on separate lines and long notes ran past the card). One fixed 3-column row on both. */
.nu-prep-items .check-row.prep-auto,
.nu-prep-items .check-row.prep-doc,
.prep-rows .check-row.prep-auto,
.prep-rows .check-row.prep-doc {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.65rem;
  row-gap: 0;
  flex-wrap: nowrap;
  min-width: 0;
}
.check-row.prep-auto > *,
.check-row.prep-doc > * {
  min-width: 0;
}
.check-row.prep-auto .prep-check,
.check-row.prep-doc .prep-check {
  display: flex;
  padding-top: 0.1rem;
}
.check-row.prep-auto .prep-item-wrap,
.check-row.prep-doc .prep-item-wrap {
  overflow-wrap: anywhere;
}
.check-row.prep-auto .prep-text,
.check-row.prep-doc .prep-text {
  font-size: 0.92rem;
  line-height: 1.4;
}
.check-row.prep-doc .prep-link {
  align-self: start;
  padding-top: 0.15rem;
  color: #2d5a45;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.prep-docs h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Edit mode: automatic items with × (removed for the whole trip), the restore link, item links. */
.prep-auto-edit {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.6rem;
  padding: 0.2rem 0 !important;
}
.prep-auto-edit-text {
  flex: 1;
  min-width: 0;
  color: #4b5650;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.prep-docs-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.prep-docs-edit-head h3 {
  margin: 0;
}
.prep-auto-restore {
  display: inline-flex;
  margin: 0.4rem 0;
  padding: 0.45rem 0.9rem;
  border: 1.5px dashed #c9bfa9;
  border-radius: 999px;
  background: transparent;
  color: #2d5a45;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.prep-link-btn {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #e4dccb;
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.prep-link-btn.is-on {
  opacity: 1;
  border-color: #2d5a45;
}
.prep-item-link {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #e4dccb;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
}
.prep-item-link[hidden] {
  display: none !important;
}
/* Web edit rows don't wrap: an open link field gets its own full-width line. */
#panel-prep .check-row:has(.prep-item-link:not([hidden])) {
  flex-wrap: wrap;
}
#panel-prep .check-row > .prep-item-link {
  flex: 1 1 100%;
  margin-left: 1.9rem;
}

/* "Which passport are you travelling on?" — one tap until Travel documents has a passport country. */
.prep-passport-ask {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px dashed #c9d8cf;
  border-radius: 14px;
  background: #f6faf7;
  grid-column: 1 / -1;
}
.prep-passport-ask-q {
  margin: 0;
  color: #1f3b2f;
  font-weight: 700;
}
.prep-passport-ask-sub {
  margin: 0;
  color: #6c776f;
  font-size: 0.78rem;
}
.prep-passport-ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.prep-passport-ask-actions > * {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.prep-passport-ask-ph {
  border: 0;
  background: #2d5a45;
  color: #fff;
}
.prep-passport-ask-other {
  border: 1px solid #c9d8cf;
  background: #fff;
  color: #2d5a45;
}
.prep-passport-ask-ph:disabled {
  opacity: 0.6;
}
/* The website's #panel-prep rows centre their items; an automatic row keeps its box on the first line of its words (W-41). */
html.wb-new #panel-prep .check-row.prep-auto,
html.wb-new #panel-prep .check-row.prep-doc {
  align-items: start;
}
/* An automatic row has no ⋮⋮ handle: in a list whose other rows have one, it keeps the handle's room so every tick box
   lines up (W-41 follow-up, 2026-10-21). Website: handle 22px − 6px + 0.5rem gap; app: 22px − 6px + 2px + 0.6rem gap. */
html.wb-new #panel-prep .nu-prep-items:has(> .check-row.is-editor > .prep-drag) > .check-row.prep-auto,
html.wb-new #panel-prep .nu-prep-items:has(> .check-row.is-editor > .prep-drag) > .check-row.prep-doc {
  padding-left: calc(16px + 0.5rem);
}
.prep-rows:has(> .check-row.is-view > .prep-drag) > .check-row.prep-auto,
.prep-rows:has(> .check-row.is-view > .prep-drag) > .check-row.prep-doc {
  padding-left: calc(18px + 0.6rem);
}

/* LakBi's quiet line on saved LakBi sections (shared/trip-core.js LakbayAiNote, owner 2026-10-21): small, muted, once
   per section at the top. Entry documents, Prep's automatic items, the destination guide, Emergency — web + app. */
.lakbi-ai-note {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--ink-soft, #66706a);
  font-style: normal;
}
