.almb-table {
  width: 100%;
  border-collapse: collapse;
}
.almb-table th,
.almb-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}
.almb-table th {
  background: #f7f7f7;
  text-align: left;
}
.almb-archived {
  opacity: 0.6;
}

/* Responsive table */
.almb-table-wrapper {
  overflow-x: auto;
}
.almb-table img {
  display: block;
}

/* React table enhancements */
.almb-react-table {
  width: 100%;
  border-collapse: collapse;
}
.almb-react-root .almb-react-table th,
.almb-react-root .almb-react-table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.almb-react-root .almb-react-table th {
  background: #233028;
  color: #fff;
  letter-spacing: 0.02em;
}
.almb-section-row {
  background: #eef1ee !important;
}
.almb-section-row td {
  color: #1a1a1a !important;
  font-weight: 700;
}
.almb-react-root .almb-badge {
  display: inline-block;
  background: #eef;
  color: #224;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
  margin-right: 6px;
}

/* Modal buttons inherit WP button styles where available */
.almb-react-root .almb-react-table tr:hover {
  background: #f9f9f9;
  color: #1a1a1a;
}
.almb-react-root .almb-react-table tr:hover td,
.almb-react-root .almb-react-table tr:hover td a {
  color: #1a1a1a;
}

/* Modal layout */
.almb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.almb-modal {
  background: #ffffff;
  width: 96%;
  max-width: 1100px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.almb-modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: 520px;
}
.almb-modal-left {
  background: #eef1ee;
  padding: 0;
  border-right: 1px solid #d9e0db;
}
.almb-modal-right {
  padding: 20px;
}
.almb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #233028;
  color: #fff;
  border-bottom: 1px solid #1a231d;
}
.almb-modal-header .button {
  background: #3a4a40;
  color: #fff;
  border-color: #2b3a31;
}
.almb-modal-title {
  margin: 0;
  font-size: 18px;
}
.almb-chip {
  display: inline-block;
  background: #e8eef5;
  color: #234;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.almb-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fafafa;
  border-top: 1px solid #eee;
  padding: 10px 12px;
}
.almb-pdf-frame {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}
.almb-cover {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Buttons */
.almb-react-root .almb-btn,
.almb-modal-right .almb-btn {
  display: inline-block;
  background: #2e7d32; /* accessible green */
  color: #fff !important;
  border: 1px solid #246628;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.almb-react-root .almb-copy-btn {
  background: #455a64;
  border-color: #37474f;
}
.almb-react-root .almb-copy-btn:hover {
  background: #37474f;
  border-color: #2c3a40;
}
.almb-react-root .almb-copied {
  position: relative;
}
.almb-react-root .almb-copied::after {
  content: " Gekopieerd!";
  position: absolute;
  right: -6px;
  top: -6px;
  transform: translate(100%, -50%);
  background: #2e7d32;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  opacity: 0;
  animation: almb-pop 1.2s ease forwards;
}
@keyframes almb-pop {
  0% {
    transform: translate(100%, -50%) scale(0.8);
    opacity: 0;
  }
  20% {
    transform: translate(100%, -50%) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translate(100%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(100%, -50%) scale(1);
    opacity: 0;
  }
}

/* Category color variants */
.almb-badge--repertoire {
  background: #e8f5e9;
  color: #1b5e20;
}
.almb-badge--repertoirenummers {
  background: #e8f5e9;
  color: #1b5e20;
}
.almb-badge--kerst {
  background: #ffebee;
  color: #b71c1c;
}
.almb-badge--archief {
  background: #ede7f6;
  color: #4a148c;
}
.almb-badge--overig {
  background: #e3f2fd;
  color: #0d47a1;
}
.almb-react-root .almb-search-btn {
  background: #1e88e5;
  border-color: #176bb3;
  color: #fff !important;
  border-radius: 6px;
}
.almb-react-root .almb-search-btn:hover {
  background: #1976d2;
  border-color: #135a9a;
}
.almb-react-root .almb-btn:hover,
.almb-modal-right .almb-btn:hover {
  background: #276b2b;
  border-color: #1f5723;
}
.almb-react-root .almb-btn:focus,
.almb-modal-right .almb-btn:focus {
  outline: 2px solid #a7d7ad;
  outline-offset: 2px;
}
