.case-page-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

.case-dossier-wrap--primary {
  order: 1;
  min-width: 0;
}

.case-sidebar--index {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--europol-border, #1d3557);
}

/* Single-page case view — no index sidebar */
.case-page-layout--single {
  display: block;
  width: min(100% - 1.5rem, 1000px);
  max-width: 1000px;
  margin: 0 auto;
}

.case-page-layout--single .case-dossier-wrap--primary {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.case-page-layout--dossier .case-dossier-wrap {
  padding: 1.25rem 1rem 3rem;
}

.case-page-layout--dossier .europol-case-file-wrap {
  width: 100%;
  max-width: 100%;
}

.case-page-layout--dossier #caseDossier {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.case-sidebar {
  background: #040914;
  border-right: 1px solid var(--europol-border, #1d3557);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
  position: sticky;
  top: 0;
}

.case-sidebar-head {
  padding: 1rem;
  border-bottom: 1px solid var(--europol-border, #1d3557);
  flex-shrink: 0;
}

.case-sidebar-head h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--europol-gold, #c39b34);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-sidebar-head p {
  margin: 0;
  font-size: 0.75rem;
  color: #8fa3bf;
}

.case-sidebar-filter {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: #0f2142;
  border: 1px solid #1d3557;
  color: #fff;
  font-size: 0.8125rem;
}

.case-scroll-index {
  overflow-y: auto;
  flex: 1;
  padding: 0.25rem 0;
}

.case-index-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(29, 53, 87, 0.6);
  background: transparent;
  color: #eaecef;
  cursor: pointer;
  font-family: inherit;
}

.case-index-row:hover,
.case-index-row.is-active {
  background: rgba(195, 155, 52, 0.12);
  border-left: 3px solid var(--europol-gold, #c39b34);
}

.case-index-ref {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--europol-gold, #c39b34);
}

.case-index-title {
  display: block;
  font-size: 0.7rem;
  color: #8fa3bf;
  margin: 0.15rem 0 0.35rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-dossier-wrap {
  padding: 1.5rem 1.5rem 3rem;
  color: #111;
}

.case-dossier-wrap .europol-full-paperscan-container {
  margin-top: 0;
}

.charges-list {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: #222;
  font-size: 0.9rem;
  line-height: 1.55;
}

.charges-list li {
  margin-bottom: 0.65rem;
}

.subject-block {
  background: #f5f7fa;
  border: 1px solid #ccc;
  padding: 1rem;
  margin: 1rem 0;
}

.subject-block strong {
  font-size: 1.1rem;
  color: #081225;
}

.case-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
}

.status-open {
  background: #e8f5e9;
  color: #1b5e20;
}

.status-closed {
  background: #eceff1;
  color: #455a64;
}

.status-refund-pending {
  background: #fff8e1;
  color: #f57f17;
}

.status-refund-approved {
  background: #e3f2fd;
  color: #1565c0;
}

.status-refund-denied {
  background: #ffebee;
  color: #c62828;
}

.status-review {
  background: #f3e5f5;
  color: #6a1b9a;
}

.catalog-list-header {
  display: grid;
  grid-template-columns: 100px 1fr 140px 120px auto;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--eu-blue);
  border-bottom: 2px solid var(--border);
  margin-bottom: 0.25rem;
}

.catalog-row-grid {
  display: grid;
  grid-template-columns: 100px 1fr 140px 120px auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.catalog-row-grid h3 {
  margin: 0;
  font-size: 0.9rem;
}

.home-case-scroll {
  max-height: 65vh;
}

@media (max-width: 900px) {
  .case-page-layout {
    grid-template-columns: 1fr;
  }
  .case-sidebar {
    max-height: 280px;
    position: relative;
  }
}

.dossier-page-header--hero {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--europol-border, #1d3557);
  border-left: 4px solid var(--europol-gold, #c39b34);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(15, 33, 66, 0.95) 0%, rgba(8, 18, 37, 0.98) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dossier-ref-line {
  margin: 0 0 0.35rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--europol-gold, #c39b34);
  letter-spacing: 0.06em;
}

.dossier-main-title {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dossier-refund-line {
  margin: 0;
  color: #f5d76e;
  font-size: 0.95rem;
  font-weight: 600;
}

.dossier-page-header h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.dossier-summary-note {
  color: #8fa3bf;
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 720px;
}

.europol-indicators-extra {
  margin: 1rem 0 2rem;
  padding-left: 1.25rem;
  color: #c9d6e8;
  font-size: 0.9rem;
}
