/* ====================================================================
   Docent theme.

   One font (Inter, self-hosted in ../fonts) and one palette, as custom
   properties on :root with the dark values on body.docent-dark. Every
   colour below is one of these tokens; a project's own colour arrives as
   --docent-accent from the css viewlet.
   ==================================================================== */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/Inter-Variable.woff2) format('woff2');}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url(../fonts/Inter-VariableItalic.woff2) format('woff2');}

:root {
  --docent-page: #efede9;
  --docent-surface: #ffffff;
  --docent-surface-warm: #f6f2ec;
  --docent-surface-cream: #f9f2e8;
  --docent-border: #dfd9d1;
  --docent-border-strong: #c9bfb4;
  --docent-ink: #212529;
  --docent-ink-muted: #7a736c;
  --docent-brand: #64041f;
  --docent-brand-tint: #fbf4f6;
  --docent-brand-edge: #c9a9b4;
  --docent-action: #1f5f6e;
  --docent-action-hover: #17505d;
  --docent-action-tint: #eaf4f6;
  --docent-action-edge: #bad8de;
  --docent-action-bright: #3a9fb5;
  --docent-success: #2f9e57;
  --docent-success-tint: #e5f5ec;
  --docent-danger: #d23b3b;
  --docent-danger-tint: #fde8e8;
  --docent-needed: #c0405a;
  --docent-needed-tint: #fdf7f8;
  --docent-warning: #bc8d0d;
  --docent-warning-tint: #fbf3dc;
  --docent-state-idle: #6b635c;
  --docent-overlay: #262d38;

  --docent-radius-pill: 999px;
  --docent-radius-md: 8px;
  --docent-radius-sm: 4px;
  --docent-shadow-card: 0 1px 2px rgba(43,39,36,.06);
  --docent-shadow-card-hover: 0 4px 12px rgba(43,39,36,.10);
  --docent-shadow-focus: 0 0 0 3px rgba(31,95,110,.25);
  --docent-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --docent-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;

  --bs-body-font-family: var(--docent-font) !important;
  --bs-font-sans-serif: var(--docent-font) !important;
  --plone-toolbar-font: var(--docent-font) !important;
}

body.docent-dark {
  --docent-page: #171a21;
  --docent-surface: #1c222c;
  --docent-surface-warm: #232a35;
  --docent-surface-cream: #2b2421;
  --docent-border: #333b47;
  --docent-border-strong: #3a4250;
  --docent-ink: #eae6e0;
  --docent-ink-muted: #9aa3b2;
  --docent-brand: #e8c4ce;
  --docent-brand-tint: #2a1f27;
  --docent-brand-edge: #6d4a55;
  --docent-action: #2a6f80;
  --docent-action-hover: #33808f;
  --docent-action-tint: #16262b;
  --docent-action-edge: #34565f;
  --docent-action-bright: #9fd0da;
  --docent-success: #3fbe3f;
  --docent-success-tint: #1d3320;
  --docent-danger: #e46a6a;
  --docent-danger-tint: #3a2020;
  --docent-needed: #d98a9c;
  --docent-needed-tint: #3a2a2e;
  --docent-warning: #fab219;
  --docent-warning-tint: #3a3018;
  --docent-state-idle: #a2958d;
  --docent-overlay: #262d38;
}

/* Everything is Inter, except icon fonts and monospace code. */
html,body{font-family:var(--docent-font) !important;}
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class*="fa-"]):not([class*="glyphicon"]):not(.fc-icon):not([class*="material-icons"]):not(code):not(pre):not(kbd):not(samp):not(tt):not(.text-monospace):not([class*="monospace"]){
  font-family:var(--docent-font) !important;
}
/* Code and IDs stay monospace so columns of numbers line up. */
code,pre,kbd,samp,tt,.text-monospace,[class*="monospace"]{
  font-family:var(--docent-mono) !important;
}

body,
html body {
	color: var(--docent-ink)
}

body #portal-footer-wrapper {
   background: var(--docent-surface-warm);
   border-top: 3px solid var(--docent-action);
   padding: 0.55rem;
   font-size: 85%;
}

body #portal-footer-wrapper,
body #portal-footer-wrapper a {
   color: var(--docent-ink-muted);
}

body #portal-footer-wrapper a:hover {
   color: var(--docent-ink);
}

#project_name {max-width: 160px;}

body.template-login #portal-anontools {
	display: none !important;
}

input[type=checkbox],
input[type=radio] {
	opacity: 1;
}

.userrole-anonymous #content-header {
	max-width: 1300px;
	margin: auto
}

.userrole-anonymous #portal-top {
	color: #fff;
}

#portal-anontools {
	margin: auto;
	width: 100%;
	display: block
}

#portal-anontools ul {
	margin: auto !important;
	max-width: 1380px;
	width: 100%;
	text-align: right;
	display: block;
}

#portal-anontools li a {
	text-decoration: none;
	transition: 0.4s;
	font-family: var(--docent-font);
	padding: 12px 25px;
	border-radius: 30px;
	font-weight: 500;
	font-size: 15px;
	min-width: 150px;
	border: 1px solid;
	background: var(--docent-action);
	color: #fff;
}

#portal-anontools li a:hover {
	text-decoration: underline;
	color: #fff !important;
}

.profile-setup a {
	font-weight: bolder;
}

.profile-setup a:hover {
	text-decoration: underline
}

.managePortlets-row {
	display: none !important
}

body.template-manage-portlets #portal-column-two {
	display: block !important
}

thead,
.dataTable th {
	font-weight: bold;
	margin-bottom: 3px;
	color: var(--docent-ink)
}

#mainnavigation-wrapper {
	display: none !important
}

#header a {
	color: var(--docent-ink);
}

.hidden {
	display: none !important
}

#viewlet-below-content-title {
	display: none
}

h1.priority-1 {
	color: var(--docent-danger)
}

h1.priority-3 {
	color: var(--docent-success)
}

h1.priority-2 {
	color: var(--docent-warning)
}

.black {
	color: var(--docent-ink)
}

fieldset {
	padding-left: 2rem;
	padding-right: 2rem;
}

td {
	padding: 3px 12px;
	margin: 1px;
}

.calendarsheet {
	max-width: 120px;
	min-width: 90px;
	float: right;
	display: block;
}

.calendarsheet.left {
	float: left;
	opacity: 0.6
}

.redborder.calendarsheet time {
	background: var(--docent-danger);
}

.calendarsheet time,
.calendarsheet p,
.calendarsheet date {
	display: block;
	text-align: center;
}

.colorborder {
	border: 5px solid;
}

.redborder {
	border: 5px solid var(--docent-danger);
}

.urgent_red {
	border-color: var(--docent-danger)
}

.soon_yellow {
	border-color: var(--docent-warning)
}

.future_green {
	border-color: var(--docent-success)
}

.long_grey {
	border-color: var(--docent-border-strong)
}

.redborder p.theading,
.urgent_red p.theading {
	background: var(--docent-danger)
}

.soon_yellow p.theading {
	background: var(--docent-warning)
}

.future_green p.theading {
	background: var(--docent-success)
}

.long_grey p.theading {
	background: var(--docent-border-strong)
}

.calendarsheet time,
.calendarsheet p.theading {
	color: #fff !important;
	margin: 0
}

.calendarsheet .days,
.calendarsheet date {
	background: var(--docent-surface);
	color: var(--docent-ink);
	font-size: 3rem;
	font-weight: 500;
	letter-spacing: -3px;
	margin: 0;
}

.larger {
	font-size: 120%
}

@media (min-width:100px) {
	div.soon_yellow.colorborder.calendarsheet {
		position: relative;
		top: -2.5rem;
	}

}

.pri-box.flex {
	display: flex
}

.priority-1 span {
	color: var(--docent-danger);
	padding: 1px 5px
}

.priority-2 span {
	color: var(--docent-warning);
	padding: 1px 5px
}

.priority-3 span {
	color: var(--docent-success);
	padding: 1px 5px
}

span.previousdue-True {
	color: var(--docent-border-strong);
}

#traffic-light {
	background: var(--docent-ink);
	border-radius: var(--docent-radius-sm);
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	width: 17px;
	height: 35px;
}

#traffic-light>span {
	border-radius: 50%;
	width: 6px;
	height: 6px;
	padding: 0;
	display: block;
	opacity: 0.33
}

#traffic-light .active-True {
	opacity: 1 !important;
	width: 10px;
	height: 10px
}

.late14-True {
	color: var(--docent-danger)
}

.soon14-True {
	color: var(--docent-warning)
}

span.later-True {
	color: var(--docent-success)
}

#toolbar select {
	background: none !important
}

.pat-discussion span.required {
	display: none
}

.section-notes.template-full_view .item h1,
.section-notes.template-full_view p.lead,
.template-note-view.template-full_view h1,
.template-note-view.template-full_view p.lead,
.section-postit_notes.template-full_view .item h1,
.section-postit_notes.template-full_view p.lead,
.template-post-it-note-view.template-full_view h1,
.template-post-it-note-view.template-full_view p.lead,
.section-notes #content-core header {
	display: none
}

.section-notes.template-full_view #content-core,
.template-note-view.template-full_view #content-core,
.section-postit_notes.template-full_view #content-core,
.template-post-it-note-view.template-full_view #content-core {
	display: grid;
	grid-template-columns: 1fr;
	/* default to 1 column */
	gap: 1rem;
	/* optional spacing between items */
}

.subsection-postit-collection #main-container {
	display: flex;
	flex-direction: column-reverse;
	width: 100%;
}

#portal-column-two.overlay {
	display: flex !important;
	max-width: calc(100% + 1rem) !important;
	width: calc(100% + 1rem) !important;
	margin: 1rem 0 1rem 1rem;
	height: auto;
	background: var(--docent-surface-warm) !important;
}

#portal-column-two.overlay .portletWrapper {
	background: none !important;
	padding: 0;
	margin: 1rem 0 0
}

.card-big-shadow {
	max-width: 620px;
	position: relative;
}

.coloured-cards .card {
	margin-top: 30px;
}

.card[data-radius="none"] {
	border-radius: 0px;
}

.card {
	border-radius: var(--docent-radius-md);
	box-shadow: var(--docent-shadow-card);
	background-color: var(--docent-surface);
	color: var(--docent-ink);
	margin-bottom: 20px;
	position: relative;
	z-index: 1;
}

.card[data-background="image"] .title,
.card[data-background="image"] .stats,
.card[data-background="image"] .category,
.card[data-background="image"] .description,
.card[data-background="image"] .content,
.card[data-background="image"] .card-footer,
.card[data-background="image"] small,
.card[data-background="image"] .content a,
.card[data-background="color"] .title,
.card[data-background="color"] .stats,
.card[data-background="color"] .category,
.card[data-background="color"] .description,
.card[data-background="color"] .content,
.card[data-background="color"] .card-footer,
.card[data-background="color"] small,
.card[data-background="color"] .content a {
	color: var(--docent-ink);
}

.card.card-just-text .content {
	padding: 50px 65px;
	text-align: xcenter;
}

.card .content {
	padding: 10px 10px 10px 10px;
}

.card[data-color="blue"] .category {
	color: #7a9e9f;
}

.card .category,
.card .label {
	font-size: 14px;
	margin-bottom: 0px;
}

.card-big-shadow:before {
	background-image: radial-gradient(ellipse at center,
		rgba(0, 0, 0, 0.28) 0%,
		rgba(0, 0, 0, 0.16) 40%,
		rgba(0, 0, 0, 0) 70%);
	background-position: center bottom;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	bottom: -12%;
	content: "";
	display: block;
	left: -12%;
	position: absolute;
	right: 0;
	top: -1px;
	z-index: 0;
}

h4,
.h4 {
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.2em;
}

h6,
.h6 {
	font-size: 0.9em;
	font-weight: 600;
	text-transform: uppercase;
}

.card .description {
	font-size: 16px;
	color: var(--docent-ink-muted);
}

.content-card {
	margin-top: 30px;
}

a:hover,
a:focus {
	text-decoration: none;
}

/* COLORS */

.card[data-color="blue"] {
	background: #b8d8d8;
}

.card[data-color="blue"] .description {
	color: #506568;
}

.card[data-color="green"] {
	background: #d5e5a3;
}

.card[data-color="green"] .description {
	color: #60773d;
}

.card[data-color="green"] .category {
	color: #92ac56;
}

.card[data-color="yellow"] {
	background: #ffe28c;
}

.card[data-color="yellow"] .description {
	color: #b25825;
}

.card[data-color="yellow"] .category {
	color: #d88715;
}

.card[data-color="brown"] {
	background: #d6c1ab;
}

.card[data-color="brown"] .description {
	color: #75442e;
}

.card[data-color="brown"] .category {
	color: #a47e65;
}

.card[data-color="purple"] {
	background: #baa9ba;
}

.card[data-color="purple"] .description {
	color: #3a283d;
}

.card[data-color="purple"] .category {
	color: #5a283d;
}

.card[data-color="orange"] {
	background: #ff8f5e;
}

.card[data-color="orange"] .description {
	color: #772510;
}

.card[data-color="orange"] .category {
	color: #e95e37;
}

.greyed {
	opacity: 0.25
}

a {
	opacity: 1
}

.flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.flex-start {
	justify-content: flex-start !important;
}

#toolbar {
	padding: 0;
	max-width: 1680px;
	margin: auto;
	min-height: 122px;
}

#toolbar .flex {
	justify-content: space-between;
	margin: 0
}

#toolbar img {
	width: 2rem;
}

#document_manager img,
#meeting_select img {
	width: 1.3rem;
}

#toolbar {
	background: var(--docent-surface-cream);
	font-size: 10pt;
	width: 100%;
}

#toolbar .not-toggle img:active {
	transform: rotate(15deg);
  }

#toolbar .border {
	border-right: 1px solid var(--docent-border);
	width: 1px;
}

#pmtoolbargroup {
	border-left: 1px solid var(--docent-border);
}

#pmtoolbargroup .toolbargroup  {
	border-right: 0 none;
	border-left: 0 none;
} 

#toolbar > #pmtoolbargroup {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
#pmtoolbargroup .toolbargroup {
	padding-left: 0.25rem;
	padding-right: 0.25rem;
}
#pmtoolbargroup .dropdown-toggle,
#pmtoolbargroup .not-dropdown {
	padding-left: 2px;
	padding-right: 2px;
}

.toolbargroup {
	border-left: 1px solid var(--docent-border-strong);
	padding-left: 1rem;
	padding-right: 1rem;
}

#teamtoolbargroup {
	border-right: 1px solid var(--docent-border-strong);
}

#toolbar>div {
	padding: 0.4rem 1rem 1.5rem;
	flex-grow: 1;
	position: relative
}

.toolbar_label {
	text-align: center;
	font-weight: 600 !important;
	position: absolute;
	bottom: -7px;
	left: 0;
	right: 0;
	line-height: 125%;
	color: var(--docent-ink-muted) !important
}

.toolbar_label a {
	font-weight: 600 !important;
}

#toolbar {
	text-align: center;
	font-size: 10pt;
	text-transform: none !important
}

#toolbar * {
	text-transform: none !important;
	font-size: 10pt;
	font-family: var(--docent-font) !important;
	font-weight: normal;
	color: var(--docent-ink) !important
}

#toolbar .toolbar_label,
#toolbar .toolbar_label a {
	color: var(--docent-action) !important;
}

#toolbar select {
	border-color: var(--docent-ink);
	border-width: 1px;
	padding: 0 3px;
	margin-bottom: 9px;
	border-radius: var(--docent-radius-sm);
}

#toolbar input,
#toolbar select {
	height: auto
}

#toolbar a {
	color: var(--docent-ink);
	text-decoration: none;
	text-transform: none !important;
	border-bottom: 0 dotted var(--docent-border) !important
}

#toolbar p {
	padding: 0;
	margin: 0;
	line-height: 120%
}

#document_type_select {
	text-align: center
}

#toolbar #site_logo img {
	width: 3rem;
	height: 3rem;
	margin-bottom: 4px
}

p.align-left {
	text-align: left
}

#create_meeting {
	background-image: none
}

/* Fake toolbar dropdown */

#toolbar .custom-select {
	position: relative;
	display: inline-block;
	text-align: left;
}

#toolbar .selected {
	border: 1px solid;
	border-radius: var(--docent-radius-sm);
}

#toolbar .selected img {
	width: 20px;
	height: 20px;
	margin-right: 8px;
}

#toolbar .options {
	display: none;
	position: absolute;
	background: var(--docent-surface-warm);
	width: 150px;
	top: 0;
	border: 1px solid var(--docent-border);
	z-index: 10;
	border-radius: 6px;
	box-shadow: var(--docent-shadow-card-hover);
}

#customSelect div {
	padding: 0 3px;
}

#toolbar .option {
	padding: 3px;
	display: flex;
	align-items: center;
	cursor: pointer;
}

#toolbar .option img {
	width: 16px;
	height: 16px;
	margin-right: 4px;
}

#show-toobar button {
	border: 0 none;
	padding: 0 10px 0 0;
	padding-inline: 0;
	background: var(--docent-surface);
	line-height: 120%;
}

#show-toobar img {
	margin: 0 5px 0 0;
	padding: 0
}

body #portal-column-two {
	background: var(--docent-surface) !important;
	border: 1px solid;
	border-radius: var(--docent-radius-sm);
	background: var(--docent-surface) !important;
	padding-bottom: 2rem
}

.portletWrapper {
	background: var(--docent-surface) !important
}

.pat-collectionfilter .card-body,
.pat-collectionfilter,
.collectionFilter .card-body,
.collectionFilter,
.pat-collectionfilter,
.card-header.portletHeader {
	background: none !important;
	padding: 0 7px;
	font-weight: bold;
	border: 0 none !important;
	margin: 0;
}

/* The page's ground: a few percent off white, so the white card has an edge. */
body {
	background: var(--docent-page) !important;
}

.frontend fieldset {
	background: var(--docent-surface)
}

.frontend fieldset.autotoc-section {
	padding: 1rem;
}

.frontend .pat-autotoc.autotabs .autotoc-nav {
	margin-bottom: 0;
}

.frontend .autotoc-level-1.active {
	background: var(--docent-surface);
	color: var(--docent-ink) !important;
}

#toggle-filters,
#toggle-filters img {
	background: var(--docent-surface);
	border-radius: var(--docent-radius-sm);
}

#toggle-filters {
	padding: 3px 5px 0;
}

#portal-breadcrumbs {
	background: none !important;
}

/* Crit. Path. Deliberately NOT a fourth traffic-light colour - it is not a
   rung on the same ladder, it is the schedule. Docent maroon, the colour
   this product already uses for its own actions. */
#tl-0 {
	background: var(--docent-brand)
}

#tl-1 {
	background: var(--docent-danger)
}

#tl-2 {
	background: var(--docent-warning)
}

#tl-3 {
	background: var(--docent-success)
}

form .hidden-widget {
	display: none
}

#formfield-form-widgets-in_reply_to,
#formfield-form-widgets-author_name {
	margin-bottom: 0
}

.table,
table.invisible-grid,
table.listing,
table.listing-compact,
table.plain {
	--bs-table-color-type: initial;
	--bs-table-bg-type: initial;
	--bs-table-color-state: initial;
	--bs-table-bg-state: initial;
	--bs-table-color: var(--bs-emphasis-color);
	--bs-table-bg: var(--bs-body-bg);
	--bs-table-border-color: var(--bs-border-color);
	--bs-table-accent-bg: transparent;
	--bs-table-striped-color: var(--bs-emphasis-color);
	--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
	--bs-table-active-color: var(--bs-emphasis-color);
	--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
	--bs-table-hover-color: var(--bs-emphasis-color);
	--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
	width: 100%;
	margin-bottom: 1rem;
	vertical-align: top;
	border-color: var(--bs-table-border-color);
}

.table>:not(caption)>*>*,
table.invisible-grid>:not(caption)>*>*,
table.listing-compact>:not(caption)>*>*,
table.listing>:not(caption)>*>*,
table.plain>:not(caption)>*>* {
	padding: .5rem .5rem;
	color: var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));
	background-color: var(--bs-table-bg);
	border-bottom-width: var(--bs-border-width);
	box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))
}

.table>tbody,
table.invisible-grid>tbody,
table.listing-compact>tbody,
table.listing>tbody,
table.plain>tbody {
	vertical-align: inherit
}

.table>thead,
table.invisible-grid>thead,
table.listing-compact>thead,
table.listing>thead,
table.plain>thead {
	vertical-align: bottom
}

.table-group-divider {
	border-top: calc(var(--bs-border-width) * 2) solid currentcolor
}

.caption-top {
	caption-side: top
}

.table-sm>:not(caption)>*>*,
table.listing-compact>:not(caption)>*>* {
	padding: .25rem .25rem
}

.table-bordered>:not(caption)>*,
table.plain>:not(caption)>* {
	border-width: var(--bs-border-width) 0
}

.table-bordered>:not(caption)>*>*,
table.plain>:not(caption)>*>* {
	border-width: 0 var(--bs-border-width)
}

.table-borderless>:not(caption)>*>*,
table.invisible-grid>:not(caption)>*>* {
	border-bottom-width: 0
}

.table-borderless>:not(:first-child),
table.invisible-grid>:not(:first-child) {
	border-top-width: 0
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
	--bs-table-color-type: var(--bs-table-striped-color);
	--bs-table-bg-type: var(--bs-table-striped-bg)
}

.table-striped-columns>:not(caption)>tr>:nth-child(2n) {
	--bs-table-color-type: var(--bs-table-striped-color);
	--bs-table-bg-type: var(--bs-table-striped-bg)
}

.table-active {
	--bs-table-color-state: var(--bs-table-active-color);
	--bs-table-bg-state: var(--bs-table-active-bg)
}

.table-hover>tbody>tr:hover>* {
	--bs-table-color-state: var(--bs-table-hover-color);
	--bs-table-bg-state: var(--bs-table-hover-bg)
}

.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch
}

.fc-day,
.fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
	border-style: solid !important;
	border-color: var(--docent-border) !important;
}

.fc-scrollgrid {
	border: 1px solid var(--docent-border) !important;
}

a.fc-daygrid-day-number {
	border-bottom: 0px solid var(--docent-success);
}

/* Calendar (collective.fullcalendar) restyle */

#content .fc, #content .fc * {
	font-family: var(--docent-font) !important;
}

/* FullCalendar reads these custom properties; set them here so the buttons are
   subtle (collective.fullcalendar sets them to the brand color otherwise). */
#content .fc {
	--fc-button-bg-color: var(--docent-surface-warm);
	--fc-button-border-color: var(--docent-border);
	--fc-button-text-color: var(--docent-ink);
	--fc-button-hover-bg-color: var(--docent-surface-warm);
	--fc-button-hover-border-color: var(--docent-border-strong);
	--fc-button-active-bg-color: var(--docent-border);
	--fc-button-active-border-color: var(--docent-border-strong);
	--fc-today-bg-color: var(--docent-surface-cream);
}

#content .fc,
#content .fc a,
#content .fc .fc-toolbar-title,
#content .fc .fc-daygrid-day-number,
#content .fc .fc-daygrid-event,
#content .fc .fc-event-title,
#content .fc .fc-event-time,
#content .fc .fc-list-event-title a {
	color: var(--docent-ink) !important;
}
#content .fc .fc-toolbar-title { font-size: 20px !important; font-weight: 700 !important; }

/* Toolbar buttons (‹ ›, Year / Month / Week / List): subtle light chips. */
#content .fc .fc-button,
#content .fc .fc-button-primary {
	background: var(--docent-surface-warm) !important;
	border: 1px solid var(--docent-border) !important;
	color: var(--docent-ink) !important;
	box-shadow: none !important;
	text-transform: none !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	text-shadow: none !important;
}
#content .fc .fc-button:hover { background: var(--docent-surface-warm) !important; }
#content .fc .fc-button-primary:not(:disabled).fc-button-active,
#content .fc .fc-button-primary:not(:disabled):active {
	background: var(--docent-border) !important;
	border-color: var(--docent-border-strong) !important;
	color: var(--docent-ink) !important;
}
#content .fc .fc-button-primary:disabled {
	background: var(--docent-surface-warm) !important; border-color: var(--docent-border) !important; color: var(--docent-ink-muted) !important;
}
#content .fc .fc-button:focus { box-shadow: var(--docent-shadow-focus) !important; }

/* Nav-style B: the view switcher (Year / Month / Week / List) renders as
   underlined tabs — i.e. every toolbar button that isn't prev / next / today.
   The active view gets a maroon label + maroon underline. */
#content .fc .fc-button:not(.fc-prev-button):not(.fc-next-button):not(.fc-today-button) {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 none !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--docent-ink-muted) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	padding: 6px 2px !important;
	margin: 0 11px !important;
}
#content .fc .fc-button:not(.fc-prev-button):not(.fc-next-button):not(.fc-today-button):hover {
	background: transparent !important;
	color: var(--docent-brand) !important;
}
#content .fc .fc-button:not(.fc-prev-button):not(.fc-next-button):not(.fc-today-button).fc-button-active {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--docent-brand) !important;
	border-bottom-color: var(--docent-brand) !important;
}

/* "today" reads as a plain text tab like Year / Month / … (not a greyed chip).
   FullCalendar disables it while today is already in view — keep it looking
   like a normal tab rather than a washed-out disabled button. */
#content .fc .fc-today-button,
#content .fc .fc-today-button:disabled,
#content .fc .fc-today-button.fc-button-primary:disabled {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--docent-ink-muted) !important;
	opacity: 1 !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-transform: none !important;
	padding: 6px 2px !important;
	margin: 0 11px !important;
}
#content .fc .fc-today-button:hover:not(:disabled) {
	background: transparent !important;
	color: var(--docent-brand) !important;
}

/* Same heading across EVERY view: month/week day-of-week row, year mini-grid
   headers, and list-view day rows — the toolbar's warm-paper colour
   with dark text. High specificity + background-color to beat FC's own rule. */
#content .fc .fc-col-header-cell,
#content .fc .fc-scrollgrid-section-header th,
#content .fc thead .fc-col-header-cell,
#content .fc .fc-list-day-cushion,
#content .fc .fc-list-day th {
	background: var(--docent-surface-cream) !important;
	background-color: var(--docent-surface-cream) !important;
	/* No per-cell borders — the day names read as one continuous bar, not
	   individual boxes. Just a bottom divider from the day grid. */
	border: 0 none !important;
	border-bottom: 1px solid var(--docent-border) !important;
}
#content .fc .fc-col-header-cell a,
#content .fc .fc-col-header-cell-cushion,
#content .fc .fc-list-day-cushion,
#content .fc .fc-list-day-text,
#content .fc .fc-list-day-side-text {
	color: var(--docent-ink) !important;
	font-weight: 600 !important;
	text-transform: none !important;
	text-decoration: none !important;
	padding: 8px 6px !important;
}

/* prev / next render as plain arrows that flank the centred title (the toolbar
   JS moves them there); the title gets a little breathing room. */
#content .fc .fc-prev-button,
#content .fc .fc-next-button {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 none !important;
	box-shadow: none !important;
	color: var(--docent-ink) !important;
	padding: 2px 8px !important;
	font-size: 18px !important;
}
#content .fc .fc-prev-button:hover,
#content .fc .fc-next-button:hover {
	background: transparent !important;
	color: var(--docent-brand) !important;
}
#content .fc .fc-toolbar-title { margin: 0 8px !important; }

#content .fc .fc-toolbar-chunk { display: flex !important; align-items: center !important; }

#content .fc .fc-prev-button .fc-icon,
#content .fc .fc-next-button .fc-icon { display: none !important; }
#content .fc .fc-prev-button::before { content: "\2039"; }
#content .fc .fc-next-button::before { content: "\203A"; }
#content .fc .fc-prev-button::before,
#content .fc .fc-next-button::before {
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: var(--docent-ink) !important;
}

.dropdown-container {
	display: flex;
}

.dropdown-item {
	position: relative;
	max-width: 120px;
}

.not-dropdown,
.not-toggle,
.not-dropdown a,
.dropdown-toggle a {
	background: none;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px; 
}

.dropdown-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px; 
	background: none;
	border: none;
}

.dropdown-toggle span,
.dropdown-toggle span:hover,
.dropdown-toggle::after {
	 cursor: default !important; 
}

.main-icon {
	width: 48px;
	height: 48px;
}

.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--docent-surface);
	border: 1px solid var(--docent-border);
	min-width: 200px;
	padding: 8px 0;
	z-index: 1000;
}

.dropdown-item.open .dropdown-content {
	display: block;
}

.dropdown-line {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	text-decoration: none;
	color: var(--docent-ink);
}

.dropdown-line:hover {
	background: var(--docent-surface-warm);
}

/* Notification Rules sits under the "View N ..." rows of the Alerts
   pulldown. The dotted rule says "that list has ended": this row is the
   reference, not another kind of Alert. */
.dropdown-line-rules {
	border-top: 1px dotted var(--docent-border);
	margin-top: 4px;
	padding-top: 9px;
}

/* ---- The Notification Rules page (browser/notification_rules.pt) ---- */
.ai-rules-lead { margin: 0 0 14px; color: var(--docent-ink-muted); font-size: 13px; }
.ai-rules-table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.ai-rules-table th, .ai-rules-table td {
	border: 1px solid var(--docent-border); padding: 8px 10px; text-align: left; vertical-align: top;
}
.ai-rules-table th {
	font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase;
	color: var(--docent-brand); background: var(--docent-surface-warm); font-weight: 600;
}
.ai-rules-table th.c, .ai-rules-table td.c { text-align: center; white-space: nowrap; }
.ai-rules-table tr.ai-rules-group td {
	background: var(--docent-surface-warm); font-weight: 600; color: var(--docent-ink); font-size: 12px; letter-spacing: .3px;
}
.ai-rules-table td b { color: var(--docent-ink); }
/* On the live site the header row came out white on a medium blue - a
   theme or table rule the shipped stylesheets do not show wins over the
   rules above at render time (30 Oct 2026). So the header, the group rows
   and the body cells are restated at a specificity nothing beats, with
   !important. The dark values still arrive through the tokens. */
html body #content .ai-rules-table thead th,
html body #content .ai-rules-table th {
	background: var(--docent-surface-warm) !important;
	background-image: none !important;
	color: var(--docent-brand) !important;
	border-color: var(--docent-border) !important;
	text-shadow: none !important;
}
html body #content .ai-rules-table tr.ai-rules-group td {
	background: var(--docent-surface-warm) !important;
	background-image: none !important;
	color: var(--docent-ink) !important;
	border-color: var(--docent-border) !important;
	text-shadow: none !important;
}
html body #content .ai-rules-table td {
	background: var(--docent-surface) !important;
	background-image: none !important;
	color: var(--docent-ink) !important;
	border-color: var(--docent-border) !important;
	text-shadow: none !important;
}
.ai-rules-alert { color: var(--docent-action); font-weight: 700; }
.ai-rules-email { color: var(--docent-warning); font-weight: 700; }
.ai-rules-ind { color: var(--docent-ink-muted); }
.ai-rules-ico { height: 1.1em; width: auto; vertical-align: -2px; margin-right: 2px; }
.ai-rules-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 14px 0 0; font-size: 12px; color: var(--docent-ink-muted); }
.ai-rules-legend b { color: var(--docent-ink); }

.prjdocsblock, 
#myteambargroup { height: 85px}

.prjdocsblock {
	border-left: 1px solid  var(--docent-border-strong) !important;
	margin-left: 1rem;
}

#toolbar img.main-icon,
#toolbargroup img, 
#toolbar img.small-icon,
img.small-icon {
	width: auto !important;
	height: 28px !important;
}

.dropdown-toggle.not-toggle::after {
	display: none !important
}

.modal-content .pat-structure .navbar,
.modal-content .pat-structure.navbar  { font-size: 70%}

/* Transition note popup */
.transition-note-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(20, 30, 50, 0.55);
  display: flex; align-items: center; justify-content: center;
}
.transition-note-dialog {
  background: var(--docent-surface); border-radius: var(--docent-radius-md); padding: 24px 26px;
  width: min(440px, 92vw); box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.transition-note-dialog .transition-note-title { margin: 0 0 14px; font-size: 1.2rem; }
.transition-note-dialog .transition-note-label { display: block; margin-bottom: 6px; font-weight: 600; }
.transition-note-dialog .transition-note-required { font-weight: 400; color: var(--docent-warning); }
.transition-note-dialog textarea { width: 100%; box-sizing: border-box; margin-bottom: 16px; }
.transition-note-dialog .transition-note-buttons { display: flex; justify-content: flex-end; gap: 10px; }

/* Standalone (no-JS) fallback page: keep the form compact */
.transition-note-wrapper .transition-note-form { max-width: 480px; }
.transition-note-wrapper textarea { width: 100%; box-sizing: border-box; margin-bottom: 16px; }
.transition-note-wrapper .transition-note-buttons { display: flex; gap: 10px; }

/* Assign popup */
.assign-form-sub { margin: -6px 0 14px; font-size: .82rem; color: var(--docent-ink-muted); line-height: 1.45; }
.assign-form-hint { display: block; font-size: .76rem; color: var(--docent-ink-muted); margin: -2px 0 6px; line-height: 1.4; }
.assign-form select { width: 100%; box-sizing: border-box; margin-bottom: 14px; }
.assign-form select[multiple] { min-height: 108px; }

.docent-picker { position: relative; margin-bottom: 14px; }
.docent-picker-box {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
  min-height: 38px; padding: 5px 8px; box-sizing: border-box;
  background: var(--docent-surface); border: 1px solid var(--docent-border-strong); border-radius: var(--docent-radius-sm);
  cursor: text;
}
.docent-picker-box:focus-within { border-color: var(--docent-warning); outline: 2px solid var(--docent-warning-tint); }
.docent-picker-chips { display: contents; }
.docent-picker-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 6px 2px 9px; border-radius: 12px;
  background: var(--docent-surface-warm); border: 1px solid var(--docent-border);
  font-size: .8rem; line-height: 1.5; white-space: nowrap;
}
.docent-picker-chip-remove {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 1rem; line-height: 1; color: var(--docent-ink-muted);
}
.docent-picker-chip-remove:hover { color: var(--docent-warning); }
.docent-picker-search {
  flex: 1 1 7em; min-width: 7em;
  border: 0; outline: 0; padding: 3px 2px; font-size: .85rem; background: none;
}
.docent-picker-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 5;
  max-height: 190px; overflow-y: auto;
  background: var(--docent-surface); border: 1px solid var(--docent-border-strong); border-radius: var(--docent-radius-sm);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .13);
}
.docent-picker-list.is-empty::after {
  content: "No one matches that name.";
  display: block; padding: 9px 11px; font-size: .8rem; color: var(--docent-ink-muted);
}
.docent-picker-option {
  display: block; width: 100%; text-align: left;
  padding: 7px 11px; border: 0; background: none; cursor: pointer;
  font-size: .85rem; line-height: 1.4; color: inherit;
}
.docent-picker-option:hover { background: var(--docent-surface-warm); }
/* Already chosen: still listed, so clicking it again takes it back off. */
.docent-picker-option.is-chosen { color: var(--docent-ink-muted); }
.docent-picker-option.is-chosen::before { content: "\2713\00a0"; color: var(--docent-warning); }
/* Opened as a page rather than a popup, the Assign form sits in
   #content-core, where the theme makes every <button> a coral outline in
   capitals - the remove x and each name in the list included. */
#content-core .docent-picker-chip-remove,
#content .docent-picker-chip-remove,
#content-core .docent-picker-option,
#content .docent-picker-option {
  height: auto !important; min-height: 0 !important;
  background: none !important; border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; font-family: inherit !important;
  letter-spacing: normal !important; text-transform: none !important;
  text-align: left; white-space: normal;
}
#content-core .docent-picker-chip-remove,
#content .docent-picker-chip-remove {
  display: inline !important; padding: 0 !important;
  font-size: 1rem !important; font-weight: 400 !important; line-height: 1 !important;
  color: var(--docent-ink-muted) !important;
}
#content-core .docent-picker-chip-remove:hover,
#content .docent-picker-chip-remove:hover { color: var(--docent-warning) !important; }
#content-core .docent-picker-option,
#content .docent-picker-option {
  display: block !important; width: 100%; padding: 7px 11px !important;
  font-size: .85rem !important; font-weight: 400 !important; line-height: 1.4 !important;
  color: inherit !important;
}
#content-core .docent-picker-option:hover,
#content .docent-picker-option:hover { background: var(--docent-surface-warm) !important; }
/* The search box hides the names that do not match with `hidden`. */
#content-core .docent-picker-option[hidden],
#content .docent-picker-option[hidden],
#content-core .docent-picker-chip-remove[hidden],
#content .docent-picker-chip-remove[hidden] { display: none !important; }
#content-core .docent-picker-option.is-chosen,
#content .docent-picker-option.is-chosen { color: var(--docent-ink-muted) !important; }

.assign-form textarea { width: 100%; box-sizing: border-box; margin-bottom: 16px; }
.assign-rejection {
  background: var(--docent-warning-tint); border: 1px solid var(--docent-warning); border-radius: 7px;
  padding: 9px 12px; margin: 0 0 14px; font-size: .82rem; line-height: 1.5; color: var(--docent-ink-muted);
}
.assign-rejection strong { color: var(--docent-warning); }

/* Native <dialog> variant of the transition note popup */
dialog.transition-note-dialog { border: none; }
dialog.transition-note-dialog::backdrop { background: rgba(20, 30, 50, 0.55); }

/* Signal table — status atoms for the Action Items overview */

/* Workflow state pill */
.ai-state {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  padding: 2px 9px;
  border-radius: var(--docent-radius-pill);
  white-space: nowrap;
  border: 1px solid transparent;
  background: var(--docent-surface-warm);
  color: var(--docent-state-idle);
  border-color: var(--docent-border);
}

.ai-state-created   { background: var(--docent-surface-warm); color: var(--docent-state-idle); border-color: var(--docent-border); }
.ai-state-submitted { background: var(--docent-action-tint); color: var(--docent-action); border-color: var(--docent-action-edge); }
.ai-state-assigned  { background: var(--docent-action-tint); color: var(--docent-action); border-color: var(--docent-action-edge); }
.ai-state-accepted  { background: var(--docent-action-tint); color: var(--docent-action-hover); border-color: var(--docent-action-edge); }
.ai-state-completed { background: var(--docent-success-tint); color: var(--docent-success); border-color: var(--docent-success-tint); }
.ai-state-rejected  { background: var(--docent-danger-tint); color: var(--docent-danger); border-color: var(--docent-danger-tint); }
.ai-state-closed    { background: var(--docent-surface-warm); color: var(--docent-state-idle); border-color: var(--docent-border); }
.ai-state-archived  { background: var(--docent-surface-warm); color: var(--docent-ink-muted); border-color: var(--docent-border); }
.ai-state-published { background: var(--docent-action-tint); color: var(--docent-action); border-color: var(--docent-action-edge); }

.ai-state-draft           { background: var(--docent-surface-warm); color: var(--docent-state-idle); border-color: var(--docent-border); }
.ai-state-open            { background: var(--docent-action-tint); color: var(--docent-action); border-color: var(--docent-action-edge); }
.ai-state-comments_closed { background: var(--docent-action-tint); color: var(--docent-action-hover); border-color: var(--docent-action-edge); }
.ai-state-decided         { background: var(--docent-success-tint); color: var(--docent-success); border-color: var(--docent-success-tint); }

.ai-state-scheduled { background: var(--docent-action-tint); color: var(--docent-action); border-color: var(--docent-action-edge); }
.ai-state-in_review { background: var(--docent-action-tint); color: var(--docent-action); border-color: var(--docent-action-edge); }
.ai-state-held      { background: var(--docent-success-tint); color: var(--docent-success); border-color: var(--docent-success-tint); }
.ai-state-approved  { background: var(--docent-success-tint); color: var(--docent-success); border-color: var(--docent-success-tint); }
.ai-state-cancelled { background: var(--docent-danger-tint); color: var(--docent-danger); border-color: var(--docent-danger-tint); }

/* Priority chip */
.ai-prio {
  font-family: var(--docent-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--docent-radius-sm);
  border: 1px solid;
  white-space: nowrap;
}
.ai-prio-1 { color: var(--docent-danger); border-color: var(--docent-danger); background: var(--docent-danger-tint); }
.ai-prio-2 { color: var(--docent-warning); border-color: var(--docent-warning); background: var(--docent-warning-tint); }
.ai-prio-3 { color: var(--docent-success); border-color: var(--docent-success); background: var(--docent-success-tint); }

/* Stoplight dot (only when a 'stoplight' column is configured) */
.ai-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  vertical-align: middle; margin-right: 6px; }
.ai-dot-red    { background: var(--docent-danger); }
.ai-dot-yellow { background: var(--docent-warning); }
.ai-dot-green  { background: var(--docent-success); }
.ai-sl-label { font-size: 12.5px; color: var(--docent-state-idle); vertical-align: middle; }

/* Tasks list — toolbar + relocated DataTables controls (signal table) */

.ai-tasks-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 6px 2px 14px; margin-bottom: 10px;
  border-bottom: 1px solid var(--docent-border);
}

.ai-tasks-toolbar .ai-tt-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.ai-tt-create {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--docent-action) !important;
  background: var(--docent-action-tint); border: 1px solid var(--docent-action-edge); border-radius: var(--docent-radius-pill);
  padding: 4px 14px; line-height: 1.4; text-decoration: none; white-space: nowrap;
  box-shadow: none !important;
  /* The chips' height (padding 4px, 12.5px, line-height 1.4), not a
     taller button beside them (5 Nov 2026). */
}
.ai-tt-create:hover {
  background: var(--docent-action-tint); border-color: var(--docent-action-bright); color: var(--docent-action-hover) !important;
  text-decoration: none;
}
body.docent-dark .ai-tt-create {
  color: var(--docent-action-bright) !important;
}
body.docent-dark .ai-tt-create:hover {
  border-color: var(--docent-action-edge); color: var(--docent-action-bright) !important;
}
.ai-tt-create .ai-tt-plus { font-size: 15px; line-height: 1; font-weight: 700; }

#content-core .ai-tt-action,
#content .ai-tt-action,
.ai-tt-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--docent-brand) !important; background: var(--docent-surface);
  border: 1px solid var(--docent-brand-edge); border-radius: var(--docent-radius-md);
  padding: 0 14px; white-space: nowrap; cursor: pointer;
  text-transform: none !important; letter-spacing: normal;
  box-shadow: none !important;
  height: 39px; box-sizing: border-box;
}
#content-core .ai-tt-action:hover:not(:disabled),
#content .ai-tt-action:hover:not(:disabled) {
  background: var(--docent-brand-tint); border-color: var(--docent-brand);
}
#content-core .ai-tt-action:disabled,
#content .ai-tt-action:disabled {
  color: var(--docent-ink-muted) !important; border-color: var(--docent-border);
  cursor: not-allowed; opacity: .8;
}
/* Idle: the Team page's Alert / Send Email while nobody is ticked. Greyed
   like disabled, but still a button - a click says to tick someone,
   where a disabled one answered with nothing (29 Oct 2026). */
#content-core .ai-tt-action.ai-tt-idle,
#content .ai-tt-action.ai-tt-idle {
  color: var(--docent-ink-muted) !important; border-color: var(--docent-border);
  opacity: .8;
}
#content-core .ai-tt-action .image22,
#content .ai-tt-action .image22 { height: 18px !important; width: auto; }

body.docent-dark #content-core .ai-tt-action:disabled,
body.docent-dark #content .ai-tt-action:disabled {
  color: var(--docent-border-strong) !important;
}

/* Docent buttons: one set of classes for any page or dialog that needs a plain button, so nothing has to fall through to the theme */
#content-core .ai-btn,
#content .ai-btn,
.ai-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  gap: 6px; box-sizing: border-box; vertical-align: middle;
  height: 34px !important; min-height: 0 !important; line-height: 1 !important;
  padding: 0 16px !important; margin: 0;
  border-radius: var(--docent-radius-pill) !important;
  font-family: inherit !important; font-size: 13px !important;
  font-weight: 600 !important; letter-spacing: normal !important;
  text-transform: none !important; text-decoration: none !important;
  text-shadow: none !important; box-shadow: none !important;
  background-image: none !important;
  white-space: nowrap; cursor: pointer;
}

#content-core .ai-btn[hidden],
#content .ai-btn[hidden],
.ai-btn[hidden],
#content-core .ai-icon-close[hidden],
#content .ai-icon-close[hidden],
.ai-icon-close[hidden] { display: none !important; }
#content-core .ai-btn:focus-visible,
#content .ai-btn:focus-visible,
.ai-btn:focus-visible { outline: 2px solid var(--docent-action) !important; outline-offset: 2px; }
#content-core .ai-btn:disabled,
#content .ai-btn:disabled,
.ai-btn:disabled { opacity: .7; cursor: progress; }
#content-core .ai-btn svg,
#content .ai-btn svg,
.ai-btn svg { width: 14px; height: 14px; flex: none; }

#content-core .ai-btn.ai-btn-sm,
#content .ai-btn.ai-btn-sm,
.ai-btn.ai-btn-sm { height: 28px !important; padding: 0 12px !important; font-size: 12.5px !important; }

#content-core .ai-btn-primary,
#content .ai-btn-primary,
.ai-btn-primary {
  background: var(--docent-action) !important; border: 1px solid var(--docent-action) !important;
  color: #fff !important;
}
#content-core .ai-btn-primary:hover,
#content .ai-btn-primary:hover,
.ai-btn-primary:hover {
  background: var(--docent-action-hover) !important; border-color: var(--docent-action-hover) !important; color: #fff !important;
}

#content-core .ai-btn-secondary,
#content .ai-btn-secondary,
.ai-btn-secondary {
  background: var(--docent-surface) !important; border: 1px solid var(--docent-border) !important;
  color: var(--docent-ink) !important;
}
#content-core .ai-btn-secondary:hover,
#content .ai-btn-secondary:hover,
.ai-btn-secondary:hover {
  background: var(--docent-surface-warm) !important; border-color: var(--docent-border-strong) !important; color: var(--docent-ink) !important;
}

#content-core .ai-btn-create,
#content .ai-btn-create,
.ai-btn-create {
  background: var(--docent-action-tint) !important; border: 1px solid var(--docent-action-edge) !important;
  color: var(--docent-action) !important;
}
#content-core .ai-btn-create:hover,
#content .ai-btn-create:hover,
.ai-btn-create:hover {
  background: var(--docent-action-tint) !important; border-color: var(--docent-action-bright) !important; color: var(--docent-action-hover) !important;
}

#content-core .ai-icon-close,
#content .ai-icon-close,
.ai-icon-close {
  display: inline-flex !important; align-items: center; justify-content: center;
  height: auto !important; min-height: 0 !important; width: auto;
  padding: 2px 6px !important; margin: 0;
  background: transparent !important; background-image: none !important;
  border: 0 !important; border-radius: var(--docent-radius-sm) !important; box-shadow: none !important;
  color: var(--docent-ink-muted) !important; opacity: 1;
  font-family: inherit !important; font-size: 22px !important;
  font-weight: 400 !important; line-height: 1 !important;
  letter-spacing: normal !important; text-transform: none !important;
  cursor: pointer;
}
#content-core .ai-icon-close:hover,
#content .ai-icon-close:hover,
.ai-icon-close:hover { color: var(--docent-ink) !important; background: transparent !important; }
#content-core .ai-icon-close:focus-visible,
#content .ai-icon-close:focus-visible,
.ai-icon-close:focus-visible { outline: 2px solid var(--docent-action) !important; outline-offset: 1px; }

body.docent-dark #content-core .ai-btn-secondary,
body.docent-dark #content .ai-btn-secondary,
body.docent-dark .ai-btn-secondary {
  border-color: var(--docent-border-strong) !important;
}

body.docent-dark #content-core .ai-btn-create,
body.docent-dark #content .ai-btn-create,
body.docent-dark .ai-btn-create {
  color: var(--docent-action-bright) !important;
}
body.docent-dark #content-core .ai-btn-create:hover,
body.docent-dark #content .ai-btn-create:hover,
body.docent-dark .ai-btn-create:hover {
  border-color: var(--docent-action-edge) !important; color: var(--docent-action-bright) !important;
}

body.docent-dark #content-core .ai-btn:focus-visible,
body.docent-dark #content .ai-btn:focus-visible,
body.docent-dark .ai-btn:focus-visible,
body.docent-dark #content-core .ai-icon-close:focus-visible,
body.docent-dark #content .ai-icon-close:focus-visible,
body.docent-dark .ai-icon-close:focus-visible { outline-color: var(--docent-action-bright) !important; }

.ai-tt-right .dt-search, .ai-tt-right .dataTables_filter { margin: 0; }
.ai-tt-right .dt-search label, .ai-tt-right .dataTables_filter label { font-size: 0; margin: 0; }
.ai-tt-right .dt-search input, .ai-tt-right .dataTables_filter input {
  border: 1px solid var(--docent-border); border-radius: var(--docent-radius-md); padding: 7px 11px;
  font-size: 13px; min-width: 210px; margin: 0;
}
/* Tasks carries more in this row than any other list (List/Board and two
   "?" chips), so its search box is narrower: with both chips showing the
   row wrapped onto a second line where Alerts and Meetings did not
   (18 Nov 2026). */
#ai-tasks-pane .ai-tt-right .dt-search input,
#ai-tasks-pane .ai-tt-right .dataTables_filter input { min-width: 150px; width: 150px; }
.ai-tt-right .dt-search input:focus, .ai-tt-right .dataTables_filter input:focus {
  outline: none; border-color: var(--docent-action); box-shadow: var(--docent-shadow-focus);
}

/* The "entries per page" menu and its label stay on one line whatever the
   width: the label never wraps and the box never shrinks (2026-11-05). */
.dt-length, .dataTables_length {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--docent-ink-muted);
  white-space: nowrap; flex-wrap: nowrap; flex-shrink: 0;
}
.dt-length label, .dt-length span, .dataTables_length label { white-space: nowrap; }
.dt-length select, .dataTables_length select {
  border: 1px solid var(--docent-border); border-radius: 6px; padding: 3px 22px 3px 8px; font-size: 12.5px;
}
.dt-info, .dataTables_info { font-size: 12.5px; color: var(--docent-ink-muted); padding-top: 8px; }

.dt-container .dt-layout-cell.dt-layout-end {
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px;
}
.dt-layout-cell.dt-layout-end .dt-length { padding-top: 8px; }
.dataTables_wrapper .dataTables_length { float: right; padding-top: 8px; }

.dt-paging ul.pagination, .dataTables_paginate ul.pagination {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none;
}
.dt-paging .page-item .page-link,
.dt-paging .dt-paging-button,
.dataTables_paginate .paginate_button {
  border: 0 none !important; background: transparent !important; box-shadow: none !important;
  border-radius: 6px !important; color: var(--docent-brand) !important;
  padding: 4px 10px !important; margin: 0 !important; min-width: 30px;
  font-size: 13px !important; line-height: 1.5 !important; cursor: pointer;
}
.dt-paging .page-item.active .page-link,
.dataTables_paginate .paginate_button.current {
  background: var(--docent-brand) !important; color: #fff !important;
}
.dt-paging .page-item:not(.active):not(.disabled) .page-link:hover {
  background: var(--docent-brand-tint) !important;
}
.dt-paging .page-item.disabled .page-link,
.dataTables_paginate .paginate_button.disabled { opacity: .4; cursor: default; }
/* Drop the first («) and last (») jump buttons — prev/next is enough. */
.dt-paging .page-link.first, .dt-paging .page-link.last { display: none !important; }
.dt-paging .page-item:has(> .page-link.first),
.dt-paging .page-item:has(> .page-link.last) { display: none !important; }

/* Tasks list — fixed leading columns, lighter header, owner avatar, filter chips, and the Workflow Board / Triage Lane tabs */

/* The heading row of EVERY table on a page is this one (19 Nov 2026): the
   two `#content table ... th` lines below. Before, a table had to be a
   listing, a datatable or carry .ai-th to get it, and any other took what
   the site's Style Settings give `#content th` - a solid blue bar on
   Chelsea. The calendar's own grid (fc-*) is left to itself. */
html body #content table:not([class*="fc-"]) thead th,
html body #content table:not([class*="fc-"]) th,
html body #content table.pat-datatables thead,
html body #content table.pat-datatables thead tr,
html body #content table.pat-datatables thead th,
html body #content table.pat-datatables.dataTable thead th,
html body #content table.listing thead,
html body #content table.listing thead tr,
html body #content table.listing thead th,
html body #content table thead th.ai-th,
html body #content th.ai-th,
html body #content table.ai-part-table thead th,
html body #content table.ai-related-table thead th,
table.pat-datatables thead,
table.pat-datatables thead tr,
table.pat-datatables thead th,
table.pat-datatables.dataTable thead th,
table.listing thead,
table.listing thead tr,
table.listing thead th,
.ai-th {
  background: transparent !important;
  background-image: none !important;
  color: var(--docent-brand) !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding-bottom: 11px !important;
  border-bottom: 1px solid var(--docent-border) !important;
  border-top: none !important;
  text-shadow: none !important;
  /* Column headings are centred over their columns, on every table
     (the user's call, 5 Nov 2026). */
  text-align: center !important;
}

html body.docent-dark #content table.pat-datatables thead,
html body.docent-dark #content table.pat-datatables thead tr,
html body.docent-dark #content table.pat-datatables thead th,
html body.docent-dark #content table.pat-datatables.dataTable thead th,
html body.docent-dark #content table.listing thead,
html body.docent-dark #content table.listing thead tr,
html body.docent-dark #content table.listing thead th,
html body.docent-dark #content table thead th.ai-th,
html body.docent-dark #content th.ai-th,
body.docent-dark table.pat-datatables thead,
body.docent-dark table.pat-datatables thead tr,
body.docent-dark table.pat-datatables thead th,
body.docent-dark table.pat-datatables.dataTable thead th,
body.docent-dark table.listing thead,
body.docent-dark table.listing thead tr,
body.docent-dark table.listing thead th,
/* Fixed leading columns: status dot, ID, Title */
.ai-col-dot { width: 24px; text-align: center; padding-left: 10px !important; padding-right: 4px !important; }
.ai-col-id  { width: 1%; white-space: nowrap; font-family: var(--docent-mono);
  font-variant-numeric: tabular-nums; color: var(--docent-ink-muted); }
.ai-col-title b { font-weight: 600; }
.ai-col-title a { text-decoration: none; }
.ai-col-title a:hover b { text-decoration: underline; }

/* Status dot (first column), keyed off stoplight (due / days-left) */
.ai-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.ai-dot-red    { background: var(--docent-danger); }
.ai-dot-yellow { background: var(--docent-warning); }
.ai-dot-green  { background: var(--docent-success); }

/* Responsible person: avatar circle + last name only */
.ai-owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ai-owner-name { font-size: 13px; }
.ai-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--docent-brand); color: #fff; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  cursor: pointer; /* the full name is the tooltip (29 Oct 2026) */
}

/* The meetings table (listing_card.pt, My Meetings / Project Meetings; */
.ai-mt-scroll { overflow-x: auto; }
.ai-meetings-table { width: 100%; min-width: 760px; }
.ai-meetings-table td { vertical-align: middle; }
.ai-col-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-mt-date { display: block; font-weight: 600; }
.ai-mt-time, .ai-mt-desc { display: block; font-size: 12.5px; color: var(--docent-ink-muted); }
.ai-mt-desc { margin-top: 2px; }
/* A meeting's extra documents (Word-Macros#17), under its title. */
.ai-mt-extras { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; }
.ai-mt-extra { color: var(--docent-ink-muted); white-space: nowrap; }
.ai-col-type, .ai-col-state, .ai-col-org, .ai-col-agenda,
.ai-col-minutes, .ai-col-open { white-space: nowrap; }
.ai-col-open { text-align: right; }
/* The organizer's initials alone: the full name is the tooltip, and the
   hand says there is one (the disc shares .ai-av's cursor). */
.ai-col-org .ai-av { width: 28px; height: 28px; font-size: 11px; }

/* The type chip: two letters in a teal square, the name in the tooltip. */
.ai-mt-type {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px; padding: 0 5px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
  color: var(--docent-action); background: var(--docent-action-tint); border: 1px solid var(--docent-action-edge);
}

#content-core a.ai-mt-doc,
#content a.ai-mt-doc,
a.ai-mt-doc { text-decoration: none !important; border-bottom: 0 !important; }
#content-core a.ai-mt-doc:hover .ai-state,
#content a.ai-mt-doc:hover .ai-state,
a.ai-mt-doc:hover .ai-state { border-color: var(--docent-ink-muted); }
#content-core a.ai-mt-doc:focus-visible,
#content a.ai-mt-doc:focus-visible,
a.ai-mt-doc:focus-visible { outline: 2px solid var(--docent-action) !important; outline-offset: 2px; }
.ai-mt-none { color: var(--docent-ink-muted); }
.ai-mt-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.ai-mt-count.zero { font-weight: 400; color: var(--docent-ink-muted); opacity: .7; }

/* Past meetings: greyed, after the divider. */
.ai-meeting-row.past td { color: var(--docent-ink-muted); }
#content-core .ai-meeting-row.past .ai-col-title a,
#content .ai-meeting-row.past .ai-col-title a,
.ai-meeting-row.past .ai-col-title a { color: var(--docent-ink-muted) !important; }
.ai-meeting-row.past .ai-mt-type,
.ai-meeting-row.past .ai-av,
.ai-meeting-row.past .ai-state { opacity: .6; }

/* The "Past" divider: a full-width row in the heading's small caps. The
   #content prefix beats the density rule's padding. */
html body #content table.listing tr.ai-mt-divider td,
tr.ai-mt-divider td {
  padding-top: 18px !important; padding-bottom: 8px !important;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--docent-ink-muted);
  border-bottom: 1px solid var(--docent-border);
}
html body #content table.listing tr.ai-mt-empty td,
tr.ai-mt-empty td { text-align: center; color: var(--docent-ink-muted); padding: 28px 10px !important; }

body.docent-dark .ai-mt-type {
  color: var(--docent-action-bright);
}

html body.docent-dark #content table.listing tr.ai-mt-divider td,
body.docent-dark tr.ai-mt-divider td { border-bottom-color: var(--docent-border-strong); }
body.docent-dark #content-core a.ai-mt-doc:focus-visible,
body.docent-dark #content a.ai-mt-doc:focus-visible,
body.docent-dark a.ai-mt-doc:focus-visible { outline-color: var(--docent-action-bright) !important; }

/* Filter chips (All / Mine / Urgent / Open only) */
.ai-tt-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
/* A chip that does not fit on the toolbar's one line (script: fitChips).
   What it lists is an option in the Filter box. */
.ai-filters .ai-chip.ai-chip-off { display: none !important; }

.ai-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--docent-ink-muted);
  background: transparent; border: 1px solid var(--docent-border); border-radius: var(--docent-radius-pill);
  padding: 4px 12px; cursor: pointer; line-height: 1.4;
  text-decoration: none;
}
.ai-chip-ic { width: 12px; height: 12px; flex: none; opacity: .55; }
.ai-chip:hover .ai-chip-ic { opacity: .8; }
.ai-chip.active .ai-chip-ic { opacity: 1; }
.ai-chip:hover { border-color: var(--docent-border-strong); color: var(--docent-ink); text-decoration: none; }
.ai-chip.active { color: var(--docent-brand); background: var(--docent-brand-tint); border-color: var(--docent-brand-edge); }
.ai-chip.active:hover { border-color: var(--docent-brand); color: var(--docent-brand); }

body.docent-dark .ai-chip {
  color: var(--docent-ink-muted) !important; border-color: var(--docent-border-strong) !important;
  background: transparent !important;
}
body.docent-dark .ai-chip:hover {
  color: var(--docent-ink) !important; border-color: var(--docent-border-strong) !important;
}
body.docent-dark .ai-chip.active {
  color: var(--docent-brand) !important; background: var(--docent-brand-tint) !important;
  border-color: var(--docent-brand-edge) !important;
}

/* Workflow Board */
.ai-board-caption { color: var(--docent-ink-muted); font-size: 13px; margin: 4px 0 14px; }
.ai-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.ai-col {
  flex: 0 0 230px; background: var(--docent-surface-warm); border: 1px solid var(--docent-border); border-radius: var(--docent-radius-md);
  display: flex; flex-direction: column; max-height: 560px;
}
.ai-colhead {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--docent-border);
}
.ai-cname {
  font-size: 10px; font-weight: 700; color: var(--docent-brand);
  text-transform: uppercase; letter-spacing: .15em;
}
.ai-cnt {
  font-family: var(--docent-mono); font-size: 11px; color: var(--docent-ink-muted);
  background: var(--docent-surface); border: 1px solid var(--docent-border); border-radius: var(--docent-radius-pill); padding: 0 7px;
}
.ai-colbody { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.ai-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--docent-surface); border: 1px solid var(--docent-border); border-left: 3px solid var(--docent-border);
  border-radius: var(--docent-radius-md); padding: 10px 11px;
  box-shadow: var(--docent-shadow-card);
}
.ai-card:hover { border-color: var(--docent-brand-edge); box-shadow: var(--docent-shadow-card-hover); }
.ai-card.ai-cl-red    { border-left-color: var(--docent-danger); }
.ai-card.ai-cl-yellow { border-left-color: var(--docent-warning); }
.ai-card.ai-cl-green  { border-left-color: var(--docent-success); }
.ai-ct { font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; color: var(--docent-ink); }
.ai-cmeta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-cid { font-family: var(--docent-mono); font-size: 10.5px; color: var(--docent-ink-muted); }
.ai-empty { color: var(--docent-ink-muted); font-size: 12px; text-align: center; padding: 8px 0; margin: 0; }

body.docent-dark .ai-col { background: var(--docent-page); }

body.docent-dark .ai-cnt { border-color: var(--docent-border-strong); }
body.docent-dark .ai-card {
  border-left-color: var(--docent-border-strong);
  box-shadow: none;
}

/* Meeting Doc + Project Docs launchers: show an explicit down-caret so it's
   clear the box is a pulldown (same triangle look as the Prj Mtgs toggle). */
#meeting_doc_select,
#project_doc_select,
#manager_doc_select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 9px 6px;
  padding-right: 26px !important;
  min-width: 178px !important;
}
/* Toolbar Meeting Doc + Project Doc boxes: equal size, 20% shorter (178→142). */
#meeting_doc_select,
#project_doc_select {
  min-width: 142px !important;
  max-width: 142px !important;
  width: 142px !important;
}

.tpl-page { max-width: 640px; margin: 6px 0 24px; }
.tpl-page-label {
  display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600;
  color: var(--docent-ink);
}
.tpl-page .tpl-body { padding: 0; }
.tpl-page-empty { margin: 12px 0 0; font-size: 14px; color: var(--docent-ink-muted); }
.tpl-body { padding: 16px 14px; display: flex; align-items: center; gap: 10px; }
.tpl-body select {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--docent-border); border-radius: var(--docent-radius-sm);
  padding: 6px 9px; font-size: 13px; background: var(--docent-surface);
}
.tpl-edit, .tpl-open {
  display: inline-block; padding: 6px 16px; background: var(--docent-surface-warm);
  border: 1px solid var(--docent-border-strong); border-radius: var(--docent-radius-sm); color: var(--docent-ink) !important;
  text-decoration: none; font-size: 13px; white-space: nowrap; flex: none;
}
.tpl-edit:hover, .tpl-open:hover { background: var(--docent-surface-warm); text-decoration: none; color: var(--docent-ink) !important; }
.tpl-edit.greyed, .tpl-open.greyed { opacity: .4; }

/* Prj Docs "Open Doc" popup (website list of docs of a document type) */
.doclist-overlay {
  position: fixed; inset: 0; background: rgba(20, 28, 42, .45);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 100000; padding: 8vh 16px;
}
.doclist-box {
  background: var(--docent-surface); width: 100%; max-width: 560px; border-radius: var(--docent-radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28); overflow: hidden;
  font-family: var(--docent-font);
}
.doclist-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--docent-action); color: #fff; font-weight: 600; font-size: 15px;
}
.doclist-close {
  background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.doclist-content { padding: 8px 16px 18px; max-height: 60vh; overflow: auto; }
.doclist-table { width: 100%; border-collapse: collapse; }
.doclist-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--docent-ink-muted); padding: 8px 6px; border-bottom: 1px solid var(--docent-border);
}
.doclist-table td { padding: 9px 6px; border-bottom: 1px solid var(--docent-surface-warm); font-size: 14px; }
.doclist-table td.doclist-acts { white-space: nowrap; text-align: right; }
.doclist-act { display: inline-block; text-decoration: none; margin-left: 10px; }
.doclist-act img { display: inline-block; vertical-align: middle; }
.doclist-empty { color: var(--docent-ink-muted); padding: 18px 4px; text-align: center; }

/* Filter overlay (collectionfilter) — obvious close affordance. */
#portal-column-two.overlay { position: relative; }
.ai-filter-close {
	position: absolute; top: 6px; right: 12px;
	background: transparent !important; border: 0 !important;
	box-shadow: none !important; border-radius: 0; padding: 0;
	font-size: 18px; line-height: 1; color: var(--docent-ink) !important;
	cursor: pointer; z-index: 6;
}
.ai-filter-close:hover { color: var(--docent-ink) !important; }
/* Filter chip highlights while the box is open, so clicking it again to close
   is obvious. */
.ai-chip.ai-filter-chip.ai-filter-open {
	background: var(--docent-brand) !important; border-color: var(--docent-brand) !important; color: #fff !important;
}
.ai-chip.ai-filter-chip.ai-filter-open .ai-chip-ic { opacity: 1; }

/* Reset-filter link shown as the filter-clear icon (currentColor drives the
   SVG stroke). */
.ai-reset-link { color: var(--docent-ink-muted) !important; display: inline-flex; align-items: center;
	text-decoration: none !important; }
.ai-reset-link:hover { color: var(--docent-brand) !important; }
.ai-reset-link img.ai-reset-icon { display: block; }

.ai-filterbox {
	position: relative; background: var(--docent-surface-warm); border: 1px solid var(--docent-border);
	border-radius: var(--docent-radius-md); padding: 8px 12px; margin: 2px 0 12px;
}
.ai-filterbox-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ai-filterbox-caption {
	font-size: 11px; font-weight: 600; letter-spacing: .04em;
	text-transform: uppercase; color: var(--docent-ink-muted); margin-right: 4px;
}
.ai-filterbox-field { display: flex; flex-direction: column; gap: 4px; }
.ai-filterbox-field label {
	font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
	color: var(--docent-ink-muted); font-weight: 600;
}
.ai-filterbox-field select,
.ai-filterbox-field input {
	border: 1px solid var(--docent-border); border-radius: 7px; padding: 7px 10px;
	font-size: 13px; min-width: 160px; background: var(--docent-surface);
}
.ai-filterbox-field select:focus,
.ai-filterbox-field input:focus {
	outline: none; border-color: var(--docent-action); box-shadow: var(--docent-shadow-focus);
}

/* The X that clears the filters sits on the one row with the pills. */
.ai-filterbox .ai-reset-link { align-self: center; margin: 0 0 0 4px; }

/* The close x: top-right corner of the one-row box, in line with the
   pills. The Filter chip closes the box as well. */
.ai-filterbox .ai-filter-close {
	position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
	height: auto !important; line-height: 1 !important;
	background: transparent !important; border: 0 !important;
	box-shadow: none !important; border-radius: 0;
	padding: 0 !important; font-size: 18px !important;
	color: var(--docent-ink) !important; cursor: pointer;
}
.ai-filterbox .ai-filter-close:hover { color: var(--docent-ink) !important; }

.ai-tasks-intro { display: flex; align-items: flex-start; gap: 10px; }
.ai-tasks-intro .ai-tasks-intro-text { flex: 1 1 auto; }
.ai-tasks-intro .ai-intro-close {
	flex: none; margin-left: auto;
	background: transparent !important; border: 0 !important;
	box-shadow: none !important; border-radius: 0;
	padding: 0 2px !important; height: auto !important; line-height: 1 !important;
	font-size: 18px !important; color: var(--docent-ink-muted) !important; cursor: pointer;
	text-transform: none !important; letter-spacing: 0 !important;
}
.ai-tasks-intro .ai-intro-close:hover { color: var(--docent-brand) !important; }

.ai-notify-strip {
  border: 1px solid var(--docent-border); border-radius: var(--docent-radius-md); background: var(--docent-surface-warm);
  padding: 10px 14px 12px; margin: 0 0 14px;
}
.ai-notify-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ai-notify-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--docent-ink-muted); }
.ai-notify-ctl { display: inline-flex; gap: 6px; }
.ai-notify-ctl button, .ai-notify-q, .ai-intro-q {
  background: var(--docent-surface) !important; border: 1px solid var(--docent-border) !important; border-radius: var(--docent-radius-pill) !important;
  color: var(--docent-ink-muted) !important; font-size: 11.5px !important; font-weight: 500 !important;
  padding: 2px 10px !important; line-height: 1.5 !important; height: auto !important;
  box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer;
}
.ai-notify-ctl button:hover, .ai-notify-q:hover, .ai-intro-q:hover { color: var(--docent-ink) !important; border-color: var(--docent-border-strong) !important; }
/* In the toolbar the chip is the same size as the chips beside it; the
   small version is for the strip's own Hide button (5 Nov 2026). */
.ai-tasks-toolbar .ai-notify-q, .ai-tasks-toolbar .ai-intro-q {
  padding: 4px 12px !important; font-size: 12.5px !important; font-weight: 600 !important; line-height: 1.4 !important;
}
.ai-notify-cols { display: flex; gap: 16px; }
.ai-notify-col { flex: 1 1 0; display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.ai-notify-ic { width: 20px; height: 20px; flex: none; color: var(--docent-action); margin-top: 1px; }
.ai-notify-body b { display: inline; font-size: 13.5px; color: var(--docent-ink); }
.ai-notify-sub { font-size: 12.5px; color: var(--docent-ink-muted); }
.ai-notify-t { display: block; font-size: 12.5px; color: var(--docent-ink-muted); line-height: 1.45; margin-top: 2px; }
.ai-notify-t b { font-size: inherit; color: inherit; }
.ai-notify-strip.is-off { display: none; }
@media (max-width: 720px) { .ai-notify-cols { flex-direction: column; gap: 8px; } }

/* "Who gets told" - the line under the comment box, on the Assign dialog
   and on Add Task, before the button is pressed. */

.ai-told-create {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 22px 14px 14px;
    border: 2px dashed var(--docent-border-strong);
    border-radius: var(--docent-radius-md);
}
.ai-told-create .ai-told-tag {
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--docent-ink-muted);
    background: var(--ai-req-under, var(--docent-surface));
}

/* Add Task: the "choose the Project Manager" line under Assign to. */
.ai-field-note { display: block; font-size: .76rem; color: var(--docent-ink-muted); margin: 4px 0 0; line-height: 1.4; }

.ai-told { margin: 10px 0 4px; display: flex; flex-direction: column; gap: 4px; }
.ai-told-line {
  margin: 0; padding: 6px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.45;
  background: var(--docent-action-tint); color: var(--docent-ink);
}
.ai-told-line b { font-weight: 600; }
.ai-told-email, .ai-told-none { background: var(--docent-surface-warm); color: var(--docent-ink-muted); }
.ai-told-unknown { background: var(--docent-brand-tint); color: var(--docent-brand); }
.ai-told-comment { margin: 6px 0 2px; }

.ai-th .ai-th-help {
	display: inline-block; width: 14px; height: 14px; margin-left: 5px;
	border: 1px solid currentColor; border-radius: 50%;
	font-size: 10px; font-weight: 600; line-height: 12px; text-align: center;
	letter-spacing: 0; opacity: .7; cursor: pointer; vertical-align: 1px;
}
.ai-th:hover .ai-th-help { opacity: 1; }

/* Anything in a listing that explains itself when pointed at - a heading's
   "?", a type chip, a state, the initials disc, a date - shows the hand,
   not the arrow and not the "?" cursor (29 Oct 2026: "the cursor should
   turn into a hand when pointing at an object that has explanation text").
   Typing fields keep their own cursor; a disabled button keeps
   not-allowed (its rule is more specific). */
.al-pane [title]:not(input):not(textarea):not(select),
#ai-tasks-pane [title]:not(input):not(textarea):not(select),
#content table.listing [title]:not(input):not(textarea):not(select),
.ai-av, .ai-owner[title], .ai-mt-type, .ai-state[title] { cursor: pointer; }

.ai-filterbox-field .ai-multisel { position: relative; }
.ai-multisel-btn {
	display: inline-flex !important; align-items: center; gap: 6px !important;
	width: auto; text-align: left; cursor: pointer;
	background: var(--docent-surface) !important; color: var(--docent-ink) !important;
	border: 1px solid var(--docent-border) !important; border-radius: var(--docent-radius-pill) !important;
	box-shadow: none !important; padding: 4px 12px !important;
	font-size: 12.5px !important; font-weight: 600;
	height: auto !important; line-height: 1.4 !important;
	text-transform: none !important; letter-spacing: 0 !important;
}
.ai-multisel-btn:hover { border-color: var(--docent-border-strong) !important; }
.ai-multisel-btn:focus {
	outline: none;
	border-color: var(--docent-action) !important;
	box-shadow: var(--docent-shadow-focus) !important;
}
.ai-multisel-btn .ai-multisel-label { color: var(--docent-ink-muted); font-weight: 500; }
.ai-multisel-btn .ai-multisel-caret { font-size: 9px; color: var(--docent-ink-muted); }
.ai-multisel-btn.ai-multisel-active {
	background: var(--docent-brand-tint) !important; border-color: var(--docent-brand-edge) !important;
}
.ai-multisel-btn.ai-multisel-active .ai-multisel-text { color: var(--docent-brand) !important; font-weight: 600; }
.ai-multisel-menu {
	display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 1060;
	width: max-content; min-width: 0; max-width: 320px;
	max-height: 260px; overflow: auto;
	background: var(--docent-surface); border: 1px solid var(--docent-border); border-radius: 7px;
	box-shadow: 0 8px 20px rgba(20,30,55,.14); padding: 4px;
}
.ai-multisel.ai-open .ai-multisel-menu { display: block; }

.ai-multisel-opt,
.ai-filterbox-field label.ai-multisel-opt {
	display: flex; flex-direction: row; align-items: center;
	justify-content: flex-start; gap: 7px; margin: 0;
	padding: 4px 10px 4px 7px; border-radius: var(--docent-radius-sm);
	font-size: 13px; font-weight: 400; text-transform: none;
	letter-spacing: normal; line-height: 1.4;
	cursor: pointer; white-space: nowrap; color: var(--docent-ink);
}
.ai-multisel-opt span,
.ai-filterbox-field label.ai-multisel-opt span {
	flex: 0 0 auto; margin: 0; text-align: left;
}
.ai-multisel-opt:hover { background: var(--docent-brand-tint); }

.ai-multisel-allrow,
.ai-filterbox-field label.ai-multisel-allrow {
	border-bottom: 1px solid var(--docent-border); border-radius: var(--docent-radius-sm) var(--docent-radius-sm) 0 0;
	margin-bottom: 3px; padding-bottom: 6px; color: var(--docent-ink-muted);
}
/* The theme's global form styling hides/restyles bare checkboxes — force a
   real, visible native checkbox no matter what it does. */
.ai-multisel-opt input[type="checkbox"] {
	-webkit-appearance: checkbox !important; appearance: auto !important;
	display: inline-block !important; opacity: 1 !important;
	position: static !important; visibility: visible !important;
	width: 15px !important; height: 15px !important;
	margin: 0 !important; padding: 0 !important; flex: none;
	accent-color: var(--docent-brand);
	clip: auto !important; clip-path: none !important;
}

html.ai-embed #portal-header,
html.ai-embed #portal-logo,
html.ai-embed #portal-top,
html.ai-embed #mainnavigation-wrapper,
html.ai-embed #portal-breadcrumbs,
html.ai-embed #portal-footer-wrapper,
html.ai-embed #portal-footer,
html.ai-embed #portal-column-one,
html.ai-embed #portal-column-two,
html.ai-embed #edit-zone,
html.ai-embed .plone-toolbar-container,
html.ai-embed #toolbar,
html.ai-embed #portal-anontools,
html.ai-embed .link-parent,
html.ai-embed .documentActions {
	display: none !important;
}
html.ai-embed, html.ai-embed body {
	/* The main site's page ground, so the pane doesn't read as a brighter app. */
	background: var(--docent-page) !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* The page starts with the project name. #content-header carries the project
   -name eyebrow (#portal-logo-wrapper > p > a.logo > strong, styled by the
   toolbar viewlet), so it stays visible in embed mode — only the Docent logo
   image (#portal-logo) and #portal-top are hidden above. Tighten the spacing
   for a narrow pane, and keep the header flush with the top edge. */
html.ai-embed #content-header {
	display: block !important;
	margin: 0 !important;
	/* line the eyebrow up with the content column's 10px gutter */
	padding: 8px 10px 6px !important;
	border-bottom: 0 none !important;
	min-height: 0 !important;
	background: transparent !important;
}
html.ai-embed #content-header #portal-logo-wrapper {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}
/* The eyebrow links to the site root. In a chrome-less pane there is no back
   button or address bar, so a stray click would strand the user on the front
   page — show it as a label, not a link. */
html.ai-embed #content-header a.logo {
	pointer-events: none !important;
	cursor: default !important;
}
/* On the full site the content block is pulled up ~0.5in to tuck under the
   toolbar. The toolbar is hidden here, so that pull-up would drag the content
   over the project name — cancel it. */
html.ai-embed #above-content-wrapper {
	margin-top: 0 !important;
}
html.ai-embed #main-container,
html.ai-embed #portal-columns,
html.ai-embed #portal-column-content,
html.ai-embed .container,
html.ai-embed .row {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	flex: 0 0 100% !important;
}
html.ai-embed #portal-column-content { padding: 6px 10px !important; }
html.ai-embed #content { margin: 0 !important; }

html.ai-embed #content-core > hr:first-child { display: none !important; }
html.ai-embed #ai-tasks-pane { padding-top: 0 !important; }

/* Anonymous "Log in" landing page tweaks. Scoped to userrole-anonymous */
/* Hide the redundant "Home" breadcrumb. */
body.userrole-anonymous.template-front-page-view #portal-breadcrumbs { display: none !important; }
/* "Please Log in" reads "Log in". */
body.userrole-anonymous #personaltools-login { font-size: 0 !important; }
body.userrole-anonymous #personaltools-login::after {
	content: "Log in";
	font-size: 15px !important;
}
/* The underline under the wordmark on the login page: the 5px border-bottom on #header. */
body.userrole-anonymous.template-front-page-view #content-header #header,
body.userrole-anonymous.template-front-page-view #header {
	border-bottom-color: var(--docent-action) !important;
}

/* Action Item detail page — facts rail + quiet action row */

:root {
	--ai-rail-w: 230px;
	--ai-cols-gap: 28px;
}

.ai-cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--ai-rail-w);
	gap: var(--ai-cols-gap);
	align-items: start;
}

@media (max-width: 767px) {
	.ai-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ai-main {
	min-width: 0;
}

.ai-rail {
	border: 1px solid var(--docent-border);
	border-top: 3px solid var(--docent-border-strong);
	border-radius: var(--docent-radius-sm);
	background: var(--docent-surface);
	font-size: 0.9rem;
	line-height: 1.45;
}

.ai-rail.urgent_red { border-top-color: var(--docent-danger) }
.ai-rail.soon_yellow { border-top-color: var(--docent-warning) }
.ai-rail.future_green { border-top-color: var(--docent-success) }
.ai-rail.long_grey { border-top-color: var(--docent-border-strong) }

.ai-rail-hd {
	display: flex;
	align-items: baseline;
	gap: 7px;
	padding: 9px 13px;
	border-bottom: 1px solid var(--docent-border);
	background: var(--docent-surface-warm);
}

.ai-rail-num {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--docent-ink);
}

.ai-rail.urgent_red .ai-rail-num { color: var(--docent-danger) }
.ai-rail.soon_yellow .ai-rail-num { color: var(--docent-warning) }
.ai-rail.future_green .ai-rail-num { color: var(--docent-success) }

.ai-rail-hd span {
	font-size: 0.78rem;
	color: var(--docent-ink-muted);
}

.ai-rail dl {
	margin: 0;
	padding: 12px 13px;
	display: grid;
	gap: 11px;
}

.ai-rail dt {
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
	font-weight: 700;
	margin: 0;
}

.ai-rail dd {
	margin: 2px 0 0;
	font-variant-numeric: tabular-nums;
	word-break: break-word;
}

.ai-rail-sub {
	display: block;
	font-size: 0.82rem;
	color: var(--docent-ink-muted);
}

/* Bottom action row: text actions with hairline icons, no boxes.
   Edit sits last and carries the project crimson — it is the only one
   of the three that changes the record. */

/* The moves you can make, on the Workflow tab */
.ai-wf-acts {
	display: inline-block;
	margin: 12px 0 14px;
	padding: 10px 14px 12px;
	background: var(--docent-brand-tint);
	border: 1px solid var(--docent-brand-edge);
	border-radius: var(--docent-radius-md);
}

/* Says what the row underneath is for. Without it the buttons are a row
   of verbs with no subject, and which of them you get depends on your
   role and the state - so "possible" is doing real work. */
.ai-wf-actions-label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
}

.ai-wf-btns { display: flex; flex-wrap: wrap; gap: 7px; }

.ai-wf-btn {
	display: inline-block;
	border: 0;
	border-radius: 0;
	background: var(--docent-brand);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1;
	padding: 7.5px 14px;
	text-decoration: none;
}

.ai-wf-btn:hover, .ai-wf-btn:focus { color: #fff; text-decoration: none; }

/* Notched on the way in, pointed on the way out. */
.ai-wf-btn.ai-wf-onward {
	padding-left: 22px;
	padding-right: 24px;
	clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%,
	                   calc(100% - 11px) 100%, 0 100%, 11px 50%);
}

/* The same shape mirrored. */
.ai-wf-btn.ai-wf-backward {
	padding-left: 24px;
	padding-right: 22px;
	background: var(--docent-surface-warm);
	color: var(--docent-ink);
	clip-path: polygon(11px 0, 100% 0, calc(100% - 11px) 50%,
	                   100% 100%, 11px 100%, 0 50%);
}

.ai-wf-btn.ai-wf-backward:hover, .ai-wf-btn.ai-wf-backward:focus {
	background: var(--docent-border);
	color: var(--docent-ink);
}

/* Nothing to do here - said in words. An empty space where buttons
   sometimes are reads as a page that failed to finish loading. */
.ai-wf-none { margin: 0; font-size: 0.78rem; color: var(--docent-ink-muted); }

.ai-doc-moves {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin: 8px 0 12px;
}

/* Slim, three quarters of the tile wide, centred, pointing right: the
   arrow says which way the move goes, as the arrow-shaped buttons on
   the task page do. */
.ai-doc-go {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 75%;
	padding: 4px 8px;
	border-radius: var(--docent-radius-sm);
	background: var(--docent-brand);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.ai-doc-go::after {
	content: "\2192";
	font-weight: 400;
}

.ai-doc-go:hover, .ai-doc-go:focus {
	background: var(--docent-brand);
	color: #fff;
	text-decoration: none;
}

.ai-doc-backs {
	margin: 2px 0 0;
	font-size: 0.76rem;
	line-height: 1.6;
	color: var(--docent-ink-muted);
	text-align: center;
}

/* "< Withdraw": the chevron points the way the move goes. */
.ai-doc-back {
	color: var(--docent-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.ai-doc-back::before {
	content: "< ";
	text-decoration: none;
	display: inline-block;
	margin-right: 2px;
}

.ai-doc-back:hover, .ai-doc-back:focus { color: var(--docent-ink); }

/* "< Withdraw · < Return for revision" */
.ai-doc-back + .ai-doc-back {
	margin-left: 7px;
}

.ai-doc-back + .ai-doc-back::before {
	content: "\00b7  < ";
	white-space: pre;
	margin: 0;
}

.ai-state-chip {
	display: inline-block;
	margin-left: 12px;
	padding: 3px 11px;
	border-radius: var(--docent-radius-pill);
	background: var(--docent-surface-warm);
	color: var(--docent-brand);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.5;
	vertical-align: 2px;
	white-space: nowrap;
	text-decoration: none;
}

/* It is a link once the script has upgraded it - to the Workflow tab, and
   to nothing else. Underlined on hover so it reads as one; the resting
   state stays a quiet chip rather than a line of blue in the head row. */
a.ai-state-chip:hover, a.ai-state-chip:focus {
	color: var(--docent-brand);
	background: var(--docent-surface-warm);
	text-decoration: underline;
}

.ai-headrow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-right: 0;
}

.ai-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: none;
	gap: 22px;
	padding-top: 0;
	margin-bottom: 8px;
	border-top: 0 none;
}

.ai-actions a { white-space: nowrap; }

/* Narrow: the lead and the links collide before either wraps, so stop being
   a row. The links drop under the lead and read left-to-right as a list
   rather than squashing against the right edge. */
@media (max-width: 600px) {
	.ai-headrow { display: block; }
	.ai-actions { justify-content: flex-start; flex-wrap: wrap; gap: 16px; }
}

.ai-actions a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--docent-action);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
}

.ai-actions a:hover,
.ai-actions a:focus {
	color: var(--docent-action);
	border-bottom-color: var(--docent-action);
	text-decoration: none;
}

.ai-actions svg {
	flex: 0 0 auto;
	display: block;
}

.ai-related-wrap { overflow-x: auto; }
.ai-related-table td { vertical-align: middle; }
.ai-related-num,
.ai-related-due {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.ai-related-num { color: var(--docent-ink-muted); }
.ai-related-actions { margin-top: 16px; }

.ai-related-actions img.ai-related-add {
	width: 14px;
	height: 14px;
	display: block;
	flex: 0 0 auto;
}

.pat-autotoc.autotabs .autotoc-nav a,
.pat-autotoc.autotabs .autotoc-nav a:visited {
	color: var(--docent-ink) !important;
}

.pat-autotoc.autotabs .autotoc-nav a:hover,
.pat-autotoc.autotabs .autotoc-nav a:focus {
	color: var(--docent-brand) !important;
}

.pat-autotoc.autotabs .autotoc-nav a.active,
.pat-autotoc.autotabs .autotoc-nav a.autotoc-level-1.active {
	color: var(--docent-brand) !important;
	border-bottom-color: var(--docent-brand) !important;
	font-weight: 600;
}

.ai-actions a.ai-cal,
.ai-actions a.ai-cal:hover,
.ai-actions a.ai-cal:focus {
	color: var(--docent-brand);
}

.ai-actions a.ai-cal:hover,
.ai-actions a.ai-cal:focus {
	border-bottom-color: var(--docent-brand);
}

/* The meeting's Workflow link sits in the lead, right after the state
   chip, drawn as the action links on the right are (5 Nov 2026). */
.ai-headrow .lead a.ai-lead-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 14px;
	vertical-align: 2px;
	color: var(--docent-brand);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	border-bottom: 1px solid transparent;
	padding-bottom: 1px;
	white-space: nowrap;
}
.ai-headrow .lead a.ai-lead-link:hover,
.ai-headrow .lead a.ai-lead-link:focus,
.ai-headrow .lead a.ai-lead-link.is-open {
	color: var(--docent-brand);
	border-bottom-color: var(--docent-brand);
	text-decoration: none;
}
.ai-headrow .lead a.ai-lead-link svg { flex: 0 0 auto; display: block; }

.ai-tabnote {
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--docent-ink-muted);
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--docent-border);
}

.ai-attach-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}

#content table.ai-attach-table thead,
#content table.ai-attach-table thead tr,
#content table.ai-attach-table thead th,
table.ai-attach-table thead th {
	text-align: left;
	font-size: 10px !important;
	letter-spacing: .15em;
	text-transform: uppercase;
	font-weight: 600 !important;
	color: var(--docent-brand) !important;
	background: transparent !important;
	background-image: none !important;
	text-shadow: none !important;
	border-top: none !important;
	border-bottom: 1px solid var(--docent-border) !important;
	padding: 0 14px 11px 0;
}

body.docent-dark #content table.ai-attach-table thead,
body.docent-dark #content table.ai-attach-table thead tr,
body.docent-dark #content table.ai-attach-table thead th,
body.docent-dark table.ai-attach-table thead th {
			border-bottom-color: var(--docent-border-strong) !important;
}

#content table.ai-attach-table thead th:first-child,
table.ai-attach-table thead th:first-child {
	padding-left: 10px;
}

.ai-attach-table tbody td {
	padding: 11px 14px 11px 0;
	border-bottom: 1px solid var(--docent-border);
	color: var(--docent-ink);
	vertical-align: middle;
}

.ai-attach-table .ai-attach-dl {
	text-align: right;
	padding-right: 0;
	width: 5.5rem;
}

.ai-attach-table .ai-attach-dl a {
	display: inline-flex;
	color: var(--docent-ink-muted);
	text-decoration: none;
}

.ai-attach-table .ai-attach-dl a:hover,
.ai-attach-table .ai-attach-dl a:focus {
	color: var(--docent-brand);
}

/* Previous/Next links are hidden site-wide; delete this rule to bring them back. */
#section-next-prev {
	display: none !important;
}

/* Comments only on the tabs where a comment means something */
body:has(.pat-autotoc fieldset[data-ai-comments]) #viewlet-below-content {
	display: none;
}

body:has(.pat-autotoc fieldset.active[data-ai-comments]) #viewlet-below-content {
	display: block;
}

#viewlet-below-content .discussion {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 28px;
	padding-top: 0;
}

#viewlet-below-content .discussion::before {
	content: "Comments";
	display: block;
	font-size: 11.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--docent-ink-muted);
	padding-bottom: 7px;
	border-bottom: 1px solid var(--docent-border);
}

#viewlet-below-content .discussion.ai-comments-live::before {
	content: none;
}

#viewlet-below-content .ai-comments-hd {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 16px;
	margin-top: 28px;
	padding-bottom: 7px;
	border-bottom: 1px solid var(--docent-border);
}

#viewlet-below-content .ai-comments-hd + .discussion {
	margin-top: 8px;
}

#viewlet-below-content .ai-comments-hd + #commenting {
	margin-top: 14px;
	padding-top: 0 !important;
	border-top: 0 !important;
}

/* And it does not need its own "Add comment" caption directly under the
   section heading that already says Comments. */
#viewlet-below-content .ai-comments-hd + #commenting > fieldset > legend {
	display: none;
}

#viewlet-below-content .ai-comments-title {
	font-size: 11.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--docent-ink-muted);
}

/* How many there are, which is the thing worth knowing about a section you
   have collapsed. */
#viewlet-below-content .ai-comments-count {
	margin-left: 7px;
	letter-spacing: 0;
	color: var(--docent-ink-muted);
}

/* The @mention dropdown */
#viewlet-below-content .ai-mention-menu {
	position: absolute;
	z-index: 20;
	left: 0;
	right: auto;
	min-width: 15rem;
	max-width: 22rem;
	max-height: 13rem;
	overflow-y: auto;
	margin-top: 2px;
	background: var(--docent-surface);
	border: 1px solid var(--docent-border);
	border-radius: var(--docent-radius-sm);
	box-shadow: 0 4px 14px -6px rgba(30, 40, 60, .3);
}

#viewlet-below-content .ai-mention-menu[hidden] {
	display: none;
}

#viewlet-below-content .ai-mention-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 11px;
	font-size: 0.92rem;
	color: var(--docent-ink);
	cursor: pointer;
}

/* Keyboard and mouse land on the same highlight, so arrowing down and
   hovering do not disagree about which row is chosen. */
#viewlet-below-content .ai-mention-item.is-on,
#viewlet-below-content .ai-mention-item:hover {
	background: var(--docent-surface-warm);
	color: var(--docent-brand);
}

#viewlet-below-content .ai-mention-id {
	font-size: 0.8rem;
	color: var(--docent-ink-muted);
}

#viewlet-below-content .ai-mention-item.is-on .ai-mention-id,
#viewlet-below-content .ai-mention-item:hover .ai-mention-id {
	color: var(--docent-brand);
}

/* The composer is the positioning context for the dropdown. */
#viewlet-below-content #commenting .field,
#viewlet-below-content .reply .field {
	position: relative;
}

/* What has arrived since you last looked */
#viewlet-below-content .ai-comments-new {
	display: none;
}

#viewlet-below-content .ai-comments-hd.has-new .ai-comments-new {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 9px;
	background: var(--docent-brand-tint);
	color: var(--docent-brand);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: 1px;
}

/* A new comment keeps the same block, with the left edge in the project
   colour instead of grey - so once the list is open you can see which ones
   they are without reading a single date. */
#viewlet-below-content .comment.ai-comment-new {
	border-left-color: var(--docent-brand-edge);
	background: var(--docent-brand-tint);
}

#viewlet-below-content .comment.ai-comment-new .comment-author::after {
	content: "New";
	display: inline-block;
	margin-left: 8px;
	padding: 0 6px;
	border-radius: 9px;
	background: var(--docent-brand-tint);
	color: var(--docent-brand);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	vertical-align: 1px;
}

/* Same quiet text action as Edit / Delete / Reply on a comment. */
#viewlet-below-content button.ai-comments-toggle {
	flex: 0 0 auto;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-bottom: 1px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	font: inherit;
	font-size: 0.85rem !important;
	font-weight: 600;
	line-height: 1.4;
	color: var(--docent-ink-muted) !important;
	text-shadow: none !important;
	cursor: pointer;
}

#viewlet-below-content button.ai-comments-toggle:hover,
#viewlet-below-content button.ai-comments-toggle:focus {
	color: var(--docent-brand) !important;
	border-bottom-color: var(--docent-brand) !important;
}

.ai-comments-hidden #viewlet-below-content .discussion > .comment,
.ai-comments-hidden #viewlet-below-content .discussion > .discreet,
.ai-comments-hidden #viewlet-below-content #commenting {
	display: none !important;
}

.ai-comments-hidden #viewlet-below-content .discussion {
	margin-top: 0;
	padding-bottom: 0;
}

#viewlet-below-content .comment {
	position: relative;
	background: var(--docent-surface-warm);
	border: 0;
	border-left: 3px solid var(--docent-border);
	padding: 12px 12px 12px 14px;
}

#viewlet-below-content .comment > .d-flex,
#viewlet-below-content .comment .comment-body > .d-flex {
	margin-bottom: 0 !important;
}

#viewlet-below-content .comment .comment-image {
	display: none !important;
}

/* Author line: name, date, and the actions pushed to the far right.
   The template puts a <br> between name and date, so drop the break and
   separate with a middot instead. */
/* The right end of this row is where the actions are parked, so keep the
   date clear of them. */
#viewlet-below-content .comment > .d-flex {
	align-items: baseline !important;
	padding-right: 9rem;
}

#viewlet-below-content .comment .comment-author {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--docent-ink);
	line-height: 1.4;
}

#viewlet-below-content .comment .comment-author a {
	color: var(--docent-ink);
	text-decoration: none;
}

#viewlet-below-content .comment .comment-author a:hover,
#viewlet-below-content .comment .comment-author a:focus {
	color: var(--docent-brand);
	text-decoration: none;
}

#viewlet-below-content .comment .comment-author br {
	display: none;
}

#viewlet-below-content .comment .comment-author small {
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--docent-ink-muted) !important;
}

#viewlet-below-content .comment .comment-author small::before {
	content: "\00b7";
	margin: 0 7px;
	color: var(--docent-ink-muted);
}

/* The comment itself, tight under the name it belongs to. */
#viewlet-below-content .comment .comment-body {
	margin-top: 2px;
	font-size: 0.94rem;
	line-height: 1.55;
	color: var(--docent-ink);
}

#viewlet-below-content .comment .comment-body > p:last-of-type {
	margin-bottom: 0;
}

#viewlet-below-content .comment[class*="level-"]:not(.level-0) {
	background: var(--docent-surface-warm);
	border-left-color: var(--docent-border-strong);
}

#viewlet-below-content .comment.level-1 { margin-left: 24px; }
#viewlet-below-content .comment.level-2 { margin-left: 48px; }
#viewlet-below-content .comment.level-3,
#viewlet-below-content .comment.level-4,
#viewlet-below-content .comment.level-5,
#viewlet-below-content .comment.level-6,
#viewlet-below-content .comment.level-7,
#viewlet-below-content .comment.level-8,
#viewlet-below-content .comment.level-9,
#viewlet-below-content .comment.level-10 { margin-left: 72px; }

#viewlet-below-content .comment[class*="level-"]:not(.level-0) {
	padding-top: 9px;
	padding-bottom: 9px;
}

/* "replying to Maria Lopez", after the date on a reply. Put there by the
   page's script from the map the comments viewlet writes. */
#viewlet-below-content .comment .ai-reply-to {
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--docent-ink-muted);
	margin-left: 7px;
}

#viewlet-below-content .comment .ai-reply-to b {
	font-weight: 600;
}

/* A long group shows its last few replies; the rest fold behind one line. */
#viewlet-below-content .comment.ai-reply-folded {
	display: none;
}

#viewlet-below-content button.ai-replies-more {
	display: block;
	margin: 0 0 0 24px;
	padding: 4px 0 !important;
	background: transparent;
	border: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--docent-brand);
	cursor: pointer;
}

#viewlet-below-content button.ai-replies-more:hover,
#viewlet-below-content button.ai-replies-more:focus {
	text-decoration: underline;
}

/* Per-comment actions: Edit, Delete, the moderation transitions, Reply */

#viewlet-below-content .comment .comment-body > .d-flex {
	position: absolute;
	top: calc(12px + (0.95rem * 1.4) / 2);
	transform: translateY(-50%);
	right: 12px;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 16px;
	margin: 0 !important;
	opacity: 0;
	transition: opacity .12s ease;
}

#viewlet-below-content .comment button.reply-to-comment-button {
	margin: 6px 0 0 !important;
}

/* Too narrow to park anything in the margin - put the actions back under the
   comment, where they cost a line but never land on top of the date. */
@media (max-width: 600px) {
	#viewlet-below-content .comment > .d-flex {
		padding-right: 0;
	}
	#viewlet-below-content .comment .comment-body > .d-flex {
		position: static;
		transform: none;
		justify-content: flex-start !important;
		margin-top: 6px !important;
	}
}

#viewlet-below-content .comment:hover .comment-body > .d-flex,
#viewlet-below-content .comment:focus-within .comment-body > .d-flex {
	opacity: 1;
}

/* Touch has no hover, so on a tablet the actions would never appear.
   Pin them visible wherever the pointer is coarse. */
@media (pointer: coarse) {
	#viewlet-below-content .comment .comment-body > .d-flex {
		opacity: 1;
	}
}

/* Someone who prefers less motion gets the same reveal, just instantly. */
@media (prefers-reduced-motion: reduce) {
	#viewlet-below-content .comment .comment-body > .d-flex {
		transition: none;
	}
}

#viewlet-below-content .comment .comment-actions {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

#viewlet-below-content .comment .comment-action {
	margin: 0;
}

#viewlet-below-content .comment .btn,
#viewlet-below-content .comment button.reply-to-comment-button {
	display: inline-flex;
	align-items: center;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-bottom: 1px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-size: 0.85rem !important;
	font-weight: 600;
	line-height: 1.4;
	color: var(--docent-ink-muted) !important;
	text-decoration: none !important;
}

#viewlet-below-content .comment .btn:hover,
#viewlet-below-content .comment .btn:focus,
#viewlet-below-content .comment button.reply-to-comment-button:hover,
#viewlet-below-content .comment button.reply-to-comment-button:focus {
	color: var(--docent-brand) !important;
	border-bottom-color: var(--docent-brand) !important;
}

#viewlet-below-content .comment button.reply-to-comment-button.btn,
#viewlet-below-content .comment button.reply-to-comment-button {
	color: var(--docent-brand) !important;
}

#viewlet-below-content .comment button.reply-to-comment-button::before {
	content: "\21A9\FE0E";
	margin-right: 4px;
	font-weight: 400;
}

/* The reply box, opened under the comment being answered. It is a copy of
   the composer at the foot of the thread, opened on purpose, so it starts
   open: buttons showing, room to write. */
#viewlet-below-content .comment .reply {
	margin-top: 8px;
	padding: 10px !important;
	background: var(--docent-surface);
	border: 1px solid var(--docent-border) !important;
	border-radius: var(--docent-radius-sm);
}

#viewlet-below-content .comment .reply textarea {
	min-height: 80px !important;
	box-sizing: border-box;
	max-width: 100%;
}

/* A reply carries no position - it is a follow-up, not a vote - so the
   pulldown the composer has is left out of the copy. The server ignores it
   on a reply too (DocentCommentForm.updateFields). */
#viewlet-below-content .comment .reply [id*="formfield-form-widgets-docent_position"] {
	display: none;
}

/* Moderation states. A comment awaiting review or marked as spam should be
   visibly set apart for the moderator who can see it, without shouting. */
#viewlet-below-content .comment.state-pending,
#viewlet-below-content .comment.state-private,
#viewlet-below-content .comment.state-internal {
	background: var(--docent-warning-tint);
	border-left-color: var(--docent-warning);
}

#viewlet-below-content #commenting {
	margin-top: 18px;
	padding: 16px 0 0 !important;
	border: 0 !important;
	border-top: 1px solid var(--docent-border) !important;
	border-radius: 0 !important;
	background: transparent !important;
}

#viewlet-below-content fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}

#viewlet-below-content fieldset > legend {
	display: none;
}

#viewlet-below-content #commenting > fieldset > legend {
	display: block;
	float: none;
	width: auto;
	font-size: 11.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--docent-ink-muted);
	margin-bottom: 8px;
	padding: 0;
	border: 0;
}

#viewlet-below-content fieldset > p,
#viewlet-below-content label[for*="comment-text"] {
	display: none;
}

body.portaltype-discussion #viewlet-below-content label[for*="comment-text"] {
	display: block;
}
body.portaltype-discussion #viewlet-below-content #commenting > fieldset > legend {
	display: none;
}

/* One line until you reach for it. */
#viewlet-below-content textarea,
#viewlet-below-content input[type="text"] {
	border: 1px solid var(--docent-border);
	border-radius: var(--docent-radius-sm);
	box-shadow: none;
	font-size: 0.94rem;
	padding: 8px 10px;
	width: 100%;
}

#viewlet-below-content #commenting textarea {
	height: 40px !important;
	min-height: 0 !important;
	resize: none;
	overflow: hidden;
	transition: height .14s ease;
}

#viewlet-below-content #commenting:focus-within textarea {
	height: 104px !important;
	resize: vertical;
	overflow: auto;
}

@media (prefers-reduced-motion: reduce) {
	#viewlet-below-content #commenting textarea { transition: none; }
}

/* The prompt in the collapsed box - the one line of text it shows before
   anyone clicks into it. DocentCommentForm puts it there; this makes it
   read as a prompt rather than as someone's comment. */
#viewlet-below-content textarea::placeholder {
	color: var(--docent-ink-muted);
	opacity: 1;
}

#viewlet-below-content textarea:focus,
#viewlet-below-content input[type="text"]:focus {
	border-color: var(--docent-brand);
	box-shadow: none;
	outline: 0;
}

#viewlet-below-content #commenting .formControls {
	display: none;
}

#viewlet-below-content #commenting:focus-within .formControls,
#viewlet-below-content #commenting:has(.error) .formControls,
#viewlet-below-content #commenting:has(.portalMessage) .formControls {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: 10px;
}

/* Same reason: a form showing errors is a form someone is mid-way through,
   so give it the open box rather than the one-line one. */
#viewlet-below-content #commenting:has(.error) textarea {
	height: 104px !important;
	resize: vertical;
	overflow: auto;
}

#viewlet-below-content .formControls input[type="submit"],
#viewlet-below-content .formControls button[type="submit"],
#viewlet-below-content .formControls input[type="button"],
#viewlet-below-content input.btn-primary,
#viewlet-below-content button.btn-primary,
#viewlet-below-content input.btn-secondary,
#viewlet-below-content button.btn-secondary {
	display: inline-flex;
	align-items: center;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-bottom: 1px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-size: 0.9rem !important;
	font-weight: 600;
	line-height: 1.4;
	color: var(--docent-ink-muted) !important;
	text-shadow: none !important;
}

#viewlet-below-content .formControls input[name$="buttons.comment"],
#viewlet-below-content .formControls button[name$="buttons.comment"] {
	color: var(--docent-brand) !important;
}

#viewlet-below-content .formControls input[type="submit"]:hover,
#viewlet-below-content .formControls input[type="submit"]:focus,
#viewlet-below-content .formControls button[type="submit"]:hover,
#viewlet-below-content .formControls button[type="submit"]:focus,
#viewlet-below-content input.btn-primary:hover,
#viewlet-below-content button.btn-primary:hover,
#viewlet-below-content input.btn-secondary:hover,
#viewlet-below-content button.btn-secondary:hover {
	color: var(--docent-brand) !important;
	border-bottom-color: var(--docent-brand) !important;
}

#viewlet-below-content .formControls {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: 10px;
}

#viewlet-below-content .formControls [name$="buttons.cancel"] {
	margin-left: 32px !important;
}

/* "Log in to add comments", shown to anonymous visitors where anonymous
   commenting is off. Same quiet-text treatment as everything else here. */
#viewlet-below-content .reply .loginbutton,
#viewlet-below-content .reply:not(#commenting) button[type="submit"] {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-bottom: 1px solid transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	font-size: 0.9rem !important;
	font-weight: 600;
	color: var(--docent-ink-muted) !important;
}

#viewlet-below-content .comment .reply:not(#commenting) .formControls [name$="buttons.comment"] {
	color: var(--docent-brand) !important;
}

#viewlet-below-content .reply .loginbutton:hover,
#viewlet-below-content .reply:not(#commenting) button[type="submit"]:hover {
	color: var(--docent-brand) !important;
	border-bottom-color: var(--docent-brand) !important;
}

#viewlet-below-content input[type="checkbox"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-block !important;
	visibility: visible !important;
	position: static !important;
	float: none !important;
	opacity: 1 !important;
	z-index: auto !important;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px !important;
	min-height: 15px !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: none;
	background-color: var(--docent-surface) !important;
	background-image: none !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 11px 11px !important;
	border: 1px solid var(--docent-border-strong) !important;
	border-radius: var(--docent-radius-sm) !important;
	box-shadow: none !important;
	clip: auto !important;
	clip-path: none !important;
	cursor: pointer;
}

#viewlet-below-content input[type="checkbox"]:checked {
	background-color: var(--docent-brand) !important;
	border-color: var(--docent-brand) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-6'/%3E%3C/svg%3E") !important;
}

#viewlet-below-content input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--docent-brand);
	outline-offset: 1px;
}

#viewlet-below-content .form-check-label::before,
#viewlet-below-content .form-check-label::after,
#viewlet-below-content .form-check-label > .label::before,
#viewlet-below-content .form-check-label > .label::after,
#viewlet-below-content input[type="checkbox"]::before,
#viewlet-below-content input[type="checkbox"]::after {
	content: none !important;
	display: none !important;
	background: none !important;
	border: 0 !important;
}

#viewlet-below-content .form-check {
	display: flex;
	align-items: center;
	gap: 7px;
	padding-left: 0;
	margin-bottom: 0;
	min-height: 0;
}

/* The label is a sibling of the input, not its parent - but `for` still
   makes the whole phrase clickable. */
#viewlet-below-content .form-check-label {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 400;
	color: var(--docent-ink-muted);
	cursor: pointer;
}

/* The "A notification has been sent to ..." pop-up */
.ai-mention-modal-back {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(23, 28, 38, 0.42);
}

.ai-mention-modal {
	background: var(--docent-surface);
	border-radius: var(--docent-radius-md);
	box-shadow: 0 10px 34px rgba(16, 22, 34, 0.28);
	max-width: 420px;
	width: 100%;
	padding: 20px 22px 16px;
}

.ai-mention-modal-hd {
	margin: 0 0 10px;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--docent-ink);
}

.ai-mention-modal-line {
	margin: 0 0 8px;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--docent-ink);
}

/* A mention that reached nobody. Marked, not alarming - it is usually a
   typed name that is not a user. */
.ai-mention-modal-bad {
	color: var(--docent-brand);
}

.ai-mention-modal-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
}

/* Nothing on the right when the tick-box is not offered, so the button
   would otherwise sit alone on the left. */
.ai-mention-modal-foot:not(:has(.ai-mention-modal-again)) {
	justify-content: flex-end;
}

.ai-mention-modal-again {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 0.86rem;
	font-weight: 400;
	color: var(--docent-ink-muted);
	cursor: pointer;
}

.ai-mention-modal-again input[type="checkbox"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-block !important;
	visibility: visible !important;
	position: static !important;
	float: none !important;
	opacity: 1 !important;
	z-index: auto !important;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: none;
	background-color: var(--docent-surface) !important;
	background-image: none !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 11px 11px !important;
	border: 1px solid var(--docent-border-strong) !important;
	border-radius: var(--docent-radius-sm) !important;
	box-shadow: none !important;
	cursor: pointer;
}

.ai-mention-modal-again input[type="checkbox"]:checked {
	background-color: var(--docent-brand) !important;
	border-color: var(--docent-brand) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-6'/%3E%3C/svg%3E") !important;
}

.ai-mention-modal-ok {
	background: var(--docent-brand);
	border: 0;
	border-radius: 7px;
	color: #fff;
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 7px 20px;
}

.ai-mention-modal-ok:hover,
.ai-mention-modal-ok:focus {
	background: var(--docent-brand);
}

.ai-alert-quote {
	margin: 10px 0 0;
	padding: 2px 0 2px 12px;
	border-left: 3px solid rgba(0, 0, 0, 0.18);
	font-style: italic;
	opacity: 0.92;
}

/* Add / edit form styling lives in the THEME, not here */

:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert) {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    padding: 8px 14px;
    border: 0;
    border-left: 3px solid var(--docent-ink-muted);
    border-radius: 0;
    box-shadow: none;
    background: var(--docent-surface-warm);
    color: var(--docent-ink);
    font-size: 0.92rem;
    overflow: hidden;
}

:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).statusmessage-info,
:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).alert-info,
:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).alert-success {
    background: var(--docent-success-tint);
    color: var(--docent-success);
    border-left-color: var(--docent-success);
}

:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).statusmessage-warning,
:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).alert-warning {
    background: var(--docent-warning-tint);
    color: var(--docent-warning);
    border-left-color: var(--docent-warning);
}

:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).statusmessage-error,
:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).alert-danger {
    background: var(--docent-danger-tint);
    color: var(--docent-danger);
    border-left-color: var(--docent-danger);
}

/* Plone's icon sits in the flex row rather than on the text baseline. */
:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert) .statusmessage-icon {
    flex: 0 0 auto;
    margin: 0 !important;
}

body.viewpermission-add-portal-content .ai-chip,
body.template-edit .ai-chip,
body.template-action_items .ai-chip,
.ai-join { color: var(--docent-ink) !important; }

body.viewpermission-add-portal-content .ai-chip[aria-pressed="true"],
body.template-edit .ai-chip[aria-pressed="true"],
body.template-action_items .ai-chip[aria-pressed="true"] {
  background: var(--docent-brand) !important; border-color: var(--docent-brand) !important; color: #fff !important;
}
body.viewpermission-add-portal-content .ai-chip:focus-visible,
body.template-edit .ai-chip:focus-visible,
body.template-action_items .ai-chip:focus-visible { outline-color: var(--docent-brand) !important; }
.ai-join { border-color: var(--docent-brand) !important; }

/* The way out, for anyone who does not want to wait for the clock. */
:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert) .ai-msg-close {
    margin-left: auto;
    padding: 0 2px;
    border: 0;
    background: none;
    color: inherit;
    opacity: 0.45;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert) .ai-msg-close:hover {
    opacity: 1;
}

#content-core .portalMessage:not(.ai-alert) .ai-msg-close {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 2px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: 1.15rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

:is(#global_statusmessage, #content) .portalMessage:not(.ai-alert).ai-msg-going {
    transition: opacity 0.3s ease,
                max-height 0.3s ease 0.1s,
                margin 0.3s ease 0.1s,
                padding 0.3s ease 0.1s;
    opacity: 0;
    max-height: 0 !important;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.ai-alert .ai-alert-by {
    margin: 14px 0 0;
    font-size: 0.85em;
    opacity: 0.65;
}

/* The page's content sits on a card */

body:not(.viewpermission-add-portal-content):not(.template-edit):not(.template-action_items) #content {
    background: var(--docent-surface);
    border: 1px solid var(--docent-border);
    border-radius: 6px;
    padding: 18px 20px 22px;
    box-shadow: var(--docent-shadow-card);
}

/* the trail */

body:not(.viewpermission-add-portal-content):not(.template-edit):not(.template-action_items) #content #portal-breadcrumbs {
    display: block !important;
    visibility: visible !important;
    background: none !important;
    margin: 0 0 12px !important;
    padding: 0 0 9px !important;
    border-bottom: 1px solid var(--docent-border);
}

/* The path bar template wraps its list in .container, which is a Bootstrap
   grid container - inside the card that adds gutters the card already has
   and, at some widths, a max-width narrower than the card itself. */
#content #portal-breadcrumbs .container {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}

#content #portal-breadcrumbs .breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    font-size: 11.5px;
}

#content #portal-breadcrumbs .breadcrumb-item,
#content #portal-breadcrumbs .breadcrumb-item.active {
    color: var(--docent-ink-muted);
}

#content #portal-breadcrumbs .breadcrumb-item a {
    color: var(--docent-brand);
    text-decoration: none;
}

#content #portal-breadcrumbs .breadcrumb-item a:hover,
#content #portal-breadcrumbs .breadcrumb-item a:focus-visible {
    text-decoration: underline;
}

body.docent-dark #content #portal-breadcrumbs {
    border-bottom-color: rgba(255, 255, 255, .12);
}

.viewpermission-add-portal-content #content #portal-breadcrumbs,
.template-edit #content #portal-breadcrumbs,
.template-action_items #content #portal-breadcrumbs {
    display: none !important;
}

:root {
    --docent-card-gap: 48px;
}

#above-content-wrapper {
    display: none;
}

body:not(.viewpermission-add-portal-content):not(.template-edit):not(.template-action_items) #portal-column-content {
    margin-top: 0;
}

body:not(.viewpermission-add-portal-content):not(.template-edit):not(.template-action_items) #content {
    margin-top: var(--docent-card-gap);
}

/* An embedded page has no chrome to be separated from. */
html.ai-embed #content {
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body:not(.viewpermission-add-portal-content):not(.template-edit):not(.template-action_items) #content .card.event-summary {
    background: var(--docent-surface-warm);
    border: 0;
    border-left: 3px solid var(--docent-border);
    border-radius: var(--docent-radius-sm);
    box-shadow: none;
}

/* Listing density */
:root { --ai-rowpad: 15px; --ai-rowfont: 13.5px; }
body.ai-compact { --ai-rowpad: 8px; --ai-rowfont: 13px; }

html body #content table.listing tbody td,
html body #content table.pat-datatables tbody td {
  padding-top: var(--ai-rowpad) !important;
  padding-bottom: var(--ai-rowpad) !important;
  font-size: var(--ai-rowfont);
  transition: padding .12s ease;
}

html body #content .al-pane table.listing,
html body #content .al-pane table.pat-datatables { margin-top: 24px; }

/* The density control the script adds to every listing toolbar. */

#content-core .ai-density,
#content .ai-density,
.ai-density {
  font: 500 12px var(--docent-font) !important;
  color: var(--docent-ink-muted) !important; background: none !important; border: 0 !important;
  cursor: pointer; padding: 4px 0; border-bottom: 1px solid transparent !important;
  white-space: nowrap; box-shadow: none !important; text-transform: none !important;
  letter-spacing: normal !important;
}
#content-core .ai-density:hover,
#content .ai-density:hover { color: var(--docent-brand) !important; border-bottom-color: var(--docent-brand-edge) !important; }

/* List / Board */

.ai-vtog {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--docent-border); border-radius: 6px; overflow: hidden;
  background: var(--docent-surface);
}

#content-core .ai-vtog .ai-vt,
#content .ai-vtog .ai-vt,
.ai-vtog .ai-vt {
  font: 500 12px var(--docent-font) !important;
  color: var(--docent-ink-muted) !important; background: none !important;
  border: 0 !important; border-radius: 0 !important;
  box-shadow: none !important; text-transform: none !important;
  letter-spacing: normal !important;
  padding: 4px 11px !important; cursor: pointer; white-space: nowrap;
}
#content-core .ai-vtog .ai-vt + .ai-vt,
#content .ai-vtog .ai-vt + .ai-vt,
.ai-vtog .ai-vt + .ai-vt { border-left: 1px solid var(--docent-border) !important; }

#content-core .ai-vtog .ai-vt:hover,
#content .ai-vtog .ai-vt:hover { color: var(--docent-brand) !important; }

#content-core .ai-vtog .ai-vt.active,
#content .ai-vtog .ai-vt.active,
.ai-vtog .ai-vt.active {
  color: var(--docent-brand) !important; background: var(--docent-brand-tint) !important; font-weight: 600 !important;
}

body.docent-dark .ai-vtog { border-color: var(--docent-border-strong); }

body.docent-dark #content-core .ai-vtog .ai-vt + .ai-vt,
body.docent-dark #content .ai-vtog .ai-vt + .ai-vt { border-left-color: var(--docent-border-strong) !important; }

/* The pane the switch is not showing. `hidden` alone loses to the
   theme's `display: block` on layout children in a couple of places. */
.ai-viewpane[hidden] { display: none !important; }

/* The project dashboard on the home page */

.dash { display: flex; gap: 20px; flex-wrap: wrap; margin: 4px 0 8px; }

.dash-card {
  flex: 1 1 320px; min-width: 300px;
  border: 1px solid var(--docent-border); border-radius: 6px;
  padding: 20px 22px 12px; background: var(--docent-surface);
}

#content .dash-h {
  font-family: var(--docent-font) !important;
  font-weight: 600 !important; font-size: 19px !important;
  margin: 0 0 14px !important; padding: 0 !important;
  border: 0 !important; background: none !important; color: var(--docent-ink);
}
#content .dash-h::before { content: none !important; }

.dash-sub {
  font: 600 10px var(--docent-font);
  letter-spacing: .15em; text-transform: uppercase; color: var(--docent-ink-muted);
  margin: 14px 0 2px;
}
.dash-sub:first-of-type { margin-top: 0; }

.dash-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--docent-border);
  text-decoration: none; color: var(--docent-ink); font-size: 13.5px;
}
.dash-row:last-child { border-bottom: 0; }
.dash-row:hover { text-decoration: none; }
.dash-row:hover .dash-t { text-decoration: underline; }
.dash-t { flex: 1 1 auto; }
.dash-w { flex: none; color: var(--docent-ink-muted); font-size: 12.5px; white-space: nowrap; }

/* The one place colour is spent. */
.dash-late .dash-w { color: var(--docent-brand); }

.dash-none, .dash-clear {
  font-family: var(--docent-font); font-weight: 600;
  font-style: italic; color: var(--docent-ink-muted); font-size: 13.5px; margin: 2px 0 10px;
}
.dash-clear { margin-top: 10px; }

body.docent-dark .dash-card { background: var(--docent-page); }

/* Lately */

.dash-wide { margin-top: 0; }
.dash-wide .dash-card { flex: 1 1 100%; }

/* Two columns of rows, so a row's time stays beside its sentence. The
   rows are flex, which columns do not break; break-inside keeps one from
   being split down the middle at the column edge. */
.dash-cols { column-count: 2; column-gap: 44px; }
.dash-cols .dash-row { break-inside: avoid; -webkit-column-break-inside: avoid; }

.dash-cols .dash-row:last-child { border-bottom: 1px solid var(--docent-border); }

@media (max-width: 1000px) { .dash-cols { column-count: 1; } }

.dash-act .dash-t { display: block; }
.dash-who { color: var(--docent-state-idle); }
.dash-did { color: var(--docent-ink-muted); }
.dash-what { color: var(--docent-ink); }
.dash-act:hover .dash-what { text-decoration: underline; }
/* The whole line is the link, so cancel the blanket rule that would
   underline the name and the verb along with the title. */
.dash-act:hover .dash-t { text-decoration: none; }

body.docent-dark .dash-who { color: var(--docent-ink-muted); }

/* A band and its count, with a bar to compare them by. The bar is a
   shape, not the reading - the figure is always there beside it, which is
   why the bar can be this quiet. */
.dash-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 0; text-decoration: none; color: var(--docent-ink); font-size: 13px;
}
.dash-bar:hover { text-decoration: none; }
.dash-bar:hover .dash-bfill { background: var(--docent-brand); }
.dash-bl { flex: 0 0 76px; color: var(--docent-ink-muted); }
.dash-btrack {
  flex: 1 1 auto; height: 6px; border-radius: var(--docent-radius-sm); background: var(--docent-border);
  overflow: hidden;
}
.dash-bfill {
  display: block; height: 100%; border-radius: var(--docent-radius-sm); background: var(--docent-brand-edge);
  transition: background .12s ease;
}
.dash-bn {
  flex: 0 0 28px; text-align: right; color: var(--docent-ink-muted);
  font-variant-numeric: tabular-nums; font-size: 12.5px;
}

body.docent-dark .dash-bar:hover .dash-bfill { background: var(--docent-brand-edge); }

/* ====================================================================
   Corner marks.
   One quiet line drawing in the top right of the page card, saying what
   kind of page this is. A CSS mask keyed off the body class Plone sets
   for the template; decorative only, so a pseudo-element.
   ==================================================================== */

#content { position: relative; }
#content > header { position: relative; }
/* The title is what the corner picture and the "?" are pinned to. */
#content > header h1 { position: relative; }

#content > header h1::after {
  content: '';
  display: none;
  /* Pinned to the title itself (the h1), as the "?" is, so the two sit
     in one spot beside the title on every page (20 Nov 2026). It hung
     from the bottom of the title block (#content > header) from 7 Nov,
     which was the same spot only while the title was the last thing in
     the block: a page with a line of description under its title (Scope
     Manager, PMP, Templates) pushed the picture down a line or two and
     left the "?" behind. Before that it hung from #content-core, which
     put it in the toolbar row; from #content, 50px down, across the
     rule. */
  position: absolute; bottom: -6px; right: 20px;
  width: 64px; height: 64px;
  pointer-events: none;
  background-color: var(--docent-border);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-position: center;  mask-position: center;
}

/* A dark card needs the mark lighter than the card, not darker. */
body.docent-dark #content > header h1::after { background-color: var(--docent-overlay); }

/* Narrow enough and the mark would sit on the title rather than beside
   it. A decoration is the first thing to go. */
@media (max-width: 900px) {
  #content > header h1::after { display: none !important; }
}

body.template-action-overview #content > header h1::after,
body.template-alerts-collection-view #content > header h1::after,
body.template-notes-collection-view #content > header h1::after,
body.section-meetings.template-card_view #content > header h1::after,
body.section-meetings.template-card_view.portaltype-folder #content > header h1::after,
body.section-calendar #content > header h1::after,
body.template-member-view #content > header h1::after,
body.template-tabbed-docmanager-view #content > header h1::after,
body.template-feedback-collection-view #content > header h1::after,
body.template-discussions-view #content > header h1::after,
body.template-planning-overview #content > header h1::after,
body.template-sow-overview #content > header h1::after,
body.template-action-items-main-view #content > header h1::after,
body.template-edit.portaltype-action_items #content > header h1::after,
body.section-planning-documents-manager #content > header h1::after,
body.section-planning-documents #content > header h1::after,
body.section-rfp-manager #content > header h1::after,
body.section-scope-manager #content > header h1::after,
body.section-pmp #content > header h1::after,
body.section-command-statements #content > header h1::after,
body.section-ms-project #content > header h1::after,
body.section-controlled-documents #content > header h1::after,
body.template-templates-manager #content > header h1::after,
body.section-documents #content > header h1::after,
body.template-historyview #content > header h1::after,
body.template-onlyoffice-edit #content > header h1::after,
body.template-onlyoffice-view-file #content > header h1::after,
body.template-onlyoffice-fill-form #content > header h1::after {
  display: block;
}


/* Discussions: two speech bubbles */
body.template-discussions-view #content > header h1::after {
  -webkit-mask-image: url("../icons/discussion.svg");
          mask-image: url("../icons/discussion.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}

body.template-action-items-main-view #content > header h1::after,
body.template-edit.portaltype-action_items #content > header h1::after,
body.template-action-overview #content > header h1::after {
  -webkit-mask-image: url("../icons/AIs.png");
          mask-image: url("../icons/AIs.png");
  -webkit-mask-size: 86%;
          mask-size: 86%;
}
/* Alerts: a bell */
body.template-alerts-collection-view #content > header h1::after {
  -webkit-mask-image: url("../icons/Notifs.png");
          mask-image: url("../icons/Notifs.png");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
/* The "?" that opens the page's own help topic (page_help.py). It is in
   the <h1>, lifted to the right end of the title: just left of the corner
   picture (64px wide, 20px in, pinned to the same h1), and in its place
   once the picture goes at 900px. Quiet at rest, like the picture; the brand colour when
   pointed at. */
#content > header h1 .ai-page-help,
h1.documentFirstHeading .ai-page-help {
  position: absolute; right: 100px; bottom: 6px;
  display: inline-block; box-sizing: border-box;
  width: 24px; height: 24px;
  border: 1.5px solid currentColor; border-radius: 50%;
  font-size: 15px; font-weight: 600; line-height: 21px; text-align: center;
  letter-spacing: 0;
  color: var(--docent-ink-muted); text-decoration: none;
}
#content > header h1 .ai-page-help:hover,
#content > header h1 .ai-page-help:focus-visible,
h1.documentFirstHeading .ai-page-help:hover,
h1.documentFirstHeading .ai-page-help:focus-visible {
  color: var(--docent-brand); text-decoration: none;
}
@media (max-width: 900px) {
  #content > header h1 .ai-page-help,
  h1.documentFirstHeading .ai-page-help { right: 20px; }
}

/* Notes: a page with a folded corner */
body.template-notes-collection-view #content > header h1::after {
  -webkit-mask-image: url("../icons/notes.svg");
          mask-image: url("../icons/notes.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}

/* My Notes: DataTables sniffs the Action Date column as a date and
   right-aligns it (dt-type-date). Keep it flush left under its header,
   with the same cell padding as Date and Title. */
body.template-notes-collection-view table.dataTable th.dt-type-date,
body.template-notes-collection-view table.dataTable td.dt-type-date,
body.template-notes-collection-view table.dataTable th.dt-type-date div.dt-column-header,
body.template-notes-collection-view table.dataTable th.dt-type-date div.dt-column-footer {
  text-align: left !important;
}

body.section-meetings.template-card_view #content > header h1::after {
  -webkit-mask-image: url("../icons/MeetingAlt.png");
          mask-image: url("../icons/MeetingAlt.png");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}

/* Three marks drawn as line art of their own (30 Oct 2026), because the
   ribbon icons they stand for - the Docs pages, the people round a table,
   the sheet and pencil - are filled pictures: masked they came out as
   blobs, and shown faded as pictures (29 Oct) they looked like a
   different thing from the quiet single-colour marks beside them ("need
   to be stylised like the other corner icons"). So each is an outline
   drawn in the same hand as the Planning mark below: a data URI, 48-box,
   1.6 stroke, # as %23.
   - Project Meetings (/meetings/card_view, the folder; My Meetings is a
     collection and keeps the Meetings button's mask above): three people
     round a table, the Prj. Mtgs button's picture.
   - My Docs and My Feedback: further down, by the Team mark. */
body.section-meetings.template-card_view.portaltype-folder #content > header h1::after {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><ellipse cx='24' cy='27' rx='9' ry='3.5'/><circle cx='24' cy='9' r='3.5'/><path d='M17.5 20.5c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='8.5' cy='29' r='3.5'/><path d='M2 40.5c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='39.5' cy='29' r='3.5'/><path d='M33 40.5c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/></svg>");
          mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><ellipse cx='24' cy='27' rx='9' ry='3.5'/><circle cx='24' cy='9' r='3.5'/><path d='M17.5 20.5c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='8.5' cy='29' r='3.5'/><path d='M2 40.5c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/><circle cx='39.5' cy='29' r='3.5'/><path d='M33 40.5c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/></svg>");
}
/* Calendar: a calendar grid. Beside the title there is clear space -
   the overlap reported on 8 Nov 2026 was the pre-1205 position (mark in
   the filter row); FullCalendar's today/arrows sit by the month name,
   well below the title. */
body.section-calendar #content > header h1::after {
  -webkit-mask-image: url("../icons/calendar.png");
          mask-image: url("../icons/calendar.png");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
/* Team: two people */
body.template-member-view #content > header h1::after {
  -webkit-mask-image: url("../icons/team.png");
          mask-image: url("../icons/team.png");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
/* My Docs: the Docs button's three stacked sheets, the front one lined,
   as an outline (see the Project Meetings note above) */
body.template-tabbed-docmanager-view #content > header h1::after {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 14h22v28H8z'/><path d='M13 14v-4h22v28h-5'/><path d='M18 10V6h22v28h-5'/><path d='M13 22h12'/><path d='M13 27h12'/><path d='M13 32h12'/><path d='M13 37h8'/></svg>");
          mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8 14h22v28H8z'/><path d='M13 14v-4h22v28h-5'/><path d='M18 10V6h22v28h-5'/><path d='M13 22h12'/><path d='M13 27h12'/><path d='M13 32h12'/><path d='M13 37h8'/></svg>");
}
/* A document open in ONLYOFFICE (6 Nov 2026): one sheet with a folded
   corner and ruled lines, in the hand of the My Docs mark. One page, not
   the stack: this is a single document, not a listing of them. */
body.template-onlyoffice-edit #content > header h1::after,
body.template-onlyoffice-view-file #content > header h1::after,
body.template-onlyoffice-fill-form #content > header h1::after {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4h18l8 8v32H12z'/><path d='M30 4v8h8'/><path d='M18 20h12'/><path d='M18 26h12'/><path d='M18 32h12'/><path d='M18 38h8'/></svg>");
          mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4h18l8 8v32H12z'/><path d='M30 4v8h8'/><path d='M18 20h12'/><path d='M18 26h12'/><path d='M18 32h12'/><path d='M18 38h8'/></svg>");
  /* The shared spot beside the title: clear of the Rename / Cancel /
     Save & Close bar, which is the first row of #content-core. */
}
/* Feedback: the My Feedback button's sheet and pencil, as an outline -
   the sheet's lower right left open for the pencil to sit in */
body.template-feedback-collection-view #content > header h1::after {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M34 24V12l-6-6H8v36h13'/><path d='M28 6v6h6'/><path d='M13 18h14'/><path d='M13 23h14'/><path d='M13 28h8'/><path d='M21 43l1.5-6 14-14 4.5 4.5-14 14z'/><path d='M34 25.5l4.5 4.5'/></svg>");
          mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M34 24V12l-6-6H8v36h13'/><path d='M28 6v6h6'/><path d='M13 18h14'/><path d='M13 23h14'/><path d='M13 28h8'/><path d='M21 43l1.5-6 14-14 4.5 4.5-14 14z'/><path d='M34 25.5l4.5 4.5'/></svg>");
}

body.template-planning-overview #content > header h1::after,
body.template-sow-overview #content > header h1::after {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6h14l6 6v22H18z'/><path d='M32 6v6h6'/><path d='M14 10v28h20'/><path d='M10 14v28h20'/><path d='M23 18h9'/><path d='M23 23h9'/><path d='M23 28h6'/></svg>");
          mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6h14l6 6v22H18z'/><path d='M32 6v6h6'/><path d='M14 10v28h20'/><path d='M10 14v28h20'/><path d='M23 18h9'/><path d='M23 23h9'/><path d='M23 28h6'/></svg>");
}

body.section-planning-documents-manager #content > header h1::after,
body.section-planning-documents #content > header h1::after {
  -webkit-mask-image: url("../icons/planning.svg");
          mask-image: url("../icons/planning.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
body.section-rfp-manager #content > header h1::after {
  -webkit-mask-image: url("../icons/RFP.png");
          mask-image: url("../icons/RFP.png");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
body.section-scope-manager #content > header h1::after {
  -webkit-mask-image: url("../icons/supply-chain.svg");
          mask-image: url("../icons/supply-chain.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
body.section-pmp #content > header h1::after {
  -webkit-mask-image: url("../icons/practice.svg");
          mask-image: url("../icons/practice.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
body.section-command-statements #content > header h1::after {
  -webkit-mask-image: url("../icons/CMDS.png");
          mask-image: url("../icons/CMDS.png");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
body.section-ms-project #content > header h1::after {
  -webkit-mask-image: url("../icons/master-plan-integrate.svg");
          mask-image: url("../icons/master-plan-integrate.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
body.section-controlled-documents #content > header h1::after {
  -webkit-mask-image: url("../icons/controlled-docs.svg");
          mask-image: url("../icons/controlled-docs.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}

body.template-templates-manager #content > header h1::after {
  -webkit-mask-image: url("../icons/template-manager.svg");
          mask-image: url("../icons/template-manager.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}
/* Project Docs (/documents): the Prj Docs button's icon, after the
   document-manager rule it would otherwise share with My Docs. */
body.section-documents #content > header h1::after {
  -webkit-mask-image: url("../icons/DocMgrGrp.png");
          mask-image: url("../icons/DocMgrGrp.png");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}

body.template-historyview #content > header h1::after {
  -webkit-mask-image: url("../icons/history.svg");
          mask-image: url("../icons/history.svg");
  -webkit-mask-size: 71%;
          mask-size: 71%;
}

/* The line under the page title on the Scope, Planning Documents and RFP
   pages (page_descriptions.py). */
.ai-page-intro { margin: 4px 0 14px; font-size: 15px; color: var(--docent-ink); max-width: 60em; }

header p.ai-page-intro,
#content p.ai-page-intro {
  text-transform: none;
  letter-spacing: normal;
}
/* Its Hide / Show description control (action_items.js). Quiet, after the
   text; once hidden, the link alone stands in the line's place. */
.ai-pi-toggle {
  background: none; border: 0; padding: 0 0 0 8px; margin: 0;
  font: inherit; font-size: 12.5px; line-height: inherit;
  color: var(--docent-action); text-decoration: underline; cursor: pointer;
  white-space: nowrap;
}
.ai-pi-toggle:hover { color: var(--docent-action-hover); }

#content .ai-pi-toggle,
#content-core .ai-pi-toggle {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--docent-action) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: underline !important;
}
#content .ai-pi-hidden .ai-pi-toggle { padding-left: 0 !important; }
body.docent-dark #content .ai-pi-toggle { color: var(--docent-action-bright) !important; }
.ai-pi-toggle:focus-visible { outline: 2px solid var(--docent-action); outline-offset: 2px; }
.ai-pi-hidden .ai-pi-text { display: none; }
.ai-pi-hidden .ai-pi-toggle { padding-left: 0; }
body.docent-dark .ai-pi-toggle { color: var(--docent-action-bright); }

h1.documentFirstHeading.priority-1 { color: var(--docent-danger) !important; }

h1.documentFirstHeading.priority-2 { color: var(--docent-warning) !important; }

h1.documentFirstHeading.priority-3 { color: var(--docent-success) !important; }

/* The home page: two groups, tasks and meetings */

.dash-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}

@media (max-width: 780px) {
    .dash-groups { grid-template-columns: 1fr; }
}

.dash-group {
    border: 1px solid var(--docent-brand-edge);
    border-radius: var(--docent-radius-md);
    background: var(--docent-surface-warm);
    padding: 13px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-glabel {
    font-size: 13.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--docent-brand);
    font-weight: 600;
    margin: 0;
}

/* the sentence — the one place the noun is named in plain English */
.dash-say {
    margin: 0;
    font-size: 15px;
    color: var(--docent-ink);
    line-height: 1.45;
}

.dash-say b { color: var(--docent-ink); font-weight: 600; }

.dash-fig {
    font-family: var(--docent-font);
    font-size: 29px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--docent-ink);
    vertical-align: -3px;
    margin-right: 4px;
    font-variant-numeric: tabular-nums;
}

.dash-fig-bad { color: var(--docent-danger); }
.dash-fig-ok  { color: var(--docent-success); }

.dash-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.dash-tile {
    border: 1px solid var(--docent-border);
    border-radius: 7px;
    padding: 11px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--docent-surface);
    text-decoration: none !important;
    color: inherit;
}

.dash-tile:hover { border-color: var(--docent-border-strong); }
.dash-tile-bad { border-color: var(--docent-danger); }

.dash-tname {
    font-size: 10.5px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--docent-ink-muted);
    font-weight: 600;
    line-height: 1.3;
}

.dash-tfig {
    font-family: var(--docent-font);
    font-size: 27px;
    line-height: 1;
    font-weight: 700;
    color: var(--docent-ink);
    font-variant-numeric: tabular-nums;
}

.dash-tile-bad .dash-tfig { color: var(--docent-danger); }

.dash-tsub { font-size: 11px; color: var(--docent-ink-muted); margin-top: auto; }

/* Status never travels on colour alone - every chip carries its word.
   About one man in twelve cannot separate the red from the green. */
.dash-chip {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--docent-radius-pill);
    white-space: nowrap;
}

.dash-chip-bad   { background: var(--docent-danger-tint); color: var(--docent-danger); }
.dash-chip-warn  { background: var(--docent-warning-tint); color: var(--docent-warning); }
.dash-chip-ok    { background: var(--docent-success-tint); color: var(--docent-success); }
.dash-chip-quiet { background: var(--docent-surface-warm); color: var(--docent-ink-muted); }

.dash-list { min-width: 0; }

body.docent-dark .dash-group    { border-color: var(--docent-border-strong); background: var(--docent-surface-cream); }

body.docent-dark .dash-tile     { background: var(--docent-surface-cream); border-color: var(--docent-border-strong); }

/* Toolbar tooltips - two lines, the first one bold */

.tooltip-container,
.tooltip-container * {
    white-space: pre-line;
    font-family: var(--docent-font);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
}

.tooltip-container::first-line,
.tooltip-container > *::first-line,
.tooltip-container > * > *::first-line {
    font-weight: 700;
    /* Room between the title and the explanation under it: a taller
       first line is the only spacing a ::first-line can carry. */
    line-height: 2.1;
}

/* Alerts tab: the mark */
.ai-followup-mark {
    display: inline-block;
    width: 1.2em;
    text-align: center;
    font-weight: 700;
    line-height: 1;
}

.ai-followup-ok {
    color: var(--docent-success);
}

.ai-followup-late {
    color: var(--docent-danger);
}

.pat-autotoc.autotabs .autotoc-nav a .ai-tabmark {
    width: auto;
    margin-left: .3em;
    font-size: .9em;
}

.pat-autotoc.autotabs .autotoc-nav a .ai-followup-ok {
    color: var(--docent-success) !important;
}

.pat-autotoc.autotabs .autotoc-nav a .ai-followup-late {
    color: var(--docent-danger) !important;
}

/* The Workflow tab's rail, and the file box on Attachments */
.ai-wf-rail {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
	padding: 9px 10px;
	background: var(--docent-brand-tint);
	border: 1px solid var(--docent-brand-edge);
	border-radius: 7px;
}

.ai-wf-chip {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 3px 12px 3px 4px;
	background: var(--docent-surface);
	border: 1px solid var(--docent-brand-edge);
	border-radius: 20px;
}

.ai-wf-chip.ai-wf-now { border-color: var(--docent-action); background: var(--docent-action-tint); }

.ai-wf-step {
	display: inline-flex;
	flex: none;
	width: 17px;
	height: 17px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--docent-brand);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.ai-wf-move { font-size: 12.5px; font-weight: 600; color: var(--docent-ink);
              white-space: nowrap; }
.ai-wf-at { font-size: 11px; color: var(--docent-ink-muted); white-space: nowrap;
            font-variant-numeric: tabular-nums; }

/* A step that carried a note. The chip becomes the button rather than
   holding one, so the whole chip is the hit area. */
.ai-wf-chip.ai-wf-noted { padding: 0; border: 0; background: none; }

.ai-wf-chipbtn {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 3px 7px 3px 4px;
	background: var(--docent-surface);
	border: 1px solid var(--docent-brand-edge);
	border-radius: 20px;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.ai-wf-chipbtn:hover { background: var(--docent-brand-tint); border-color: var(--docent-brand-edge); }
.ai-wf-chipbtn:focus-visible { outline: 2px solid var(--docent-brand); outline-offset: 2px; }
.ai-wf-chip.ai-wf-now .ai-wf-chipbtn { border-color: var(--docent-action); background: var(--docent-action-tint); }

#content-core .ai-wf-chipbtn,
#content .ai-wf-chipbtn {
	display: flex !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 3px 7px 3px 4px !important;
	background: var(--docent-surface) !important;
	border: 1px solid var(--docent-brand-edge) !important;
	border-radius: 20px !important;
	box-shadow: none !important;
	font: inherit !important;
	line-height: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: left;
	white-space: normal;
	color: inherit !important;
}
#content-core .ai-wf-chipbtn[hidden],
#content .ai-wf-chipbtn[hidden] { display: none !important; }
#content-core .ai-wf-chipbtn:hover,
#content .ai-wf-chipbtn:hover { background: var(--docent-brand-tint) !important; border-color: var(--docent-brand-edge) !important; }
#content-core .ai-wf-chip.ai-wf-now .ai-wf-chipbtn,
#content .ai-wf-chip.ai-wf-now .ai-wf-chipbtn { border-color: var(--docent-action) !important; background: var(--docent-action-tint) !important; }

body.docent-dark #content-core .ai-wf-chip.ai-wf-now .ai-wf-chipbtn,
body.docent-dark #content .ai-wf-chip.ai-wf-now .ai-wf-chipbtn { border-color: var(--docent-action-edge) !important; }

.ai-wf-plus {
	display: inline-flex;
	flex: none;
	width: 15px;
	height: 15px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--docent-brand-tint);
	color: var(--docent-brand);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.ai-wf-chipbtn[aria-expanded="true"] .ai-wf-plus { background: var(--docent-brand); color: #fff; }

/* The note itself: full width of the rail, so the words are not squeezed
   into a chip, and at page size rather than the diagram's - the SVG scales
   down to the content column, and prose drawn inside it comes out small. */
.ai-wf-noterow {
	flex-basis: 100%;
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin: -1px 0 3px;
	padding: 7px 10px 8px;
	background: var(--docent-surface);
	border: 1px solid var(--docent-brand-edge);
	border-left: 3px solid var(--docent-brand);
	border-radius: 0 var(--docent-radius-sm) var(--docent-radius-sm) 0;
}

.ai-wf-noterow .ai-wf-step { margin-top: 2px; }
.ai-wf-notebody { display: block; }
.ai-wf-noterow blockquote {
	margin: 0;
	max-width: 60ch;
	font-size: 13.5px;
	font-style: italic;
	color: var(--docent-border-strong);
}
.ai-wf-byline { display: block; margin-top: 3px; font-size: 11.5px; color: var(--docent-ink-muted); }

.ai-wf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.ai-wf-viewbar { margin: 0 0 6px; }

.ai-wf-fold {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 0;
	background: none;
	border: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--docent-ink-muted);
	cursor: pointer;
}

.ai-wf-fold:hover { color: var(--docent-action); text-decoration: underline; }
.ai-wf-fold:focus-visible { outline: 2px solid var(--docent-action); outline-offset: 2px; }
/* Same fight as the chip: a <button> in #content-core is the theme's. */
#content-core .ai-wf-fold,
#content .ai-wf-fold {
	display: inline-flex !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 2px 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var(--docent-ink-muted) !important;
}
#content-core .ai-wf-fold[hidden],
#content .ai-wf-fold[hidden] { display: none !important; }
#content-core .ai-wf-fold:hover,
#content .ai-wf-fold:hover { color: var(--docent-action) !important; text-decoration: underline !important; }

body.docent-dark #content-core .ai-wf-fold:hover,
body.docent-dark #content .ai-wf-fold:hover { color: var(--docent-action-bright) !important; }
.ai-wf-eye { flex: none; }

/* Attach a file without going through the edit form */
.ai-attach-add {
	margin: 14px 0 0;
	padding: 12px 14px;
	background: var(--docent-brand-tint);
	border: 1px solid var(--docent-brand-edge);
	border-radius: 7px;
}

.ai-attach-label {
	display: block;
	margin-bottom: 7px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--docent-ink);
}

.ai-attach-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ai-attach-file { font-size: 13px; max-width: 100%; }

.ai-attach-hint { display: block; margin-top: 7px; font-size: 11.5px; color: var(--docent-ink-muted); }

/* Discussions */

.ai-question {
	border: 1px solid var(--docent-border);
	border-top: 3px solid var(--docent-brand);
	border-radius: var(--docent-radius-sm);
	background: var(--docent-surface-warm);
	padding: 16px 18px;
	margin-bottom: 20px;
}

.ai-question-label,
.ai-decision-label {
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
	font-weight: 700;
	margin-bottom: 7px;
}

.ai-question-text {
	margin: 0;
	font-size: 1.06rem;
	line-height: 1.45;
	font-weight: 500;
	color: var(--docent-ink);
}

.ai-decision {
	border: 1px solid var(--docent-border);
	border-top: 3px solid var(--docent-action);
	border-radius: var(--docent-radius-sm);
	background: var(--docent-surface);
	padding: 20px 22px;
	margin-bottom: 22px;
}

.ai-decision-by {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-items: center;
	margin-top: 14px;
	padding-top: 13px;
	border-top: 1px solid var(--docent-border);
	font-size: 0.83rem;
	color: var(--docent-ink-muted);
}

/* The shape of the thread in one line. Not a scoreboard: the counts are
   the same weight as the words, and nothing here is bigger than the
   comment count it is qualifying. */
.ai-tally {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	border-top: 1px solid var(--docent-border);
	border-bottom: 1px solid var(--docent-border);
	background: var(--docent-surface-warm);
	padding: 11px 14px;
	margin: 20px 0 0;
	font-size: 0.83rem;
	color: var(--docent-ink-muted);
}

.ai-tally-total { font-size: 0.92rem; color: var(--docent-ink); }
.ai-tally-who { margin-left: auto; }

.ai-tally-item { display: inline-flex; align-items: center; gap: 6px; }

.ai-tally-item::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: var(--docent-radius-pill);
	background: currentColor;
	display: inline-block;
}

/* One colour per position, used by both the tally and the pill the script
   puts on each comment. Darkened from the obvious choices so the text
   clears 4.5:1 on its own fill. */
.ai-pos-support  { color: var(--docent-success); }
.ai-pos-concern  { color: var(--docent-warning); }
.ai-pos-question { color: var(--docent-action); }
.ai-pos-info     { color: var(--docent-ink-muted); }
.ai-pos-none     { color: var(--docent-ink-muted); }

/* The pill on a comment. Added by action_items.js, so it has to look
   deliberate rather than bolted on: same radius and weight as the state
   chip, sitting in the author row. */
.ai-comment-pos {
	display: inline-block;
	margin-left: 10px;
	padding: 2px 9px;
	border-radius: var(--docent-radius-pill);
	background: var(--docent-surface-warm);
	color: var(--docent-brand);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	vertical-align: 1px;
	white-space: nowrap;
}

/* "Changed position: was Don't support", beside the new label on the
   post that moved it. Outlined rather than filled so it reads as a note
   on the label, not a second label. */
.ai-comment-pos-changed {
	margin-left: 6px;
	background: transparent;
	border: 1px dashed var(--docent-warning);
	color: var(--docent-warning);
	font-weight: 600;
}

/* The two groups in the tally strip: positions (people) and input
   (posts). Each keeps its own heading and items together when the strip
   wraps. */
.ai-tally-group {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.ai-tally-group + .ai-tally-group {
	border-left: 1px solid var(--docent-border);
	padding-left: 16px;
}

/* The position selector in the comment box. */
.ai-position-select {
	font-size: 0.85rem;
	padding: 5px 9px;
	border: 1px solid var(--docent-border);
	border-radius: var(--docent-radius-sm);
	background: var(--docent-surface);
	max-width: 320px;
}

.ai-thread-closed {
	margin: 18px 0 0;
	border: 1px solid var(--docent-border);
	background: var(--docent-surface-warm);
	padding: 11px 14px;
	font-size: 0.85rem;
	color: var(--docent-ink-muted);
}

/* "Comments are closed" - medium blue so it stands out from the thread. */
.ai-thread-closed.ai-thread-closed-final {
	background: var(--docent-action);
	border-color: var(--docent-action);
	color: #fff;
}

/* The decision sits right under that notice. */
.ai-decision.ai-decision-under-notice {
	margin-top: 12px;
}

/* "Comments are closed." in red, one size up. Red on the blue box itself
   cannot be read (about 1.2:1), so the words sit on a small white label. */
.ai-thread-closed.ai-thread-closed-final strong {
	display: inline-block;
	color: var(--docent-danger);
	background: var(--docent-surface);
	border-radius: var(--docent-radius-sm);
	padding: 1px 7px;
	margin-right: 4px;
	font-size: 1rem;
}

/* "The decision" label: bold and one size up, so the answer is found first. */
.ai-decision .ai-decision-label {
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--docent-ink);
}

.ai-close-row {
	margin: 18px 0 6px;
	text-align: right;
}
html body #content .ai-close-row a.ai-close {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 600; color: var(--docent-action) !important;
	background: var(--docent-action-tint) !important; border: 1px solid var(--docent-action-edge) !important;
	border-radius: var(--docent-radius-pill) !important; padding: 8px 16px !important;
	text-decoration: none !important; text-transform: none !important;
	box-shadow: none !important; letter-spacing: 0 !important;
}
html body #content .ai-close-row a.ai-close:hover,
html body #content .ai-close-row a.ai-close:focus-visible {
	background: var(--docent-action-tint) !important; border-color: var(--docent-action-bright) !important;
	color: var(--docent-action-hover) !important;
}

/* A discussion's comment heading reads "3 Comments": the count first, in
   the body's size, so it is seen (action_items.js). */
#viewlet-below-content .ai-comments-title.ai-comments-n {
	font-size: 14px;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 700;
	color: var(--docent-ink);
}

/* The Workflow tab's diagram, as on a task (whose template carries these
   inline; a discussion page takes them from here). */
.ai-workflow-diagram { overflow-x: auto; padding: .5rem 0; }
.ai-wf-viewbar { margin: .25rem 0 0; }

/* Process tab: Diagram | Table, and the Table view */
.ai-wf-views { margin: 0 0 10px; }

.ai-wf-tablebar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.ai-wf-csv { font-size: 0.8rem; font-weight: 600; color: var(--docent-brand); }

.ai-wf-tablewrap { overflow-x: auto; border: 1px solid var(--docent-border); border-radius: var(--docent-radius-md); }
.ai-wf-history { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.82rem; }
.ai-wf-history th {
	text-align: left;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
	background: var(--docent-brand-tint);
	padding: 7px 10px;
	border-bottom: 1px solid var(--docent-brand-edge);
	white-space: nowrap;
}
.ai-wf-history td { padding: 7px 10px; border-bottom: 1px solid var(--docent-border); vertical-align: top; }
.ai-wf-history tr:last-child td { border-bottom: 0; }
.ai-wf-history .ai-wf-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-wf-n { color: var(--docent-ink-muted); width: 2.2em; font-variant-numeric: tabular-nums; }
.ai-wf-st {
	display: inline-block;
	padding: 1px 9px;
	border-radius: var(--docent-radius-pill);
	background: var(--docent-surface-warm);
	color: var(--docent-brand);
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}
.ai-wf-st.ai-wf-st-none { background: none; color: var(--docent-ink-muted); padding: 0; }
.ai-wf-act { font-weight: 600; white-space: nowrap; }
.ai-wf-act.ai-wf-back { color: var(--docent-warning); }
.ai-wf-act.ai-wf-back::before { content: "\21A9  "; }
.ai-wf-tnote { display: block; margin-top: 2px; font-size: 0.76rem; font-style: italic; color: var(--docent-ink-muted); }
.ai-wf-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-wf-history tr.ai-wf-now td { background: var(--docent-action-tint); }
.ai-wf-sofar { display: block; font-size: 0.68rem; font-weight: 600; color: var(--docent-action); }
.ai-wf-history td.ai-wf-slow { color: var(--docent-warning); font-weight: 700; }
.ai-wf-history tr.ai-wf-due td { background: var(--docent-warning-tint); color: var(--docent-warning); font-size: 0.78rem; padding-top: 4px; padding-bottom: 4px; }
.ai-wf-history tr.ai-wf-due.ai-wf-late td { background: var(--docent-danger-tint); color: var(--docent-danger); }
.ai-wf-dueflag::before { content: "\2691  "; }

.ai-wf-totals { display: grid; gap: 5px; max-width: 640px; margin: 14px 0 0; }
.ai-wf-totals h3 {
	margin: 0 0 2px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
}
.ai-wf-trow { display: grid; grid-template-columns: 11rem 1fr 5.5rem; gap: 10px; align-items: center; font-size: 0.8rem; }
.ai-wf-bar { height: 8px; border-radius: var(--docent-radius-sm); background: var(--docent-surface-warm); overflow: hidden; }
.ai-wf-bar > span { display: block; height: 100%; background: var(--docent-brand); border-radius: var(--docent-radius-sm); }
.ai-wf-trow .ai-wf-num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ai-wf-trow { grid-template-columns: 8rem 1fr 4.5rem; } }

.ai-attach-inline { margin: 16px 0 0; font-size: 0.88rem; }

/* Who has not answered - the part of this page a project manager uses
   most. In the rail, under the dates, because it is the thing you act on
   after reading them. */
.ai-rail-silent {
	border-top: 1px solid var(--docent-border);
	padding: 12px 13px;
}

.ai-rail-silent-hd {
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
	font-weight: 700;
	margin-bottom: 9px;
}

.ai-rail-silent-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 7px;
	font-size: 0.87rem;
}

.ai-rail-silent-row:last-child { margin-bottom: 0; }

.ai-nudge-one {
	flex: none;
	border: 1px solid var(--docent-border);
	background: var(--docent-surface);
	color: var(--docent-action);
	border-radius: var(--docent-radius-sm);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 5px 9px;
	text-decoration: none;
}

.ai-nudge-one:hover,
.ai-nudge-one:focus {
	background: var(--docent-action);
	border-color: var(--docent-action);
	color: #fff;
	text-decoration: none;
}

.ai-rail-overdue {
	display: inline-block;
	margin-left: 7px;
	color: var(--docent-danger);
	font-weight: 700;
	font-size: 0.78rem;
}

.ai-actions a.ai-edit,
.ai-actions a.ai-edit:hover,
.ai-actions a.ai-edit:focus { color: var(--docent-danger); }
/* Edit, greyed: the meeting has left Draft (2 Nov 2026). Same shape as
   the link, no colour, no hand cursor. */
.ai-actions .ai-edit-locked {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 0.92rem; font-weight: 600; padding-bottom: 1px;
	color: var(--docent-ink-muted); opacity: .55; cursor: not-allowed;
}
.ai-actions a.ai-edit:hover,
.ai-actions a.ai-edit:focus { border-bottom-color: var(--docent-danger); }

.ai-actions a.ai-decide,
.ai-actions a.ai-post { color: var(--docent-success); font-weight: 700; }
.ai-actions a.ai-decide:hover,
.ai-actions a.ai-decide:focus,
.ai-actions a.ai-post:hover,
.ai-actions a.ai-post:focus { color: var(--docent-success); border-bottom-color: var(--docent-success); }

/* Participants tab. */
.ai-part-lead { font-size: 0.92rem; color: var(--docent-ink-muted); max-width: 60ch; }

.ai-part-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.ai-part-table th {
	text-align: left;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
	font-weight: 700;
	border-bottom: 1px solid var(--docent-border);
	background: var(--docent-surface-warm);
	padding: 11px 14px;
}

.ai-part-table td {
	padding: 13px 14px;
	border-bottom: 1px solid var(--docent-border);
	vertical-align: top;
}

.ai-part-yes { color: var(--docent-success); font-weight: 600; }
.ai-part-no  { color: var(--docent-warning); font-weight: 600; }

/* Beside the position on the Stakeholders tab: "changed" when the person
   moved from an earlier one, "none yet" when they have only given input. */
.ai-part-changed {
	margin-left: 8px;
	font-size: 0.72rem;
	color: var(--docent-warning);
	border: 1px dashed var(--docent-warning);
	border-radius: var(--docent-radius-pill);
	padding: 1px 7px;
	vertical-align: 1px;
}
.ai-part-none { color: var(--docent-ink-muted); font-style: italic; }

/* The listing */

.ai-disc-num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.ai-disc-flag {
	display: inline-block;
	margin-left: 7px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--docent-warning);
	white-space: nowrap;
}

.ai-disc-decided { color: var(--docent-brand); font-weight: 600; }
.ai-disc-overdue { color: var(--docent-danger); font-weight: 700; }
.ai-disc-empty { padding: 26px 14px; color: var(--docent-ink-muted); }

/* The decide form */

.ai-decide-form { max-width: 720px; }

.ai-decide-question {
	border-left: 0;
	background: var(--docent-surface-warm);
	border: 1px solid var(--docent-border);
	border-radius: var(--docent-radius-sm);
	padding: 11px 14px;
	font-size: 0.95rem;
	color: var(--docent-ink);
}

.ai-decide-question-label {
	display: block;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--docent-ink-muted);
	font-weight: 700;
	margin-bottom: 5px;
}

.ai-decide-hint { font-size: 0.85rem; color: var(--docent-ink-muted); margin: 0 0 9px; }

.ai-decide-warning {
	margin: 12px 0 0;
	font-size: 0.83rem;
	color: var(--docent-warning);
}

/* The discussion is not on Docent_discussion. Amber rather than red: the
   page works, the feature is half there, and somebody has a thing to do. */
.ai-wf-wrong {
	border: 1px solid var(--docent-border);
	border-top: 3px solid var(--docent-warning);
	border-radius: var(--docent-radius-sm);
	background: var(--docent-warning-tint);
	padding: 13px 15px;
	margin: 0 0 16px;
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--docent-ink-muted);
}

.ai-wf-wrong strong { display: block; color: var(--docent-warning); margin-bottom: 4px; }

body form.rowlike .ai-still-needed input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body form.rowlike .ai-still-needed select,
body form.rowlike .ai-still-needed textarea,
body form.rowlike .ai-still-needed .select2-choices,
body form.rowlike .ai-still-needed .select2-choice {
	border-color: var(--docent-needed) !important;
	background-color: var(--docent-needed-tint) !important;
}
body form.rowlike .ai-still-needed .tox-tinymce {
	border-color: var(--docent-needed) !important;
}

body form.rowlike.ai-needs-on label .required {
	display: none !important;
}

/* Focus still belongs to the project colour. */
body form.rowlike .ai-still-needed input:focus,
body form.rowlike .ai-still-needed select:focus,
body form.rowlike .ai-still-needed textarea:focus {
	border-color: var(--docent-accent, var(--docent-brand)) !important;
}

/* A task tab holding changes this person has not seen wears a "!" (the
   script adds it; see tab_changes.py). Amber, so it is not read as the
   red cross of a moved date on the Alerts tab. */
.pat-autotoc.autotabs .autotoc-nav a .ai-tab-new {
	display: inline-flex; align-items: center; justify-content: center;
	width: 17px; height: 17px; margin-left: 7px; border-radius: 50%;
	/* !important: the strip paints every tab's text with !important. */
	background: var(--docent-warning) !important; color: #fff !important;
	font-size: 11px; font-weight: 800; line-height: 1;
	vertical-align: 1px;
	transition: opacity .5s ease;
}
/* Fading off once the tab has been looked at. */
.pat-autotoc.autotabs .autotoc-nav a .ai-tab-new.ai-tab-new-going {
	opacity: 0;
}

/* How many a tab holds - Attachments, Related items, Alerts - as a quiet
   grey number after the name (the script adds it from data-ai-tabcount;
   a zero is left off). Grey, not amber or red: it is a count, not news. */
.pat-autotoc.autotabs .autotoc-nav a .ai-tab-count {
	display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 6px;
	border-radius: var(--docent-radius-pill); text-align: center;
	/* !important: the strip paints every tab's text with !important. */
	background: var(--docent-surface-warm) !important; color: var(--docent-ink-muted) !important;
	font-size: 11px; font-weight: 600; line-height: 16px;
	vertical-align: 1px;
}
.pat-autotoc.autotabs .autotoc-nav a.active .ai-tab-count {
	background: var(--docent-brand-tint) !important; color: var(--docent-brand) !important;
}
body.docent-dark .pat-autotoc.autotabs .autotoc-nav a .ai-tab-count {
	background: var(--docent-overlay) !important;
}

.ai-chips-section {
	border-top: 1px solid var(--docent-line, var(--docent-border));
	padding-top: 18px;
}
.ai-chips-section.ai-first {
	border-top: 0;
	padding-top: 0;
}
.ai-chips-section-title {
	margin: 0;
	color: var(--docent-label-colour, var(--docent-ink));
}

/* Close Out's question, under its title. */
.ai-chips-section-lead {
	margin: 8px 0 0;
	color: var(--docent-label-colour, var(--docent-ink));
}

/* Close Out's "Yes" box while the task cannot be closed yet, and the
   reason under it. */
.ai-close-locked + label,
.form-check:has(.ai-close-locked) {
	opacity: 0.55;
}
.ai-close-lock-note {
	margin: 4px 0 0;
	font-size: 0.9em;
	color: var(--docent-warning);
}

/* Close Out's notes: a full-size writing box, not a strip. */
#formfield-form-widgets-actions_to_close_out .tox-tinymce {
	min-height: 300px !important;
}

body form.rowlike.ai-needs-on div.mb-3 > label,
body form.rowlike.ai-needs-on div.mb-3 > .form-label,
body form.rowlike.ai-needs-on .ai-chips-section-title {
	font-size: calc(var(--docent-label-size, 0.95rem) + 1pt) !important;
	font-weight: 700 !important;
}

/* Reminder: "Days before due date" holds 1 to 14, so the box is sized
   for two digits (and a browser's up/down arrows), and is greyed out until
   follow-up alerts are ticked. */
#formfield-form-widgets-follow_up_days input {
	width: 5.5em !important;
	min-width: 0;
	max-width: 100%;
}
#formfield-form-widgets-follow_up_days.ai-off {
	opacity: 0.5;
}
#formfield-form-widgets-follow_up_days.ai-off input {
	cursor: not-allowed;
	background-color: var(--docent-surface-warm);
}

.ai-help { display: inline-block; position: relative; vertical-align: middle; margin-left: 4px; }
.ai-help > summary { list-style: none; }
.ai-help > summary::-webkit-details-marker { display: none; }
.ai-help-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; padding: 2px; border-radius: 50%;
	background: transparent; color: var(--docent-ink-muted);
	line-height: 0; cursor: pointer; user-select: none;
	transition: color .15s ease, background-color .15s ease;
}
.ai-help-btn .ai-help-ic { width: 100%; height: 100%; display: block; }
.ai-help-btn:hover,
.ai-help[open] > .ai-help-btn { color: var(--docent-action); background: var(--docent-action-tint); }
.ai-help-btn:focus-visible { color: var(--docent-action); outline: 2px solid var(--docent-action); outline-offset: 1px; }
.ai-help.ai-help-seen > .ai-help-btn { color: var(--docent-border-strong); }
.ai-help.ai-help-seen > .ai-help-btn:hover,
.ai-help.ai-help-seen[open] > .ai-help-btn { color: var(--docent-action); }

body.docent-dark .ai-help-btn:hover,
body.docent-dark .ai-help[open] > .ai-help-btn { color: var(--docent-action-bright); }

body.docent-dark .ai-help.ai-help-seen > .ai-help-btn:hover { color: var(--docent-action-bright); }
@media (prefers-reduced-motion: reduce) { .ai-help-btn { transition: none; } }
.ai-help-box {
	/* Opens leftward: the "?" ends the help line, so a box opening to the
	   right runs off the form. */
	position: absolute; z-index: 20; top: 24px; right: 0;
	width: 340px; max-width: 80vw;
	background: var(--docent-surface); color: var(--docent-ink);
	border: 1px solid var(--docent-border); border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
	padding: 10px 12px; font-size: 0.85rem; line-height: 1.4;
}
.ai-help-box p { margin: 0 0 6px; }
.ai-help-box .ai-help-title { font-weight: 700; }
.ai-help-box ul { margin: 0; padding-left: 18px; }
.ai-help-box li { margin: 3px 0; }
body.docent-dark .ai-help-box { background: var(--docent-page); }
/* Beside a field's title the "?" is at the left of the form, so its box
   opens to the right. The text inside is not part of the label's look. */
.ai-help.ai-help-in-label { margin-left: 6px; }
.ai-help-in-label .ai-help-box {
	left: 0; right: auto;
	font-weight: 400; text-transform: none; letter-spacing: normal;
}

body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.comment"],
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.comment"],
body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.cancel"],
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.cancel"] {
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--docent-radius-sm) !important;
	padding: 6px 16px !important;
	font-weight: 600;
	cursor: pointer;
}
body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.comment"],
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.comment"] {
	background: var(--docent-success) !important;
}
body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.cancel"],
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.cancel"] {
	background: var(--docent-danger) !important;
}
body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.comment"]:hover,
body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.comment"]:focus,
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.comment"]:hover,
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.comment"]:focus {
	background: var(--docent-success) !important;
	color: #fff !important;
	border-bottom-color: transparent !important;
}
body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.cancel"]:hover,
body.portaltype-discussion #viewlet-below-content .formControls input[name$="buttons.cancel"]:focus,
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.cancel"]:hover,
body.portaltype-discussion #viewlet-below-content .formControls button[name$="buttons.cancel"]:focus {
	background: var(--docent-danger) !important;
	color: #fff !important;
	border-bottom-color: transparent !important;
}

.ai-chips-on .ai-trio.ai-quad {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}
.ai-chips-on .ai-trio.ai-quad > [id^="formfield-"] {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    margin-right: 0 !important;
}
.ai-chips-on .ai-trio.ai-quad > [id^="formfield-"] select {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 760px) {
    .ai-chips-on .ai-trio.ai-quad > [id^="formfield-"] {
        flex: 1 1 calc(50% - 8px) !important;
    }
}

.ai-meet-invitees {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
    clear: both;
}
.ai-meet-invitees > [id^="formfield-"] {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
}
.ai-meet-invitees > [id^="formfield-"] select,
.ai-meet-invitees > [id^="formfield-"] textarea,
.ai-meet-invitees > [id^="formfield-"] input[type="text"],
.ai-meet-invitees > [id^="formfield-"] .select2-container,
.ai-meet-invitees > [id^="formfield-"] .docent-picker {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.ai-meet-invitees > [id^="formfield-"] textarea {
    min-height: 0;
    height: var(--docent-control-h, 2.5em);
    resize: vertical;
}
@media (max-width: 760px) {
    .ai-meet-invitees > [id^="formfield-"] {
        flex: 1 1 100% !important;
    }
}

.ai-attendee-groups .ai-attendee-group { margin-right: 0.35em; }
.ai-attendee-groups .ai-attendee-group-name { font-weight: 600; }
details.ai-group-members {
    display: inline-block;
    margin-left: 0.35em;
    vertical-align: baseline;
}
details.ai-group-members > summary {
    display: inline-block;
    cursor: pointer;
    color: var(--docent-ink-muted);
    font-size: 0.92em;
    list-style: none;
}
details.ai-group-members > summary::-webkit-details-marker {
    display: none;
}
details.ai-group-members > summary::before {
    content: "\25B8";   /* small right-pointing triangle */
    display: inline-block;
    margin-right: 0.25em;
    font-size: 1.15em;   /* 15% bigger than the word beside it (2 Nov 2026) */
    line-height: 1;
    transition: transform 0.15s ease;
}
details.ai-group-members[open] > summary::before {
    transform: rotate(90deg);
}
details.ai-group-members > .ai-group-member-list {
    display: inline;
    margin-left: 0.35em;
}
.ai-attendee-groups .ai-group-empty { font-size: 0.92em; }
/* Meeting Details as a disclosure (2 Nov 2026): the heading stays a
   block heading, the arrow sits to its right, and the text drops under
   it when open. */
.event-summary details.ai-details-toggle { display: block; margin-left: 0; }
.event-summary details.ai-details-toggle > summary { color: inherit; font-size: 1em; }
.event-summary details.ai-details-toggle > summary::before { content: none; }
.event-summary details.ai-details-toggle > summary::after {
    content: "\25B8"; display: inline-block; margin-left: 0.35em;
    font-size: 1.15em; line-height: 1; color: var(--docent-ink-muted);
    transition: transform 0.15s ease;
}
.event-summary details.ai-details-toggle[open] > summary::after { transform: rotate(90deg); }

/* The meeting card's label column (1 Nov 2026). "Contact Person:" and
   "Add to your Outlook:" share one width, so the person and calendar
   icons sit in the same column; "Groups:" and "Individuals:" share a
   narrower one for the same reason. */
.event-summary .ai-meta-key { display: inline-block; min-width: 10.5em; flex: 0 0 auto; }
.event-summary .ai-meta-key-sm { min-width: 7em; }
/* The times in the date line are <abbr> tags (plone.app.event's
   formatted_date), which browsers underline with dots. Plain text here
   (5 Nov 2026). */
.event-summary .event-when abbr,
.event-summary .event-when abbr[title] { text-decoration: none; border-bottom: 0; }
/* A group name and its Members arrow move to the next line as one piece;
   the list of names inside, once opened, wraps as usual. */
.ai-attendee-groups .ai-attendee-group-head { white-space: nowrap; }
.ai-attendee-groups .ai-group-member-list { white-space: normal; }
.event-summary .ai-outlook-link { color: var(--docent-brand); text-decoration: none; }
.event-summary .ai-outlook-link:hover,
.event-summary .ai-outlook-link:focus { color: var(--docent-brand); opacity: .75; }
/* The right-hand column (Contact Person, Add to your Outlook) sits an inch
   further in from the location and attendees, still lined up with each
   other; and Meeting Details gets half an inch of air above it
   (1 Nov 2026). */
.event-summary .event-contact > .d-flex,
.event-summary .event-add-ical > .d-flex { margin-left: 1in; }
/* A light rule midway between the last attendee line and Meeting Details
   (1 Nov 2026): the half inch above Details, with the rule in the middle. */
.event-summary .event-details { margin-top: 0.25in; padding-top: 0.25in; border-top: 1px solid var(--docent-border); }
/* The Members line is drawn like the Groups line: bold name, then the
   arrow and its word. The first item on both lines gets one width, so
   "Outside" starts under the second group (2 Nov 2026). */
.ai-attendee-groups .meta-icon + .ai-attendee-group { display: inline-block; min-width: 13em; }
/* "Groups:" and "Members:" start two characters in under "Invitees:",
   which stays at the edge; the label keeps its width, so the icons and
   names to the right stay where they are (5 Nov 2026). */
.ai-attendee-groups > .ai-meta-key-sm { box-sizing: border-box; padding-left: 2ch; }
.ai-filterbox-none { font-size: 12.5px; color: var(--docent-ink-muted); }
@media (max-width: 767px) {
    .event-summary .event-contact > .d-flex,
    .event-summary .event-add-ical > .d-flex { margin-left: 0; }
}

.ai-meet-invitees > #formfield-form-widgets-IMeetingAttendees-attendees.ai-off {
    opacity: 0.55;
}
.ai-meet-invitees > #formfield-form-widgets-IMeetingAttendees-attendees.ai-off select,
.ai-meet-invitees > #formfield-form-widgets-IMeetingAttendees-attendees.ai-off .select2-container,
.ai-meet-invitees > #formfield-form-widgets-IMeetingAttendees-attendees.ai-off .docent-picker {
    pointer-events: none;
    cursor: not-allowed;
}
.ai-meet-invitees .ai-team-covers {
    margin: 0.3em 0 0;
    font-size: 0.9em;
    color: var(--docent-ink-muted);
}

.ai-dt-split {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: var(--docent-datetime-w, 265px);
    max-width: 100%;
}
.ai-meet-row .ai-dt-split { width: 100%; }
.ai-dt-split input.ai-dt-date,
.ai-meet-row .ai-dt-split input.ai-dt-date {
    flex: 3 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}
.ai-dt-split input.ai-dt-time,
.ai-meet-row .ai-dt-split input.ai-dt-time {
    flex: 2 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
}
.ai-dt-sep {
    display: inline-block;
    flex: 0 0 auto;
    width: 0;
    height: 1.9em;
    margin: 0 8px;
    border-left: 3px solid var(--docent-brand);
    border-radius: 2px;
    vertical-align: middle;
}

/* A discussion's who and when, side by side under Background (the script
   builds the row). It wears the meeting row's class for the theme's
   control sizing; four columns here, two on a narrow screen. */
.ai-meet-row.ai-disc-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: var(--docent-field-gap, 16px);
}
@media (max-width: 760px) {
    .ai-meet-row.ai-disc-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ai-disc-toolbar .ai-tt-right { flex-wrap: nowrap; }
.ai-chip .ai-chip-n {
    margin-left: 2px;
    opacity: .6;
    font-variant-numeric: tabular-nums;
}
.ai-chip.active .ai-chip-n { opacity: .85; }

.ai-actions a.ai-wsm-toggle.active,
.ai-actions a.ai-wsm-toggle.active:hover,
.ai-actions a.ai-wsm-toggle.active:focus {
	color: var(--docent-brand);
	border-bottom-color: var(--docent-brand);
}
.ai-wsm-actions { margin: 0 0 12px; }

.ai-chips-pick { margin: 18px 0 6px; font-size: 14px; font-weight: 600; color: var(--docent-action); }
body.docent-dark .ai-chips-pick { color: var(--docent-action-bright); }

/* /login on a project site: a button to the Dashboard, the password form folded away for administrators (browser/login.py) */
.ai-login { max-width: 36em; display: flex; flex-direction: column; gap: 14px; }
.ai-login-lead { margin: 0; color: var(--docent-ink-muted); line-height: 1.5; }
.ai-login-go {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	background: var(--docent-action); color: #fff !important; border-radius: var(--docent-radius-sm);
	padding: 10px 16px; font-size: 16px; font-weight: 600;
	text-decoration: none !important;
}
.ai-login-go:hover, .ai-login-go:focus-visible { background: var(--docent-action-hover); }
.ai-login-after { margin: 0; font-size: 13px; color: var(--docent-ink-muted); }
#ai-admin-signin { border-top: 1px solid var(--docent-border); padding-top: 10px; margin-top: 6px; }
#ai-admin-signin > summary { cursor: pointer; font-size: 13px; color: var(--docent-ink-muted); }
.ai-login-form { padding-top: 12px; max-width: 360px; }

/* Upload RFP (the File add form in RFP Manager, the only File form laid
   out with chips). A File form has no fieldset, so its fields sit in a
   Bootstrap row, side by side; here they stack full width like the other
   add forms. */
form.rowlike.ai-chips-on.view-name-add-File > .row { display: block !important; margin: 0 !important; }
form.rowlike.ai-chips-on.view-name-add-File > .row > [id^="formfield-"].ai-c-show {
    width: 100% !important; max-width: none !important;
    padding-left: 0 !important; padding-right: 0 !important;
}

.ai-req-host { position: relative; isolation: isolate; }
.ai-req-box {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    box-sizing: border-box;
    border: 1px solid var(--docent-brand);
    border-radius: var(--docent-radius-md);
}
.ai-req-tag {
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--docent-brand);
    /* The page's colour, so the box's line breaks around the word. */
    background: var(--ai-req-under, var(--docent-surface));
}

/* Its partner round the chips and what they open: dashed and grey, the
   same shape, so "Required" and "Optional" read as a pair. */

.ai-opt-box { border: 2px dashed var(--docent-border-strong); }
.ai-opt-tag { color: var(--docent-ink-muted); }

/* Controlled Documents (views/controlled_documents.pt). The register */
.ai-cd-lead { color: var(--docent-ink-muted); max-width: 720px; margin: 0 0 4px; }

.ai-cd .ai-mf-ic,
#content-core .ai-cd .ai-mf-ic {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 0 !important;
  background: none !important;
  color: var(--docent-action) !important;
  text-decoration: none !important;
}
.ai-cd .ai-mf-ic:hover,
#content-core .ai-cd .ai-mf-ic:hover { color: var(--docent-action) !important; }
.ai-cd .ai-mf-ic svg { width: 18px; height: 18px; }
body.docent-dark .ai-cd .ai-mf-ic { color: var(--docent-action-bright) !important; }
.ai-cd-num { width: 72px; white-space: nowrap; }
.ai-cd-id {
  font-family: var(--docent-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--docent-ink-muted);
}
.ai-cd-ver { white-space: nowrap; }
.ai-cd-ver b { color: var(--docent-ink); }
.ai-cd-ver .ai-mf-by { display: block; }
.ai-cd-flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: var(--docent-radius-pill);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--docent-brand);
  background: var(--docent-brand-tint);
  border: 1px solid var(--docent-brand-edge);
  vertical-align: 1px;
}

body.docent-dark .ai-cd-flag { background: transparent; }

/* The change log and a change request's page (controlled_documents.pt, */
.ai-state-deferred { background: var(--docent-surface-warm); color: var(--docent-state-idle); border-color: var(--docent-border); }
.ai-cl { margin-top: 36px; }
.ai-cl-head { font-size: 20px; margin: 0 0 10px; }
.ai-cd-crlink { color: var(--docent-action); text-decoration: none; }
.ai-cd-crlink:hover { text-decoration: underline; }
.ai-cr-num { margin-right: 8px; font-size: 14px; vertical-align: 4px; }
.ai-cr-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.ai-cr-back { margin-left: auto; font-size: 12.5px; }
.ai-cr-fields { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 10px 18px; margin: 0 0 24px; max-width: 900px; }
.ai-cr-fields dt { font-weight: 600; color: var(--docent-ink); }
.ai-cr-fields dd { margin: 0; }
.ai-cr-reason { white-space: pre-line; }
.ai-cr-docs { list-style: none; margin: 0; padding: 0; }
.ai-cr-docs li { margin: 0 0 4px; }
.ai-cr-docs .ai-cd-id { margin-right: 6px; }
.ai-cr-move { border-top: 1px solid var(--docent-border); padding-top: 16px; max-width: 900px; }
.ai-cr-label { display: block; font-weight: 600; margin-bottom: 6px; }
.ai-cr-move textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--docent-border); border-radius: var(--docent-radius-sm); padding: 8px 10px; font: inherit; }
.ai-cr-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 640px) { .ai-cr-fields { grid-template-columns: 1fr; } }

/* ---- The ONLYOFFICE editor page is headed like every other page -------
   (6 Nov 2026). The compact header (project name as a small capitals
   eyebrow, the page title under it, one project-colour bar down the two)
   is drawn by the toolbar viewlet's stylesheet, and the editor page has no
   toolbar, so the theme's big underlined project name showed there
   instead. The same rules, restated for the editor pages. The colour is
   the token the CSS viewlet publishes from the registry. */
body.template-onlyoffice-edit #content-header,
body.template-onlyoffice-view-file #content-header,
body.template-onlyoffice-fill-form #content-header {
  padding: 0 !important;
  margin: 5px 0 0 !important;
  min-height: 0 !important;
  display: block !important;
  border-bottom: 0 none !important;
}
body.template-onlyoffice-edit #content-header #header,
body.template-onlyoffice-view-file #content-header #header,
body.template-onlyoffice-fill-form #content-header #header,
body.template-onlyoffice-edit #content-header #header p,
body.template-onlyoffice-view-file #content-header #header p,
body.template-onlyoffice-fill-form #content-header #header p {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 0 none !important;
}
body.template-onlyoffice-edit #content-header a.logo,
body.template-onlyoffice-view-file #content-header a.logo,
body.template-onlyoffice-fill-form #content-header a.logo {
  display: table !important;
  border: 0 none !important;
  padding: 0 0 2px 12px !important;
  text-decoration: none !important;
}
body.template-onlyoffice-edit #content-header a.logo strong,
body.template-onlyoffice-view-file #content-header a.logo strong,
body.template-onlyoffice-fill-form #content-header a.logo strong {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--docent-ink) !important;
  border-bottom: 0 none !important;
  line-height: 1.1 !important;
}
/* The theme pads the name with non-breaking spaces; they held the
   underline out past the words and would hold the eyebrow open here. */
body.template-onlyoffice-edit #content-header a.logo span,
body.template-onlyoffice-view-file #content-header a.logo span,
body.template-onlyoffice-fill-form #content-header a.logo span,
body.template-onlyoffice-edit #content-header #header p > span,
body.template-onlyoffice-view-file #content-header #header p > span,
body.template-onlyoffice-fill-form #content-header #header p > span {
  display: none !important;
}
body.template-onlyoffice-edit h1.documentFirstHeading,
body.template-onlyoffice-view-file h1.documentFirstHeading,
body.template-onlyoffice-fill-form h1.documentFirstHeading {
  display: block !important;
  font-family: var(--docent-font) !important;
  font-size: 29px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  line-height: 1.15 !important;
  margin: 0 0 6px 0 !important;
  padding: 0 0 0 12px !important;
  border: 0 none !important;
  position: relative !important;
}
body.template-onlyoffice-edit h1.documentFirstHeading::before,
body.template-onlyoffice-view-file h1.documentFirstHeading::before,
body.template-onlyoffice-fill-form h1.documentFirstHeading::before {
  content: "";
  position: absolute;
  left: 0;
  top: -19px;
  bottom: 0;
  width: 3px;
  background: var(--docent-accent);
}

/* ---- Meeting replies: Will you attend? (meeting_rsvp.pt, rsvp.py) ---- */
.ai-rsvp { margin: 0 0 18px; }
.ai-rsvp-bar {
	border: 1px solid var(--docent-action-edge); background: var(--docent-action-tint);
	border-radius: 12px; padding: 8px 14px; margin: 0 0 12px;
}
.ai-rsvp-bar.ai-rsvp-done-yes { background: var(--docent-success-tint); border-color: #bfe6cd; }
.ai-rsvp-bar.ai-rsvp-done-no { background: var(--docent-surface-warm); border-color: var(--docent-border); }
.ai-rsvp-bar.ai-rsvp-alert { background: var(--docent-warning-tint); border-color: #ead9a8; }
.ai-rsvp-q { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.ai-rsvp-sub { color: var(--docent-ink-muted); font-size: 13px; margin: -4px 0 6px; }
/* The answer picked, beside the question, once No is pressed. */
.ai-rsvp-picked {
	display: inline-block; margin-left: 8px; padding: 1px 10px; vertical-align: 1px;
	border: 1px solid #f4cccc; background: var(--docent-danger-tint); color: var(--docent-danger);
	border-radius: var(--docent-radius-pill); font-size: 12.5px; font-weight: 700;
}
.ai-rsvp-picked[hidden] { display: none !important; }
.ai-rsvp-hint { color: var(--docent-ink-muted); font-size: 12.5px; margin: 6px 0 0; }
.ai-rsvp-row, .ai-rsvp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ai-rsvp-line { gap: 6px 10px; }
.ai-rsvp-step2 { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--docent-border); }
.ai-rsvp-bar form[hidden] { display: none !important; }
.ai-rsvp-btn {
	border: 1px solid var(--docent-border); background: var(--docent-surface); color: var(--docent-ink);
	border-radius: var(--docent-radius-pill); padding: 3px 12px; font-weight: 600; font-size: 12.5px; cursor: pointer;
}
.ai-rsvp-btn:hover { border-color: var(--docent-ink-muted); }
.ai-rsvp-btn.ai-rsvp-yes { color: var(--docent-success); border-color: #bfe6cd; }
.ai-rsvp-btn.ai-rsvp-no { color: var(--docent-danger); border-color: #f4cccc; }
.ai-rsvp-btn.ai-rsvp-primary { background: var(--docent-action); border-color: var(--docent-action); color: #fff; }
.ai-rsvp-btn.ai-rsvp-primary:disabled { opacity: .45; cursor: default; }
.ai-rsvp-btn.ai-rsvp-small { padding: 3px 10px; font-size: 12.5px; }
.ai-rsvp-link {
	background: none; border: 0; padding: 2px 4px; color: var(--docent-action);
	font-weight: 600; text-decoration: underline; cursor: pointer;
}
.ai-rsvp select { border: 1px solid var(--docent-border); border-radius: var(--docent-radius-md); padding: 6px 10px; max-width: 100%; }
.ai-rsvp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ai-rsvp-list { background: var(--docent-surface); border: 1px solid var(--docent-border); border-radius: 12px; padding: 14px 16px; }
.ai-rsvp-list { display: block; }
.ai-rsvp-head {
	font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
	color: var(--docent-brand); margin: 0; cursor: pointer; list-style: none;
}
.ai-rsvp-head::-webkit-details-marker { display: none; }
/* The arrow Meeting Details uses: to the right, turning down when open. */
.ai-rsvp-head::after {
	content: "\25B8"; display: inline-block; margin-left: 0.35em; letter-spacing: 0;
	font-size: 1.3em; line-height: 1; color: var(--docent-ink-muted); transition: transform 0.15s ease;
}
.ai-rsvp-list[open] > .ai-rsvp-head { margin-bottom: 8px; }
.ai-rsvp-list[open] > .ai-rsvp-head::after { transform: rotate(90deg); }
.ai-rsvp-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ai-rsvp-pill {
	display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
	border: 1px solid var(--docent-border); background: var(--docent-surface-warm); color: var(--docent-state-idle);
	border-radius: var(--docent-radius-pill); padding: 1px 10px; font-size: 12.5px; font-weight: 600;
}
.ai-rsvp-pill-yes { color: var(--docent-success); background: var(--docent-success-tint); border-color: #bfe6cd; }
.ai-rsvp-pill-no { color: var(--docent-danger); background: var(--docent-danger-tint); border-color: #f4cccc; }
.ai-rsvp-pill-sent { color: var(--docent-action); background: var(--docent-action-tint); border-color: var(--docent-action-edge); }
.ai-rsvp-pill-wait { color: #8a5a00; background: var(--docent-warning-tint); border-color: #ead9a8; }
.ai-rsvp-people { list-style: none; margin: 0; padding: 0; }
.ai-rsvp-person {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px;
	padding: 8px 0; border-bottom: 1px solid var(--docent-border);
}
.ai-rsvp-person:last-child { border-bottom: 0; }
.ai-rsvp-person.ai-rsvp-standin { padding-left: 18px; }
.ai-rsvp-name { font-weight: 600; }
.ai-rsvp-for { color: var(--docent-ink-muted); font-size: 12.5px; margin-left: 6px; }
.ai-rsvp-right, .ai-rsvp-set { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.ai-rsvp-set select { padding: 3px 6px; font-size: 12.5px; }
.ai-rsvp-note { color: var(--docent-ink-muted); font-size: 12.5px; margin: 8px 0 0; }

/* An RFP opened in the ONLYOFFICE viewer (19 Nov 2026): no Title and no
   Summary above the document. The document says what it is, and the
   breadcrumb still names it. Only in RFP Manager. */
body.section-rfp-manager.template-onlyoffice-view-file #content h1.documentFirstHeading,
body.section-rfp-manager.template-onlyoffice-view-file #content p.lead {
  display: none !important;
}

/* The same for a planning document opened in the viewer from the Planning
   Documents page's View column (19 Nov 2026): no Title, no Summary. By
   type, not by folder: the Planning Documents folder's id differs between
   installs. */
body.portaltype-planning_document.template-onlyoffice-view-file #content h1.documentFirstHeading,
body.portaltype-planning_document.template-onlyoffice-view-file #content p.lead {
  display: none !important;
}
