/* Main sections: a quiet white strip, content-sized tabs and inline counts.
 * Loaded after page styles so every shared main-tab family has one contract. */
:root body .operation-index-tabs {
  align-items: stretch;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 0;
  grid-template-columns: none;
  max-width: calc(100% - 32px);
  min-width: 0;
  padding: 0 !important;
  position: relative;
  width: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  isolation: isolate;
}
:root body .operation-index-tabs > :is(a, strong, span, button) {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  box-shadow: none;
  color: #475467;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 400;
  gap: 8px;
  height: var(--section-tabs-height);
  justify-content: center;
  line-height: 1.4;
  max-height: var(--section-tabs-height);
  min-height: var(--section-tabs-height);
  min-width: 0;
  padding: 0 16px;
  text-decoration: none;
  white-space: nowrap;
  width: auto;
}
:root body .operation-index-tabs > :is(a, strong, span, button)::before,
:root body .operation-index-tabs > :is(a, strong, span, button)::after {
  content: none;
}
:root body .operation-index-tabs > :is(strong, .is-active, [aria-current="page"], [aria-selected="true"]) {
  background: transparent;
  border-bottom-color: var(--action-blue, #1673e6);
  color: var(--action-blue, #1673e6);
  font-weight: 400;
}
:root body .operation-index-tabs > a:hover { background: #f9fafb; color: var(--action-blue, #1673e6); }
:root body .operation-index-tabs > a:focus-visible {
  outline: 2px solid var(--action-blue, #1673e6);
  outline-offset: -4px;
}
:root body .operation-index-tabs > span:not(.is-active) { color: #98a2b3; }
:root body .operation-index-tabs :is(.project-operation-tab-counts, .operation-index-report-tab-counts, .packing-list-outbound-check-counts, .section-tab-counts) {
  align-items: center;
  bottom: auto;
  display: inline-flex;
  flex-direction: row;
  font-style: normal;
  gap: 4px;
  justify-content: center;
  margin: 0;
  position: static;
  right: auto;
  top: auto;
}
:root body :is(.operation-index-tabs, .operation-picture-navigation, .section-subtabs) .operation-index-tab-count {
  align-items: center;
  background: #f2f4f7;
  border: 0;
  border-radius: 4px;
  bottom: auto;
  box-shadow: none;
  color: #475467;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 400;
  height: 18px;
  justify-content: center;
  line-height: 18px;
  margin: 0;
  min-height: 18px;
  min-width: 18px;
  padding: 0 5px;
  position: static;
  right: auto;
  top: auto;
  width: auto;
}
:root body .operation-index-tabs .operation-index-tab-count--alert {
  background: #d92d20;
  color: #fff;
}
/* The rail belongs to the whole window/header, independently of scrolling
 * tabs or buttons alongside them. section-tabs.js measures its vertical edge. */
.main-tabs-rail-host { position: relative; }
.main-tabs-baseline {
  background: #eaecf0;
  height: 2px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: var(--main-tabs-baseline-top);
  z-index: 0;
}
:root body .operation-index-tabs { z-index: 1; }
:root body .operation-index-tabs > .operation-admin-indicator > .trade-admin-shield {
  top: 2px;
  right: 2px;
}
:root body .operation-index-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  :root body .operation-index-tabs { max-width: calc(100% - 16px); }
  :root body .operation-index-tabs > :is(a, strong, span, button) { padding-inline: 16px; }
}

:root body .section-tab-counts {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  font-style: normal;
  gap: 4px;
  margin: 0;
  position: static;
}
:root body .operation-index-tabs :is(span, b, strong, small) { font-weight: 400; }
