/* Beacon Parser - nostalgic SiteCatalyst 14 style */

:root {
  --green-dark: #3c5f12;
  --green: #78b031;
  --green-light: #a8d26a;
  --green-pale: #eef6e1;
  --green-border: #9fc56a;
  --grey-border: #c4c4c4;
  --text: #333;
  --muted: #888;
  --link: #1f5fa8;
  --warn-bg: #fff8dc;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #fff;
  color: var(--text);
  font: 11px/1.45 Verdana, Arial, Helvetica, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, textarea { font-family: Consolas, "Courier New", monospace; }
[hidden] { display: none !important; }
.sep { color: #aaa; margin: 0 5px; }

/* ---------- header ---------- */

.topline {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 3px 10px; font-size: 10px; color: #666; border-bottom: 1px solid #e5e5e5;
}
.topline b { color: #333; }

.masthead {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px;
  padding: 6px 10px 0; background: linear-gradient(#ffffff, #f1f1f1); border-bottom: 1px solid #c9c9c9;
}
.logo { padding-bottom: 8px; font: bold 24px/1 "Trebuchet MS", Arial, sans-serif; color: #444; letter-spacing: -0.5px; }
.logo small {
  display: block; margin-bottom: 3px; font: bold 9px/1 Verdana, Arial, sans-serif;
  letter-spacing: 1.5px; color: #8a8a8a; text-transform: uppercase;
}
.logo .lite, .logo-small .lite { font-weight: normal; color: #777; }
.logo i, .logo-small i { font-style: normal; color: var(--green); }

.apptabs { display: flex; }
.apptab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 96px; margin-left: -1px; padding: 5px 10px 6px;
  border: 1px solid #c9c9c9; border-bottom: none;
  background: linear-gradient(#fdfdfd, #e2e2e2);
  color: #444; font: bold 10px Verdana, Arial, sans-serif; cursor: pointer;
}
.apptab svg { width: 22px; height: 22px; }
.apptab:hover { background: linear-gradient(#ffffff, #e8f3d6); }
.apptab.active {
  background: linear-gradient(#f4fae9, #cfe6a8); color: #2f5200;
  box-shadow: inset 0 -3px 0 var(--green);
}

.suitebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 4px 10px; border-top: 2px solid var(--green); border-bottom: 1px solid #a9a9a9;
  background: linear-gradient(#e9e9e9, #cfcfcf);
}
.chip { padding: 2px 8px; background: #fff; border: 1px solid #9a9a9a; border-radius: 2px; font-weight: bold; }
.suitenote { color: #555; }

/* ---------- layout ---------- */

.layout { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px 16px; }
.leftnav { flex: 0 0 195px; }
main { flex: 1; min-width: 0; }

/* ---------- left navigation ---------- */

.navbox { margin-bottom: 10px; border: 1px solid var(--green-border); background: #fff; }
.navhead {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px; background: linear-gradient(#b5dc7c, #7fb53a);
  color: #fff; font-weight: bold; text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.navhead .toggle {
  width: 15px; height: 15px; padding: 0; border: 1px solid #fff; background: transparent;
  color: #fff; font: bold 12px/12px Verdana, Arial, sans-serif; cursor: pointer;
}
.navbox.collapsed .navbody { display: none; }

.navlist, .subnav { list-style: none; margin: 0; padding: 0; }
.navlist > li > a {
  display: flex; justify-content: space-between; padding: 5px 8px;
  border-bottom: 1px solid #d7d7d7; background: linear-gradient(#ffffff, #ededed);
  color: #333; font-weight: bold;
}
.navlist > li > a:hover { text-decoration: none; background: linear-gradient(#ffffff, #e3f0cf); }
.navlist > li.active > a { background: linear-gradient(#f1f8e6, #d4e9b2); color: #2f5200; }
.navlist > li:not(.active) > .subnav { display: none; }
.subnav:empty { display: none; }
.subnav { padding: 3px 0; background: #fafcf6; border-bottom: 1px solid #d7d7d7; }
.subnav a { display: block; padding: 2px 8px 2px 18px; }
.subnav .count { color: var(--muted); }
.subnav .warn a { color: #a15c00; }

.kb details { padding: 5px 8px; border-bottom: 1px solid #e6e6e6; }
.kb details:last-child { border-bottom: none; }
.kb summary { cursor: pointer; color: var(--link); }
.kb details p { margin: 5px 0 2px; color: #555; }
.kb code { font-size: 10px; background: #f4f4f4; }

/* ---------- report header and toolbar ---------- */

.rpthead {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid var(--grey-border); background: linear-gradient(#ffffff, #e7e7e7);
}
.rpthead h1 { margin: 0; font-size: 14px; color: #4a4a4a; }
.rptdate { font-size: 13px; font-weight: bold; color: #4a4a4a; white-space: nowrap; }

.toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px;
  padding: 4px 8px; border: 1px solid var(--grey-border); border-top: none; background: #f7f7f7;
}
.filter { display: flex; gap: 4px; }
.filter input { width: 190px; max-width: 100%; padding: 2px 4px; border: 1px solid #9a9a9a; font: 11px Verdana, Arial, sans-serif; }

.btn {
  padding: 2px 10px; border: 1px solid #8f8f8f; border-radius: 2px;
  background: linear-gradient(#ffffff, #dcdcdc); color: #222;
  font: 11px Verdana, Arial, sans-serif; cursor: pointer;
}
.btn:hover { background: linear-gradient(#ffffff, #cfe6a8); border-color: #6a9a2a; }
.btn.primary { font-weight: bold; padding: 3px 16px; }

/* ---------- sections ---------- */

.section { margin-top: 10px; border: 1px solid var(--grey-border); }
.section > h2 {
  margin: 0; padding: 4px 8px; font-size: 12px; color: var(--green-dark);
  background: linear-gradient(#f6faef, #dcecc4); border-bottom: 1px solid #b8d38f;
}
.section > h2 .count { font-weight: normal; color: #6c7f55; }
.section.filtered-out { display: none; }
.sbody { padding: 8px; }
.sbody.flush { padding: 0; }

.lbl { display: block; margin-bottom: 4px; font-weight: bold; }
textarea {
  display: block; width: 100%; min-height: 96px; padding: 5px;
  border: 1px solid #9a9a9a; font-size: 12px; resize: vertical;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.hint { color: var(--muted); }
.empty { margin: 10px 2px; color: var(--muted); font-style: italic; }
.rawline {
  margin: 0 0 8px; padding: 4px 6px; border: 1px dashed #ccc; background: #fafafa;
  overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace;
}
.sbody > .hint { margin: 6px 0 0; }

/* ---------- report tables ---------- */

.tablewrap { overflow-x: auto; }
table.rpt { width: 100%; border-collapse: collapse; }
.rpt th {
  padding: 4px 6px; text-align: left; font-weight: bold; white-space: nowrap;
  background: linear-gradient(#f7f7f7, #dcdcdc); border: 1px solid #c4c4c4;
}
.rpt th.grp { text-align: center; color: var(--green-dark); background: linear-gradient(#f3f9e8, #d6eab4); }
.rpt td {
  padding: 3px 6px; vertical-align: top; overflow-wrap: anywhere;
  border-bottom: 1px solid #e2e2e2; border-left: 1px solid #f0f0f0;
}
.rpt tbody tr:nth-child(even) td { background: #f8fbf3; }
.rpt tbody tr:hover td { background: #e9f4d8; }
.rpt .num { text-align: right; white-space: nowrap; }
.rpt tfoot td { font-weight: bold; background: #eef4e4; border-top: 2px solid #b8d38f; }
.rpt td.key { white-space: nowrap; }
.rpt td.key code { color: #555; }
.rpt .varname { font-weight: bold; color: #2f5200; white-space: nowrap; }
.rpt th.w-param { width: 110px; }
.rpt th.w-var { width: 210px; }

.kv tbody th {
  width: 170px; vertical-align: top; background: #f5f5f5;
  border: none; border-bottom: 1px solid #e2e2e2;
}
.note { display: block; font-size: 10px; color: #7a7a7a; }
.dim { color: #aaa; }

/* ---------- warnings ---------- */

.notes { list-style: none; margin: 0; padding: 0; }
.notes li {
  position: relative; padding: 4px 8px 4px 28px;
  background: var(--warn-bg); border-bottom: 1px solid #f0e2b0;
}
.notes li::before {
  content: "!"; position: absolute; left: 8px; top: 5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #e0a100; color: #fff; font-size: 10px; font-weight: bold; line-height: 13px; text-align: center;
}
.notes li.info { background: #f4f8fc; border-bottom-color: #dde7f0; }
.notes li.info::before { content: "i"; background: #5b8fc7; }
.notes .where { margin-right: 4px; font-weight: bold; }

/* ---------- footer ---------- */

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  margin-top: 10px; padding: 8px 10px; border-top: 1px solid #c9c9c9;
  background: linear-gradient(#f2f2f2, #e0e0e0); color: #666; font-size: 10px;
}
.logo-small { margin-right: 6px; font: bold 13px "Trebuchet MS", Arial, sans-serif; color: #444; }

/* ---------- narrow screens ---------- */

@media (max-width: 760px) {
  .layout { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .leftnav { flex: none; }
  .topline, .masthead, .suitebar, footer { padding-left: 16px; padding-right: 16px; }
  .apptab { min-width: 0; }
  .filter input { width: 150px; }
}
