/*
 * Content Tracker skin: the licensed "Light Able" admin template's look (Public Sans, white sidebar with captions and
 * duotone icons, translucent sticky top bar, breadcrumb page header, 12px cards with a soft shadow, 8px controls,
 * uppercase table heads, tinted badges), recoloured green.
 *
 * Loaded after app.min.css (or the main.css + custom.css fallback) by content_tracker_enqueue_styles(), so it
 * restyles the existing markup without touching the Nest base, and a rebuild of app.min.css can't drop it.
 * Everything is driven by the tokens below; body.dark swaps them for the dark palette (the theme's dark mode is a
 * literal `dark` class on <body>, see header.php). Where main.css used !important or body.dark, this file matches it.
 */

@font-face {
	font-family: "Public Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/google/public-sans-latin-variable.woff2") format("woff2");
}

/* ===================================================================== Tokens */
:root {
	--ct-font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ct-primary: #12804e;          /* 4.97:1 with white text */
	--ct-primary-hover: #0e6b41;
	--ct-primary-rgb: 18, 128, 78;
	--ct-primary-ink: #0e7a4a;      /* green text on the light tint */
	--ct-primary-tint: #e7f5ee;
	--ct-accent: #22b573;           /* decorative fills only (dots, bars), never text */
	--ct-bg: #f4f7fa;
	--ct-surface: #ffffff;
	--ct-surface-2: #f8fafc;
	--ct-hover: #f3f5f7;
	--ct-border: #e3e8ee;
	--ct-border-strong: #d3dae2;
	--ct-text: #39465f;
	--ct-heading: #1d2630;
	--ct-muted: #5b6b79;
	--ct-faint: #8996a4;
	--ct-shadow: 0 8px 24px rgba(27, 46, 94, .06);
	--ct-shadow-lg: 0 12px 32px rgba(27, 46, 94, .14);
	--ct-header-bg: rgba(244, 247, 250, .78);
	--ct-radius: 12px;
	--ct-radius-sm: 8px;
	--ct-aside-w: 264px;
	--ct-header-h: 74px;

	--ct-danger: #dc2626;   --ct-danger-tint: #fdecec;   --ct-danger-ink: #b91c1c;
	--ct-warning: #d97706;  --ct-warning-tint: #fef4e4;  --ct-warning-ink: #92400e;
	--ct-info: #0284c7;     --ct-info-tint: #e6f4fb;     --ct-info-ink: #075985;
	--ct-violet-tint: #efecfd; --ct-violet-ink: #5b3fc4;
	--ct-neutral-tint: #eef1f4; --ct-neutral-ink: #4a5868;
	--ct-dark-tint: #e3e7ec;    --ct-dark-ink: #1f2a37;

	/* Bootstrap's own variables, so its components pick up the palette too. */
	--bs-primary: var(--ct-primary);
	--bs-primary-rgb: var(--ct-primary-rgb);
	--bs-link-color: var(--ct-primary);
	--bs-link-hover-color: var(--ct-primary-hover);
	--bs-body-font-family: var(--ct-font);
	--bs-body-color: var(--ct-text);
	--bs-body-bg: var(--ct-bg);
	--bs-border-color: var(--ct-border);
}

body.dark {
	--ct-primary: #12804e;
	--ct-primary-hover: #169a5e;
	--ct-primary-ink: #4fd69a;
	--ct-primary-tint: rgba(62, 207, 142, .14);
	--ct-accent: #3ecf8e;
	--ct-bg: #131920;
	--ct-surface: #1b232d;
	--ct-surface-2: #212b36;
	--ct-hover: #242f3b;
	--ct-border: #2a3542;
	--ct-border-strong: #364353;
	--ct-text: #bfc8d6;
	--ct-heading: #e9eef4;
	--ct-muted: #9aa6b8;
	--ct-faint: #7d8a9c;
	--ct-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	--ct-shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
	--ct-header-bg: rgba(19, 25, 32, .78);

	--ct-danger-tint: rgba(239, 68, 68, .16);  --ct-danger-ink: #fca5a5;
	--ct-warning-tint: rgba(245, 158, 11, .16); --ct-warning-ink: #fcd34d;
	--ct-info-tint: rgba(56, 189, 248, .14);    --ct-info-ink: #7dd3fc;
	--ct-violet-tint: rgba(139, 120, 246, .18); --ct-violet-ink: #c4b5fd;
	--ct-neutral-tint: rgba(148, 163, 184, .14); --ct-neutral-ink: #cbd5e1;
	--ct-dark-tint: rgba(148, 163, 184, .22);   --ct-dark-ink: #e2e8f0;

	--bs-body-color: var(--ct-text);
	--bs-body-bg: var(--ct-bg);
	--bs-border-color: var(--ct-border);
	--bs-link-color: var(--ct-primary-ink);
	--bs-link-hover-color: var(--ct-heading);
	color-scheme: dark;
}

/* One face everywhere, as in Light Able. app.min.css still sets Montserrat on .form-select and form controls don't
   inherit the page font on their own; code editors that want monospace say so with a more specific selector. */
.form-select,
select, option, optgroup,
input, textarea, button {
	font-family: var(--ct-font);
}

/* ===================================================================== Base */
body,
body.dark {
	font-family: var(--ct-font);
	font-feature-settings: "salt";
	font-size: 14px;
	line-height: 1.55;
	color: var(--ct-text);
	background-color: var(--ct-bg);
}
.content-main,
body.dark main,
body.dark .content-main { background-color: transparent; color: var(--ct-text); }
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6 {
	font-family: var(--ct-font);
	font-weight: 600;
	color: var(--ct-heading);
	line-height: 1.35;
	letter-spacing: -.005em;
}
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 15px; }
h6 { font-size: 14px; }
.card-title,
body.dark .card-title { color: var(--ct-heading) !important; }
a { color: var(--ct-primary); }
a:hover { color: var(--ct-primary-hover); }
body.dark a { color: var(--ct-primary-ink); }
body.dark a:hover { color: var(--ct-heading); }
.text-muted { color: var(--ct-muted) !important; }
.text-primary, .text-brand { color: var(--ct-primary-ink) !important; }
.text-success { color: var(--ct-primary-ink) !important; }
.text-danger { color: var(--ct-danger) !important; }
body.dark .text-danger { color: var(--ct-danger-ink) !important; }
.text-warning { color: var(--ct-warning) !important; }
body.dark .text-warning { color: var(--ct-warning-ink) !important; }
.bg-primary-light { background-color: var(--ct-primary-tint) !important; }
.bg-success-light { background-color: var(--ct-primary-tint) !important; }
.bg-warning-light { background-color: var(--ct-warning-tint) !important; }
.font-sm { font-size: 13px; }
::selection { background: rgba(var(--ct-primary-rgb), .2); }
:focus-visible { outline: 2px solid var(--ct-accent); outline-offset: 2px; }
hr, body.dark hr { color: var(--ct-border) !important; opacity: 1; }
.border, .border-top, .border-bottom, .border-start, .border-end { border-color: var(--ct-border) !important; }
body.dark .border-end { border-right-color: var(--ct-border) !important; }
body.dark .border-bottom { border-bottom-color: var(--ct-border) !important; }
body.dark .bg-light { background-color: var(--ct-surface-2) !important; }
code { color: #c0368c; }

/* The duotone shell icons (inc/icons.php). */
.ct-icon { width: 1em; height: 1em; flex: none; vertical-align: -.15em; }

/* ===================================================================== Sidebar */
.navbar-aside,
body.dark .navbar-aside {
	max-width: var(--ct-aside-w);
	display: flex;
	flex-direction: column;
	overflow: hidden; /* the menu scrolls inside .ct-aside-nav; the user card stays pinned */
	background-color: var(--ct-surface);
	border-right: 1px solid var(--ct-border);
	box-shadow: 0 0 24px rgba(27, 46, 94, .05);
}
.navbar-aside .aside-top,
body.dark .navbar-aside .aside-top {
	flex: none;
	min-height: var(--ct-header-h);
	padding: 12px 16px 12px 20px;
	border-bottom: 0;
}
.navbar-aside .aside-top .logo { max-width: 150px; min-width: 0; height: auto; margin: 0; display: block; }
.navbar-aside .aside-top .brand-wrap { padding: 0; }
body.dark .brand-wrap .logo { filter: none; }

/* Bootstrap's 1rem made light/outline buttons larger than the template's 14px primary.
   Kept this early so single-class icon buttons below can still set their own size. */
.btn { font-size: 14px; }
.btn-sm { font-size: 13px; }

.btn-aside-minimize,
.main-header .btn-mobile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--ct-radius-sm);
	color: var(--ct-muted);
	font-size: 22px;
	background: transparent;
}
.btn-aside-minimize:hover,
.main-header .btn-mobile:hover { background-color: var(--ct-hover); color: var(--ct-primary-ink); }
body.dark .btn-aside-minimize,
body.dark .main-header .btn-mobile { color: var(--ct-muted); }

.ct-aside-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.menu-aside { margin: 0; padding: 4px 14px 20px; }
.ct-menu-caption {
	list-style: none;
	padding: 18px 12px 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ct-faint);
}
.ct-menu-caption:first-child { padding-top: 6px; }
.menu-aside a { font-family: var(--ct-font); }
.menu-aside .menu-item { margin-bottom: 2px; }
.menu-aside .menu-link,
body.dark .menu-aside .menu-link {
	gap: 12px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ct-text);
	border-radius: var(--ct-radius-sm);
	transition: background-color .15s, color .15s;
}
.menu-aside .menu-item .icon,
body.dark .menu-aside .menu-item .icon {
	width: 22px;
	height: 22px;
	margin: 0;
	font-size: 22px;
	color: var(--ct-muted);
	transition: color .15s;
}
.menu-aside .menu-link:hover,
body.dark .menu-aside .menu-link:hover { background-color: var(--ct-hover); color: var(--ct-primary-ink); }
.menu-aside .menu-link:hover .icon,
body.dark .menu-aside .menu-link:hover .icon { color: var(--ct-primary-ink); }
.menu-aside .menu-item.active > .menu-link,
body.dark .menu-aside .menu-item.active > .menu-link { background-color: var(--ct-primary-tint); color: var(--ct-primary-ink); font-weight: 600; }
.menu-aside .menu-item.active .icon,
body.dark .menu-aside .menu-item.active .icon { color: var(--ct-primary-ink); }

/* Chevron instead of main.css's caret; turns when the group is open. */
.menu-aside .menu-item.has-submenu > .menu-link:after {
	top: 50%;
	right: 14px;
	width: 7px;
	height: 7px;
	margin: -5px 0 0;
	border: solid currentColor;
	border-width: 0 1.6px 1.6px 0;
	opacity: .55;
	transform: rotate(-45deg);
	transition: transform .2s;
}
.menu-aside .menu-item.has-submenu.active > .menu-link:after { transform: rotate(45deg); margin-top: -6px; }

.menu-aside .submenu,
body.dark .menu-aside .submenu {
	position: relative;
	margin: 4px 0 8px 23px;
	padding-left: 14px;
	border-left: 1px solid var(--ct-border);
	background: transparent;
}
.menu-aside .submenu a,
body.dark .menu-aside .submenu a {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 7px 10px;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--ct-muted);
	border-radius: 6px;
}
.menu-aside .submenu a:before { display: none; }
.menu-aside .submenu a:hover,
body.dark .menu-aside .submenu a:hover { color: var(--ct-primary-ink); background-color: var(--ct-hover); }
.menu-aside .menu-item.active .submenu a.active,
.menu-aside .submenu a.active { color: var(--ct-primary-ink) !important; font-weight: 600; }
.menu-aside .submenu a.active::after {
	content: "";
	position: absolute;
	left: -1px;
	width: 2px;
	height: 18px;
	border-radius: 2px;
	background: var(--ct-primary);
}
body.dark .menu-aside .submenu a.active::after { background: var(--ct-accent); }
.menu-aside .submenu .badge { margin-left: auto; }

/* The signed-in person, pinned to the foot of the sidebar (Light Able's user card). */
.ct-aside-user {
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 14px 14px;
	padding: 12px;
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius);
	background: var(--ct-surface-2);
}
.ct-aside-user-avatar { width: 40px; height: 40px; object-fit: cover; flex: none; }
.ct-aside-user-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ct-aside-user-text strong { color: var(--ct-heading); font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-aside-user-text small { color: var(--ct-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-aside-user-out,
body.dark .ct-aside-user-out {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: var(--ct-radius-sm);
	color: var(--ct-muted);
	font-size: 19px;
}
.ct-aside-user-out:hover,
body.dark .ct-aside-user-out:hover { background: var(--ct-danger-tint); color: var(--ct-danger); }

/* Minimized (icon-only) sidebar. main.css makes it position:absolute so flyouts can overflow; keep that. */
body.aside-mini .navbar-aside { max-width: 84px; display: block; }
body.aside-mini .navbar-aside .aside-top { justify-content: center; padding: 12px; }
body.aside-mini .navbar-aside .aside-top > div { flex-grow: 0; }
body.aside-mini .ct-aside-nav { overflow: visible; }
body.aside-mini .menu-aside { padding: 4px 12px 20px; }
body.aside-mini .ct-menu-caption { padding: 10px 0 6px; font-size: 0; }
body.aside-mini .ct-menu-caption::after { content: ""; display: block; height: 1px; margin: 0 10px; background: var(--ct-border); }
body.aside-mini .ct-menu-caption:first-child { display: none; }
body.aside-mini .menu-aside .menu-link { justify-content: center; padding: 12px; }
body.aside-mini .menu-aside .submenu,
body.dark.aside-mini .menu-aside .submenu {
	left: calc(100% + 8px);
	top: 0;
	width: 200px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius-sm);
	background-color: var(--ct-surface);
	box-shadow: var(--ct-shadow-lg);
}
body.aside-mini .menu-aside .submenu a.active::after { display: none; }
body.aside-mini .ct-aside-user { justify-content: center; margin: 0 12px 14px; padding: 8px; border: 0; background: transparent; }
body.aside-mini .ct-aside-user-text,
body.aside-mini .ct-aside-user-avatar { display: none; }
body.aside-mini .main-wrap { margin-left: 84px; }

/* ===================================================================== Main area + top bar */
.main-wrap,
body.dark main.main-wrap { margin-left: var(--ct-aside-w); background-color: var(--ct-bg); min-height: 100vh; }
/* Block, not a flex column: as a flex item the content area grew to the Kanban board's full width. */
.main-wrap .content-main { min-height: calc(100vh - var(--ct-header-h) - 58px); padding: 8px 32px 32px; }

.main-header,
body.dark .main-header {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	min-height: var(--ct-header-h);
	padding: 0 32px;
	background-color: var(--ct-header-bg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 0;
	box-shadow: none;
}
.main-header .btn-mobile { display: none; }
.main-header .col-search { flex: 0 1 340px; min-width: 0; }
.main-header .col-nav { flex: none; margin-left: auto; }
.searchform { position: relative; }
.searchform .ct-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: var(--ct-faint);
	pointer-events: none;
}
.searchform .form-control,
body.dark .searchform .form-control {
	height: 42px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius-sm);
	background-color: var(--ct-surface);
	font-size: 13.5px;
}
.main-header .nav { gap: 4px; flex-wrap: nowrap; }
.main-header .nav-item.dropdown { margin: 0; }
.main-header .nav-item > a.btn-icon,
body.dark .main-header .nav-item > a.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: var(--ct-radius-sm);
	color: var(--ct-text);
	font-size: 22px;
}
.main-header .nav-item > a.btn-icon:hover,
body.dark .main-header .nav-link:hover { background-color: var(--ct-hover); color: var(--ct-primary-ink); }
.main-header .nav-item > a .badge.ct-notif-badge,
.ct-notif-badge {
	top: 6px;
	right: 6px;
	width: auto;
	height: auto;
	min-width: 17px;
	padding: 3px 5px;
	border: 2px solid var(--ct-bg);
	border-radius: 999px;
	font-size: 10px;
	line-height: 1;
	background-color: var(--ct-danger) !important;
}
/* Emoji in comments and remarks (emoji-picker.js): the 😊 button sits in the box's bottom-right corner. */
.ct-emoji-wrap { position: relative; }
.ct-emoji-wrap > textarea { padding-right: 44px; }
.ct-emoji-btn { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; padding: 0; font-size: 17px; line-height: 1; background: transparent; border: 0; border-radius: 999px; cursor: pointer; filter: grayscale(1); opacity: .7; transition: filter .15s, opacity .15s, background-color .15s; }
.ct-emoji-btn:hover, .ct-emoji-btn:focus-visible, .ct-emoji-btn[aria-expanded="true"] { filter: none; opacity: 1; background-color: var(--ct-hover); }
.ct-emoji-panel { position: absolute; right: 0; top: calc(100% + 4px); z-index: 1060; width: 320px; max-width: calc(100vw - 32px); padding: 10px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-radius: var(--ct-radius-sm); box-shadow: var(--ct-shadow-lg); }
.ct-emoji-panel.is-up { top: auto; bottom: calc(100% + 4px); }
.ct-emoji-panel[hidden] { display: none; }
/* .card clips its content; while the picker or a suggestion menu is open in it, let it hang outside the card. */
.card:has(.ct-emoji-panel:not([hidden])), .card:has(.ct-emoji-wrap > .ct-mention-menu:not(.d-none)) { overflow: visible; }
.ct-emoji-search { width: 100%; padding: 7px 10px; font-size: 13px; color: var(--ct-text); background: var(--ct-surface); border: 1px solid var(--ct-border-strong); border-radius: var(--ct-radius-sm); }
.ct-emoji-search:focus { outline: 0; border-color: var(--ct-primary); box-shadow: 0 0 0 3px rgba(var(--ct-primary-rgb), .15); }
.ct-emoji-tabs { display: flex; gap: 2px; margin: 8px 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--ct-border); }
.ct-emoji-tabs button { flex: 1; height: 30px; padding: 0; font-size: 16px; background: none; border: 0; border-radius: 6px; cursor: pointer; filter: grayscale(1); opacity: .6; }
.ct-emoji-tabs button:hover, .ct-emoji-tabs button.active { filter: none; opacity: 1; background: var(--ct-hover); }
.ct-emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 216px; overflow-y: auto; }
.ct-emoji-item { height: 34px; padding: 0; font-size: 21px; line-height: 1; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.ct-emoji-item:hover, .ct-emoji-item:focus-visible { background: var(--ct-primary-tint); }
.ct-emoji-empty { grid-column: 1 / -1; margin: 12px 0; font-size: 13px; text-align: center; color: var(--ct-muted); }
.ct-emoji-suggest strong { font-weight: 400; font-size: 16px; }

/* Task page: image attachment overlay (task-activity.js). Always dark, in light and dark mode. Above the phone drawer. */
body.ct-lightbox-open { overflow: hidden; }
.ct-lightbox { position: fixed; inset: 0; z-index: 1300; display: flex; flex-direction: column; background: rgba(10, 14, 20, .92); }
.ct-lightbox[hidden] { display: none; }
.ct-lightbox-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: #e7ecf2; }
.ct-lightbox-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.ct-lightbox-count { font-size: 13px; color: #a7b1bd; }
.ct-lightbox-btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; }
.ct-lightbox-btn:hover, .ct-lightbox-btn:focus-visible { color: #fff; background: rgba(255, 255, 255, .22); }
.ct-lightbox-close { width: 38px; padding: 0; font-size: 26px; line-height: 1; }
.ct-lightbox-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 64px 24px; }
.ct-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.ct-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 32px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 999px; cursor: pointer; }
.ct-lightbox-nav:hover, .ct-lightbox-nav:focus-visible { background: rgba(255, 255, 255, .24); }
.ct-lightbox-nav[hidden] { display: none; }
.ct-lightbox-nav.is-prev { left: 12px; }
.ct-lightbox-nav.is-next { right: 12px; }
@media (max-width: 575.98px) {
	.ct-lightbox-stage { padding: 8px 8px 72px; }
	.ct-lightbox-nav { top: auto; bottom: 14px; transform: none; }
	.ct-lightbox-nav.is-prev { left: calc(50% - 56px); }
	.ct-lightbox-nav.is-next { right: calc(50% - 56px); }
}

/* Sidebar → Notifications: unread count (header.php), kept in step with the bell by notifications.js. */
.ct-side-badge {
	margin-left: auto;
	min-width: 20px;
	padding: 3px 7px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	color: #fff;
	background-color: var(--ct-danger);
	border-radius: 999px;
}
.ct-side-badge[hidden] { display: none; }
body.aside-mini .ct-side-badge { position: absolute; top: 4px; right: 8px; min-width: 17px; padding: 2px 4px; font-size: 10px; border: 2px solid var(--ct-surface); }
.ct-account-toggle { display: inline-flex; align-items: center; margin-left: 6px; padding: 3px; border-radius: 999px; }
.ct-account-toggle::after { display: none; }
.main-header .nav-item img.rounded-circle,
.ct-account-toggle img { width: 38px; height: 38px; flex: none; object-fit: cover; border: 2px solid var(--ct-surface); box-shadow: 0 0 0 1px var(--ct-border); }
.ct-account-toggle:hover img { box-shadow: 0 0 0 2px var(--ct-accent); }
.ct-icon-light { display: none; }
body.dark .ct-icon-dark { display: none; }
body.dark .ct-icon-light { display: inline-block; }

/* Dropdowns (shared by the top bar and page menus). */
.dropdown-menu,
body.dark .dropdown-menu {
	padding: 6px;
	font-size: 13.5px;
	color: var(--ct-text);
	background-color: var(--ct-surface);
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow-lg);
}
.dropdown-menu .dropdown-item,
body.dark .dropdown-menu a.dropdown-item {
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--ct-text);
}
.dropdown-menu .dropdown-item .ct-icon { font-size: 18px; color: var(--ct-muted); }
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
body.dark .dropdown-menu .dropdown-item:hover,
body.dark .dropdown-menu .dropdown-item:focus { background-color: var(--ct-hover); color: var(--ct-heading); }
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active { background-color: var(--ct-primary-tint); color: var(--ct-primary-ink); }
.dropdown-menu .dropdown-item.text-danger,
.dropdown-menu .dropdown-item.text-danger .ct-icon,
body.dark .dropdown-menu .dropdown-item.text-danger { color: var(--ct-danger) !important; }
body.dark .dropdown-menu .dropdown-item.text-danger,
body.dark .dropdown-menu .dropdown-item.text-danger .ct-icon { color: var(--ct-danger-ink) !important; }
.dropdown-menu .dropdown-item.text-danger:hover { background-color: var(--ct-danger-tint); }
.dropdown-divider { border-color: var(--ct-border); margin: 6px 0; opacity: 1; }
.ct-dropdown-head { padding: 8px 12px 10px; font-weight: 600; font-size: 14px; color: var(--ct-heading); border-bottom: 1px solid var(--ct-border); margin: -2px -6px 6px; padding-left: 18px; }
.ct-account-menu { min-width: 250px; }
.ct-account-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--ct-border); }
.ct-account-head img { width: 44px; height: 44px; object-fit: cover; flex: none; }
.ct-account-head div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ct-account-head strong { color: var(--ct-heading); font-weight: 600; }
.ct-account-head small { color: var(--ct-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Bell dropdown (Light Able's notification list): header with the new count, tone icon + message + time per item,
   New / Earlier groups, "View all" footer. */
.ct-notif-menu { width: 380px; padding-bottom: 0; }
.ct-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct-notif-list { max-height: 400px; overflow-y: auto; padding: 0 2px; }
.ct-notif-group { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-faint); }
.ct-notif-list .ct-notif-item,
body.dark .dropdown-menu .ct-notif-list .ct-notif-item { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; white-space: normal; }
.ct-notif-list .ct-notif-item .ct-avtar { width: 36px; height: 36px; border-radius: 10px; }
.ct-notif-list .ct-notif-item .ct-avtar .material-icons { margin: 0; font-size: 18px; color: inherit; } /* app.min.css greys and offsets every .dropdown-item i */
.ct-notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ct-notif-list .ct-notif-msg { font-size: 13px; line-height: 1.45; font-weight: 400; color: var(--ct-text); }
.ct-notif-list .ct-notif-time { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ct-faint); }
.ct-notif-list .ct-notif-item.unread,
body.dark .ct-notif-list .ct-notif-item.unread { background-color: rgba(var(--ct-primary-rgb), .07); } /* light enough that the tone squares still show */
.ct-notif-list .ct-notif-item.unread:hover { background-color: rgba(var(--ct-primary-rgb), .12); }
.ct-notif-list .ct-notif-item.unread .ct-notif-msg { font-weight: 500; color: var(--ct-heading); }
.ct-notif-list .ct-notif-item.unread .ct-notif-time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ct-accent); }
.ct-notif-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; text-align: center; color: var(--ct-muted); }
.ct-notif-empty .material-icons { font-size: 30px; color: var(--ct-faint); margin-bottom: 4px; }
.ct-notif-foot { display: block; margin-top: 6px; padding: 11px 12px; border-top: 1px solid var(--ct-border); text-align: center; font-size: 13px; font-weight: 500; color: var(--ct-primary-ink); }
.ct-notif-foot:hover { background-color: var(--ct-hover); color: var(--ct-primary-ink); }

/* Notifications page: day headings over the list rows; items new on this visit tinted like in the bell. */
.ct-notif-day { margin: 18px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-faint); }
.ct-notif-day:first-child { margin-top: 12px; }
.ct-notif-page .ct-list-row.is-unread { margin: 0 -12px 4px; padding-left: 12px; padding-right: 12px; border-radius: 8px; background-color: rgba(var(--ct-primary-rgb), .07); border-bottom-color: transparent; }
.ct-notif-page .ct-list-row.is-unread .ct-list-text { color: var(--ct-heading); font-weight: 500; }

/* ===================================================================== Page header (breadcrumb + title) */
.ct-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0 0 4px; padding: 0; list-style: none; font-size: 13px; }
.ct-breadcrumb li { display: inline-flex; align-items: center; color: var(--ct-muted); }
.ct-breadcrumb li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin: 0 9px 0 5px;
	border: solid var(--ct-faint);
	border-width: 0 1.4px 1.4px 0;
	transform: rotate(-45deg);
}
.ct-breadcrumb a { color: var(--ct-muted); }
.ct-breadcrumb a:hover { color: var(--ct-primary-ink); }
.ct-breadcrumb [aria-current] { color: var(--ct-heading); opacity: .8; }

.content-header { margin: 0 0 24px; gap: 12px 20px; flex-wrap: wrap; }
.content-header .content-title,
.content-header h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--ct-heading) !important; margin: 0; }
.content-header p { margin: 4px 0 0; color: var(--ct-muted); }

/* ===================================================================== Cards */
.card,
body.dark .card {
	margin-bottom: 24px;
	background-color: var(--ct-surface);
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius);
	box-shadow: var(--ct-shadow);
	color: var(--ct-text);
}
.card:hover { transform: none; box-shadow: var(--ct-shadow); }
.card-header,
body.dark .card-header {
	padding: 18px 24px;
	background-color: transparent;
	border-bottom: 1px solid var(--ct-border);
}
.card-header:first-child { border-radius: calc(var(--ct-radius) - 1px) calc(var(--ct-radius) - 1px) 0 0; }
.card-header h4, .card-header h5, .card-header .card-title { margin-bottom: 0; font-size: 16px; font-weight: 600; }
.card-body { padding: 24px; }
.card-body > .card-title:first-child,
.card-body > h4.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
/* A card whose body opens with its title (the report templates) gets Light Able's header strip: the title pulled to
   the card's edges with a divider under it, same as a real .card-header. Margins mirror the body padding. */
.card > .card-body > h4.card-title:first-child {
	margin: -24px -24px 24px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--ct-border);
	line-height: 1.4;
}
.card-footer,
body.dark .card-footer { padding: 14px 24px; background-color: transparent; border-top: 1px solid var(--ct-border); }
.card.card-body { padding: 22px 24px; }

/* Stat tiles (dashboard, reports): an icon square, a big number, a caption. */
.icontext { align-items: center; gap: 16px; }
.icontext .icon { margin-right: 0; }
.icontext .icon.icon-sm {
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--ct-radius) !important;
	line-height: 1 !important;
}
.icontext .icon .material-icons { font-size: 26px; }
/* Stat tiles in a row line up to the tallest one, as in Lightable */
.row > [class*="col-"] > .card.card-body.mb-4:only-child:has(> .icontext) { height: calc(100% - 1.5rem); }
/* app.min.css is purged to the classes the old templates used; Bootstrap's 8/4 split at xl went with it. */
@media (min-width: 1200px) {
	.col-xl-4 { flex: 0 0 auto; width: 33.33333%; }
	.col-xl-8 { flex: 0 0 auto; width: 66.66667%; }
}

/* Lightable dashboard pieces ---------------------------------------------------------------- */
/* Columns in a .ct-row-fill row end level: each column's last card stretches to the tallest column. */
.ct-row-fill > [class*="col-"] { display: flex; flex-direction: column; }
.ct-row-fill > [class*="col-"] > .card:last-child { flex: 1 1 auto; }
.ct-row-fill .card-body:has(> .ct-chart-box) { display: flex; flex-direction: column; }
.ct-chart-box { position: relative; flex: 1 1 auto; min-height: 300px; }
/* Report charts (fixed 280px box, custom.css) take any extra height their stretched card gets, never less. */
.ct-row-fill .card-body:has(> .ct-prod-chart) { display: flex; flex-direction: column; }
.ct-row-fill .card-body > .ct-prod-chart { flex: 1 0 auto; }

/* Statistics card: title, a light number with a share badge, a caption, a progress bar, line art in the corner. */
.ct-stat-card { position: relative; overflow: hidden; height: calc(100% - 24px); }
.ct-stat-card .card-body { position: relative; padding: 24px; }
.ct-stat-art { position: absolute; top: 0; right: 0; width: 145px; max-width: 55%; pointer-events: none; user-select: none; }
.ct-stat-title { position: relative; margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--ct-heading); }
.ct-stat-value { font-size: 28px; font-weight: 300; line-height: 1.2; color: var(--ct-heading); font-variant-numeric: tabular-nums; }
.ct-stat-caption { margin: 14px 0 10px; font-size: 12px; color: var(--ct-muted); }
.ct-stat-card-brand,
body.dark .ct-stat-card-brand { background: linear-gradient(120deg, #0e6b41 0%, #12804e 55%, #1a9a60 100%); border-color: transparent; box-shadow: 0 10px 24px rgba(var(--ct-primary-rgb), .28); }
.ct-stat-card-brand .ct-stat-title,
.ct-stat-card-brand .ct-stat-value { color: #fff; }
.ct-stat-card-brand .ct-stat-caption { color: rgba(255, 255, 255, .88); }
.ct-stat-card-brand .ct-progress { background: rgba(255, 255, 255, .22); }
.ct-stat-card-brand .ct-progress .progress-bar,
body.dark .ct-stat-card-brand .ct-progress .progress-bar { background: #fff; }

/* Any Bootstrap progress bar (e.g. Workload's load column) in the skin's rounded track and tones, not stock Bootstrap. */
.progress { border-radius: 99px; background-color: var(--ct-hover); }
body.dark .progress { background-color: var(--ct-surface-2); }
.progress > .progress-bar { border-radius: 99px; }
.progress > .progress-bar.bg-success { background-color: var(--ct-accent) !important; }
.progress > .progress-bar.bg-warning { background-color: var(--ct-warning) !important; }
.progress > .progress-bar.bg-danger  { background-color: var(--ct-danger) !important; }

.ct-progress { height: 7px; border-radius: 99px; background: var(--ct-hover); box-shadow: none; overflow: hidden; }
body.dark .ct-progress { background: var(--ct-surface-2); }
.ct-progress .progress-bar { border-radius: 99px; background: var(--ct-primary); }
body.dark .ct-progress .progress-bar { background: var(--ct-accent); }

/* Soft tone chips: badges and 40px icon squares (Lightable's bg-light-* + avtar) */
.ct-tone-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.ct-avtar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; }
.ct-avtar .material-icons { font-size: 20px; line-height: 1; }
.ct-tone-success { background: var(--ct-primary-tint); color: var(--ct-primary-ink); }
.ct-tone-warning { background: var(--ct-warning-tint); color: var(--ct-warning-ink); }
.ct-tone-danger  { background: var(--ct-danger-tint);  color: var(--ct-danger-ink); }
.ct-tone-info    { background: var(--ct-info-tint);    color: var(--ct-info-ink); }
.ct-tone-violet  { background: var(--ct-violet-tint);  color: var(--ct-violet-ink); }
.ct-tone-neutral { background: var(--ct-neutral-tint); color: var(--ct-neutral-ink); }

/* List rows (Lightable "Recent users"): icon or avatar, text, meta on the right, hairline between rows */
.ct-list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ct-border); }
.ct-list-row:last-child { border-bottom: 0; }
.ct-list-row h6 { font-size: 14px; font-weight: 600; color: var(--ct-heading); }
.ct-list-row > img.rounded-circle { flex: none; width: 40px; height: 40px; object-fit: cover; }
.ct-list-body { flex: 1 1 auto; min-width: 0; }
.ct-list-text,
body.dark .ct-list-text { display: block; font-size: 13px; line-height: 1.45; color: var(--ct-text); }
a.ct-list-text:hover { color: var(--ct-primary-ink) !important; }
.ct-list-meta { margin-top: 2px; font-size: 12px; color: var(--ct-faint); }
.ct-list-time { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ct-faint); white-space: nowrap; }
.ct-list-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ct-border-strong); }
.ct-list-dot.is-unread { color: var(--ct-text); }
.ct-list-dot.is-unread::before { border-color: var(--ct-accent); background: var(--ct-accent); }

/* Breakdown rows (Lightable's progress lists): label and count, the share bar underneath */
.ct-bar-row { padding: 7px 0; }
.ct-bar-row .ct-progress { height: 6px; }
.ct-bar-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ct-bar-label { min-width: 0; font-size: 13px; }
.ct-bar-count { flex: none; font-size: 13px; font-weight: 600; color: var(--ct-heading); font-variant-numeric: tabular-nums; }
.ct-bar-pct { margin-left: 4px; font-weight: 400; color: var(--ct-faint); }

.ct-card-list { padding-top: 6px; padding-bottom: 6px; }

/* Narrow-column number tables (the per-type Summary): tighter cells so every period fits without scrolling. */
.table.ct-table-compact > :not(caption) > * > * { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.card-body.p-0 .table.ct-table-compact > :not(caption) > * > :first-child { padding-left: 24px; }
.card-body.p-0 .table.ct-table-compact > :not(caption) > * > :last-child { padding-right: 24px; }

/* Section heading above a group of cards (Team/My Summary): the type's colour as a dot, the title in heading ink. */
.ct-section-title { display: flex; align-items: center; gap: 10px; margin: 24px 0 16px; font-size: 18px; font-weight: 600; color: var(--ct-heading); }
.ct-type-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 4px var(--ct-hover); }
/* A full-width list flows into two columns on wide screens; the hairline sits above each row except the top pair. */
@media (min-width: 1200px) {
	.ct-list-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
	.ct-list-grid > .ct-list-row { border-bottom: 0; border-top: 1px solid var(--ct-border); }
	.ct-list-grid > .ct-list-row:nth-child(-n+2) { border-top: 0; }
	.ct-list-grid > p { grid-column: 1 / -1; }
}
.ct-list-row.is-top { align-items: flex-start; }

.icontext .text .card-title { margin-bottom: 2px !important; font-size: 13px; font-weight: 500; color: var(--ct-muted) !important; }
.icontext .text > span { font-size: 26px; font-weight: 600; color: var(--ct-heading); line-height: 1.2; letter-spacing: -.01em; }
.icontext .ct-tile-label { margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--ct-muted); }
.icontext .ct-tile-value { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--ct-heading); }
.icontext .ct-tile-value.text-danger { color: var(--ct-danger-ink) !important; }
.icontext .ct-tile-value.text-success { color: var(--ct-primary-ink) !important; }
.icontext .text > span.text-sm,
.icontext span.text-sm { font-size: 12px; font-weight: 400; color: var(--ct-faint); letter-spacing: 0; margin-top: 2px; }

/* ===================================================================== Buttons */
.btn {
	font-family: var(--ct-font);
	font-weight: 500;
	border-radius: var(--ct-radius-sm);
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn.rounded { border-radius: var(--ct-radius-sm) !important; }
.btn.btn-primary,
.btn-brand,
body.dark .btn.btn-primary,
body.dark .btn-brand {
	padding: 9px 20px;
	color: #fff;
	background-color: var(--ct-primary);
	border: 1px solid var(--ct-primary);
	box-shadow: 0 1px 2px rgba(var(--ct-primary-rgb), .25);
}
.btn.btn-primary:hover,
.btn.btn-primary:focus-visible,
.btn-brand:hover,
.btn-brand:focus-visible { color: #fff; background-color: var(--ct-primary-hover); border-color: var(--ct-primary-hover); }
.btn.btn-primary.btn-sm,
.btn-brand.btn-sm { padding: 5px 12px; }
.btn.btn-icon.btn-brand,
.btn.btn-icon.btn-danger { padding: 4px 7px; }
/* Row actions in tables: Lightable's soft 32px icon buttons, side by side */
.table td.text-end { white-space: nowrap; }
.table .btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0 !important; border: 0; box-shadow: none; vertical-align: middle; }
.table .btn-icon i { font-size: 16px; line-height: 1; vertical-align: 0; }
.table .btn-icon.btn-brand { background: var(--ct-primary-tint); color: var(--ct-primary-ink); }
.table .btn-icon.btn-danger { background: var(--ct-danger-tint); color: var(--ct-danger-ink); }
.table .btn-icon.btn-brand:hover,
.table .btn-icon.btn-brand:focus-visible { background: var(--ct-primary); color: #fff; }
.table .btn-icon.btn-danger:hover,
.table .btn-icon.btn-danger:focus-visible { background: var(--ct-danger); color: #fff; }
.btn-light,
body.dark .btn-light {
	color: var(--ct-text);
	background-color: var(--ct-surface);
	border: 1px solid var(--ct-border-strong);
	padding: 8px 16px;
}
.btn-light:hover,
body.dark .btn-light:hover { color: var(--ct-primary-ink) !important; background-color: var(--ct-primary-tint); border-color: rgba(var(--ct-primary-rgb), .45); }
.btn-light i, .btn-light:hover i, body.dark .btn-light i { color: inherit; }
.btn-light.btn-sm { padding: 5px 12px; }
.btn-outline-primary { color: var(--ct-primary-ink); border-color: rgba(var(--ct-primary-rgb), .55); background: transparent; }
.btn-outline-primary:hover,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary { color: #fff; background-color: var(--ct-primary); border-color: var(--ct-primary); }
.btn-outline-secondary { color: var(--ct-muted); border-color: var(--ct-border-strong); }
.btn-outline-secondary:hover { color: var(--ct-heading); background: var(--ct-hover); border-color: var(--ct-border-strong); }
.btn-danger { background-color: var(--ct-danger); border-color: var(--ct-danger); color: #fff; }
.btn-danger:hover { background-color: #b91c1c; border-color: #b91c1c; }
.btn-outline-danger { color: var(--ct-danger); border-color: rgba(220, 38, 38, .5); }
.btn-outline-danger:hover { color: #fff; background: var(--ct-danger); border-color: var(--ct-danger); }
.btn-secondary,
.btn.btn-secondary { padding: 9px 20px; background-color: #5b6b79; border: 1px solid #5b6b79; }
.btn-link { color: var(--ct-primary-ink); }
.btn-icon:hover { background-color: var(--ct-hover); }
.btn:focus-visible { outline: 2px solid var(--ct-accent); outline-offset: 2px; box-shadow: none; }
body.dark .btn-outline-primary,
body.dark .btn-outline-secondary,
body.dark .btn-link { color: var(--ct-primary-ink); }
body.dark .btn-outline-secondary { color: var(--ct-text); }
body.dark .btn-outline-primary:hover,
body.dark .btn-outline-primary.active { color: #fff; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn:first-child { border-radius: var(--ct-radius-sm) 0 0 var(--ct-radius-sm); }
.btn-group > .btn:last-child { border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0; }

/* ===================================================================== Forms */
.form-control,
.form-select,
body.dark .form-control,
body.dark .form-select {
	min-height: 42px;
	padding: 9px 14px;
	font-size: 14px;
	color: var(--ct-text);
	background-color: var(--ct-surface);
	border: 1px solid var(--ct-border-strong);
	border-radius: var(--ct-radius-sm);
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
}
.form-select { padding-right: 36px; }
/* The dropdown chevron, focused or not. app.min.css has `.form-select:focus{background:0 0}`, a shorthand that resets
   background-repeat, so on focus the arrow tiled across the field (dark) or vanished (light). Spelled out here for
   both states; multi-line selects keep no arrow. The dark chevron is light grey so it shows on the dark surface. */
.form-select:not([multiple]):not([size]),
.form-select:not([multiple]):not([size]):focus {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235b6b79' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 12px;
}
body.dark .form-select:not([multiple]):not([size]),
body.dark .form-select:not([multiple]):not([size]):focus { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a3afbd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
/* Every select inside .ct-select-wrap is a .form-select and draws the arrow above; the wrapper's own ::after arrow
   (app.min.css) sat on top of it at a different size and colour. */
.ct-select-wrap::after, body.dark .ct-select-wrap::after { content: none; }
textarea.form-control { min-height: 0; }
.form-control-sm, .form-select-sm,
body.dark .form-control-sm, body.dark .form-select-sm { min-height: 34px; padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.form-select-sm { padding-right: 30px; }
.form-control::placeholder { color: var(--ct-faint); }
.form-control:focus,
.form-select:focus,
body.dark .form-control:focus,
body.dark .form-select:focus {
	background-color: var(--ct-surface);
	border-color: var(--ct-primary);
	box-shadow: 0 0 0 3px rgba(var(--ct-primary-rgb), .15);
	color: var(--ct-heading);
}
.form-control:disabled, .form-control[readonly] { background-color: var(--ct-surface-2); }
.form-label { margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ct-heading); }
.form-text { color: var(--ct-muted); }
.form-check-input,
body.dark .form-check-input { border: 1px solid var(--ct-border-strong); background-color: var(--ct-surface); }
.form-check-input:checked,
body.dark .form-check-input:checked { background-color: var(--ct-primary); border-color: var(--ct-primary); }
.form-check-input:focus { border-color: var(--ct-primary); box-shadow: 0 0 0 3px rgba(var(--ct-primary-rgb), .15); }
.form-switch .form-check-input:focus:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280,0,0,.25%29'/%3e%3c/svg%3e"); }
.input-group > .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-text { background: var(--ct-surface-2); border-color: var(--ct-border-strong); color: var(--ct-muted); }
.ct-field > label, .ct-field-label, .ct-views-label { color: var(--ct-muted); }
.ct-field > .ct-switch-box,
body.dark .ct-field > .ct-switch-box { min-height: 42px; border: 1px solid var(--ct-border-strong); border-radius: var(--ct-radius-sm); background: var(--ct-surface); }
body.dark .ct-field > label, body.dark .ct-field-label, body.dark .ct-views-label { color: var(--ct-muted); }

/* ===================================================================== Tables */
.table,
body.dark .table {
	--bs-table-bg: transparent;
	--bs-table-hover-bg: var(--ct-hover);
	--bs-table-hover-color: var(--ct-heading);
	--bs-table-accent-bg: transparent;
	color: var(--ct-text);
	border-color: var(--ct-border);
}
body.dark table { color: var(--ct-text) !important; }
.table > :not(caption) > * > * { padding: 12px 16px; border-bottom-width: 0; vertical-align: middle; }
.table > thead > tr > th,
.table thead th,
body.dark table thead th {
	padding-top: 11px;
	padding-bottom: 11px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ct-muted);
	background: var(--ct-surface-2);
	border-bottom: 1px solid var(--ct-border);
	white-space: nowrap;
}
body.dark table thead { background: transparent !important; }
.table > :not(:first-child) { border-top: 0; }
.table > :not(:last-child) > :last-child > * { border-bottom-color: var(--ct-border); } /* Bootstrap paints the head's last rule in currentColor */
.table > tbody > tr,
body.dark .table > tbody > tr { border-bottom: 1px solid var(--ct-border); }
.table > tbody > tr:last-child { border-bottom: 0; }
.table-hover > tbody > tr:hover > *,
body.dark .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: var(--ct-hover); --bs-table-bg-state: var(--ct-hover); color: var(--ct-heading); }
.card-body.p-0 > .table thead th:first-child,
.card-body.p-0 > .table-responsive > .table thead th:first-child { padding-left: 24px; }
.card-body.p-0 > .table td:first-child,
.card-body.p-0 > .table-responsive > .table td:first-child { padding-left: 24px; }
.table a:not(.btn):not(.badge) { font-weight: 500; }
.table-responsive { border-radius: var(--ct-radius-sm); }

/* ===================================================================== Badges + alerts */
.badge { padding: .45em .8em; font-weight: 600; font-size: 11.5px; letter-spacing: .01em; border-radius: 6px; }
.badge.rounded-pill { border-radius: 999px !important; }
.badge.alert-success, .alert-success   { --ct-b-bg: var(--ct-primary-tint); --ct-b-ink: var(--ct-primary-ink); }
.badge.alert-danger, .alert-danger     { --ct-b-bg: var(--ct-danger-tint);  --ct-b-ink: var(--ct-danger-ink); }
.badge.alert-warning, .alert-warning   { --ct-b-bg: var(--ct-warning-tint); --ct-b-ink: var(--ct-warning-ink); }
.badge.alert-info, .alert-info         { --ct-b-bg: var(--ct-info-tint);    --ct-b-ink: var(--ct-info-ink); }
.badge.alert-primary, .alert-primary   { --ct-b-bg: var(--ct-violet-tint);  --ct-b-ink: var(--ct-violet-ink); }
.badge.alert-secondary, .alert-secondary { --ct-b-bg: var(--ct-neutral-tint); --ct-b-ink: var(--ct-neutral-ink); }
.badge.alert-dark, .alert-dark         { --ct-b-bg: var(--ct-dark-tint);    --ct-b-ink: var(--ct-dark-ink); }
.badge[class*="alert-"] { background-color: var(--ct-b-bg); color: var(--ct-b-ink); border: 0; }
.alert[class*="alert-"] {
	background-color: var(--ct-b-bg);
	color: var(--ct-b-ink);
	border: 0;
	border-left: 3px solid currentColor;
	border-radius: var(--ct-radius-sm);
	padding: 12px 16px;
}
.alert[class*="alert-"] a { color: inherit; font-weight: 600; text-decoration: underline; }
.badge.bg-primary { background-color: var(--ct-primary) !important; color: #fff; }
.badge.bg-success { background-color: var(--ct-primary) !important; }
.badge.bg-danger { background-color: var(--ct-danger) !important; }
.badge.bg-warning { background-color: #f59e0b !important; color: #3b2300; }
.ct-tab-count { background: rgba(var(--ct-primary-rgb), .12); color: inherit; }
.btn-brand .ct-tab-count, .btn-primary .ct-tab-count { background: rgba(255, 255, 255, .25); }
.ct-tab-count-alert { background: var(--ct-danger); color: #fff; }

/* ===================================================================== Pagination, tabs, lists */
.pagination-area .pagination { gap: 4px; }
.pagination-area .page-item .page-link,
body.dark .pagination-area .page-link {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ct-text);
	background: var(--ct-surface);
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius-sm) !important;
}
.pagination-area .page-item.active .page-link,
.pagination-area .page-item:hover .page-link,
body.dark .pagination-area .page-item.active .page-link,
body.dark .pagination-area .page-item:hover .page-link { color: #fff; background: var(--ct-primary); border-color: var(--ct-primary); }
.pagination-area .page-item.disabled .page-link { opacity: .5; background: transparent; }
.pagination-area .page-item .page-link.dot { border: 0; background: transparent; }
.page-link .material-icons { font-size: 18px; }
.pagination .page-link { color: var(--ct-text); border-color: var(--ct-border); background: var(--ct-surface); }
.pagination .page-item.active .page-link { background: var(--ct-primary); border-color: var(--ct-primary); color: #fff; }

.nav-tabs { border-bottom: 1px solid var(--ct-border); gap: 4px; }
.nav-tabs .nav-link { color: var(--ct-muted); font-weight: 500; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 14px; }
.nav-tabs .nav-link:hover { color: var(--ct-heading); border-color: transparent; }
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link { color: var(--ct-primary-ink); background: transparent; border-bottom-color: var(--ct-primary); }
.nav-pills .nav-link,
body.dark .nav-pills .nav-link { color: var(--ct-muted); border-radius: var(--ct-radius-sm); }
.nav-pills .nav-link:hover,
body.dark .nav-pills .nav-link:hover { color: var(--ct-heading); background-color: var(--ct-hover); }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
body.dark .nav-pills .nav-link.active { color: var(--ct-primary-ink); background-color: var(--ct-primary-tint); }
.list-group-item { background: var(--ct-surface); border-color: var(--ct-border); color: var(--ct-text); }

/* ===================================================================== Modal, popover, tooltip */
.modal-content,
body.dark .modal-content { background-color: var(--ct-surface); color: var(--ct-text); border: 1px solid var(--ct-border); border-radius: 16px; box-shadow: var(--ct-shadow-lg); }
.modal-header,
.modal-footer,
body.dark .modal-header,
body.dark .modal-footer { padding: 18px 24px; border-color: var(--ct-border); }
.modal-body { padding: 24px; }
.modal-title,
body.dark .modal-title { font-weight: 600; color: var(--ct-heading); }
.modal-backdrop.show { opacity: .4; }
.popover { border-color: var(--ct-border); border-radius: var(--ct-radius-sm); box-shadow: var(--ct-shadow-lg); font-family: var(--ct-font); }
body.dark .popover { --bs-popover-bg: var(--ct-surface-2); --bs-popover-body-color: var(--ct-text); --bs-popover-border-color: var(--ct-border); }

/* ===================================================================== Dashboard bits */
.verti-timeline { border-left: 2px dashed var(--ct-border); margin: 0 0 0 10px; padding: 0; }
.verti-timeline .event-list { position: relative; padding: 0 0 18px 26px; }
.verti-timeline .event-list:last-child { padding-bottom: 0; }
.verti-timeline .event-list .event-timeline-dot { position: absolute; left: -9px; top: 2px; font-size: 0; }
.verti-timeline .event-list .event-timeline-dot::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--ct-surface); border: 3px solid var(--ct-border-strong); }
.verti-timeline .event-list.active .event-timeline-dot::before { border-color: var(--ct-accent); box-shadow: 0 0 0 4px rgba(var(--ct-primary-rgb), .12); }
.verti-timeline .event-list .event-timeline-dot i { display: none; }
.verti-timeline .event-list h6 { margin: 0 0 2px; font-size: 12px; font-weight: 500; color: var(--ct-faint); }
.verti-timeline .event-list h6 i { display: none !important; } /* beats the markup's .d-inline-block */
.verti-timeline .media { display: block; }
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; min-width: 0; }
.media img.rounded-circle { width: 36px; height: 36px; object-fit: cover; }

/* ===================================================================== Feature colour accents (custom.css used teal/Nest green) */
.ct-hand { stroke: var(--ct-accent); }
.ct-clock-face { stroke: var(--ct-heading); }
body.dark .ct-clock-face { stroke: var(--ct-muted); }
.ct-time-total, .ct-time-task, .ct-time-entry-when { color: var(--ct-heading); }
.ct-time-start, .ct-act-filter .btn.active, .ct-nc-selected a { background: var(--ct-primary); border-color: var(--ct-primary); }
.ct-nc-selected a:hover { background: var(--ct-primary-hover); }
.ct-time-msg, .ct-time-entry.running .ct-time-entry-dur, .ct-note-status-ok { color: var(--ct-primary-ink); }
.ct-time-entries, .ct-time-entry { border-color: var(--ct-border); }
.ct-act { border-color: var(--ct-border); }
.ct-act-dot::before, .ct-nc-dot { background: var(--ct-accent); box-shadow: 0 0 0 3px rgba(var(--ct-primary-rgb), .16); }
.ct-nc-selected .ct-nc-dot { background: #fff; box-shadow: none; }
.ct-nc-today a { box-shadow: inset 0 0 0 1px var(--ct-primary); }
.ct-nc-grid td a { color: var(--ct-text); }
.ct-nc-grid td a:hover { background: var(--ct-primary-tint); }
.ct-nc-grid td.ct-nc-selected a,
.ct-nc-grid td.ct-nc-selected a:hover { color: #fff; background: var(--ct-primary); }
.ct-mention, .ct-note-chip { background: var(--ct-primary-tint); color: var(--ct-primary-ink); }
.ct-note-chip:hover { background: rgba(var(--ct-primary-rgb), .22); }
.ct-mention-menu, body.dark .ct-mention-menu { background: var(--ct-surface); border-color: var(--ct-border); border-radius: var(--ct-radius-sm); box-shadow: var(--ct-shadow-lg); }
.ct-mention-menu li.active, .ct-mention-menu li:hover { background: var(--ct-primary-tint); }
.ct-note-entry, .ct-note-result, .ct-tasknotes li, .ct-att, .ct-myday-task, .ct-myday-events { border-color: var(--ct-border); }
.ct-note-time { color: var(--ct-heading); }
.ct-att-thumb, body.dark .ct-att-thumb { background: var(--ct-surface-2); border-radius: var(--ct-radius-sm); }
.ct-myday-stat, body.dark .ct-myday-stat { background: var(--ct-primary-tint); border-radius: var(--ct-radius); padding: 14px 16px; }
.ct-myday-num, body.dark .ct-myday-num { color: var(--ct-primary-ink); font-size: 22px; font-weight: 600; }
.ct-myday-spent .material-icons, .ct-myday-ev-time .material-icons, body.dark .ct-myday-spent .material-icons { color: var(--ct-primary-ink); }
.ct-myday-task { border-radius: var(--ct-radius); background: var(--ct-surface); }
.ct-ext-link:hover, a.ct-count-chip:hover, .ct-preview-toggle:hover, .ct-preview-toggle:focus-visible, .ct-footer-links a:hover { color: var(--ct-primary-ink); }
.ct-preview-row > td { background: var(--ct-primary-tint); }
.ct-inline-select:focus-visible, a.ct-prod-tile-link:focus-visible { outline-color: var(--ct-accent); }
.ct-prod-tile .icontext span.ct-prod-tile-more { color: var(--ct-primary-ink); }
a.ct-prod-tile-link:hover { box-shadow: var(--ct-shadow-lg); }
.ct-trend-grid td.ct-heat-1 { background: rgba(var(--ct-primary-rgb), .1); }
.ct-trend-grid td.ct-heat-2 { background: rgba(var(--ct-primary-rgb), .24); }
.ct-trend-grid td.ct-heat-3 { background: rgba(var(--ct-primary-rgb), .45); }
.ct-trend-grid td.ct-heat-4 { background: rgba(var(--ct-primary-rgb), .8); }
@keyframes ct-flash-ok { from { background-color: rgba(var(--ct-primary-rgb), .3); } to { background-color: transparent; } }

/* Kanban (My Board), in Light Able's task-list look: soft grey column panels with white cards, each column keyed to
   its status colour (top bar, dot, count, drop outline), quiet meta lines with small icons, a compact action row. */
.ct-kanban-board { gap: 16px; padding-bottom: 12px; }
[data-col-status="open"]                     { --kb: #0284c7; }
[data-col-status="in_progress"]              { --kb: #d97706; }
[data-col-status="peer_review"]              { --kb: #7c5cff; }
[data-col-status="awaiting_files"]           { --kb: #ea580c; }
[data-col-status="awaiting_feedback"]        { --kb: #e11d48; }
[data-col-status="waiting_for_it"]           { --kb: #64748b; }
[data-col-status="waiting_scheduled_launch"] { --kb: #0891b2; }
[data-col-status="closed"]                   { --kb: #12804e; }
[data-col-status="cancelled"]                { --kb: #94a3b8; }
body.dark [data-col-status="closed"]         { --kb: #3ecf8e; }

.ct-kanban-col,
body.dark .ct-kanban-col,
.ct-team-row:not(.ct-team-head) .ct-team-cell,
body.dark .ct-team-row:not(.ct-team-head) .ct-team-cell {
	flex-basis: 284px;
	width: 284px;
	background: var(--ct-kb-col-bg, #eef2f6);
	border: 1px solid var(--ct-border);
	border-radius: var(--ct-radius);
}
body.dark { --ct-kb-col-bg: #161d25; }
.ct-kanban-col,
body.dark .ct-kanban-col { border-top: 3px solid var(--kb, var(--ct-faint)); }
.ct-team-head .ct-team-cell,
body.dark .ct-team-head .ct-team-cell { flex-basis: 284px; width: 284px; background: var(--ct-surface); border: 1px solid var(--ct-border); border-top: 3px solid var(--kb, var(--ct-faint)); border-radius: var(--ct-radius-sm); }

.ct-kanban-col-header,
body.dark .ct-kanban-col-header { padding: 14px 14px 10px; font-size: 14px; color: var(--ct-heading); border-bottom: 0; }
.ct-team-head .ct-kanban-col-header { padding: 10px 12px; }
.ct-kanban-col-name,
.ct-team-head .ct-kanban-col-header > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ct-kanban-col-name::before,
.ct-team-head .ct-kanban-col-header > span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kb, var(--ct-faint)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kb, var(--ct-faint)) 18%, transparent); }
.ct-kanban-count,
body.dark .ct-kanban-count { min-width: 24px; padding: 2px 8px; border-radius: 99px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--kb, var(--ct-primary-ink)); background: color-mix(in srgb, var(--kb, var(--ct-primary)) 14%, transparent); }
.ct-lane-count { --kb: var(--ct-primary-ink); }
.ct-kanban-col-tools { gap: 2px; }
.ct-kanban-add, .ct-kanban-sort-wrap, .ct-kanban-hide { width: 26px; height: 26px; border-radius: 6px; color: var(--ct-faint); }
.ct-kanban-hide { display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 18px; }
.ct-kanban-add:hover, .ct-kanban-add:focus-visible, .ct-kanban-sort-wrap:hover, .ct-kanban-sort-wrap:focus-within { color: var(--ct-primary-ink); background: var(--ct-surface); }
.ct-kanban-hide:hover, .ct-kanban-hide:focus-visible { color: var(--ct-danger-ink); background: var(--ct-danger-tint); }

.ct-kanban-col-body { gap: 10px; padding: 4px 10px 12px; border-radius: 0 0 var(--ct-radius) var(--ct-radius); }
.ct-kanban-col-over,
.ct-kanban-col-body.ct-kanban-col-over { background-color: color-mix(in srgb, var(--kb, var(--ct-primary)) 9%, transparent); outline: 2px dashed color-mix(in srgb, var(--kb, var(--ct-primary)) 55%, transparent); outline-offset: -4px; border-radius: var(--ct-radius-sm); }
.ct-kanban-empty,
body.dark .ct-kanban-empty { margin: 0; padding: 22px 12px; text-align: center; font-size: 12.5px; color: var(--ct-faint) !important; border: 1.5px dashed var(--ct-border-strong); border-radius: 10px; }
.ct-kanban-placeholder { min-height: 64px; border: 2px dashed color-mix(in srgb, var(--kb, var(--ct-primary)) 55%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--kb, var(--ct-primary)) 6%, transparent); }
.ct-kanban-more,
body.dark .ct-kanban-more { padding: 10px 14px; font-size: 12px; color: var(--ct-muted); border-top: 1px solid var(--ct-border); }

/* Card */
.ct-kanban-card,
body.dark .ct-kanban-card {
	padding: 12px 14px;
	font-size: 12.5px;
	color: var(--ct-text);
	background: var(--ct-surface);
	border: 1px solid var(--ct-border);
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(27, 46, 94, .06);
	transition: box-shadow .15s, border-color .15s, transform .15s;
}
.ct-kanban-card:hover { border-color: color-mix(in srgb, var(--kb, var(--ct-primary)) 45%, var(--ct-border)); box-shadow: 0 6px 18px rgba(27, 46, 94, .10); transform: translateY(-1px); }
body.dark .ct-kanban-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.ct-kanban-card.ct-kanban-dragging { opacity: .45; transform: rotate(1.5deg); }
.ct-kanban-card-closed { opacity: .72; }
.ct-kanban-card-closed .ct-kanban-title { color: var(--ct-muted); }

.ct-kanban-card-top { gap: 8px; margin-bottom: 6px; }
.ct-kanban-wf,
body.dark .ct-kanban-wf { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ct-faint); text-align: left; font-variant-numeric: tabular-nums; }
.ct-kanban-wflink { display: inline-flex; color: var(--ct-faint); }
.ct-kanban-wflink .material-icons { font-size: 14px; }
.ct-kanban-wflink:hover, .ct-kanban-wflink:focus-visible { color: var(--ct-primary-ink); }
.ct-kanban-card-top .badge { padding: 3px 8px; font-size: 11px; font-weight: 600; }

.ct-kanban-title,
body.dark .ct-kanban-title { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ct-heading); }
a.ct-kanban-title:hover { color: var(--ct-primary-ink); text-decoration: none; }

.ct-kanban-meta,
body.dark .ct-kanban-meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--ct-muted); }
.ct-kanban-type { min-width: 0; padding: 2px 8px; overflow: hidden; border-radius: 6px; background: var(--ct-hover); color: var(--ct-muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
body.dark .ct-kanban-type { background: var(--ct-surface-2); }
.ct-kanban-edit-link { display: inline-flex; align-items: center; gap: 3px; flex: none; font-size: 12px; font-weight: 500; color: var(--ct-muted); transition: opacity .15s, color .15s; }
.ct-kanban-edit-link .material-icons { font-size: 14px; margin: 0; }
.ct-kanban-edit-link:hover, .ct-kanban-edit-link:focus-visible { color: var(--ct-primary-ink); }
/* On a pointer device the Edit link waits until the card is hovered or focused; touch screens always show it. */
@media (hover: hover) {
	.ct-kanban-card .ct-kanban-edit-link { opacity: 0; }
	.ct-kanban-card:hover .ct-kanban-edit-link, .ct-kanban-card:focus-within .ct-kanban-edit-link { opacity: 1; }
}

.ct-kanban-due,
body.dark .ct-kanban-due { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--ct-muted); }
.ct-kanban-due .material-icons { font-size: 14px; color: var(--ct-faint); }
.ct-kanban-due-late,
body.dark .ct-kanban-due-late { color: var(--ct-danger-ink); font-weight: 600; }
.ct-kanban-due-late .material-icons { color: var(--ct-danger-ink); }
.ct-kanban-due-soon,
body.dark .ct-kanban-due-soon { color: var(--ct-warning-ink); font-weight: 600; }
.ct-kanban-due-soon .material-icons { color: var(--ct-warning-ink); }

.ct-kanban-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ct-kanban-chips,
body.dark .ct-kanban-chips { display: inline-flex; gap: 10px; margin: 0; color: var(--ct-faint); }
.ct-kanban-chips .ct-count-chip { display: inline-flex; align-items: center; gap: 3px; padding: 0; background: none; font-size: 12px; color: var(--ct-muted); }
.ct-kanban-chips .material-icons { font-size: 14px; }
.ct-kanban-assignee { margin-left: auto; min-width: 0; gap: 6px; font-size: 12px; color: var(--ct-muted); }
.ct-kanban-assignee .ct-mini-avatar { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--ct-surface); }
.ct-kanban-assignee > .material-icons { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ct-hover); color: var(--ct-faint); font-size: 14px; }
.ct-kanban-assignee-name { max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.ct-kanban-actions { gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--ct-border); }
.ct-kanban-actions .form-select.ct-kanban-status-select,
body.dark .ct-kanban-actions .form-select.ct-kanban-status-select { min-height: 30px; height: 30px; padding: 3px 28px 3px 10px; font-size: 12px; color: var(--ct-text); background-color: var(--ct-surface-2); background-position: right 8px center; border-color: transparent; border-radius: 8px; }
.ct-kanban-actions .form-select.ct-kanban-status-select:hover { border-color: var(--ct-border-strong); }
.ct-kanban-actions .form-select.ct-kanban-status-select:focus { border-color: var(--ct-primary); background-color: var(--ct-surface); }
.ct-card-timer.btn { width: 30px; height: 30px; padding: 0 !important; border-radius: 8px; }
.ct-card-timer.btn-light { color: var(--ct-primary-ink); background: var(--ct-primary-tint); border-color: transparent; }
.ct-card-timer.btn-light:hover { color: #fff !important; background: var(--ct-primary); border-color: var(--ct-primary); }
.ct-card-timer .material-icons { margin: 0; }
.ct-card-timing { border-left: 3px solid var(--ct-danger); }
.ct-kanban-lock,
body.dark .ct-kanban-lock { margin-top: 12px; padding-top: 10px; width: 100%; border-top: 1px dashed var(--ct-border); font-size: 11.5px; color: var(--ct-faint); }

/* Team view */
.ct-team-lane-title, body.dark .ct-team-lane-title { --ct-lane-bg: var(--ct-bg); color: var(--ct-heading); }
.ct-team-lane-title .ct-mini-avatar { width: 28px; height: 28px; border-radius: 50%; }

/* Phones stack the board (custom.css): keep the widths above from pinning columns or Team cells to 284px. */
@media (max-width: 767.98px) {
	.ct-kanban-col, body.dark .ct-kanban-col,
	.ct-team-head .ct-team-cell, body.dark .ct-team-head .ct-team-cell,
	.ct-team-row:not(.ct-team-head) .ct-team-cell, body.dark .ct-team-row:not(.ct-team-head) .ct-team-cell { flex-basis: auto; width: auto; }
}

/* ===================================================================== Footer */
.ct-footer,
body.dark .ct-footer { padding: 18px 32px; border-top: 1px solid var(--ct-border); color: var(--ct-muted); font-size: 13px; background: transparent; }
.content-main > .ct-footer { padding: 0; }

/* ===================================================================== Sign-in, forgot, reset, legal (inc/auth.php) */
body.ct-auth {
	min-height: 100vh;
	background:
		radial-gradient(900px 500px at 0% 0%, rgba(var(--ct-primary-rgb), .12), transparent 60%),
		radial-gradient(700px 420px at 100% 100%, rgba(34, 181, 115, .10), transparent 60%),
		var(--ct-bg);
}
body.ct-auth .content-main { min-height: 100vh; margin: 0 !important; padding: 56px 16px 32px; display: flex; flex-direction: column; justify-content: center; }
body.ct-auth .content-main > .text-center img { max-width: 210px !important; }
body.ct-auth .card { width: 100%; border-radius: 16px; box-shadow: var(--ct-shadow-lg); border-color: var(--ct-border); }
body.ct-auth .card-login { max-width: 420px; }
body.ct-auth .card-body { padding: 36px 36px 28px; }
body.ct-auth .card-body > .card-title:first-child,
body.ct-auth .card-title { font-size: 22px; font-weight: 600; }
body.ct-auth .form-control { min-height: 46px; }
body.ct-auth .btn-primary { padding: 12px 20px; font-size: 15px; }
@media (max-width: 480px) {
	body.ct-auth .card-body { padding: 26px 20px 20px; }
}

/* ===================================================================== Phones + tablets */
@media (max-width: 1200px) {
	.navbar-aside { max-width: var(--ct-aside-w); }
	.main-wrap { margin-left: var(--ct-aside-w); }
	.main-wrap .content-main { padding: 8px 24px 28px; }
	.main-header, body.dark .main-header { padding: 0 24px; }
}
@media all and (max-width: 768px) {
	/* The drawer: full-height panel over the page; main.css slides it in with .show. */
	.navbar-aside { width: 284px; max-width: 86vw; box-shadow: var(--ct-shadow-lg); z-index: 1200; }
	.main-wrap { margin-left: 0 !important; }
	.main-header,
	body.dark .main-header { flex-wrap: nowrap; min-height: 64px; padding: 0 12px; gap: 8px; }
	.main-header .btn-mobile { display: inline-flex !important; order: 0; }
	.main-header .col-search { order: 1; flex: 1 1 auto; width: auto; }
	.main-header .col-nav { order: 2; width: auto; margin: 0 0 0 auto; }
	.main-header .nav { gap: 0; }
	.main-header .nav-item > a.btn-icon { width: 38px; height: 38px; }
	.ct-account-toggle { margin-left: 2px; }
	.ct-account-toggle img, .main-header .nav-item img.rounded-circle { width: 34px; height: 34px; }
	.searchform .form-control { height: 38px; }
	.main-wrap .content-main { padding: 4px 16px 24px; }
	.content-header { margin-bottom: 18px; }
	.content-header .content-title, .content-header h2 { font-size: 21px; margin-bottom: 0; }
	.card-body { padding: 18px; }
	.card-header, body.dark .card-header { padding: 14px 18px; }
	.card > .card-body > h4.card-title:first-child { margin: -18px -18px 18px; padding: 14px 18px; }
	.card.card-body { padding: 18px; }
	.icontext { gap: 12px; }
	.icontext .icon.icon-sm { width: 44px; height: 44px; }
	.icontext .text > span { font-size: 22px; }
	.ct-footer { padding: 16px; }
	.ct-notif-menu { width: min(380px, calc(100vw - 24px)); }
}
@media (max-width: 480px) {
	.main-header .searchform .form-control::placeholder { color: transparent; }
	.icontext { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.menu-aside .menu-item.has-submenu > .menu-link:after { transition: none; }
}
