/* ════════════════════════════════════════════════════════════════════
   weapons_by_donor.css — rules specific to this widget.

   Loads after chart-base.css and may override it. Shared by the English and
   German copies of the page, so edit once and both languages follow.
════════════════════════════════════════════════════════════════════ */

:root {
  --font: Arial, sans-serif;
  --font-serif: Arial, sans-serif;
  --black: #1a1a1a;
  --mid: #6b6b6b;
  --border: #d0d0d0;
}
html, body { font-family: var(--font); font-size: 14px; background: #f6f1e7; color: var(--black); line-height: 1.5; margin: 0; padding: 0; }
/* Fluid: the card fills whatever box the embed gives it, in BOTH axes, so
   no leftover margin can ever appear around it. */
html, body { height: 100%; }
.explorer-scale-container {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  /* Safety: whatever shows through the rounded corner cut-outs is site beige. */
  background: #f6f1e7;
}
.explorer-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid #ddd6c8;
  border-radius: 6px;
  overflow: hidden;
  background: #f6f1e7;
  /* No drop shadow here: the card fills the whole iframe viewport, so the
     shadow had nowhere to fall and only smudged grey into the rounded
     corner cut-outs. The shadow now lives on the <iframe> in en_index.html. */
  position: relative;
}
/* chart title area */
.chart-header {
  padding: 0.45rem 1.1rem 0.6rem;
  padding-right: 160px;
  border-bottom: 1px solid #ddd6c8;
  position: relative;
  flex-shrink: 0;
  background: #f6f1e7;
  min-height: 76.5px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chart-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #174abb;
  margin-bottom: 0rem;
}
.kiel-logo {
  position: absolute;
  top: 50%; right: 17px;
  transform: translateY(-50%);
  line-height: 0;
  z-index: 1;
  display: flex;
  align-items: center;
}
.kiel-logo img { height: 40px; width: auto; display: block; }
/* controls bar */
.chart-controls {
  flex-shrink: 0; padding: 0.55rem 0.55rem 0.35rem;
  background: #f6f2e8;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; color: var(--mid);
}
/* custom dropdown (shared visual language with data explorer) */
.sort-custom { position: relative; flex: none; }
.sort-custom-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 0.4rem;
  font-family: var(--font); font-size: 0.98rem;
  border: 1px solid var(--border); border-radius: 3px;
  padding: 0.46rem 0.86rem;
  background: #f6f1e7; color: var(--black);
  cursor: pointer; white-space: nowrap;
  transition: background 0.1s;
}
.sort-custom-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 3px); left: 0;
  min-width: 190px;
  background: #f6f1e7;
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  overflow: hidden;
}
.sort-custom-option {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--font); font-size: 0.82rem;
  color: var(--black); cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}
.tbl-scroll { flex: 1; overflow-y: auto; overflow-x: auto; padding-bottom: 8px; }
.data-table {
  width: max-content; min-width: 100%; border-collapse: collapse;
  font-size: 0.78rem; font-family: var(--font);
}
.data-table th {
  padding: 0.45rem 0.55rem;
  text-align: left; font-weight: 500; font-size: 0.72rem; color: var(--mid);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--black); }
.data-table td {
  padding: 0.38rem 0.55rem;
  border-bottom: 1px solid #ddd6c8;
  color: var(--black);
  vertical-align: top;
}
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table td.weapons-list { white-space: nowrap; }
/* Push any leftover table width into the last column so the slack no longer
   shows up as a gap in front of "Monetary Value", and use that space as a
   separator between "Monetary Value" and "List of Weapons" instead. */
.data-table th:last-child, .data-table td.weapons-list { width: 100%; padding-left: 72px; }
/* Same 72px separator in front of the "Monetary Value" column, so the two
   gaps flanking it match. */
.data-table th:nth-child(3), .data-table td:nth-child(3) { padding-left: 72px; }
.tbl-scroll { scrollbar-width: thin; scrollbar-color: #ddd #f6f1e7; background: #f6f1e7; }
.tbl-scroll::-webkit-scrollbar { width: 5px; height: 5px; background: #f6f1e7; }
.tbl-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.tbl-scroll::-webkit-scrollbar-track { background: #f6f1e7; }
.tbl-scroll::-webkit-scrollbar-corner { background: #f6f1e7; }
/* footer */
.chart-footer {
  flex-shrink: 0;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  z-index: 20;
  pointer-events: none;
}
.footer-icons {
  position: relative;
  display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
  pointer-events: auto;
}
.footer-icons::before {
  content: '';
  position: absolute;
  top: -6px; bottom: -6px; right: -8px; left: -40px;
  z-index: -1;
  background: rgba(246,241,231,0.35);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32px);
  mask-image: linear-gradient(to right, transparent, #000 32px);
}
.footer-icon-btn:hover { background: #ede8de; color: var(--black); }
#info-close:hover { background: #ede8de; color: var(--black); }
