/* BART read-only viewer: the look of the 2003 BART screens (User Guide + staff photos).
   Light-cyan page, blue pill banner, double-ruled frame, beige/blue grid rows, bold serif labels,
   pink value boxes (grey when read-only), blue gradient buttons and tabs. */

:root {
  --page: #d3ebf0;
  --blue-row: #c6e2ea;
  --beige: #f6e8e3;
  --cell-bg: #bcdfe8;
  --cell-line: #8fb3bd;
  --box: #f4dcd6;
  --box-ro: #d8cdca;
  --ink: #111;
  --serif: "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { background: linear-gradient(180deg, #eef8fa 0, var(--page) 260px) fixed; }
body { margin: 0; color: var(--ink); font: 15px/1.25 var(--serif); min-height: 100vh; }
a { color: #000; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #1d3fd0; outline-offset: 2px; }

/* ---------------- header ---------------- */
.top { display: flex; align-items: flex-end; gap: 18px; padding: 10px 16px 6px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; padding: 4px 6px; border: 2px solid #1a2a8a; background: #fff; }
.logo .bc { font: 900 22px/1 "Arial Black", Arial, sans-serif; color: #d0102a; letter-spacing: -.5px; text-shadow: 1px 1px 0 #1a2a8a; }
.logo .tag { font: 700 9.5px/1.4 var(--sans); color: #1a2a8a; letter-spacing: .2px; }
.mid { flex: 1 1 640px; min-width: 0; }
.bart { font: 17px/1.2 var(--sans); text-align: center; margin-bottom: 6px; color: #222; }
.bart b { font: 700 27px var(--serif); color: #d0102a; margin-left: 4px; }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font: 12px var(--sans); }
.find label { font-weight: 700; }
.find input { font: 13px var(--sans); padding: 2px 4px; border: 2px inset #b8a9a6; background: #fff; }
.find button { font: 700 12px var(--sans); }
.who { color: #333; }
form.inline { display: inline; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #000; text-decoration: underline; cursor: pointer; }

/* drop-down menu bar (Home ▼ Support Tables ▼ Operations ▼ …) */
.menubar > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menubar li { position: relative; }
.menubar .pad > span { display: flex; justify-content: space-between; align-items: center; min-width: 118px; padding: 3px 6px; background: #fff;
  border: 1px solid #777; border-right-width: 0; font: 700 12.5px var(--sans); cursor: default; user-select: none; }
.menubar .pad:last-child > span { border-right-width: 1px; }
.menubar .pad > span i { font-style: normal; font-size: 9px; margin-left: 8px; }
.menubar .dd { display: none; position: absolute; top: 100%; left: 0; z-index: 50; list-style: none; margin: 0; padding: 0; min-width: 210px;
  background: #fff; border: 1px solid #000; box-shadow: 3px 3px 0 rgba(0, 0, 0, .25); }
.menubar .dd.sub { top: -1px; left: 100%; }
.menubar li:hover > .dd, .menubar li:focus-within > .dd { display: block; }
.menubar .dd li > a, .menubar .dd li > span { display: flex; justify-content: space-between; padding: 4px 8px; border-bottom: 1px solid #999;
  font: 700 12px var(--sans); text-decoration: none; color: #000; white-space: nowrap; }
.menubar .dd li > span i { font-style: normal; }
.menubar .dd li > a:hover, .menubar .dd li.has:hover > span, .menubar .dd li > a:focus { background: #0f1f6e; color: #fff; }
.menubar .dd .off { color: #999 !important; font-weight: 400 !important; cursor: not-allowed; }

/* ---------------- banner + frame ---------------- */
.banner { max-width: 1180px; margin: 4px auto 10px; padding: 0 16px; }
.banner span { display: block; text-align: center; color: #fff; font: 700 18px/30px var(--sans); text-shadow: 0 1px 1px #0b1f70; border-radius: 999px;
  background: linear-gradient(180deg, #6f90f7 0%, #2a4fe0 42%, #1c39c4 58%, #4cb2f0 100%); box-shadow: 0 2px 3px rgba(0, 0, 0, .3); }
main { padding: 0 16px 24px; }
.frame { width: fit-content; max-width: 100%; margin: 0 auto; border: 7px double #111; background: #f3e6e1; }
.frame.res { background: #c9e5ec; }
.frame-in { padding: 8px; overflow-x: auto; }
footer { text-align: center; font: 12px var(--sans); color: #4a6870; padding: 0 0 18px; }

.links { display: flex; justify-content: center; gap: 4em; margin: 2px 0 8px; font-size: 18px; }
.links .off { color: #8a8a8a; text-decoration: underline; cursor: not-allowed; }
.links .small, a.small { font-size: 13px; }
.msg { max-width: 760px; margin: 0 auto 10px; padding: 6px 10px; background: #fffbe8; border: 1px solid #c9b860; font: 13px var(--sans); }
.msg.err { background: #fde8e8; border-color: #c86060; }
.hint { font: 12px var(--sans); color: #444; max-width: 640px; }

/* ---------------- list grids ---------------- */
table.grid { border-collapse: separate; border-spacing: 2px; background: #fff; border: 1px solid var(--cell-line); margin: 0 auto; }
.grid th, .grid td { border: 1px solid #a9c4cb; padding: 2px 5px; white-space: nowrap; font-size: 16px; }
.grid th { background: var(--beige); font-weight: 400; vertical-align: bottom; }
.grid th a { color: #000; }
.grid tr.pager td { background: var(--blue-row); text-align: left; }
.grid .pages a, .grid .pages b { margin-right: 6px; }
.grid .pages .gap { margin-right: 6px; color: #555; }
.grid .count { float: right; font: 12px var(--sans); color: #4a6870; padding-top: 2px; }
.grid tbody tr.a td { background: var(--blue-row); }
.grid tbody tr.b td { background: var(--beige); }
.grid td.id { font: 700 15px var(--mono); text-align: right; }
.grid td.num { font: 15px var(--mono); text-align: right; }
.grid td.go { text-align: center; }
.grid td.empty { text-align: center; color: #555; font-style: italic; background: var(--beige); }
.grid tfoot td { background: var(--beige); font-weight: 700; }
.grid tbody tr:hover td { filter: brightness(.96); }

/* ---------------- detail forms ---------------- */
table.form { border-collapse: separate; border-spacing: 2px; background: #e8f3f6; border: 1px solid var(--cell-line); margin: 0 auto; }
.form th, .form td { background: var(--cell-bg); border: 1px solid #a2c3cc; padding: 4px 5px; vertical-align: middle; }
.form th { font: 700 16px var(--serif); text-align: right; white-space: nowrap; color: #222; }
.form td { text-align: left; }
.form tr.spacer td { background: var(--cell-bg); height: 18px; }
.f { font: 13.5px var(--sans); color: #111; background: var(--box); border: 2px inset #c4b3af; padding: 2px 4px; max-width: 100%; }
.f.ro { background: var(--box-ro); color: #555; }
.f.num { text-align: right; font-family: var(--mono); }
textarea.f { resize: vertical; display: block; font-family: var(--mono); }
select.f { background: #fff; }
.form label.cb { display: block; font: 15px var(--serif); margin-top: 2px; }
.hdr table.form { width: 100%; }

/* ---------------- buttons ---------------- */
.btn { display: inline-block; min-width: 84px; padding: 3px 14px; text-align: center; color: #fff; font: 700 16px/1.25 var(--sans); text-decoration: none;
  text-shadow: 0 1px 0 #0b1f70; border: 2px solid #0e2a96; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, #86a6ff 0%, #3462ea 44%, #1e40d2 56%, #3f8cf2 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn:hover { filter: brightness(1.1); }
.btn.off { color: #ececec; text-shadow: none; border-color: #777; cursor: not-allowed; background: linear-gradient(180deg, #d4d4d4 0%, #a9a9a9 50%, #9a9a9a 51%, #b5b5b5 100%); }
.btn.off:hover { filter: none; }
button.btn { font-family: var(--sans); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 8px; }

/* dialogs: buttons stacked on the left (Next/Prev/Edit/Add/Delete/Print/Exit, Accept/Cancel) */
.dialog { display: flex; gap: 14px; align-items: flex-start; }
.side-btns { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.dialog-body { min-width: 0; }

/* ---------------- reservation tabs ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px 4px 0; border-bottom: 2px solid #1c39c4; }
.tab { min-width: 92px; padding: 3px 12px 2px; text-align: center; color: #fff; font: 700 15px var(--sans); text-decoration: none; text-shadow: 0 1px 0 #0b1f70;
  border: 1px solid #0e2a96; border-bottom: 0; border-radius: 9px 9px 0 0; background: linear-gradient(180deg, #5d84f6 0%, #2447d8 55%, #1a36bd 100%); }
.tab:hover { filter: brightness(1.12); }
.tab.on { background: #f7efe9; color: #000; text-shadow: none; border-color: #777; }
.tab.off { opacity: .55; cursor: not-allowed; }
.tabbody { background: var(--cell-bg); border: 1px solid var(--cell-line); border-top: 0; padding: 10px 8px 14px; }
.child { overflow-x: auto; }

/* section banners inside a tab: Totals, Special Instructions, Sailing Detail, Group Summary, Travel Guard */
.sect { margin: 14px auto 8px; max-width: 720px; text-align: center; }
.sect span { display: block; padding: 3px 0; border-radius: 999px; font: 700 18px var(--sans); color: #6a6a6a;
  background: linear-gradient(180deg, #ffffff 0%, #eee9e4 55%, #ddd5cd 100%); border: 1px solid #cfc6bf; }
.tabbody > .sect:first-child { margin-top: 2px; }

/* ---------------- login ---------------- */
.loginpage .frame { margin-top: 30px; }

/* ---------------- print ---------------- */
@media print {
  html { background: #fff; }
  .menubar, .side, .toolbar, .side-btns, .links, footer, .tabs .tab:not(.on) { display: none !important; }
  .frame { border: 0; }
  .banner span { background: none; color: #000; text-shadow: none; box-shadow: none; border-bottom: 2px solid #000; border-radius: 0; }
}

@media (max-width: 720px) {
  .top { flex-direction: column; align-items: stretch; }
  .side { align-items: stretch; }
  .menubar .pad > span { min-width: 0; }
  .dialog { flex-direction: column; }
  .side-btns { flex-direction: row; flex-wrap: wrap; }
}
