/* ==========================================================================================
   ZeroPulp Employee Portal - v2 page heads and tabs ("v2 – Home / My records / Tasks" boards).
   Only the top of each page changes; everything below keeps the current design.

   1. PAGE HEAD - one compact row: the title (20px) with its subtitle beside it on the same baseline,
      actions on the right; a sidebar group shows as "Group ›" in front of the title. Page padding
      18px 24px 14px (was 32px 24px 20px, the title 30px over a 15px subtitle).
   2. TABS - underline tabs that are the top row of the card under them (not a pill bar floating
      above it): 48px tall, the active tab ink + 600 over a 2px accent rule, the rest grey 500.

   Loaded last (neo.html). Every rule leads with "body.zp-portal-theme main:not(#zpv2a):not(#zpv2b)": the
   two never-matching :not(#id)s add two ids' worth of specificity, so these outrank the zpPortal*.css
   rules they restyle - several of those are id-scoped (#users, #delegations, #accountManagementMainTab)
   and !important. The JS that sizes the cards measures the head / tab bar live, so
   nothing there changes. Remove the <link> to go back to the v1 heads and pill tabs.
   ========================================================================================== */

body.zp-portal-theme
{
	--zp-v2-head-pad: 18px 24px 14px;
	--zp-v2-tab-h: 48px;
	--zp-v2-radius: 12px;
}

/* ------------------------------------------------------------------------------------------
   1. Page head
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-header-bar,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .buttons-toolbar,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head
{
	align-items: center !important;
	gap: 12px;
	min-height: 40px;
	padding: var(--zp-v2-head-pad) !important;
}

/* title block: one row, title and subtitle sharing a baseline */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-header-bar > div:first-child,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head-text
{
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: baseline !important;
	gap: 4px 12px !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-title,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-title,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .page-header.account-management h2
{
	font-size: 20px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-subtitle,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .page-header .zp-page-subtitle
{
	font-size: 13px;
	line-height: 1.4;
	color: #5E5B6B;
}

/* "Global Data ›  Departments": the group and its chevron in front of the title - the crumb's own
   copy of the page name is dropped, the title is the page name */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-breadcrumb
{
	align-self: center;
	gap: 8px;
	font-size: 14px;
	color: var(--zp-ink-4);
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-breadcrumb .zp-breadcrumb-current
{
	display: none;
}

/* EVERY HEAD IS THE SAME HEIGHT, buttons or not: 18px + a 40px row + 14px = 72px. The head buttons
   are v2's 36px (they were 40-46px, which made a page with buttons taller than My Records). */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-header-bar,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .buttons-toolbar,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head
{
	min-height: 72px;
	box-sizing: border-box;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-header-bar > div:first-child,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head-text,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-account-head,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-schedule-head,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .page-header.account-management
{
	min-height: 40px;
	align-content: center;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-header-bar .button-container button,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head .dashBoard-buttons > button:not(.popup-list),
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #reportObjectContainer > .buttons-toolbar button,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #reportSchedules > .widget-tabs .list-actions-buttons button,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules > .widget-tabs .list-actions-buttons button
{
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 14px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	box-sizing: border-box;
}

/* Dashboards' settings (sliders) button is a 36px square of its own */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head .dashBoard-buttons > button.popup-list
{
	height: 36px;
	padding: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head .dashBoard-buttons,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-header-bar .button-container
{
	margin: 0 !important;
	align-self: center;
}

/* Reports / Dashboards keep their head inside a 60%-wide toolbar block */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .buttons-toolbar > div:first-child
{
	width: auto !important;
}

/* Account Management: the head sits in the tab bar above the section tabs */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .account-management-tab-bar
{
	padding: 18px 24px 0 !important;
	gap: 14px;
}

/* Schedules / Automations: the head is the first row of the list shell's .widget-tabs grid */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #reportSchedules > .widget-tabs,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules > .widget-tabs
{
	padding: 18px 24px 14px !important;
	row-gap: 14px !important;
}

/* Your settings */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .wrapper > .container
{
	padding-top: 18px;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .page-header.account-management
{
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 0 0 14px !important;
}

/* ------------------------------------------------------------------------------------------
   2. Tabs - the shared look
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab.nav.nav-tabs li > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation .nav-tabs li > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page #supportMainTab > li > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .request-filter > ul.nav-tabs > li > a
{
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: var(--zp-v2-tab-h);
	padding: 0 14px !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #5E5B6B !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	white-space: nowrap;
	box-sizing: border-box;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab.nav.nav-tabs li > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation .nav-tabs li > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page #supportMainTab > li > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .request-filter > ul.nav-tabs > li > a:hover
{
	background: transparent !important;
	color: var(--zp-ink) !important;
	font-weight: 500 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li.active > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li.active > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li.non-tab > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li.non-tab > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab.nav.nav-tabs li.active > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab.nav.nav-tabs li.active > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation .nav-tabs li.active > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation .nav-tabs li.active > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page #supportMainTab > li.active > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page #supportMainTab > li.active > a:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .request-filter > ul.nav-tabs > li.active > a,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .request-filter > ul.nav-tabs > li.active > a:hover
{
	background: transparent !important;
	border-bottom-color: var(--zp-accent) !important;
	color: var(--zp-ink) !important;
	font-weight: 600 !important;
}

/* a single label tab (Profiles, Portals, ...) isn't clickable - keep the arrow cursor */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li.non-tab > a
{
	cursor: default;
	min-height: var(--zp-v2-tab-h) !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .nav.nav-tabs li.active > a svg path
{
	stroke: currentColor;
}

/* the pill containers lose their frame - the card row is the frame now */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .tab-li-container,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab .scroll_tab_inner,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab:not(.scroll_tabs_container),
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation .nav-tabs,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page #supportMainTab,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .request-filter > ul.nav-tabs,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules .view-tabs .scroll_tab_inner
{
	gap: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs ul.nav-tabs
{
	height: var(--zp-v2-tab-h);
}

/* scrollTabs' end caps are spacers - they pushed the first tab ~10px further in than v2's 22px */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .scroll_tab_left_finisher,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .scroll_tab_right_finisher
{
	display: none !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .scroll_tab_left_button,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .widget-tabs .scroll_tab_right_button
{
	height: var(--zp-v2-tab-h);
}

/* ------------------------------------------------------------------------------------------
   3. Home, Tasks, My Records, Process Records, Global Data (home.js shell): the tab strip is the
      list card's top row - white, rounded on top, a hairline under it - and the card below loses
      its own top edge so the two read as one card. The manage-views button sits at the far left,
      before the tabs (its markup position - no order override).
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs
{
	align-items: stretch !important;
	gap: 8px !important;
	margin: 0 24px !important;
	padding: 0 12px 0 8px !important;
	background: var(--zp-surface) !important;
	border: 1px solid var(--zp-line) !important;
	border-radius: var(--zp-radius-card) var(--zp-radius-card) 0 0 !important;
	box-sizing: border-box;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs .view-tabs
{
	min-width: 0;
	flex: 1 1 auto;
	align-items: stretch !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs .preferred-view-container,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar .widget-tabs .preferred-view-container
{
	align-self: center;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs .preferred-view-container .prefer-view-button,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar .widget-tabs .preferred-view-container .prefer-view-button
{
	width: 36px;
	height: 36px;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	color: var(--zp-ink-4);
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs .preferred-view-container .prefer-view-button:hover,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar .widget-tabs .preferred-view-container .prefer-view-button:hover
{
	background: var(--zp-accent-tint) !important;
}

/* the views menu opens from the button's left edge (the button is the strip's first item) */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs .preferred-view-container .prefer-view-dropdown,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar .widget-tabs .preferred-view-container .prefer-view-dropdown
{
	top: 42px;
	left: 0;
	right: auto;
}

/* the card under it: square top corners, no top edge (the strip's hairline is it) */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .right-content-area-scroll,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .widget[widget-id],
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .user-list-view .jspPane
{
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .right-content-area-scroll::after,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .widget[widget-id],
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .user-list-view .jspPane
{
	border-top: 0 !important;
}

/* Home's Catalog: its white card is the grid itself (zpPortalCatalog.css), not the scroll area -
   join it to the strip the same way, or it reads as a second card stacked under the tabs */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container ul#published-form-list.zp-catalog-grid
{
	margin-top: 0 !important;
	border-top: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

/* a page whose tab strip is hidden (one view only) keeps its card whole */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs.hidden ~ .main-container .right-content-area-scroll,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs.hidden ~ .main-container .widget[widget-id]
{
	border-top-left-radius: var(--zp-radius-card) !important;
	border-top-right-radius: var(--zp-radius-card) !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs.hidden ~ .main-container .right-content-area-scroll::after,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs.hidden ~ .main-container .widget[widget-id]
{
	border-top: 1px solid var(--zp-line) !important;
}

/* Dashboards: the same card-top strip, over the dashboard's board (its white panel) */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar
{
	padding: 0 24px !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar > div:first-child
{
	width: 100% !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar .widget-tabs
{
	align-items: stretch !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 12px 0 8px !important;
	background: var(--zp-surface) !important;
	border: 1px solid var(--zp-line) !important;
	border-radius: var(--zp-radius-card) var(--zp-radius-card) 0 0 !important;
	box-sizing: border-box;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-dashboard-tabbar .widget-tabs .view-tabs
{
	min-width: 0;
	flex: 1 1 auto;
	align-items: stretch !important;
	border: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #dashboards .stream-dashboard-outer
{
	border-top: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

/* ------------------------------------------------------------------------------------------
   4. Account Management: the section tabs (Users, Profiles, ...) are the top row of the page's card;
      each section's own header row (All Users + its buttons, Locations, ...) runs on under it
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab.scroll_tabs_container
{
	width: 100% !important;
	margin: 0 !important;
	padding: 0 12px 0 8px !important;
	background: var(--zp-surface) !important;
	border: 1px solid var(--zp-line) !important;
	border-radius: var(--zp-radius-card) var(--zp-radius-card) 0 0 !important;
	box-sizing: border-box;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab .scroll_tab_inner,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #accountManagementMainTab:not(.scroll_tabs_container)
{
	display: flex !important;
	flex-wrap: wrap;
	align-items: stretch;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .account-management-tab-bar ~ .account-management-item-detail
{
	padding-top: 0 !important;
}

/* each section's header row: no top edge / corners (the tab row above is the card top), its view
   label as an underline tab sitting on the row's bottom, the buttons centred on the row */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .account-management-tab-bar ~ .account-management-item-detail > div > .widget-tabs
{
	height: auto !important;
	min-height: 0 !important;
	align-items: stretch !important;
	padding: 0 20px 0 8px !important;
	border-top: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .account-management-tab-bar ~ .account-management-item-detail > div > .widget-tabs > .view-tabs
{
	align-items: stretch !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .account-management-tab-bar ~ .account-management-item-detail > div > .widget-tabs ul.nav-tabs:has(> li.non-tab)
{
	align-items: stretch !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .account-management-tab-bar ~ .account-management-item-detail > div > .widget-tabs .list-actions-buttons
{
	align-self: center;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}

/* Company Info has no header row of its own (zpPortalSettings.css), so its form card runs straight on
   from the tab row */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .account-management-tab-bar ~ .account-management-item-detail #company-information .object-detail #recordDetail
{
	border-top: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

/* ------------------------------------------------------------------------------------------
   5. Your settings: Profile / Delegations are the card's top row; the Profile card and the
      Delegations notice + list run on under it (their 3px accent tops gave way to the tab row)
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation
{
	margin: 0 !important;
	padding: 0 12px 0 8px !important;
	background: var(--zp-surface) !important;
	border: 1px solid var(--zp-line) !important;
	border-radius: var(--zp-radius-card) var(--zp-radius-card) 0 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation .nav-tabs
{
	display: flex !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement .main-tab-navigation .nav-tabs li
{
	margin: 0 !important;
}

/* the Profile card sat in the legacy grid (.tab-content-outer > .container > .row > .col-sm-710):
   bootstrap's fixed container widths and gutters left it 8px in from the tab row and 8px below it -
   flatten them so the card runs on flush under the tabs */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #currentUserProfile .tab-content-outer,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #currentUserProfile .tab-content-outer > .container,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #currentUserProfile .tab-content-outer > .container > .row,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #currentUserProfile .tab-content-outer > .container > .row > .col-sm-710
{
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #currentUserProfile .content-right-medium
{
	margin: 0 !important;
	border-top: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement #delegations .delegation-help-text
{
	margin: 0 !important;
	border-top: 0 !important;
	border-radius: 0 !important;
	background: var(--zp-surface-muted) !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #profileManagement #delegations > .widget-tabs
{
	border-top: 0 !important;
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

/* ------------------------------------------------------------------------------------------
   6. Automations: the One Time / Recurring filter is the list card's top row
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules > .widget-tabs
{
	padding-bottom: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules .view-tabs > .items-center:not(.list-actions-buttons)
{
	padding: 0 12px 0 8px;
	background: var(--zp-surface);
	border: 1px solid var(--zp-line);
	border-radius: var(--zp-radius-card) var(--zp-radius-card) 0 0;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules .view-tabs ul.nav-tabs
{
	height: auto !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules .view-tabs .scroll_tab_inner
{
	display: flex !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules #recordListContainer .right-content-area-scroll
{
	border-top-left-radius: 0 !important;
	border-top-right-radius: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #manageSchedules #recordListContainer .right-content-area-scroll::after
{
	border-top: 0 !important;
}

/* ------------------------------------------------------------------------------------------
   7. Support: the request tabs are the card's top row; the All / Open / Closed filter and New
      Request run on under them
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .support-tab-bar
{
	margin: 0 24px !important;
	padding: 0 12px 0 8px !important;
	background: var(--zp-surface) !important;
	border: 1px solid var(--zp-line) !important;
	border-radius: var(--zp-radius-card) var(--zp-radius-card) 0 0 !important;
	box-sizing: border-box;
	align-self: auto !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page #supportMainTab
{
	display: flex !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .support-item-detail > div > .widget-tabs
{
	margin: 0 24px 16px !important;
	padding: 0 12px 0 8px !important;
	background: var(--zp-surface) !important;
	border: 1px solid var(--zp-line) !important;
	border-top: 0 !important;
	border-radius: 0 0 var(--zp-radius-card) var(--zp-radius-card) !important;
}

/* ------------------------------------------------------------------------------------------
   8. Narrow screens
   ------------------------------------------------------------------------------------------ */
@media (max-width: 63.99rem)
{
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-header-bar,
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .buttons-toolbar,
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-head
	{
		padding: 16px 16px 12px !important;
	}

	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .object-title,
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-page-title
	{
		font-size: 18px !important;
	}

	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs,
	body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .zp-support-page .support-tab-bar
	{
		margin-left: 16px !important;
		margin-right: 16px !important;
	}
}

/* ------------------------------------------------------------------------------------------
   List column headers line up with their cells. task.css's "#all th.pl-2 { padding-left: 8px
   !important }" (an id selector, so it beat zpPortal.css's class-only 20px) pulled every header
   12px left of the 20px body cells on Home / Tasks / Process Records / Global Data. Same 20px both.
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) table.stream-version-details thead th,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) table.smart-object-reocrd-list thead th,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) table.stream-report-list-table thead th,
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) table.user-list thead th
{
	padding-left: 20px !important;
	padding-right: 20px !important;
}

/* ------------------------------------------------------------------------------------------
   Create New Report: TWO rows carry template-id "*" (pulpstream.js) - "All Templates" (its link is
   template-id "*") and the TASKS report, "Task Management" (its link is template-id "allStream"). The
   old rule hid both, which left the portal with no way to report on tasks. Since 2026-10-29 only
   "All Templates" and the blank spacer rows stay hidden; the old rule is kept below, commented out.
   The spacer-row rule is scoped to .create-new-report-ui: unscoped, it also matched every row of a
   folder's report/dashboard list (those rows carry report-id, never template-id) and blanked it.
   ------------------------------------------------------------------------------------------ */
/*
body.zp-portal-theme tr.report-list-row[template-id="*"],
body.zp-portal-theme tr.report-list-row:not([template-id]):has(+ tr.report-list-row[template-id="*"])
{
	display: none !important;
}
*/
body.zp-portal-theme tr.report-list-row[template-id="*"]:has(a[template-id="*"]),
body.zp-portal-theme #reportsFolder .create-new-report-ui table.stream-report-list-table tr.report-list-row:not([template-id])
{
	display: none !important;
}

/* ------------------------------------------------------------------------------------------
   Home task widget (homePageWidgets.js): flush under the tab strip, rows on the search bar's line.
   - The card sat ~4px right of the strip above it: nothing between .main-container (24px, same as
     the strip's margin) and the card may add a left inset - scoped with :has() to Home's task card
     so record lists (which jScrollPane scrolls sideways) are untouched.
   - Row text started 32px in (row 20px + the template's px-1 4px + mx-2 8px) against the search
     bar's 16px; the row now carries the 16px and its inner wrappers none.
   ------------------------------------------------------------------------------------------ */
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .tab-content-outer:has(.widget[widget-id]),
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .right-content-area-scroll:has(.widget[widget-id]),
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .jspPane:has(> .widget[widget-id]),
body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) #all > .widget-tabs ~ .main-container .widget[widget-id]
{
	margin-left: 0 !important;
	padding-left: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .task-table-container > div[task-id]
{
	padding-left: 16px !important;
	padding-right: 16px !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .task-table-container > div[task-id] > div
{
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.zp-portal-theme main:not(#zpv2a):not(#zpv2b) .task-table-container > div[task-id] > div > .grid
{
	margin-left: 0 !important;
	margin-right: 0 !important;
}
