/* Reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* Reset */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 40px;
  color: #1f2933;
  background: #f7f8fa;
}

h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 16px;
}

table {
  border-collapse: collapse;
  background: #fff;
  min-width: 560px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7eb;
  font-size: 0.95rem;
}

th {
  background: #f1f3f6;
  font-weight: 600;
  color: #3e4c59;
}

tbody tr:last-child td {
  border-bottom: none;
}

table tr:first-child th:first-child {
  border-top-left-radius: 6px;
}

table tr:first-child th:last-child {
  border-top-right-radius: 6px;
}

table tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}
.sr-only {
  position: absolute ;
  left: -10000px;
  width: 1px;
  height: 1px;
  top: auto;
  overflow: hidden;
}

.expand-btn {
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  width: 100%;
  display: flex;
  align-items: center;
}
.expand-btn path {
  fill: #2563eb;
}

.expand-btn:hover {
  background: #eff6ff;
}

.expand-btn.is-expanded {
  background: #2563eb;
  color: #fff;
}

tr.expanded-row td {
  background: #f8fafc;
}

tr.detail-row td, .detail-box {
  background: #f0f5ff;
  color: #475569;
  font-size: 0.9rem;
  border-bottom: 1px solid #e4e7eb;
  padding: 16px;
  line-height: 1.5;
}

.detail-box {
  position: absolute;      /* positioned by JS */
  left: 0;
  box-sizing: border-box;
  
}

tr.detail-row p {
  margin-bottom: 8px;
}

tr.detail-row p:last-child {
  margin-bottom: 0;
}

tr.detail-row a {
  color: #2563eb;
  text-decoration: underline;
}

tr.detail-row a:hover {
  color: #1d4ed8;
}

tr.detail-row dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin-bottom: 12px;
}

tr.detail-row dl:last-child {
  margin-bottom: 0;
}

tr.detail-row dt {
  font-weight: 600;
  color: #334155;
}
tr .icon {
  transform: rotate(180deg);
  transition: transform .25s;
}
tr.expanded-row .icon {
  transform: rotate(0deg);
}

