/* ------------------------------------------------------------------
   .evo-tabs - card tabs (docs-dev/styling 6.2; ruled 07-10-2026 as the
   tab structure for the modernized layout, piloted 04-10-2026)
   The strip is the top edge of a white rounded card and the open tab's
   content sits inside that card. Used by opportunityRecord,
   support_ticketedit, ticketedit, shipping and reqedit; legacy screens
   keep .page-nav-menu (styling 6.1) until they are modernized.
   Behaviour lives in assets/js/evoTabs.js (EvoTabs.init). State is
   classes/attributes only - never inline styles (6.1a).
   ------------------------------------------------------------------ */
.evo-tabset { margin-bottom: .75rem; }

.evo-tabs {
	display: flex;
	align-items: stretch;
	gap: .15rem;
	background: #fff;
	border: 1px solid var(--evo-line);
	border-radius: .5rem .5rem 0 0;
	padding: 0 .5rem;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
/* A bare pane (one that holds its own cards) is open: the strip stands alone. */
.evo-tabset.is-bare > .evo-tabs { border-radius: .5rem; margin-bottom: .5rem; }

.evo-tab {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: .4rem .4rem 0 0;
	color: var(--evo-muted);
	font-size: .875rem;
	font-weight: 500;
	line-height: 1.2;
	padding: .65rem .8rem .5rem;
	white-space: nowrap;
	cursor: pointer;
}
.evo-tab .material-symbols-rounded { font-size: 1.385rem; }
.evo-tab:hover:not([aria-selected="true"]) {
	color: var(--main-text-color, var(--evo-ink));
	background-color: rgba(17, 24, 39, .04);
}
.evo-tab:focus { outline: none; }
.evo-tab:focus-visible {
	outline: 2px solid var(--main-highlight-color, var(--bs-primary));
	outline-offset: -4px;
}
.evo-tab[aria-selected="true"] {
	color: var(--main-text-color, var(--evo-ink));
	font-weight: 600;
	border-bottom-color: var(--main-highlight-color, var(--bs-primary));
}
.evo-tab[hidden] { display: none; }

/* Counts: a quiet chip that inverts to the theme colour on the open tab. */
.evo-tab-count {
	display: inline-block;
	min-width: 1.4em;
	padding: .05rem .45rem;
	border-radius: 1rem;
	background: var(--evo-steel);
	color: var(--evo-muted);
	font-size: .72rem;
	font-weight: 500;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.evo-tab-count:empty { display: none; }
.evo-tab[aria-selected="true"] .evo-tab-count {
	background: var(--main-highlight-color, var(--bs-primary));
	color: #fff;
}

.evo-tabpane {
	background: #fff;
	border: 1px solid var(--evo-line);
	border-top: 0;
	border-radius: 0 0 .5rem .5rem;
	padding: .75rem 1rem 1rem;
}
.evo-tabpane[hidden] { display: none; }
.evo-tabpane--bare { background: transparent; border: 0; border-radius: 0; padding: 0; }
/* One look for every tab on a page (Shane, 08-11-2026, styling.inc 6.2 Panes): the strip always stands
   alone and a normal pane is its own white card below it, the same as a bare pane's cards. A joined
   white sheet beside a bare Overview read as two themes on one page. Modals keep the joined look. */
.page_content .evo-tabs:not(.modal .evo-tabs) { border-radius: .5rem; margin-bottom: .5rem; }
.page_content .evo-tabpane:not(.evo-tabpane--bare):not(.modal .evo-tabpane) { border-top: 1px solid var(--evo-line); border-radius: .5rem; }

@media (max-width: 767.98px) {
	.evo-tabs { padding: 0 .25rem; }
	.evo-tab { padding: .6rem .6rem .45rem; }
	.evo-tabpane { padding: .6rem .6rem .8rem; }
}

/* Link tab (03-11-2026, invedit): an <a class="evo-tab evo-tab-link"> that opens a sibling page
   (the item's BOM, Kit, Files...). Looks like its neighbours, never shows as selected. */
a.evo-tab-link { text-decoration: none; }
a.evo-tab-link:hover { color: var(--evo-ink); }
