.wc_tabset { display: flex; flex-direction: column; height: 100%; width: 100%; position: relative; --tabset-line: #ddd; }

/* Tabs stay on one line and scroll horizontally when they don't fit (see tabset.js), with a hidden scrollbar */
/* (inline-size containment keeps the tabs from widening the containers around them, ie. forms, instead of scrolling) */
.wc_tabset > ul { display: flex; flex-direction: row; flex-wrap: nowrap; flex: 0 0 auto; list-style: none; margin: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; contain: inline-size; }
.wc_tabset > ul::-webkit-scrollbar { display: none; }
.wc_tabset > ul.dragging,
.wc_tabset > ul.dragging * { cursor: grabbing !important; user-select: none; }
.wc_tabset > ul:empty { border-bottom: none; }
.wc_tabset > ul > li { display: flex; flex-shrink: 0; height: 34px; }
.wc_tabset > ul > li img { width: 24px; }
.wc_tabset > ul > li > a { text-decoration: none;  width: 100%; display: flex; flex-direction: row; padding: 0px 12px; align-items: center; justify-content: center; }
.wc_tabset > ul > li > a span { flex: 1; white-space: nowrap; }

.wc_tabset > ul > li.closeable > a span { padding: 0 10px 0 5px; }
.wc_tabset > ul > li a.close-tab { font-size: 14px; text-decoration: none; color: #aaa; }
.wc_tabset > ul > li a.close-tab:hover { color: #BD362F; }
.wc_tabset > ul > li i.sort { display: none; position: absolute; }
.wc_tabset > ul > li.sortable:hover i.sort { display: block; }

.wc_tabset > .wc_panels { flex-shrink: 1; flex-grow: 1; min-height: 0; }

/* Scroll controls (shown when the tabs don't fit) and options to the right of the tabs */
.wc_tabset > div.tabset-controls { position: absolute; top: 0; right: 0; display: flex; flex-direction: row; align-items: stretch; box-shadow: inset 0 -1px 0 var(--tabset-line); }
.wc_tabset > div.tabset-controls.empty { box-shadow: none; }
.wc_tabset > div.tabset-controls > a.tabset-scroll { display: none; width: 26px; align-items: center; justify-content: center; font-size: 16px; color: #888; text-decoration: none; }
.wc_tabset.tabs-overflow > div.tabset-controls > a.tabset-scroll { display: flex; }
.wc_tabset > div.tabset-controls > a.tabset-scroll:not(.disabled):hover { color: #08c; }
.wc_tabset > div.tabset-controls > a.tabset-scroll.disabled { opacity: 0.35; cursor: default; }
.wc_tabset > div.tabset-controls > div.tabset-options { display: flex; flex-direction: row; align-items: center; }
.wc_tabset > div.tabset-controls > div.tabset-options:empty { display: none; }
.wc_tabset.tabs-overflow > div.tabset-controls > div.tabset-options { margin-left: 6px; }
.wc_tabset.tabset-style-pills > div.tabset-controls { box-shadow: none; }

/* An element right after the last tab, ie. an add tab button (see setAfterTabs) */
.wc_tabset > div.tabset-after { position: absolute; top: 0; left: 0; display: flex; flex-direction: row; align-items: stretch; }
.wc_tabset > div.tabset-after:empty { display: none; }
.wc_tabset.has-after-tabs > ul { min-height: 34px; }  /* room for it when there are no tabs */
.wc_tabset.tabs-sorting > div.tabset-after { pointer-events: none; }  /* no hover while dragging a tab over it */
.wc_tabset.tabs-sorting > ul { position: relative; z-index: 3 !important; }  /* the dragged tab goes over it */

.wc_tabset.dark { --tabset-line: var(--wc-dark-border); }
.wc_tabset.dark > div.tabset-controls > a.tabset-scroll { color: var(--wc-dark-icon); }
.wc_tabset.dark > div.tabset-controls > a.tabset-scroll:not(.disabled):hover { color: var(--wc-dark-text); }

/**********************************************************************************************************************
 * Style: tabs
 **********************************************************************************************************************/

/* The line under the tabs is an inset shadow rather than a border, so the active tab can cover it within the scrolling list */
.wc_tabset > ul.tabs { border-bottom: none; box-shadow: inset 0 -1px 0 var(--tabset-line); padding-left: 3px; }
.wc_tabset > ul.tabs:empty { box-shadow: none; }
.wc_tabset > ul.tabs > li { border-radius: 4px 4px 0 0; background-color: #f4f4f4; border: 1px solid transparent; border-bottom-color: var(--tabset-line); position: relative; min-width: 50px; margin-left: 2px; }
.wc_tabset > ul.tabs > li > a { border-radius: 4px 4px 0 0; color: #aaa; }
.wc_tabset > ul.tabs > li.active { border-color: #ddd; border-bottom-color: white; background-color: white; }
.wc_tabset > ul.tabs > li.active > a span { color: #555; }
.wc_tabset > ul.tabs > li i.sort { left: -1px; top: 10px; }

.wc_tabset.dark ul.tabs > li { background-color: transparent; border-width: 0 0 2px 0; border-color: transparent; border-radius: 0; }
.wc_tabset.dark > ul.tabs > li > a { color: var(--wc-dark-text-muted); border-radius: 0; }
.wc_tabset.dark > ul.tabs > li:not(.active):hover > a { color: var(--wc-dark-text); }

.wc_tabset.dark ul.tabs > li.active { background-color: transparent; border-color: transparent; border-bottom-color: var(--wc-dark-accent); }
.wc_tabset.dark > ul.tabs > li.active > a span { color: white; }

/**********************************************************************************************************************
 * Style: pills
 **********************************************************************************************************************/

.wc_tabset > ul.pills { padding-top: 5px; padding-bottom: 5px; }
.wc_tabset > ul.pills > li { border-radius: 5px; background-color: transparent; margin-left: 5px; }
.wc_tabset > ul.pills > li:first-child { margin-left: 0; }
.wc_tabset > ul.pills > li > a { border-radius: 5px; color: #08c; }

.wc_tabset > ul.pills > li.active { background-color: #08c; }
.wc_tabset > ul.pills > li.active > a { color: white; }
