/* Shared pointer focus and database search suggestions. */
body:not(.keyboard-focus) :focus,
body:not(.keyboard-focus) :focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}
body.keyboard-focus :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #777 !important;
  outline-offset: 3px !important;
}
:is(a, button, input, select, textarea, summary) { -webkit-tap-highlight-color: transparent; }
.search-suggest-wrap { position: relative; min-width: 0; width: 100%; }
.search-suggest-wrap > input { width: 100%; }
.search-suggest-list[hidden] { display: none; }
.search-suggest-list {
  position: absolute; z-index: 80; top: calc(100% + 6px); left: 0;
  width: max(100%, 280px); max-width: min(480px, calc(100vw - 36px));
  max-height: 340px; overflow-y: auto; padding: 6px;
  border: 1px solid #d6d1ca; border-radius: 8px; background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.search-suggest-list .search-suggest-option {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  width: 100%; min-height: 42px; height: auto; padding: 10px 12px; margin: 0;
  border: 0; border-radius: 5px; background: #fff; color: #222;
  text-align: left; font: inherit; font-size: 13px; line-height: 1.4;
  cursor: pointer; overflow-wrap: anywhere;
}
.search-suggest-list .search-suggest-option:hover,
.search-suggest-list .search-suggest-option[aria-selected="true"] { background: #f0eeea; color: #111; }
.search-suggest-option strong { font-size: 13px; font-weight: 700; }
.search-suggest-option small { color: #727272; font-size: 11px; }
.search-suggest-empty { padding: 12px; color: #727272; font-size: 12px; }
@media print { .search-suggest-list { display: none !important; } }

/* Keep row actions visible in wide desktop tables; older browsers retain normal horizontal scrolling. */
@supports selector(table:has(td .btn)) {
  .table-wrap table:has(> tbody > tr > td:last-child :is(.btn, .icon-btn)) > :is(thead, tbody) > tr > :is(th, td):last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    border-left: 1px solid var(--line, #ded8d0);
    background: var(--panel, #fff);
    box-shadow: -6px 0 10px rgba(0,0,0,.035);
  }
  .table-wrap table:has(> tbody > tr > td:last-child :is(.btn, .icon-btn)) > thead > tr > th:last-child {
    z-index: 3;
    background: #f8f7f5;
  }
}

/* One shared size for order, service and return navigation on every client view. */
.section-tabs.order-section-tabs { align-items: center; gap: 12px; }
.section-tabs.order-section-tabs a {
  display: inline-flex; flex: 0 0 200px; align-items: center; justify-content: center;
  box-sizing: border-box; width: 200px; max-width: 100%; height: 42px; min-height: 42px;
  margin: 0; padding: 5px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center;
}
@media (max-width: 700px) {
  .section-tabs.order-section-tabs a { flex: 0 1 200px; }
}
