/* A single, full-width workspace: list first, device details on demand. */
#llModule {
  background: #fff;
  --line: #e2e7eb;
  --surface-soft: #f7f9fa;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#llModule .topbar {
  position: relative;
  z-index: 20;
  min-height: 72px;
  padding: 0 32px;
  gap: 28px;
  background: #fff;
  backdrop-filter: none;
  flex-direction: row;
}

#llModule .brand {
  flex: 0 0 auto;
  gap: 12px;
}

#llModule .brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--teal);
}

#llModule .brand-mark svg { width: 30px; height: 30px; }
#llModule .brand h1, #llModule .brand strong { font-size: 19px; font-weight: 650; }

#llModule .module-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 16px;
  margin-right: auto;
}

#llModule .module-nav button {
  min-height: 44px;
  padding: 12px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #58626c;
  background: transparent;
  font-weight: 500;
  white-space: nowrap;
}

#llModule .module-nav :is(.active, [aria-current="page"], [aria-pressed="true"]) {
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

#llModule :is(.data-menu, .extra-views, .detail-more-actions) { position: relative; }
#llModule :is(.data-menu, .extra-views, .detail-more-actions) > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d5dce1;
  border-radius: 6px;
  color: #34424c;
  background: #fff;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

#llModule summary::-webkit-details-marker { display: none; }
#llModule :is(.data-menu, .extra-views, .detail-more-actions) > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

#llModule :is(.data-menu, .extra-views, .detail-more-actions)[open] > summary {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: #f4faf9;
}

#llModule :is(.data-menu-panel, .extra-views > div, .detail-more-actions-list) {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(23 33 43 / 12%);
}

#llModule :is(.data-menu-panel, .detail-more-actions-list) :is(.button, summary) {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  text-align: left;
  white-space: normal;
}

#llModule .data-menu-panel .button:not(.danger) {
  border-color: transparent;
  background: #fff;
  color: #263640;
}

#llModule .data-menu-panel .button:hover { background: #f2f7f6; }
#llModule .data-menu-panel { max-height: calc(100dvh - 90px); overflow-y: auto; }
#llModule .data-menu-panel .menu-heading { padding: 8px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
#llModule .data-menu-panel .inventory-summary { margin: 8px 0 0; padding: 4px 10px; border-top: 1px solid var(--line); }
#llModule .data-menu-panel .inventory-summary > summary { white-space: normal; font-size: 12px; }
#llModule .data-menu-panel .inventory-summary .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#llModule .data-menu-panel .inventory-summary #statusBars { grid-template-columns: 1fr; }
#llModule main { max-width: 1680px; margin: 0 auto; padding: 30px 32px 48px; }

#llModule .inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

#llModule .inventory-heading h1 { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -.5px; }
#llModule #inventoryCount { margin-top: 7px; color: var(--muted); font-size: 15px; }
#llModule #createDevice { min-height: 46px; padding: 10px 18px; font-size: 14px; flex: 0 0 auto; }

#llModule .search-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
#llModule .search-field { position: relative; display: flex; align-items: center; width: min(100%, 800px); min-width: 0; }
#llModule .search-field > svg { position: absolute; left: 16px; color: #72808b; pointer-events: none; }
#llModule #searchInput {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
}

#llModule .search-field:has(> svg) #searchInput { padding-left: 45px; }
#llModule #searchInput::placeholder { color: #72808b; opacity: 1; }
#llModule #toggleFilters { margin: 0 0 0 auto; min-height: 46px; flex: 0 0 auto; }
#llModule #clearFilters { min-height: 44px; flex: 0 0 auto; padding: 9px 8px; }
#llModule .button.small { min-height: 40px; }

#llModule .workflow-strip {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-bottom: 1px solid var(--line);
}

#llModule .workflow-strip > .focus-chip {
  gap: 8px;
  min-height: 50px;
  padding: 12px 12px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #596873;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}

#llModule .workflow-strip .chip-dot { display: none; }
#llModule .workflow-strip .count { min-width: 0; height: auto; padding: 0; background: transparent; color: inherit; font-weight: 400; font-size: 13px; }
#llModule .workflow-strip > .focus-chip.active { border-bottom-color: var(--teal); color: var(--teal-dark); background: transparent; font-weight: 650; }
#llModule .workflow-strip > .focus-chip:hover { background: #f7faf9; }
#llModule .extra-views { margin: 4px 0 4px auto; align-self: center; }
#llModule .extra-views > summary { min-height: 40px; padding: 8px; border-color: transparent; font-size: 13px; }
#llModule .extra-views .focus-chip { width: 100%; min-height: 42px; justify-content: space-between; border: 0; border-radius: 4px; background: transparent; font-weight: 500; }
#llModule .extra-views .focus-chip.active { background: #edf6f4; color: var(--teal-dark); }

#llModule .inventory-summary { margin: 22px 0 0; color: var(--muted); }
#llModule .inventory-summary > summary { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
#llModule .inventory-summary[open] > summary { margin-bottom: 12px; color: var(--text); }
#llModule .inventory-summary .kpi-grid { gap: 16px; padding: 16px 0; margin: 0; border-top: 1px solid var(--line); }
#llModule .inventory-summary .kpi { min-height: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
#llModule .inventory-summary .kpi::after { display: none; }
#llModule .inventory-summary .kpi .label { text-transform: none; font-weight: 500; }
#llModule .inventory-summary .kpi .value { color: var(--text); font-size: 24px; }
#llModule .inventory-summary #statusBars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

#llModule .workspace, #llModule .workspace.mobile-detail-active { display: block; min-width: 0; }
#llModule #deviceFilters {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-height: none;
  overflow: visible;
  padding: 20px;
  margin: 16px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafcfc;
  box-shadow: none;
}

#llModule #deviceFilters :is(.panel-heading, .filter-state, .check-field) { grid-column: 1 / -1; margin: 0; }
#llModule #deviceFilters .field { margin: 0; min-width: 0; }
#llModule #deviceFilters :is(input, select) { min-height: 42px; }
#llModule #deviceFilters .check-field input { min-height: 18px; }
#llModule #deviceFilters .panel-heading h2 { font-size: 15px; }
#llModule .table-panel { position: static; width: 100%; border: 0; border-radius: 0; box-shadow: none; }
#llModule .table-toolbar { min-height: 64px; padding: 12px 0; border: 0; gap: 12px; flex-direction: row; }
#llModule #resultCount { color: #42505b; font-size: 13px; font-weight: 400; }
#llModule .sort-group { align-items: center; gap: 8px; }
#llModule .sort-group label { display: flex; align-items: center; gap: 8px; color: #66747f; font-size: 13px; }
#llModule .sort-group select { min-width: 150px; min-height: 40px; padding: 8px 28px 8px 10px; font-size: 13px; }
#llModule .sort-group .icon-button { height: 40px; width: 40px; }
#llModule .density-control button { min-height: 40px; font-weight: 500; }
#llModule .table-wrap { max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: 6px; }
#llModule .table-wrap table { width: 100%; min-width: 0; table-layout: fixed; }
#llModule .table-wrap :is(th, td) { padding: 13px 16px; vertical-align: middle; }
#llModule .table-wrap th { position: static; background: #fbfcfd; font-weight: 600; font-size: 12px; }
#llModule .table-wrap th:first-child { border-top-left-radius: 6px; }
#llModule .table-wrap th:last-child { border-top-right-radius: 6px; }
#llModule .table-wrap tr:last-child td { border-bottom: 0; }
#llModule .table-wrap .sort-header { min-height: 26px; font-weight: 600; }
#llModule .table-wrap :is(th, td).select-col { width: 46px; padding: 10px; }
#llModule .table-wrap .select-col input { width: 18px; height: 18px; cursor: pointer; }
#llModule .table-wrap th:nth-child(2) { width: 24%; }
#llModule .table-wrap th:nth-child(4) { width: 20%; }
#llModule .table-wrap th:nth-child(5) { width: 18%; }
#llModule .table-wrap th:nth-child(6) { width: 17%; }
#llModule .table-wrap th:nth-child(7) { width: 17%; }
#llModule .table-wrap :is(.category-cell, .hints-cell, th:nth-child(3), th:nth-child(8)) { display: none; }
#llModule .table-wrap tbody tr { background: #fff; }
#llModule .table-wrap tbody tr:hover { background: #f7faf9; }
#llModule .table-wrap tbody tr.selected { background: #edf6f4; }
#llModule .table-wrap tbody tr > td:first-child { border-left: 0; box-shadow: none; }
#llModule .table-wrap tbody tr:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
#llModule .table-wrap :is(.cell-main, .cell-sub) { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
#llModule .table-wrap .cell-main { font-weight: 400; font-size: 14px; }
#llModule .table-wrap .cell-sub { margin-top: 2px; font-size: 12px; }
#llModule .table-wrap .device-id { margin-bottom: 1px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
#llModule .table-wrap :is(.status-cell, .movement-cell) > .cell-sub { display: none; }
#llModule .table-wrap .status-pill { max-width: 100%; padding: 0; background: transparent; border-radius: 0; font-size: 14px; font-weight: 500; white-space: normal; line-height: 1.4; }
#llModule .table-wrap .status-pill::before { content: ""; width: 6px; height: 6px; margin-right: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
#llModule .table-wrap .row-flags { margin-top: 5px; gap: 6px; }
#llModule .table-wrap .row-flags span { min-height: 0; padding: 0; border-radius: 0; background: transparent; font-size: 11px; font-weight: 500; }
#llModule .table-wrap .row-flags span + span::before { content: "·"; margin-right: 6px; color: #87919a; }
#llModule .table-wrap table.density-compact :is(th, td) { padding-top: 8px; padding-bottom: 8px; }

#llModule .workspace:not(.mobile-detail-active) .detail-panel { display: none; }
#llModule .workspace.mobile-detail-active :is(#deviceFilters, .table-panel) { display: none; }
#llModule .workspace.mobile-detail-active .detail-panel {
  position: static;
  display: block;
  width: 100%;
  max-width: 1100px;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: #fff;
  box-shadow: none;
}

#llModule:has(.workspace.mobile-detail-active) :is(.inventory-heading, .search-toolbar, .workflow-strip, .inventory-summary) { display: none; }
#llModule .detail-back-button {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  min-height: 42px;
  margin: 0 0 24px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  color: var(--teal-dark);
  background: transparent;
  backdrop-filter: none;
  font-weight: 500;
  cursor: pointer;
}

#llModule .detail-header { align-items: flex-start; gap: 20px; margin-bottom: 24px; }
#llModule .detail-heading-text { min-width: 0; }
#llModule .detail-header h2 { font-size: 30px; font-weight: 650; letter-spacing: -.4px; overflow-wrap: anywhere; }
#llModule .detail-heading-text > p { margin-top: 8px; color: var(--muted); }
#llModule .detail-identifiers { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; color: var(--muted); font-size: 13px; }
#llModule .detail-identifiers span { overflow-wrap: anywhere; }
#llModule .detail-header > .status-pill { flex: 0 0 auto; margin-top: 5px; padding: 5px 10px; font-weight: 500; }
#llModule .detail-actionbar { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
#llModule .detail-panel #deviceActionError:empty { display: none; }
#llModule .detail-actionbar > .button { min-height: 44px; padding: 10px 16px; flex: 0 1 auto; }
#llModule .detail-more-actions { margin-left: auto; }
#llModule .detail-more-actions-list { z-index: 10; }
#llModule .detail-tabs { gap: 18px; margin: 24px 0 0; }
#llModule .detail-tab { min-height: 48px; padding: 12px 6px; border-bottom-width: 2px; font-size: 14px; font-weight: 500; }
#llModule .detail-tab.active { font-weight: 650; }
#llModule .detail-tab-panel.active { padding: 24px 0; gap: 20px; }
#llModule .detail-block { padding-top: 0; border: 0; }
#llModule .detail-block h3 { margin-bottom: 18px; text-transform: none; font-size: 17px; font-weight: 600; }
#llModule .data-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; }
#llModule .data-item { min-height: 45px; }
#llModule .data-item span { font-size: 13px; }
#llModule .data-item strong { margin-top: 5px; font-size: 14px; font-weight: 500; }
#llModule .copy-button { width: 40px; height: 40px; top: 0; }
#llModule .input-copy-button { width: 40px; min-height: 44px; }
#llModule .data-item.with-copy { padding-right: 44px; }
#llModule .detail-panel .edit-form { max-width: 820px; }
#llModule .edit-form .detail-block, #llModule .form-grid { gap: 18px; }
#llModule .detail-panel :is(input:not([type="checkbox"]), select, textarea) { min-height: 44px; font-size: 14px; }
#llModule .detail-panel .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#llModule .detail-panel .detail-actions .button { min-height: 44px; flex: 0 1 auto; padding: 10px 16px; }
#llModule .detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
#llModule .detail-section-heading h3 { margin: 0; }
#llModule .event-filter { min-height: 40px; border-radius: 5px; font-weight: 500; }
#llModule .event-tools .button { min-height: 40px; }
#llModule :is(.duplicate-alert, .availability-alert) { padding: 14px 16px; border-radius: 5px; }
#llModule :is(button, input, select, textarea, summary, a[href], [tabindex]):focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
#llModule :is(.density-control button, .detail-tab):focus-visible { outline-offset: -3px; }

@media (max-width: 1100px) {
  #llModule .topbar { gap: 18px; padding: 0 24px; }
  #llModule .module-nav { gap: 8px; }
  #llModule .brand h1, #llModule .brand strong { font-size: 17px; }
  #llModule main { padding: 28px 24px 40px; }
  #llModule .table-wrap :is(th, td) { padding-right: 10px; padding-left: 10px; }
  #llModule .table-wrap .device-id { font-size: 14px; }
  #llModule .density-control { display: none; }
}

@media (max-width: 760px) {
  #llModule .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 12px 16px 0; gap: 8px 12px; }
  #llModule .brand { min-width: 0; gap: 6px; }
  #llModule .brand-mark { width: 28px; height: 28px; }
  #llModule .brand-mark svg { width: 25px; height: 25px; }
  #llModule .brand h1, #llModule .brand strong { font-size: 16px; }
  #llModule .module-nav { grid-row: 2; grid-column: 1 / -1; margin: 0; gap: 14px; }
  #llModule .module-nav button { padding: 10px 4px; font-size: 13px; }
  #llModule .data-menu { grid-column: 2; grid-row: 1; }
  #llModule .data-menu > summary { min-height: 40px; padding: 7px 8px; font-size: 12px; }
  #llModule .data-menu > summary > svg { display: none; }
  #llModule main { padding: 24px 16px 36px; }
  #llModule .inventory-heading { margin-bottom: 22px; gap: 12px; align-items: flex-start; }
  #llModule .inventory-heading h1 { font-size: 27px; }
  #llModule #inventoryCount { font-size: 13px; }
  #llModule #createDevice { min-height: 42px; padding: 9px 11px; font-size: 13px; }
  #llModule .search-toolbar { gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  #llModule .search-field { flex: 1 1 180px; }
  #llModule #searchInput { height: 46px; font-size: 14px; }
  #llModule #toggleFilters { min-height: 44px; padding: 9px 10px; font-size: 13px; }
  #llModule #clearFilters { margin-left: auto; min-height: 40px; font-size: 12px; }
  #llModule .workflow-strip { gap: 0; }
  #llModule .workflow-strip > .focus-chip { min-height: 46px; padding: 10px 8px; gap: 5px; font-size: 12px; }
  #llModule .workflow-strip .count { font-size: 11px; }
  #llModule .extra-views { margin-left: auto; }
  #llModule .extra-views > summary { font-size: 12px; padding: 7px 4px; }
  #llModule #deviceFilters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 14px; }
  #llModule .table-toolbar { align-items: center; gap: 8px; min-height: 62px; }
  #llModule .sort-group { margin-left: auto; }
  #llModule .sort-group label > span { display: none; }
  #llModule .sort-group select { width: 135px; min-width: 0; }
  #llModule .table-wrap { border: 0; border-radius: 0; }
  #llModule .table-wrap table, #llModule .table-wrap tbody { display: block; min-width: 0; width: 100%; }
  #llModule .table-wrap thead { display: none; }
  #llModule .table-wrap tr.device-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "select device device" "select person status" "select serial movement"; gap: 12px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
  #llModule .table-wrap tr.device-row:last-child { border-bottom: 1px solid var(--line); }
  #llModule .table-wrap tr.device-row > td { width: auto; min-width: 0; padding: 0; border: 0; }
  #llModule .table-wrap tr.device-row > .select-col { grid-area: select; align-self: start; padding-top: 3px; }
  #llModule .table-wrap .device-cell { grid-area: device; }
  #llModule .table-wrap .person-cell { grid-area: person; }
  #llModule .table-wrap .status-cell { grid-area: status; }
  #llModule .table-wrap .serial-cell { grid-area: serial; }
  #llModule .table-wrap .movement-cell { grid-area: movement; }
  #llModule .table-wrap .device-id { font-size: 16px; }
  #llModule .table-wrap :is(.person-cell, .status-cell, .serial-cell, .movement-cell)::before { display: block; margin-bottom: 5px; color: #697681; font-size: 11px; font-weight: 400; }
  #llModule .table-wrap .person-cell::before { content: "Zuordnung"; }
  #llModule .table-wrap .status-cell::before { content: "Status"; }
  #llModule .table-wrap .serial-cell::before { content: "Seriennummer"; }
  #llModule .table-wrap .movement-cell::before { content: "Letzte Bewegung"; }
  #llModule .table-wrap .status-pill { font-size: 14px; }
  #llModule .table-wrap .cell-main { font-size: 14px; }
  #llModule .table-wrap .empty-row { display: block; }
  #llModule .table-wrap .empty-row td { display: block; width: 100%; padding: 28px 16px; }
  #llModule .inventory-summary .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #llModule .inventory-summary #statusBars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #llModule .detail-back-button { margin-bottom: 20px; min-height: 42px; }
  #llModule .detail-header { flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
  #llModule .detail-header h2 { font-size: 27px; }
  #llModule .detail-header > .status-pill { margin: 0; }
  #llModule .detail-actionbar { gap: 8px; }
  #llModule .detail-more-actions { margin-left: auto; }
  #llModule .detail-more-actions > summary { min-height: 44px; font-size: 13px; }
  #llModule .detail-tabs { gap: 10px; margin-top: 18px; }
  #llModule .detail-tab { min-height: 46px; font-size: 13px; }
  #llModule .detail-tab-panel.active { padding: 22px 0; }
  #llModule .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
  #llModule .detail-block h3 { font-size: 16px; }
  #llModule .detail-panel .form-grid.two { grid-template-columns: 1fr; }
  #llModule .detail-panel .detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
  #llModule .detail-panel .detail-actions .button { padding: 10px; }
  #llModule .detail-section-heading { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 380px) {
  #llModule .brand h1, #llModule .brand strong { font-size: 14px; }
  #llModule .brand-mark { display: none; }
  #llModule .data-menu > summary { font-size: 11px; }
  #llModule main { padding-right: 12px; padding-left: 12px; }
  #llModule .workflow-strip > .focus-chip { padding-right: 6px; padding-left: 6px; }
  #llModule .data-grid { grid-template-columns: 1fr; }
  #llModule .detail-actionbar { align-items: stretch; }
  #llModule .detail-more-actions { margin-left: 0; }
  #llModule #deviceFilters { grid-template-columns: 1fr; }
}

/* Device types share the existing category filter, independently of stock views. */
#llModule .category-quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
}

#llModule .category-quick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #d9e1e6;
  border-radius: 6px;
  background: #fff;
  color: #54636d;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

#llModule .category-quick-button:hover { border-color: #91bdb6; background: #f8fbfa; }
#llModule .category-quick-button[aria-pressed="true"] { border-color: #80afa7; background: #edf7f5; color: var(--teal-dark); }
#llModule .category-quick-count { color: #6c7c86; font-size: 12px; font-variant-numeric: tabular-nums; }
#llModule .category-quick-button[aria-pressed="true"] .category-quick-count { color: var(--teal-dark); }
#llModule .category-quick-label-short { display: none; }
#llModule .device-type-icon { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.65; }
#llModule .device-name { display: flex; align-items: center; gap: 8px; }
#llModule .device-name .device-type-icon { color: #6c7e89; }
#llModule .device-name .device-id { min-width: 0; margin-bottom: 0; }
#llModule:has(.workspace.mobile-detail-active) .category-quick-filters { display: none; }

@media (max-width: 760px) {
  #llModule .category-quick-filters { gap: 6px; margin: 0 0 10px; }
  #llModule .category-quick-button { gap: 6px; min-height: 42px; padding: 8px 9px; font-size: 12px; }
  #llModule .category-quick-label-full { display: none; }
  #llModule .category-quick-label-short { display: inline; }
  #llModule .category-quick-count { font-size: 11px; }
  #llModule .category-quick-button .device-type-icon { width: 18px; height: 18px; }
}

@media (max-width: 380px) {
  #llModule .category-quick-filters { gap: 5px; }
  #llModule .category-quick-button { gap: 5px; padding-right: 6px; padding-left: 6px; }
}

/* A prepared loan stays distinct from a signed handover. */
#llModule .pending-loan-alert {
  padding: 14px 16px;
  border: 1px solid #e6cca4;
  border-left: 3px solid #ad762e;
  border-radius: 5px;
  background: #fff9ee;
  color: #70501e;
  overflow-wrap: anywhere;
}

#llModule .pending-loan-alert :is(strong, h3) {
  display: block;
  margin: 0 0 6px;
  color: #694611;
  font-size: 15px;
  font-weight: 600;
}

#llModule .pending-loan-alert p { margin: 0; line-height: 1.5; }
#llModule .loan-preparation-note {
  margin: 6px 0;
  padding: 10px 12px;
  border-left: 3px solid #ad762e;
  background: #fff9ee;
  color: #70501e;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#llModule .table-wrap .status-cell > .signature-pending-note {
  display: block;
  margin-top: 4px;
  color: #815213;
  font-size: 12px;
  line-height: 1.4;
}

#llModule .workflow-strip > [data-focus="prepared"].active {
  color: #815213;
  border-bottom-color: #996019;
}

@media (max-width: 760px) {
  #llModule .workflow-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  #llModule .workflow-strip > .focus-chip {
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 9px 4px;
    gap: 4px;
    white-space: normal;
  }

  #llModule .workflow-strip > .extra-views {
    align-self: stretch;
    min-width: 0;
    margin: 0;
  }

  #llModule .workflow-strip > .extra-views > summary {
    min-height: 46px;
    height: 100%;
    padding: 8px 4px;
    gap: 4px;
    white-space: normal;
    font-size: 11px;
  }
}
