@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --surface-3: #e5ebf4;
  --line: #d8e0eb;
  --line-strong: #c4d1df;
  --ink: #1f2937;
  --text: #1f2937;
  --muted: #64748b;
  --faint: #94a3b8;
  --ember: #2563eb;
  --ember-2: #dbeafe;
  --teal: #38bdf8;
  --sky: #2563eb;
  --amber: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --blue: #475569;
  --navy: #2563eb;
  --shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(145, 214, 236, 0.14), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(242, 87, 168, 0.12), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.42;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1880px, calc(100% - 24px));
  margin: 0 auto;
  padding: 14px 0 24px;
}

.archive-header {
  min-height: 178px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(205, 221, 231, 0.38);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(13, 28, 40, 0.92), rgba(18, 54, 76, 0.63)),
    url("https://juicemagazine.com/home/wp-content/uploads/2019/02/Lucian-Perkins-Bad-Brains-Banned-in-Babylon-HR-Val-9900000000079e3c.jpg") center 32% / cover;
  color: var(--text);
  box-shadow: var(--shadow);
}

.header-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.archive-header .eyebrow {
  color: #9bd6f0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.header-summary {
  max-width: 690px;
  margin: 0;
  color: rgba(247, 251, 255, 0.78);
  font-size: 13px;
}

.header-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 8px;
  min-width: 304px;
}

.stat-block {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(235, 245, 251, 0.12);
  backdrop-filter: blur(8px);
}

.stat-block span {
  font-size: 20px;
  font-weight: 700;
}

.stat-block small {
  color: rgba(247, 251, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.archive-workspace {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.control-panel,
.table-panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(251, 253, 255, 0.94);
  box-shadow: var(--shadow);
}

.control-panel {
  padding: 10px;
}

.view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 5px;
  margin-bottom: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
}

.view-tab {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--navy);
  padding: 0 11px;
  font-weight: 700;
}

.view-tab strong {
  min-width: 38px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(23, 58, 86, 0.08);
  color: var(--navy);
  text-align: center;
  font-size: 12px;
}

.view-tab.active {
  background: var(--navy);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(23, 58, 86, 0.18);
}

.view-tab.active strong {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 2.2fr) minmax(190px, 1fr) minmax(130px, 0.7fr) minmax(160px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
}

.field {
  display: grid;
  gap: 5px;
}

.field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

input {
  padding: 0 11px;
}

select {
  padding: 0 38px 0 12px;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38, 116, 155, 0.14);
}

.button-group {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.primary-action,
.secondary-action,
.doc-action,
.icon-button {
  min-height: 38px;
  border-radius: 5px;
  border: 1px solid transparent;
  padding: 0 11px;
  font-weight: 700;
}

.primary-action {
  background: var(--navy);
  color: var(--text);
}

.primary-action:hover {
  background: #7f3f76;
}

.secondary-action {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--navy);
}

.secondary-action:hover {
  border-color: var(--line-strong);
  background: rgba(145, 214, 236, 0.15);
}

.filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.filter-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(145, 214, 236, 0.34);
  border-radius: 5px;
  background: rgba(145, 214, 236, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.table-panel {
  overflow: hidden;
}

.table-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(231, 239, 245, 0.9), rgba(251, 253, 255, 0));
}

.table-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.table-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-size: 13px;
  font-weight: 650;
}

.table-pane {
  padding: 10px 14px 14px;
}

.hidden-view {
  display: none !important;
}

.state-message {
  margin: 14px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
}

.state-message.error {
  border-color: rgba(143, 45, 44, 0.35);
  background: rgba(233, 80, 95, 0.12);
  color: var(--red);
}

.archive-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.archive-table thead th,
table.dataTable thead th {
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line-strong) !important;
  background: rgba(145, 214, 236, 0.12) !important;
  color: var(--navy) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-table tbody td,
table.dataTable tbody td {
  border-bottom: 1px solid rgba(129, 139, 190, 0.22);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.34;
  vertical-align: top;
}

table.dataTable.stripe > tbody > tr.odd > *,
table.dataTable.display > tbody > tr.odd > * {
  box-shadow: inset 0 0 0 9999px rgba(243, 247, 250, 0.76) !important;
}

table.dataTable.hover > tbody > tr:hover > *,
table.dataTable.display > tbody > tr:hover > * {
  box-shadow: inset 0 0 0 9999px rgba(220, 236, 244, 0.8) !important;
}

.archive-table tbody tr {
  cursor: pointer;
}

.archive-table .record-title {
  min-width: 180px;
  color: var(--ink);
  font-weight: 700;
}

.tape-link,
.doc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
}

.tape-link {
  color: var(--navy);
  font-weight: 700;
}

.tape-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.doc-action {
  border: 1px solid rgba(145, 214, 236, 0.34);
  background: rgba(145, 214, 236, 0.1);
  color: var(--navy);
  padding: 0 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.doc-action:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 320px;
  padding: 4px 9px;
  border: 1px solid #cbd9df;
  border-radius: 5px;
  background: rgba(145, 214, 236, 0.1);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;
}

.badge-soft.gray {
  border-color: rgba(129, 139, 190, 0.28);
  background: #f1f5f8;
  color: #5c6470;
}

.song-stack {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

.song-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
}

.song-num {
  color: var(--muted);
  font-weight: 700;
}

.dataTables_wrapper .dataTables_filter {
  display: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 700;
}

.dataTables_wrapper .dataTables_length select {
  width: auto;
  min-height: 34px;
  margin: 0 5px;
  padding: 0 28px 0 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 34px;
  min-height: 34px;
  margin-left: 4px;
  border: 1px solid var(--line) !important;
  border-radius: 5px !important;
  background: var(--surface-2) !important;
  color: var(--navy) !important;
  font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border-color: var(--navy) !important;
  background: var(--navy) !important;
  color: var(--text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: var(--blue) !important;
  background: var(--blue) !important;
  color: #fff !important;
}

.dataTables_scrollBody {
  border-bottom: 1px solid var(--line) !important;
}

.detail-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(14, 20, 28, 0.28);
}

.detail-dialog::backdrop {
  background: rgba(23, 32, 40, 0.42);
  backdrop-filter: blur(2px);
}

.detail-panel {
  display: grid;
  max-height: inherit;
}

.detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.detail-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
}

.icon-button {
  width: 38px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
  font-size: 18px;
}

.detail-body {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-field {
  min-height: 62px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.detail-field.full {
  grid-column: 1 / -1;
}

.detail-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-field strong,
.detail-field div {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .archive-header,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .header-stats {
    width: 100%;
    min-width: 0;
  }

  .button-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-status,
  .table-panel-head {
    align-items: start;
    flex-direction: column;
  }

  .table-note {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .app-shell {
    width: min(100% - 20px, 1880px);
    padding-top: 10px;
  }

  .archive-header {
    min-height: 172px;
    padding: 18px;
  }

  .header-stats,
  .view-switch,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .table-pane {
    padding: 10px;
  }

  .button-group {
    grid-template-columns: 1fr;
  }
}


/* Cooler, denser archive finish */
.archive-table thead th,
table.dataTable thead th {
  padding: 9px 10px !important;
}

.archive-table tbody td,
table.dataTable tbody td {
  padding: 8px 10px !important;
}

.dataTables_wrapper .table-footer {
  padding-top: 9px;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 10px !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_paginate {
  padding-top: 7px;
}

.field input::placeholder {
  color: var(--faint);
}

.primary-action,
.secondary-action,
.doc-action,
.view-tab,
.filter-chip,
.badge-soft,
.stat-block,
.control-panel,
.table-panel {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

/* Breakdowns light palette application */
body {
  background: var(--bg);
  color: var(--ink);
}

.archive-header {
  border-color: var(--line);
  background:
    linear-gradient(90deg, rgba(31, 41, 55, 0.82), rgba(37, 99, 235, 0.42)),
    url("https://juicemagazine.com/home/wp-content/uploads/2019/02/Lucian-Perkins-Bad-Brains-Banned-in-Babylon-HR-Val-9900000000079e3c.jpg") center 32% / cover;
  color: #ffffff;
}

.archive-header .eyebrow {
  color: #bfdbfe;
}

.eyebrow {
  color: var(--ember);
}

.control-panel,
.table-panel,
.detail-dialog {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.view-switch,
.state-message,
.detail-head,
.detail-field {
  border-color: var(--line);
  background: var(--surface-2);
}

.view-tab {
  color: var(--text);
}

.view-tab strong {
  background: #dbeafe;
  color: #1d4ed8;
}

.view-tab.active,
.primary-action,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border-color: var(--ember) !important;
  background: linear-gradient(90deg, #2563eb, #38bdf8) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

.view-tab.active strong {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.secondary-action,
.icon-button,
input,
select,
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-color: var(--line) !important;
  background: #ffffff !important;
  color: var(--text) !important;
}

.secondary-action:hover,
.icon-button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: #93c5fd !important;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

input::placeholder,
.field input::placeholder {
  color: var(--faint);
}

input:focus,
select:focus {
  border-color: var(--ember) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.filter-chip,
.badge-soft,
.doc-action {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-soft.gray {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.doc-action:hover {
  border-color: var(--ember);
  background: var(--ember);
  color: #ffffff;
}

.table-panel-head {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface-2), rgba(255, 255, 255, 0));
}

.table-panel-head h2,
.detail-head h2,
.detail-field strong,
.detail-field div,
.archive-table .record-title {
  color: var(--text);
}

.table-note,
.filter-status p,
.field span,
.detail-field span,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--muted) !important;
}

.archive-table thead th,
table.dataTable thead th {
  border-top-color: var(--line) !important;
  border-bottom-color: var(--line-strong) !important;
  background: var(--surface-3) !important;
  color: #334155 !important;
}

.archive-table tbody td,
table.dataTable tbody td {
  border-bottom-color: var(--line);
  color: var(--text);
}

table.dataTable.stripe > tbody > tr.odd > *,
table.dataTable.display > tbody > tr.odd > * {
  box-shadow: inset 0 0 0 9999px rgba(238, 243, 249, 0.72) !important;
}

table.dataTable.hover > tbody > tr:hover > *,
table.dataTable.display > tbody > tr:hover > * {
  box-shadow: inset 0 0 0 9999px rgba(219, 234, 254, 0.76) !important;
}

.tape-link {
  color: #1d4ed8;
}

.tape-link:hover {
  color: #2563eb;
}

.dataTables_scrollBody {
  border-bottom-color: var(--line) !important;
}

.detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.34);
}

