/* Inline DataTable Action Icons
----------------------------------------------------------*/
.dt-action-icons {
	display: inline-block;
	white-space: nowrap;
	min-width: 80px;
}

.dt-action-icons a {
	display: inline-block;
	margin: 0 7px;
	font-size: 17px;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.dt-action-icons a:hover {
	text-decoration: none;
	transform: scale(1.2);
	opacity: 0.85;
}

.action-edit {
	color: #348fe2 !important;
}

.action-delete {
	color: #ff5b57 !important;
}

.action-manage {
	color: #00acac !important;
}

.action-courses {
	color: #6c5ce7 !important;
}

.action-modifications {
	color: #e67e22 !important;
}

.action-reimbursements {
	color: #27ae60 !important;
}

.action-details {
	color: #727cb6 !important;
}

.action-add {
	color: #32a932 !important;
}

.action-remove {
	color: #ff5b57 !important;
}

.action-update {
	color: #f59c1a !important;
}

.action-duplicate {
	color: #34495e !important;
}

table.dataTable th:first-child.text-nowrap,
table.dataTable td:first-child {
	min-width: 90px !important;
	width: 90px;
}

/* Form Section Headers
   Used across long edit/create forms (ProjectCourse, Participant) for visual
   grouping. Replaces inline style="color: #478fca" which had no weight and
   blended with .form-label. Uses !important + element-qualified selector to
   beat the Color Admin theme's generic h3 / .panel-body h3 styling.
----------------------------------------------------------*/
h3.form-section-header,
h4.form-section-header,
.panel-body h3.form-section-header {
	color: #1e3a8a !important;
	font-size: 1.15rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.2px;
	border-bottom: 2px solid #2563eb !important;
	padding-bottom: 6px !important;
	margin-top: 28px !important;
	margin-bottom: 18px !important;
	display: block;
	line-height: 1.4;
}

h3.form-section-header:first-of-type,
.panel-body h3.form-section-header:first-of-type {
	margin-top: 0 !important;
}

h3.form-section-header > i,
h3.form-section-header > i:first-child,
.panel-body h3.form-section-header > i {
	margin-right: 10px !important;
	opacity: 0.85;
	display: inline-block;
}

/* Visible "required field" asterisk next to .form-label.
----------------------------------------------------------*/
.form-required-marker {
	color: #dc3545;
	margin-left: 3px;
	font-weight: 700;
}

/* Computed / disabled summary inputs (MCCB Salary, MCCB Total, etc.)
   so staff can see at a glance which fields are read-only and which they edit.
----------------------------------------------------------*/
.form-total-input {
	background-color: #eef5ff !important;
	color: #1e3a8a !important;
	font-weight: 600;
	border-color: #c7d8f5 !important;
}

/* Budget summary strip
   Shows MCCB total + Company total + variance side-by-side.
----------------------------------------------------------*/
.budget-summary {
	background: #f5f8ff;
	border: 1px solid #c7d8f5;
	border-radius: 6px;
	padding: 14px 18px;
	margin-top: 20px;
}

.budget-summary .summary-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6c757d;
	margin-bottom: 4px;
}

.budget-summary .summary-value {
	font-size: 1.35rem;
	font-weight: 600;
	color: #1e3a8a;
}

.budget-summary .summary-variance.balanced {
	color: #198754;
}

.budget-summary .summary-variance.off {
	color: #dc3545;
}

/* Sticky action bar at the bottom of long forms on desktop.
   Below 992px (lg breakpoint) the bar scrolls with the form normally.
----------------------------------------------------------*/
@media (min-width: 992px) {
	.form-action-bar-sticky {
		position: sticky;
		bottom: 0;
		background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 70%, rgba(255, 255, 255, 0));
		padding: 16px 0 4px 0;
		z-index: 50;
		margin-top: 20px;
	}
}

/* Panel-heading toolbar — for the "Generate QR Code" / other secondary
   actions on edit views; sits on the right edge of .panel-heading. Uses
   absolute positioning so it survives whatever display the theme applies
   to .panel-heading (the Color Admin theme uses flex which kills float).
----------------------------------------------------------*/
.panel-inverse > .panel-heading,
.panel > .panel-heading {
	position: relative;
}

.panel-heading-toolbar {
	position: absolute !important;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	float: none !important;
	display: flex;
	gap: 8px;
	z-index: 5;
}

.panel-heading-toolbar .btn {
	padding: 2px 12px;
	font-size: 0.82rem;
}

/* Leave room for the toolbar so the panel-title doesn't run under it. */
.panel-heading:has(> .panel-heading-toolbar) > .panel-title {
	padding-right: 130px;
}

/* Day-of-week checkbox row replacing <select multiple> for course days.
   Wrapped in a <fieldset><legend> so screen readers announce "Days" as the
   group context before each weekday option. Aggressive resets because
   Bootstrap's default legend is calc(1.275rem + 0.3vw) (huge) and uses
   higher specificity than a bare `legend` selector.
----------------------------------------------------------*/
fieldset.days-fieldset {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
}

fieldset.days-fieldset > legend,
fieldset.days-fieldset > legend.form-label {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin-bottom: 4px !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	color: inherit !important;
	padding: 0 !important;
	line-height: 1.5 !important;
	border: 0 !important;
	display: block !important;
}

.days-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding: 6px 0;
}

.days-checkbox-group .form-check {
	margin-bottom: 0;
}

.days-checkbox-group .form-check-label {
	font-size: 0.92rem;
	cursor: pointer;
	user-select: none;
}

