.view-preferences { flex: 0 0 auto; display: grid; justify-items: end; gap: 6px; }
.view-preferences .view-toolbar { margin: 0; gap: 9px; font-size: 12px; }
.view-preferences .view-size-options { padding: 3px; }
.view-preferences .view-size-options :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  font-size: 12px;
}
.view-preferences :is(.card-size-toolbar, .view-mode-toolbar[data-icon-only]) .view-size-options :is(button, a) {
  width: 36px;
  padding-inline: 0;
}
.view-mode-toolbar[data-icon-only] :is(.view-option-label, .view-toolbar-label) { display: none; }
.view-option-icon { flex: none; font-size: 17px; line-height: 1; }
@media (max-width: 1050px) {
  .view-preferences .view-size-options :is(button, a) { width: 36px; padding-inline: 0; }
  .view-preferences .view-option-label { display: none; }
  .view-preferences .view-toolbar-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 560px) {
  .dashboard-controls[data-color-layout] .view-preferences { gap: 4px; }
  .dashboard-controls[data-color-layout] .view-size-options { gap: 2px; padding: 2px; }
  .dashboard-controls[data-color-layout] .view-preferences .view-size-options :is(button, a) { width: 32px; }
}
.boss-table-view { min-width: 0; border: 1px solid #303c56; border-radius: 12px; overflow: hidden; background: #131a28; }
.boss-table-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 16px 18px; border-bottom: 1px solid #303c56; background: linear-gradient(110deg, #1d2238, #141b29); }
.boss-table-heading .eyebrow { margin: 0 0 4px; font-size: 10px !important; color: #ab91ff !important; }
.boss-table-heading h2 { font-size: 18px; font-weight: 500; margin: 0; }
.boss-table-tools { display: flex; align-items: center; gap: 9px; min-width: 0; }
#boss-table-search { width: clamp(150px, 23vw, 250px); min-width: 0; padding: 7px 10px; font-size: 13px; }
.boss-table-empty { margin: 0; padding: 24px 16px; color: var(--muted); text-align: center; font-size: 14px; }
#boss-table-count { flex-shrink: 0; color: #b2bed6; font-size: 12px; padding: 4px 9px; border: 1px solid #3b4264; border-radius: 6px; }
.boss-table-scroll { position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #505376 #111827; }
.boss-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 12px; text-align: left; }
.boss-table th, .boss-table td { padding: 6px 10px; border-bottom: 1px solid #28334a; vertical-align: middle; }
.boss-table thead th { font-size: 11px; font-weight: 400; color: #879abf; background: #0d1421; white-space: nowrap; padding-top: 11px; padding-bottom: 11px; }
.boss-table tbody tr:nth-child(even) { background: #151e2e; }
.boss-table tbody tr:hover { background: #20283c; }
.boss-table tbody tr:last-child > * { border-bottom: 0; }
.boss-table .table-color-column { width: 120px; text-align: start; padding-inline: 12px 6px; }
.table-color-line { display: flex; align-items: center; gap: 7px; }
.table-boss-color { flex: 0 0 16px; height: 16px; border: 2px solid #ffffff85; border-radius: 5px; background: var(--boss-border-color, #71809f); box-shadow: 0 0 9px color-mix(in srgb, var(--boss-border-color, #71809f) 45%, transparent); }
.table-boss-color.is-uncolored { background: transparent; border-color: #596782; box-shadow: none; }
.table-color-name, .table-boss-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-color-name { max-width: 95px; color: var(--muted); font-size: 11px; }
.table-boss-name { min-width: 150px; max-width: 260px; font-weight: 400; }
.table-boss-name strong { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.boss-table .table-history-column { width: 1%; text-align: center; white-space: nowrap; }
.table-boss-history {
  display: inline-grid;
  place-items: center;
  width: 26px;
  vertical-align: middle;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--link, #c9b4ff);
}
.table-boss-history:hover { background: var(--hover, #26334a); }
.table-boss-location { width: 150px; max-width: 180px; color: var(--muted); }
.table-boss-location .boss-location-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-schedule-type { white-space: nowrap; color: #bcb0e5; }
.table-schedule-round { white-space: nowrap; color: #c6d0e7; }
.table-schedule-multiple { white-space: normal; min-width: 96px; max-width: 240px; }
.table-spawn { min-width: 142px; white-space: nowrap; }
.table-spawn time { font-size: 11px; font-weight: 400; color: #c9d5ee; font-variant-numeric: tabular-nums; }
.boss-table .table-countdown { display: inline-block; margin: 0; min-width: 84px; font-size: 16px; font-weight: 600; white-space: nowrap; overflow-wrap: normal; color: #ffd37b; }
.table-time-controls { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-time-controls form { margin: 0; }
.table-time-controls .death-custom { display: flex; align-items: center; gap: 5px; }
.table-time-controls input.time-24 { width: 62px; min-width: 62px; height: 32px; padding: 5px 6px; text-align: center; font-size: 12px; border-color: #3d4b67; }
.boss-table button { min-height: 32px; padding: 5px 9px; font: 11px Kanit, sans-serif; white-space: nowrap; border: 1px solid #564582; border-radius: 7px; background: #2d2449; color: #d3c3ff; cursor: pointer; }
.boss-table button:hover { background: #40335f; }
.boss-table thead th:has(.table-sort-button) { padding-block: 5px; }
.boss-table .table-sort-button {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 6px;
  border-color: transparent; background: transparent; color: inherit;
}
.boss-table th[aria-sort] .table-sort-button { color: var(--text); }
.boss-table .table-sort-button:hover { background: var(--hover, #26334a); color: var(--text); }
.table-sort-button span::before { content: '↕'; }
th[aria-sort="ascending"] .table-sort-button span::before { content: '↑'; }
th[aria-sort="descending"] .table-sort-button span::before { content: '↓'; }
.boss-table .table-save-button { color: #c2d2ef; background: #1d293d; border-color: #3f506e; }
.boss-table .table-save-button:hover { background: #2c3d56; }
.table-auto-label { font-size: 11px; color: #7284a2; }
.table-actions { display: flex; align-items: center; gap: 6px; }
.boss-table .table-delete-button { color: #f49aa7; background: #34202c; border-color: #683748; }
.boss-table .table-delete-button:hover { background: #502a3b; }
.boss-table :is(button, input, .table-boss-history):focus-visible, .boss-table-scroll:focus-visible, #boss-table-search:focus-visible { outline: 2px solid #c5a5ff; outline-offset: -2px; }
@media (max-width: 760px) {
  .view-preferences { justify-items: end; gap: 6px; }
  .boss-table-heading { padding: 12px; }
  .boss-table-heading h2 { font-size: 16px; }
  .boss-table-tools { flex: 1 1 180px; justify-content: flex-end; }
  #boss-table-search { width: 100%; max-width: 250px; margin-inline-end: auto; }
  .view-preferences .view-toolbar { gap: 8px; }
}
