.bz-dt {
  --bz-dt-border: #d0d0d0;
  --bz-dt-muted: #6b6b6b;
  --bz-dt-head: #f0f0f0;
  --bz-dt-stripe: #f7f7f7;
  --bz-dt-text: #222;
  margin: 0;
  color: var(--bz-dt-text);
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}
.bz-dt--loading { opacity: 0.55; pointer-events: none; }

.bz-dt__titlebar { display: none; }
.bz-dt-tabs .bz-dt__titlebar { display: none; }

/* ---- Tabs (Chelsea / Muncie) ---- */
.bz-dt-tabs {
  margin: 1rem 0 1.75rem;
  border: 1px solid var(--bz-dt-border, #d0d0d0);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.bz-dt-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #ececec;
  border-bottom: 1px solid #cfcfcf;
}
.bz-dt-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-right: 1px solid #d8d8d8;
  background: #e8e8e8;
  color: #333;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.bz-dt-tabs__tab.is-active {
  background: #fff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #fff;
}
.bz-dt-tabs__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='17 1 21 5 17 9'/%3E%3Cpath d='M3 11V9a4 4 0 0 1 4-4h14'/%3E%3Cpolyline points='7 23 3 19 7 15'/%3E%3Cpath d='M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
}
.bz-dt-tabs__panel {
  display: none;
  padding: 1rem 1.1rem 1.15rem;
}
.bz-dt-tabs__panel.is-active {
  display: block;
}

/* Hide Breakdance accordion chrome when tables are tabified */
.bz-dt-tabs-host .bde-accordion__title-tag,
.bz-dt-tabs-host .bde-accordion__button,
.bz-dt-tabs-host .bde-accordion__title,
.bz-dt-tabs-host .bde-accordion__icon {
  display: none !important;
}
.bz-dt-tabs-host.bde-accordion,
.bz-dt-tabs-host {
  border: 0 !important;
  background: transparent !important;
}

/* ---- Column filters ---- */
.bz-dt__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}
.bz-dt__colfilter-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.bz-dt__colfilter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #333;
  text-transform: uppercase;
}
.bz-dt__colfilter {
  width: 100%;
  padding: 0.35rem 0.15rem;
  border: 0;
  border-bottom: 1px solid #9a9a9a;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: #333;
  outline: none;
}
.bz-dt__colfilter::placeholder {
  color: #9a9a9a;
}
.bz-dt__colfilter:focus {
  border-bottom-color: #333;
}

/* ---- Toolbar ---- */
.bz-dt__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
  position: relative;
}
.bz-dt__length {
  color: #444;
  white-space: nowrap;
}
.bz-dt__length-select {
  margin: 0 0.25rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid #bbb;
  background: #fff;
  font: inherit;
}
.bz-dt__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
  position: relative;
}
.bz-dt__tool {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
  color: #444;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bz-dt__tool:hover { color: #111; }
.bz-dt__tool-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  background: center / contain no-repeat;
  opacity: 0.85;
}
.bz-dt__tool--columns .bz-dt__tool-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.bz-dt__tool--print .bz-dt__tool-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
}
.bz-dt__tool--copy .bz-dt__tool-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}
.bz-dt__tool--pdf .bz-dt__tool-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cpath d='M10 13h4M10 17h4M10 9h1'/%3E%3C/svg%3E");
}
.bz-dt__columns-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 12rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.bz-dt__columns-title {
  margin: 0 0 0.4rem;
  font-size: 12px;
  font-weight: 700;
}
.bz-dt__columns-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  font-size: 13px;
  cursor: pointer;
}

/* ---- Table ---- */
.bz-dt__scroll {
  overflow-x: auto;
  border: 1px solid var(--bz-dt-border);
}
.bz-dt__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.bz-dt__table th,
.bz-dt__table td {
  padding: 0.7rem 0.85rem;
  border: 1px solid #dedede;
  text-align: left;
  vertical-align: middle;
}
.bz-dt__table thead th {
  background: var(--bz-dt-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
}
.bz-dt__sort {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}
.bz-dt__sort-icons {
  width: 10px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.45;
  background:
    linear-gradient(transparent 0 3px, currentColor 3px 4px, transparent 4px) center 2px / 8px 4px no-repeat,
    linear-gradient(currentColor 0 1px, transparent 1px) center 11px / 8px 4px no-repeat;
  position: relative;
}
.bz-dt__sort-icons::before,
.bz-dt__sort-icons::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.bz-dt__sort-icons::before {
  top: 0;
  border-bottom: 5px solid #777;
}
.bz-dt__sort-icons::after {
  bottom: 0;
  border-top: 5px solid #777;
}
.bz-dt__th.is-sorted--asc .bz-dt__sort-icons::before { border-bottom-color: #111; }
.bz-dt__th.is-sorted--asc .bz-dt__sort-icons::after { opacity: 0.25; }
.bz-dt__th.is-sorted--desc .bz-dt__sort-icons::after { border-top-color: #111; }
.bz-dt__th.is-sorted--desc .bz-dt__sort-icons::before { opacity: 0.25; }

.bz-dt__table tbody tr:nth-child(even) { background: var(--bz-dt-stripe); }
.bz-dt__table tbody tr:hover { background: #efefef; }
.bz-dt__table td.bz-dt__col-hidden,
.bz-dt__table th.bz-dt__col-hidden { display: none; }

/* ---- Footer / pager ---- */
.bz-dt__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 0.15rem;
  font-size: 13px;
  color: #333;
}
.bz-dt__pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  align-items: center;
}
.bz-dt__pager button {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid transparent;
  background: transparent;
  color: #333;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.bz-dt__pager button:hover:not(:disabled):not(.bz-dt__page-btn--current) {
  background: #eee;
}
.bz-dt__pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
.bz-dt__page-btn--current {
  background: #e5e5e5 !important;
  border-color: #d0d0d0 !important;
  font-weight: 700;
  cursor: default;
}
.bz-dt__ellipsis {
  padding: 0 0.25rem;
  color: #666;
}

.bz-dt__notice {
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  background: #f6f7f7;
  border-left: 3px solid #888;
  font-size: 0.9rem;
}
.bz-dt--pending {
  padding: 0.9rem 1rem;
  background: #fff8e8;
  border: 1px solid #f0d58a;
}
.bz-dt--pending p { margin: 0.25rem 0; }

@media print {
  .bz-dt__filters,
  .bz-dt__toolbar,
  .bz-dt__foot,
  .bz-dt-tabs__nav { display: none !important; }
  .bz-dt-tabs__panel { display: block !important; padding: 0; }
  .bz-dt__scroll { border: 0; }
}

@media (max-width: 800px) {
  .bz-dt__filters { grid-template-columns: 1fr; }
  .bz-dt__toolbar { flex-direction: column; align-items: flex-start; }
}
