/* ============================================
   TYPOGRAPHY & FONT CLASSES
   ============================================ */

.alt-font0 {
	font-family: "Poppins", sans-serif;
}

.alt-font1 {
	font-family: "Roboto", monospace;
}

.alt-font2 {
	font-family: "Roboto Condensed", sans-serif;
}

.alt-font3 {
	font-family: "Chivo Mono", monospace;
}

.alt-font4 {
	font-family: "Roboto Flex", sans-serif;
}

.alt-font5 {
	font-family: "Kanit", sans-serif;
}

/* ============================================
   MINIMUM HEIGHT UTILITIES
   ============================================ */

.mh-300 {
	min-height: 300px !important;
}

.mh-500 {
	min-height: 500px !important;
}

.mh-main-card {
	min-height: 650px !important;
}

.card-height-lg {
	min-height: 700px !important;
}

.card-height-md {
	min-height: 400px !important;
}

.card-height-sm {
	min-height: 200px !important;
}

/* ============================================
   CONTENT COMPONENTS
   ============================================ */

.content-lead {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 24px;
	font-weight: bold;
	color: var(--medium-purple-light);
	display: inline-block;
	position: relative;
	padding-left: 1.5em; /* make space for the width of the absolutely positioned icon */
}

.content-lead::before {
	color: var(--fa-primary-color, var(--medium-purple-light));
	opacity: 1;
	opacity: var(--fa-primary-opacity, 1);
}

.content-lead::after {
	color: var(--fa-secondary-color, var(--medium-purple-light-hover));
	opacity: var(--fa-secondary-opacity, 1);
}

.content-lead::before {
	content: "\e195";
}

.content-lead::after {
	content: "\e195\e195";
}

.content-lead::before {
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}

.content-lead::before,
.content-lead::after {
	font: var(--fa-font-duotone);
	display: inline-block;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1.25em;
	text-align: center;
}

.faq-lead {
	font-family: "Poppins", sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--medium-purple-light);
	text-transform: capitalize;
}

.faq-lead:before {
	font-family: "Font Awesome 7 Pro";
	content: "\f059" !important;
	font-weight: 900 !important;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	padding-right: 5px;
	color: var(--medium-purple-light);
}

/* ============================================
   MEDIA CONTAINERS
   ============================================ */

.video-container {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.video-container::after {
	padding-top: 56.25%;
	display: block;
	content: "";
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.map {
	-webkit-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	-moz-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	-ms-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	-o-filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
	filter: grayscale(100%) saturate(1) brightness(90%) contrast(100%);
}

/* ============================================
   SOCIAL MEDIA ICONS
   ============================================ */

.social-icons li:hover.social-icons-tiktok a {
	background: #030303 !important;
}

.social-media-icons {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: 15px;
}

.social-icon-desktop,
.social-icon-mobile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background-color: var(--cyber-grape);
	border: 1px solid var(--cyber-grape);
	transition: all 0.3s ease;
	text-decoration: none;
}

.social-icon-desktop:hover,
.social-icon-mobile:hover {
	background-color: var(--cyber-grape-hover);
	border-color: var(--cyber-grape-hover);
}

.social-icon-desktop .icon-theme,
.social-icon-mobile .icon-theme {
	color: var(--medium-purple-light-hover) !important;
}

.social-icon-desktop:hover .icon-theme,
.social-icon-mobile:hover .icon-theme {
	color: #fff !important;
}

.social-icon-desktop i,
.social-icon-mobile i {
	font-size: 16px;
}

/* ============================================
   ICON THEMES
   ============================================ */

.icon-theme {
	--fa-secondary-opacity: 1;
	--fa-primary-color: var(--medium-purple-light);
	--fa-secondary-color: var(--amethyst);
}

.icon-theme-reverse {
	--fa-secondary-opacity: 1;
	--fa-primary-color: var(--amethyst);
	--fa-secondary-color: var(--medium-purple-light);
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

/* Base transitions */
.sidebar-left .nav-main li a,
.sidebar-left .nav-main li a i {
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

/* Hover states */
.sidebar-left .nav-main li a:hover span,
.sidebar-left .nav-main li a:focus span,
.sidebar-left .nav-main li.nav-active > a span {
	color: var(--medium-purple-light) !important;
}

.sidebar-left .nav-main li a:hover i:not(.text-medium-purple-light) {
	color: var(--medium-purple-light) !important;
}

/* Background hover effects */
.sidebar-left .nav-main > li > a:hover,
.sidebar-left .nav-main > li > a:focus {
	background-color: rgba(173, 153, 229, 0.1);
}

.sidebar-left .nav-main li .nav-children li a:hover,
.sidebar-left .nav-main li .nav-children li a:focus {
	background-color: rgba(173, 153, 229, 0.05);
}

/* Active states */
.sidebar-left .nav-main li.nav-active > a {
	background-color: rgba(173, 153, 229, 0.08);
}

.sidebar-left .nav-main li .nav-children li.nav-active > a {
	background-color: rgba(173, 153, 229, 0.1);
}

/* ============================================
   TOOLTIPS
   ============================================ */

.tooltip {
	position: relative;
	display: inline-block;
}

.tooltip .tooltiptext {
	visibility: hidden;
	width: 140px;
	background-color: #555;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px;
	position: absolute;
	z-index: 1;
	bottom: 150%;
	left: 50%;
	margin-left: -75px;
	opacity: 0;
	transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

/* ============================================
   TABLE & AUDIT STYLES
   ============================================ */

.row-striped:nth-of-type(odd) {
	background-color: #efefef;
	min-height: 25px;
}

.row-striped:nth-of-type(even) {
	background-color: #ffffff;
	min-height: 25px;
}

.audit-row {
	transition: background-color 0.2s ease;
}

.audit-row:hover {
	background-color: rgba(0, 0, 0, 0.02) !important;
}

/* ============================================
   MISC UTILITIES
   ============================================ */

hr.blackline {
	border-top: 5px solid #030303;
}

.scroll-margin {
	width: 100%;
	scroll-margin-top: 125px;
}

#copy-popup {
	z-index: 1000; /* Ensure it is above other content */
	position: absolute; /* This is crucial */
	padding: 5px; /* Padding inside the popup */
	background: #000; /* Background color */
	color: #fff; /* Text color */
	border-radius: 5px; /* Rounded corners */
	font-size: 12px; /* Font size */
	white-space: nowrap; /* Prevent text from wrapping */
	min-width: 100px; /* Minimum width */
}

.click-to-copy-container {
	position: relative;
}

.copy-button {
	position: absolute;
	top: 10px;
	right: 10px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.custom-animation-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 10vh; /* Adjust height for banner style */
	background: black;
	margin: 0 auto; /* Center the banner horizontally */
	padding-top: 2vh; /* Add padding to bring text down */
	border-radius: 15px; /* Add rounded corners */
	max-width: 100%; /* Ensure it doesn't overflow the viewport */
}

.custom-animation-container p {
	font-family: "VT323", monospace;
	font-size: 2em;
	text-align: center;
	animation-name: example;
	animation-duration: 1s;
	animation-iteration-count: infinite;
}

@keyframes example {
	0% {
		color: lime;
		text-shadow: 0 0 20px green;
	}
	25% {
		color: green;
		text-shadow: 2px 2px 2px lime;
		transform: translate(-2px, 1px);
	}
	40% {
		color: lime;
		text-shadow: none;
		transform: translate(0, 0);
	}
	50% {
		color: green;
		text-shadow:
			5px 5px 2px blue,
			-5px -5px 2px red;
		transform: translate(0px, 5px);
	}
	70% {
		color: lime;
		text-shadow: none;
		transform: translate(0, 0);
	}
	80% {
		color: lime;
		text-shadow: 0 0 20px green;
		transform: translate(-2px, 1px);
	}
	100% {
		color: lime;
		text-shadow: none;
	}
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

/* Square borders for form controls */
.form-control,
.form-select {
	border-radius: 0 !important;
}

/* Bootstrap Timepicker Fixes */
.bootstrap-timepicker-widget table td input {
	color: #333 !important;
	background-color: #fff !important;
	border: 1px solid #ccc !important;
	width: 50px !important;
	padding: 5px !important;
	font-size: 14px !important;
	font-weight: bold !important;
}

.bootstrap-timepicker-widget table td a {
	color: #333 !important;
}

.bootstrap-timepicker-widget table td a:hover {
	background-color: #eee !important;
	color: #333 !important;
}

.bootstrap-timepicker-widget.dropdown-menu {
	background-color: #fff !important;
	border: 1px solid #ccc !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
	padding: 10px !important;
}

.bootstrap-timepicker-widget table td.separator {
	color: #333 !important;
	font-weight: bold !important;
	font-size: 16px !important;
}

/* Bootstrap 5 Tabs Primary - Improved Visibility */
/* Handle both wrapper class and direct class on ul */
.tabs-primary .nav-tabs .nav-link,
.nav-tabs.tabs-primary .nav-link {
	color: #333 !important;
	border-top: 3px solid transparent !important;
	font-weight: 500;
}

.tabs-primary .nav-tabs .nav-link:hover,
.nav-tabs.tabs-primary .nav-link:hover {
	color: var(--medium-purple-light) !important;
	border-top-color: var(--medium-purple-light) !important;
	background-color: rgba(173, 153, 229, 0.08);
}

.tabs-primary .nav-tabs .nav-link.active,
.nav-tabs.tabs-primary .nav-link.active {
	color: var(--medium-purple-light) !important;
	border-top: 3px solid var(--medium-purple-light) !important;
	border-bottom-color: #fff !important;
	background-color: #fff;
	font-weight: 600;
}

.tabs-primary .nav-tabs .nav-link i,
.nav-tabs.tabs-primary .nav-link i {
	color: inherit;
}


/* Error Message Styling */
.error-message {
	color: var(--red);
	font-weight: bold;
	font-size: 13px;
}

/* Password Input */
.password-input-wrapper {
	position: relative;
}

.password-input-wrapper input {
	padding-right: 40px;
}

.password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #6c757d;
	cursor: pointer;
	padding: 5px;
	z-index: 10;
}

.password-toggle:hover {
	color: #495057;
}

.password-toggle:focus {
	outline: 2px solid var(--hyperlink);
	outline-offset: 2px;
	border-radius: 3px;
}

.forgot-password-content-wrapper {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ============================================
   FAQ & NAVIGATION
   ============================================ */

.nav-pills .nav-link.active {
	background-color: var(--medium-purple) !important;
	border-color: var(--medium-purple) !important;
	color: #fff !important;			/* 4.82:1 */
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
	margin-bottom: 0;
}

.page-link {
	color: var(--bs-primary);
	position: relative;
	display: block;
	padding: 0.375rem 0.75rem;
	text-decoration: none;
	background-color: var(--bs-white);
	border: 1px solid var(--bs-border-color);
	transition:
		color 0.15s ease-in-out,
		background-color 0.15s ease-in-out,
		border-color 0.15s ease-in-out;
}

.page-link:hover {
	z-index: 2;
	color: var(--bs-primary);
	background-color: var(--bs-gray-200);
	border-color: var(--bs-gray-300);
}

.page-link:focus {
	z-index: 3;
	color: var(--bs-primary);
	background-color: var(--bs-gray-200);
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(0, 102, 255, 0.25);
}

.page-item.active .page-link {
	z-index: 3;
	color: var(--bs-white);
	background-color: var(--bs-primary);
	border-color: var(--bs-primary);
}

.page-item.disabled .page-link {
	color: var(--bs-gray-600);
	pointer-events: none;
	background-color: var(--bs-white);
	border-color: var(--bs-border-color);
}

.page-item:first-child .page-link {
	border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
}

.page-item:last-child .page-link {
	border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

/* ============================================
   MOBILE RESPONSIVE (max-width: 767px)
   ============================================ */

@media (max-width: 767px) {
	/* Hide desktop elements */
	.card-header > .row,
	.audit-row {
		display: none !important;
	}

	/* Login page layout */
	.content-body {
		min-height: calc(100vh - 60px) !important;
		display: flex !important;
		flex-direction: column !important;
		padding-bottom: 60px !important;
	}

	.login-content-wrapper {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Header styling */
	.header {
		min-height: 60px;
	}

	.logo-container {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 10px 15px;
		height: 100%;
	}

	.logo-container .logo {
		display: flex;
		align-items: center;
		max-width: 200px;
	}

	.logo-container .logo img {
		max-width: 100%;
		height: 35px;
		width: auto;
		object-fit: contain;
	}

	.mobile-controls {
		display: flex;
		align-items: center;
		gap: 8px;
		flex-shrink: 0;
	}

	.social-icon-mobile {
		width: 32px;
		height: 32px;
		flex-shrink: 0;
	}

	.social-icon-mobile i {
		font-size: 14px;
	}

	/* Hamburger menu */
	.toggle-sidebar-left {
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		width: 32px;
		height: 32px;
		margin-left: 5px;
	}

	.toggle-sidebar-left i {
		margin: 0 !important;
		font-size: 18px;
	}
}

/* Small screen pagination */
@media (max-width: 576px) {
	.pagination .page-link {
		padding: 0.25rem 0.5rem;
		font-size: 0.875rem;
	}
}

/* ============================================
   SENSITIVE DATA - CLICK TO REVEAL
   ============================================ */

.sensitive-data {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
}

.sensitive-data .sensitive-value {
	display: none;
}

.sensitive-data .sensitive-mask {
	display: inline;
	letter-spacing: 2px;
}

.sensitive-data.revealed .sensitive-value {
	display: inline;
}

.sensitive-data.revealed .sensitive-mask {
	display: none;
}

.sensitive-data:hover {
	opacity: 0.8;
}

.sensitive-data .sensitive-icon {
	display: inline-flex;
	align-items: center;
	margin-left: 0.5rem;
	font-size: 0.85em;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.sensitive-data:hover .sensitive-icon {
	opacity: 1;
}

.sensitive-data .sensitive-icon .fa-eye {
	display: inline;
}

.sensitive-data .sensitive-icon .fa-eye-slash {
	display: none;
}

.sensitive-data.revealed .sensitive-icon .fa-eye {
	display: none;
}

.sensitive-data.revealed .sensitive-icon .fa-eye-slash {
	display: inline;
}

/* ============================================
   AI ASSISTANT CHAT PANEL
   ============================================ */

.ai-assistant {
	position: fixed;
	bottom: 0;
	right: 20px;
	width: 420px;
	z-index: 9999;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	border-radius: 8px 8px 0 0;
	box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease;
}

/* Header bar */
#ai-assistant-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	background: var(--cyber-grape);
	color: var(--medium-purple-light-hover);	/* 6.92:1 */
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	user-select: none;
}

.ai-header-title {
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.ai-header-title i {
	margin-right: 6px;
}

.ai-header-controls {
	display: flex;
	gap: 6px;
}

.ai-control-btn {
	background: none;
	border: none;
	color: var(--medium-purple-light-hover);
	cursor: pointer;
	padding: 2px 6px;
	font-size: 13px;
	opacity: 0.7;
	transition: opacity 0.2s;
	border-radius: 3px;
}

.ai-control-btn:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.1);
}

/* Body area — hidden when collapsed */
#ai-assistant-body {
	background: #2e353e;
	display: flex;
	flex-direction: column;
	border-left: 1px solid #3a424e;
	border-right: 1px solid #3a424e;
	border-bottom: 1px solid #3a424e;
}

.ai-assistant.collapsed #ai-assistant-body {
	display: none;
}

/* Chat messages */
#ai-chat-messages {
	max-height: 400px;
	min-height: 200px;
	overflow-y: auto;
	padding: 12px 15px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ai-msg {
	display: flex;
	max-width: 88%;
}

.ai-msg-content {
	padding: 8px 12px;
	border-radius: 10px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* User messages — right-aligned */
.ai-msg-user {
	align-self: flex-end;
}

.ai-msg-user .ai-msg-content {
	background: var(--medium-purple);	/* white text 4.82:1 */
	color: #fff;
	border-bottom-right-radius: 3px;
}

/* Assistant messages — left-aligned */
.ai-msg-assistant {
	align-self: flex-start;
}

.ai-msg-assistant .ai-msg-content {
	background: #282d36;
	color: #c9ced8;			/* 8.19:1 */
	border-bottom-left-radius: 3px;
}

/* Markdown inside assistant messages */
.ai-msg-assistant .ai-msg-content p {
	margin: 0 0 8px 0;
}

.ai-msg-assistant .ai-msg-content p:last-child {
	margin-bottom: 0;
}

.ai-msg-assistant .ai-msg-content ul,
.ai-msg-assistant .ai-msg-content ol {
	margin: 4px 0;
	padding-left: 20px;
}

.ai-msg-assistant .ai-msg-content code {
	background: #1d2127;
	padding: 1px 4px;
	border-radius: 3px;
	font-size: 13px;
}

.ai-msg-assistant .ai-msg-content pre {
	background: #1e1e1e;
	color: #d4d4d4;
	padding: 10px;
	border-radius: 5px;
	overflow-x: auto;
	margin: 6px 0;
}

.ai-msg-assistant .ai-msg-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}

.ai-msg-assistant .ai-msg-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 6px 0;
	font-size: 13px;
}

.ai-msg-assistant .ai-msg-content th,
.ai-msg-assistant .ai-msg-content td {
	border: 1px solid #3a424e;
	padding: 4px 8px;
	text-align: left;
}

.ai-msg-assistant .ai-msg-content th {
	background: #282d36;
	font-weight: 600;
}

.ai-msg-assistant .ai-msg-content strong {
	font-weight: 600;
}

/* Loading dots animation */
.ai-dots span {
	display: inline-block;
	font-size: 24px;
	line-height: 1;
	animation: ai-dot-bounce 1.4s infinite ease-in-out both;
	color: #9aa1b0;
}

.ai-dots span:nth-child(1) {
	animation-delay: 0s;
}
.ai-dots span:nth-child(2) {
	animation-delay: 0.2s;
}
.ai-dots span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes ai-dot-bounce {
	0%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-6px);
	}
}

/* Input row */
#ai-input-row {
	display: flex;
	align-items: flex-end;
	padding: 10px;
	border-top: 1px solid #3a424e;
	background: #282d36;
	gap: 8px;
}

#ai-input {
	flex: 1;
	resize: none;
	border: 1px solid #3a424e;
	background: #2e353e;
	color: #c9ced8;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.2s;
	max-height: 120px;
}

#ai-input:focus {
	border-color: var(--medium-purple);
}

#ai-send-btn {
	background: var(--medium-purple);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
	flex-shrink: 0;
	height: 38px;
}

#ai-send-btn:hover {
	background: var(--medium-purple-hover);
}

#ai-send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Scrollbar styling */
#ai-chat-messages::-webkit-scrollbar {
	width: 6px;
}

#ai-chat-messages::-webkit-scrollbar-track {
	background: transparent;
}

#ai-chat-messages::-webkit-scrollbar-thumb {
	background: #4a5260;
	border-radius: 3px;
}

/* Mobile responsive */
@media (max-width: 480px) {
	.ai-assistant {
		width: calc(100% - 20px);
		right: 10px;
	}
}

/* ============================================
   THUMB-INFO CARD HEADER (domain / client / ticket cards)
   Title bar = black, type chip = dark (#212529, the bg-dark used on the
   section bars). The `html` prefix is required:
   skins/default.css sets `.thumb-info .thumb-info-type { background-color:
   #7c5cd6 }` at (0,2,0) and loads AFTER custom.css, so an equal-specificity
   rule here would lose. (0,2,1) wins regardless of order.
   ============================================ */

html .thumb-info .thumb-info-title {
	background: #000;
	color: var(--medium-purple-light); /* 6.52:1 - the identity purple, same step as
	                                 the section-bar text and the form labels */
}

html .thumb-info .thumb-info-type {
	background-color: var(
		--bs-dark
	); /* #212529 - same value as the bg-dark
										   section bars, so the card header and the
										   panel headers below it agree */
	color: #fff; /* 15.43:1 - the chip inherited #FFF from the
									   title before; set it so the pairing is explicit */
}

/* ============================================
   PLACEHOLDER COLOR UTILITIES
   theme.css sets placeholders to #bdbdbd via the vendor-prefixed selectors
   (::-webkit-input-placeholder / ::-moz-placeholder) and loads after colors.css,
   so a placeholder utility has to live here and out-specify it — hence the
   `html` prefix, and all three forms so Chrome's legacy alias is covered too.
   Add more colors by copying a block and swapping the var.
   ============================================ */

/* Each prefixed form MUST be its own rule. A browser discards an entire
   comma-separated group if it doesn't recognize ONE selector in it, so mixing
   ::placeholder with ::-webkit-input-placeholder and ::-moz-placeholder in a
   single group means Chrome throws all three away. theme.css writes them
   separately for the same reason. */

html .placeholder-amethyst-light::placeholder {
	color: var(--medium-purple-light); /* 5.57:1 on the dark field (#282d36) */
	opacity: 1;
}

html .placeholder-amethyst-light::-webkit-input-placeholder {
	color: var(--medium-purple-light);
	opacity: 1;
}

html .placeholder-amethyst-light::-moz-placeholder {
	color: var(--medium-purple-light);
	opacity: 1;
}

html .placeholder-amethyst-light-hover::placeholder {
	color: var(--medium-purple-light-hover); /* 9.90:1 — the accessible sibling */
	opacity: 1;
}

html .placeholder-amethyst-light-hover::-webkit-input-placeholder {
	color: var(--medium-purple-light-hover);
	opacity: 1;
}

html .placeholder-amethyst-light-hover::-moz-placeholder {
	color: var(--medium-purple-light-hover);
	opacity: 1;
}

/* ============================================
   TABLE HEADER LABEL
   One class for the four utilities that were being repeated on every <th>:
   text-uppercase + text-amethyst + font-weight-light + alt-font1.
   Dark mode lightens it (see dark-mode.css) - the base #a855c7 is 2.83:1 on
   a dark table row, the -light step #c58ed9 is 4.86:1.
   ============================================ */

.table-label {
	font-family: "Roboto", monospace;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--amethyst);
}

/* ============================================
   SECTION-BAR BADGE
   A status chip that lives inside a section title bar. Sized to sit INSIDE the
   bar's existing line box so it never changes the bar's height, and set in
   alt-font3 (Chivo Mono) because these are short all-caps strings and codes
   that the display face renders poorly at badge size.
   ============================================ */

.bar-badge {
	font-family: "Chivo Mono", monospace;
	font-size: 0.65rem;
	font-weight: 400;
	letter-spacing: 0.03em;
	line-height: 1;
	padding: 0.2rem 0.45rem;
	vertical-align: middle;
}

/* ============================================
   WIDE-ONLY TABLE COLUMNS
   Bootstrap's largest tier is xxl (>=1400px), which is not high enough to hide
   low-value columns on the 18.5" client-demo monitor or the shop laptops --
   those land ABOVE 1400px in CSS pixels, so `d-none d-xxl-table-cell` still
   showed them. This is the custom tier Bootstrap doesn't ship.

   Put `col-wide-only` on a <th>/<td> pair and the column is hidden until the
   viewport is at least as wide as the breakpoint below. Do NOT combine it with
   `d-none` / `d-*-table-cell` -- this class owns the column's visibility.

   TUNING: there is exactly one number to change -- the max-width below.
   Raise it to hide the columns on more screens, lower it to show them on more.
     1600px -> hides <=1440x900 and 1080p at 125% scaling (1536)
     1800px -> also hides 1680x1050  (current setting)
     2000px -> also hides every 1920x1080 laptop at 100% scaling
   Keep it below the 32" curved monitors' width (2560) or those lose the
   columns too. Check any screen's real width in the console: window.innerWidth
   ============================================ */

@media (max-width: 1799.98px) {

	.table th.col-wide-only,
	.table td.col-wide-only {
		display: none !important;
	}
}

/* ============================================
   TOUCH-ONLY COLUMN HIDING
   A 10" touchscreen at 1280x800 reports ~1280px CSS -- the same xl band as a
   half of the 32" curved monitor split-screen (~1270px). No width media query
   can tell those two apart, so this tier keys off the INPUT DEVICE instead of
   the viewport: a tablet has a coarse pointer and cannot hover, a desk monitor
   driven by a mouse has neither trait.

   Put `col-no-touch` on a <th>/<td> pair ALONGSIDE its normal `d-none
   d-*-table-cell` classes. Unlike `col-wide-only` above, this class does NOT
   own the column's visibility -- it only subtracts touch devices from whatever
   the Bootstrap tier already allows. The `.table th`/`.table td` prefix keeps
   specificity above Bootstrap's `.d-lg-table-cell`, which is itself
   `!important`.

   `pointer: coarse` reflects the PRIMARY input, so a touchscreen laptop driven
   by its trackpad stays `fine` and keeps the column. `hover: none` is the
   second guard: pair a mouse with a tablet and the column comes back.
   ============================================ */

@media (hover: none) and (pointer: coarse) {

	.table th.col-no-touch,
	.table td.col-no-touch {
		display: none !important;
	}
}

/* ==========================================================================
   CMS Forms (includes/forms/_form-engine.php)
   ========================================================================== */

/* Breathing room wherever a form is embedded (contact page, form pages).
   The bottom gap matters most on mobile, where the form stacks directly on
   top of the next block of content. */
.cms-form-wrap {
	padding-top: 0.5rem;
	padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
	.cms-form-wrap {
		padding-bottom: 1rem;
	}
}

/* Honeypot - kept out of sight of people, still visible to bots */
.cms-form-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cms-form .form-label {
	color: #030303;
	/* Set here, not left to the engine's font-weight-semi-bold class: dashboards' admin theme does not define it,
	   so labels rendered at normal weight there (2026-10-01). 600 = the website theme's semi-bold. */
	font-weight: 600;
}

/* A single checkbox FIELD ("I agree to the refund policy") is a field label too, but the engine renders
   it as a .form-check-label at normal weight and without the required asterisk. It is the first thing in
   its column, while radio / checkbox OPTIONS always follow the field's .form-label - so :first-child
   picks out the field and leaves options alone (cms-form-checkbox-field, 2026-10-01). */
.cms-form [class*="col"] > .form-check:first-child .form-check-label {
	font-weight: 600;
}
.cms-form [class*="col"] > .form-check:first-child .form-check-input[required] + .form-check-label::after {
	content: " *";
	color: #dc3545;
}

.cms-form .form-text {
	color: #6c757d;
}

/* Porto resets some Bootstrap form sizing - keep controls consistent */
.cms-form .form-control,
.cms-form .form-select {
	padding: 0.5rem 0.75rem;
}

/* Agreement / consent text above a form's submit button (_formAgreement) */
.cms-form-agreement {
	padding: 1rem 1.15rem;
	border-left: 3px solid #c92927;
	background: #f7f7f7;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* Section heading inside a long form (_formHeadings). Deliberately theme-neutral:
   it inherits the site's heading font and color rather than naming a brand color,
   because this block is copied verbatim onto every site. */
.cms-form-heading {
	margin: 1.75rem 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #dee2e6;
	font-size: 1.25rem;   /* larger than body text - house rule 2026-09-23; the engine also adds .fs-5 + .text-primary */
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* No gap above the first heading - it already sits at the top of the form */
.cms-form .row > .col-12:first-child .cms-form-heading {
	margin-top: 0;
}

/* Privacy / do-not-send warning above a form's fields (_formIntro). Deliberately
   louder than .cms-form-agreement: that one is consent text people are expected to
   skim, this one has to be read BEFORE they start typing. Same red as the agreement
   rule so the two read as one family.
   Added 2026-08-28 after real submissions arrived carrying dates of birth and medical
   detail on a clinic's contact form. */
.cms-form-notice {
	/* A top margin as well as a bottom one: this block is used BOTH above a form
	   (_formIntro) and below an input as a field description, where without it the
	   card butts straight against the radio buttons it explains. Reported on
	   lsbbqcatering's Catering Package field, 2026-09-01. */
	margin-top: 0.85rem;
	margin-bottom: 1.25rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid #c92927;
	border-left-width: 4px;
	border-radius: 3px;
	background: #fdf3f3;
	color: #8c1d1c;
	font-size: 0.9rem;
	line-height: 1.6;
}
.cms-form-notice p:last-child { margin-bottom: 0; }
.cms-form-notice strong { color: #a51f1e; }

/* Domain profile tool buttons - domain-registration.php.
   Two rows on a 6-track grid: GIT | DNS | SITEMAP (a third each), then CLAUDE PROJECT | WEBSITE (half each). */
.domain-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.domain-tools-grid > .btn {
	white-space: nowrap;
}

/* Important Notice messages are WYSIWYG and arrive wrapped in <p>; keep the theme's p color from overriding the alert text color */
.alert p,
.alert li {
	color: inherit;
}

/* The notification preview shows an email the way a mail client does. Bootstrap's reboot
   collapses table borders, which switches off the template's rounded card and its padding. */
#preview_message table {
	border-collapse: separate;
}

/* Form bars: the section titles inside a form (edit forms, Register at the Gate, check-ins). A solid bar
   beside the form's solid buttons read as one more long button, so a form bar is a light tint of its
   color, a colored left edge and colored text, with no icon (Kenny, 2026-11-23). Give the heading
   form-bar plus text-<color>; currentColor carries the color to the edge and the tint.
   See /home/sagedash/.guides/dashboard-design-standard.md #6.3 */
.form-bar {
	border-left: 4px solid currentColor;
	background-color: rgba(0, 0, 0, .04);
	background-color: color-mix(in srgb, currentColor 8%, transparent);
}

/* Badges: cut corners (Kenny, 2026-11-23: "cut the corners off badges so they don't get confused with buttons";
 * design standard 6.7). Buttons are square, so a badge has its four corners chamfered at 45 degrees with clip-path
 * and reads as a tag. The cut scales with the badge (.4em, about 4-5px). An outlined badge loses its border on the
 * diagonals, which still reads as a tag. */
html body .badge {   /* html body: custom.css loads before the theme and skin, whose .badge rules would win */
	border-radius: 0;
	clip-path: polygon(
		.4em 0, calc(100% - .4em) 0, 100% .4em, 100% calc(100% - .4em),
		calc(100% - .4em) 100%, .4em 100%, 0 calc(100% - .4em), 0 .4em
	);
}

/* Dark text on yellow (Kenny, 2026-11-23: "I think we need dark text on yellow"). White on Bootstrap's warning yellow
 * (#ffc107) is about 1.6:1; dark text is about 12:1. Covers a yellow badge and anything yellow that a template marks
 * text-white (which Bootstrap makes !important, hence !important here). Icons inherit it. */
html body .badge.bg-warning,
html body .bg-warning.text-white {
	color: #212529 !important;
}

/* <hr>: thin and solid by default (Kenny, 2026-11-23: "Make <hr> appear solid by default (thin, but solid)"). The
 * dashboard theme draws a plain <hr> as a gradient that fades at both ends, and the website theme as 6% black, which is
 * barely there; both now draw 1px of #dadada, the theme's own hr.solid. The variants that mean a different look keep it
 * (dotted, light, invisible, the gradient ones); a utility class like bg-light still wins (it is !important). */
html body hr:not(.dotted):not(.light):not(.invisible):not(.gratient):not(.gradient-to-right):not(.gradient-to-left) {
	height: 1px;
	border: 0;
	background-color: #dadada;
	background-image: none;
	opacity: 1;
}

/* Info buttons are Bootstrap info (Kenny, 2026-11-24: "all copy buttons on all dashboards must be bootstrap info colored";
   2026-11-25: "make all info buttons bootstrap info", then "All copy buttons info-outline. All copy icons or other elements
   used for copy must be info. But if it is a button, it has to be outline - not solid"). theme.css repaints info as a
   paler #5bc0de with white text (2:1); these rules put back Bootstrap's own info.
   - A copy button is `btn btn-outline-info btn-copy`: a #0dcaf0 outline with #087990 text (5.1:1; #0dcaf0 text is 1.8:1),
     filled #0dcaf0 with black text on hover. It stays an outline even if a script puts `btn-info` back after a copy.
   - Any other `btn-info` is solid #0dcaf0 with black text (10.7:1), even if the markup also says text-white;
     `btn-outline-info` looks like a copy button.
   - A copy icon that isn't a button (`btn btn-link btn-copy-icon`, or an icon with `btn-copy`): #087990, hover #055160.
   A script that flashes a button green after a copy still can (btn-success).
   Guide: /home/sagedash/.guides/dashboard-design-standard.md §6.7. */
html body .btn.btn-info:not(.btn-success):not(.btn-copy),
html body .btn.btn-info:not(.btn-success):not(.btn-copy):focus,
html body .btn.btn-info:not(.btn-success):not(.btn-copy):disabled {
	background-color: #0dcaf0 !important;
	border-color: #0dcaf0 !important;
	color: #000 !important;
}
html body .btn.btn-outline-info:not(.btn-success),
html body .btn.btn-outline-info:not(.btn-success):focus,
html body .btn.btn-outline-info:not(.btn-success):disabled,
html body .btn.btn-copy:not(.btn-success):not(.btn-link),
html body .btn.btn-copy:not(.btn-success):not(.btn-link):focus,
html body .btn.btn-copy:not(.btn-success):not(.btn-link):disabled {
	background-color: transparent !important;
	border-color: #0dcaf0 !important;
	color: #087990 !important;
}
html body .btn.btn-info:not(.btn-success):hover,
html body .btn.btn-info:not(.btn-success):active,
html body .btn.btn-outline-info:not(.btn-success):hover,
html body .btn.btn-outline-info:not(.btn-success):active,
html body .btn-check:checked + .btn.btn-outline-info,
html body .btn.btn-copy:not(.btn-success):not(.btn-link):hover,
html body .btn.btn-copy:not(.btn-success):not(.btn-link):active {
	background-color: #31d2f2 !important;
	border-color: #25cff2 !important;
	color: #000 !important;
}
html body .btn.btn-info:not(.btn-success) i,
html body .btn.btn-info:not(.btn-success) svg,
html body .btn.btn-outline-info:not(.btn-success) i,
html body .btn.btn-outline-info:not(.btn-success) svg,
html body .btn.btn-copy:not(.btn-success):not(.btn-link) i,
html body .btn.btn-copy:not(.btn-success):not(.btn-link) svg { color: inherit !important; }
html body .btn-copy-icon,
html body .btn-copy-icon i,
html body .btn-copy-icon svg,
html body :not(.btn).btn-copy { color: #087990 !important; }
html body .btn-copy-icon:hover i,
html body .btn-copy-icon:hover svg,
html body :not(.btn).btn-copy:hover { color: #055160 !important; }

/* Info on a dark page (Kenny, 2026-11-25: "since it is dark mode, is there a lighter version of the info color we can use
   instead?"). sagentic.dev runs the Porto admin dark skin (html.dark, cards #2e353e), where the light-page #087990 is
   only about 2:1. Bootstrap's own dark-mode info text color is #6edff6 (--bs-info-text-emphasis under
   data-bs-theme="dark"): about 8:1 on the cards. Copy and other outline-info buttons keep the #0dcaf0 outline and the
   #0dcaf0 fill with black text on hover; solid info buttons don't change. sagentic.dev only: the other dashboards are light. */
html.dark body .btn.btn-outline-info:not(.btn-success),
html.dark body .btn.btn-outline-info:not(.btn-success):focus,
html.dark body .btn.btn-outline-info:not(.btn-success):disabled,
html.dark body .btn.btn-copy:not(.btn-success):not(.btn-link),
html.dark body .btn.btn-copy:not(.btn-success):not(.btn-link):focus,
html.dark body .btn.btn-copy:not(.btn-success):not(.btn-link):disabled,
html.dark body .btn-copy-icon,
html.dark body .btn-copy-icon i,
html.dark body .btn-copy-icon svg,
html.dark body :not(.btn).btn-copy { color: #6edff6 !important; }
html.dark body .btn.btn-outline-info:not(.btn-success):hover,
html.dark body .btn.btn-outline-info:not(.btn-success):active,
html.dark body .btn.btn-copy:not(.btn-success):not(.btn-link):hover,
html.dark body .btn.btn-copy:not(.btn-success):not(.btn-link):active { color: #000 !important; }
html.dark body .btn-copy-icon:hover i,
html.dark body .btn-copy-icon:hover svg,
html.dark body :not(.btn).btn-copy:hover { color: #9eeaf9 !important; }

/* Detail-page alerts (Kenny, 2026-11-28; design standard 6.11): a three-column detail page puts its alerts (Important
   Notices, Saved, page warnings) at the top of the middle column, just above the tabs, not across the page. When there is
   one, the tabs drop the top margin that lines them up with the name plate, so the alert takes that place. */
.detail-alerts:has(> .alert, > section) + .mt-5,
.detail-alerts:has(> .alert, > section) + .tabs {
	margin-top: 0 !important;
}

/* sidebar-menu-purple (2026-11-30) ---------------------------------------------------------------------------------------------
   The menu takes the header buttons' purple (Kenny, 2026-11-30: "make the sagentic.dev menu match its buttons"; it was
   Bootstrap link blue). The buttons' own --medium-purple is 3.4:1 on the #1D2127 sidebar, so labels and icons use it 42% toward
   white (#b3a0e7, 7.0:1, the menu-label rule of design standard 6.8). Hover and the current page go a step lighter
   (medium-purple-light-hover), so they still stand out. */
html body .sidebar-left ul.nav-main li a,
html body .sidebar-left ul.nav-main li a > span,
html body .sidebar-left ul.nav-main li a > i {
	color: color-mix(in srgb, var(--medium-purple) 58%, #fff) !important;
}
html body .sidebar-left ul.nav-main li.nav-active > a,
html body .sidebar-left ul.nav-main li.nav-active > a > span,
html body .sidebar-left ul.nav-main li.nav-active > a > i,
html body .sidebar-left ul.nav-main li a:hover,
html body .sidebar-left ul.nav-main li a:hover > span,
html body .sidebar-left ul.nav-main li a:hover > i,
html body .sidebar-left ul.nav-main li a:focus-visible,
html body .sidebar-left ul.nav-main li a:focus-visible > span,
html body .sidebar-left ul.nav-main li a:focus-visible > i {
	color: var(--medium-purple-light-hover) !important;
}

/* page-header-flyout-toggle (2026-11-30) + sidebar-hamburger (2026-11-30) ------------------------------------------------
   The right-flyout toggle (<<) and the sidebar's hamburger take the menu's purple, the header buttons' --medium-purple lightened
   to 7:1 (Kenny, 2026-11-30: "change the flyout icons too", "hamburger menu icon should also match"); hover goes lighter.
   The phone hamburger is on the white top header and keeps its own color. */
html body .page-header .sidebar-right-toggle i,
html body .sidebar-left .sidebar-header .sidebar-toggle i {
	color: color-mix(in srgb, var(--medium-purple) 58%, #fff) !important;
	--fa-primary-color: color-mix(in srgb, var(--medium-purple) 58%, #fff);
	--fa-secondary-color: color-mix(in srgb, var(--medium-purple) 58%, #fff);
}
html body .page-header .sidebar-right-toggle:hover i,
html body .page-header .sidebar-right-toggle:focus-visible i,
html body .sidebar-left .sidebar-header .sidebar-toggle:hover i {
	color: var(--medium-purple-light-hover) !important;
	--fa-primary-color: var(--medium-purple-light-hover);
	--fa-secondary-color: var(--medium-purple-light-hover);
}
