/* Adventurous Journey Planner + review + GL sign-off pages. Uses the site tokens from css/style.css. */
body { background: var(--grey-100); margin: 0; }
.aj-header { background: var(--scouts); color: #fff; padding: 16px 24px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.aj-header h1 { margin: 0; font-size: 1.3rem; color: #fff; }
.aj-header p { margin: 2px 0 0; font-size: .82rem; opacity: .85; }
.aj-header .sp { flex: 1; }
.aj-header a, .aj-header button.hdr { color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 7px 12px; font: inherit; font-size: .8rem; text-decoration: none; cursor: pointer; }
.aj-wrap { max-width: 980px; margin: 0 auto; padding: 20px 16px 80px; }
.aj-card { background: #fff; border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.aj-card h2 { margin: 0 0 6px; color: var(--scouts); font-size: 1.15rem; }
.aj-card h3 { margin: 18px 0 6px; color: var(--scouts); font-size: .98rem; }
.aj-card .lead { margin: 0 0 14px; font-size: .86rem; color: var(--grey-600); line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid .wide { grid-column: 1 / -1; }
.fg label { display: block; font-size: .78rem; font-weight: 700; color: var(--grey-700, #374151); margin-bottom: 4px; }
.fg input[type=text], .fg input[type=email], .fg input[type=tel], .fg input[type=number], .fg input[type=date], .fg input[type=datetime-local], .fg select, .fg textarea,
table.ed input, table.ed select, table.ed textarea {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1.5px solid var(--grey-200); border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; }
.fg textarea, table.ed textarea { min-height: 64px; resize: vertical; }
.fg input:focus, .fg select:focus, .fg textarea:focus, table.ed input:focus, table.ed textarea:focus { outline: none; border-color: var(--scouts); }
.fg .hint { font-size: .74rem; color: var(--grey-500); margin-top: 3px; line-height: 1.4; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.45; margin: 6px 0; }
.chk input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 6px 0 4px; }
table.ed { width: 100%; border-collapse: collapse; font-size: .84rem; min-width: 560px; }
table.ed th { text-align: left; background: #f4f3f8; padding: 7px 6px; font-size: .74rem; color: var(--grey-600); border-bottom: 1px solid var(--grey-200); }
table.ed td { padding: 5px 4px; vertical-align: top; border-bottom: 1px solid var(--grey-100); }
table.ed td.del { width: 34px; text-align: center; }
table.ed td.del button { background: none; border: 0; color: #b91c1c; font-size: 1.1rem; cursor: pointer; padding: 6px; }
.add-row { background: none; border: 1.5px dashed var(--grey-300, #cbd5e1); border-radius: 8px; padding: 8px 12px; color: var(--scouts); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; margin-top: 6px; }
.box { border-radius: 10px; padding: 12px 14px; font-size: .84rem; line-height: 1.5; margin: 10px 0; }
.box.info { background: #eef2ff; border-left: 4px solid #4f46e5; }
.box.ok { background: #ecfdf5; border-left: 4px solid #059669; }
.box.warn { background: #fff7ed; border-left: 4px solid #f59e0b; }
.box.bad { background: #fef2f2; border-left: 4px solid #dc2626; }
.box.ext { background: #7f1d1d; color: #fff; }
.steps { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: thin; }
.steps button { flex: none; border: 1.5px solid var(--grey-200); background: #fff; color: var(--grey-600); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.steps button.on { background: var(--scouts); border-color: var(--scouts); color: #fff; }
.steps button.done::before { content: "✓ "; color: #059669; }
.steps button.on.done::before { color: #a7f3d0; }
.navbar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--grey-200); padding: 10px 16px; display: flex; gap: 10px; align-items: center; z-index: 5; }
.navbar .sp { flex: 1; font-size: .76rem; color: var(--grey-500); }
.btn-a { border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; }
.btn-a.pri { background: var(--scouts); color: #fff; }
.btn-a.sec { background: #fff; color: var(--scouts); border: 1.5px solid var(--scouts); }
.btn-a.go { background: #059669; color: #fff; }
.btn-a.warn { background: #f59e0b; color: #fff; }
.btn-a.bad { background: #dc2626; color: #fff; }
.btn-a:disabled { opacity: .5; cursor: default; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: .72rem; font-weight: 800; }
.pill.Low { background: #D1F7E3; color: #1a6640; } .pill.Medium { background: #FFF3CD; color: #856404; }
.pill.High { background: #FFE0E0; color: #8B1520; } .pill.Extreme { background: #7f1d1d; color: #fff; }
.status { display: inline-block; border-radius: 6px; padding: 3px 9px; font-size: .74rem; font-weight: 800; background: var(--grey-100); }
.status.SUBMITTED, .status.SL_REVIEWED { background: #eef2ff; color: #3730a3; } .status.APPROVED { background: #ecfdf5; color: #065f46; }
.status.CHANGES { background: #fff7ed; color: #9a3412; } .status.NOT_APPROVED { background: #fef2f2; color: #991b1b; }
#toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .86rem; z-index: 50; display: none; max-width: 92vw; white-space: pre-line; }
#toast.bad { background: #b91c1c; }
.ro table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .82rem; margin: 4px 0 10px; }
.ro th { text-align: left; background: #f4f3f8; padding: 5px 7px; font-size: .72rem; color: var(--grey-600); }
.ro td { padding: 5px 7px; border-bottom: 1px solid var(--grey-100); vertical-align: top; white-space: pre-wrap; }
.ro dl { display: grid; grid-template-columns: 210px 1fr; gap: 4px 14px; font-size: .84rem; margin: 0 0 10px; }
.ro dt { color: var(--grey-500); } .ro dd { margin: 0; white-space: pre-wrap; }
.login-box { max-width: 380px; margin: 60px auto; text-align: center; }
.login-box input { width: 100%; box-sizing: border-box; padding: 12px; border: 2px solid var(--grey-200); border-radius: 10px; font: inherit; text-align: center; margin: 10px 0; }
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .aj-card { padding: 18px 16px; }
  .ro dl { grid-template-columns: 1fr; gap: 0 0; } .ro dt { margin-top: 6px; }
  .aj-header { padding: 14px 16px; }
}
@media print {
  .aj-header, .steps, .navbar, .no-print, #toast { display: none !important; }
  body { background: #fff; } .aj-card { box-shadow: none; padding: 8px 0; page-break-inside: avoid; }
}
