﻿@property --c2-font-color-primary {
	syntax: "<color>";
	inherits: false;
	initial-value: #444444;
}

@property --c2-blue-primary {
	syntax: "<color>";
	inherits: false;
	initial-value: #288cc0;
}

@property --c2-blue-dark {
	syntax: "<color>";
	inherits: false;
	initial-value: #012c57;
}

@property --c2-gray-primary {
	syntax: "<color>";
	inherits: false;
	initial-value: #e5e5e5;
}

@property --c2-theme-blue1 {
	syntax: "<color>";
	inherits: false;
	initial-value: #aad6ee;
}

@property --c2-theme-blue2 {
	syntax: "<color>";
	inherits: false;
	initial-value: #7fc2e6;
}

@property --c2-theme-green1 {
	syntax: "<color>";
	inherits: false;
	initial-value: #aaeeaa;
}

@property --c2-theme-green2 {
	syntax: "<color>";
	inherits: false;
	initial-value: #7fe67f;
}

@property --c2-theme-yellow1 {
	syntax: "<color>";
	inherits: false;
	initial-value: #eeeeaa;
}

@property --c2-theme-yellow2 {
	syntax: "<color>";
	inherits: false;
	initial-value: #e6e67f;
}

@property --c2-theme-red1 {
	syntax: "<color>";
	inherits: false;
	initial-value: #eaaa95;
}

@property --c2-theme-red2 {
	syntax: "<color>";
	inherits: false;
	initial-value: #e2886a;
}

body {
	font-weight: 400;
	font-family: 'Open Sans', sans-serif !important;
	color: var(--c2-font-color-primary);
}

button, input {
	font-family: inherit;
}

.c2-page-title {
	font-size: 1.25rem;
	font-weight: 600;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.c2-page-subtitle {
	font-size: 1rem;
	font-weight: 600;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.c2-layout {
	background-color: var(--c2-gray-primary)
}

.c2-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.5rem;
	align-items: flex-start;
}

.c2-vertical-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem; /* adjust as desired */
}

	.c2-vertical-form .c2-form-group {
		flex: none; /* disable the default 1 1 300px behavior */
		min-width: auto; /* allow full width */
		/*width: 100%;*/ /* each group takes the full line */
	}

.c2-inline-form {
	display: inline-flex;
	flex-wrap: nowrap; /* Optional: allow wrapping on narrow screens */
	align-items: center; /* Vertically align all elements */
	gap: 0.75rem; /* Pleasant spacing between elements */
	/*margin-bottom: 1rem;*/
}

.c2-inline-controls {
	display: flex;
	gap: 0.5rem;
}

.c2-form-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1 1 300px;
	min-width: 250px;
}

	.c2-form-group label {
		display: flex;
		align-items: center;
		white-space: nowrap;
		font-size: 0.9rem;
		color: #333;
	}

	.c2-form-group select {
		flex: 1;
		align-items: center;
		padding: 0.25rem 0.5rem;
		font-size: 0.85rem;
		border: 1px solid #ccc;
		border-radius: 4px;
		background-color: #fff;
		color: #333;
		appearance: none;
	}

		.c2-form-group select:focus {
			border-color: #0077cc;
			outline: 1px solid #145675;
		}

	.c2-form-group input[type="text"] {
		font-size: 0.85rem;
		padding: 0.25rem 0.5rem;
		border: 1px solid #ccc;
		border-radius: 4px;
		flex: 1;
	}

		.c2-form-group input[type="text"]:focus {
			border-color: #0077cc;
			outline: 1px solid #145675;
		}

.c2-checkbox {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--c2-blue-primary);
	cursor: pointer;
}

	.c2-checkbox:focus {
		border-color: #0077cc;
		outline: 1px solid #145675;
	}

.c2-input {
	font-size: 0.75rem;
	padding: 0.3rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #ffffff;
	color: #444;
	width: 100%;
	box-sizing: border-box;
}

	.c2-input:disabled {
		background-color: #f0f0f0;
		color: #777;
		cursor: not-allowed;
	}

	.c2-input input:read-only, .c2-input textarea:read-only {
		background-color: #e0e0e0;
		color: #777;
		cursor: not-allowed;
	}

.c2-text-danger {
	font-size: 0.8rem;
	color: #b30000;
	margin-left: 0.5rem;
}

.c2-btn-small {
	font-size: 0.75rem;
	padding: 0.25rem 0.5rem;
	margin: 0.25rem 0;
	background-color: var(--c2-blue-primary);
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	text-decoration: none;
}

.c2-btn-primary {
	font-size: 0.85rem;
	padding: 0.5rem 0.75rem;
	margin: 0.75rem 0;
	background-color: var(--c2-blue-primary);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	/*line-height: 1.2;*/
}

	.c2-btn-primary:hover, .c2-btn-small:hover {
		background-color: #1f6f9b;
	}

	.c2-btn-primary:focus, .c2-btn-small:focus {
		outline: 1px solid #145675;
	}

	.c2-btn-primary:disabled, .c2-btn-small:disabled {
		background-color: #ccc;
		cursor: not-allowed;
		color: #666;
	}

a.c2-btn-primary {
	text-decoration: none;
	color: white;
}

.c2-btn-secondary {
	font-size: 0.85rem;
	padding: 0.5rem 0.75rem;
	margin: 0.75rem 0;
	font-weight: 300;
	background-color: #595959;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
	/*line-height: 1.2;*/
}

	.c2-btn-secondary:hover {
		background-color: #4d4d4d;
	}

	.c2-btn-secondary:focus {
		outline: 1px solid #404040;
	}

a.c2-btn-secondary {
	text-decoration: none;
	color: white;
}

.c2-btn-danger {
	font-size: 0.75rem;
	padding: 0.4rem 1rem;
	margin: 0;
	background-color: #e60000;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
}

	.c2-btn-danger:hover {
		background-color: #cc0000;
	}

	.c2-btn-danger:focus {
		outline: 1px solid #b30000;
	}

	.c2-btn-danger:disabled {
		background-color: #ffb3b3;
		cursor: not-allowed;
		color: #666;
	}

a.c2-btn-danger {
	text-decoration: none;
	color: white;
}

.c2-table {
	width: 98%;
	border-collapse: collapse;
	font-size: 0.75rem;
	background-color: white;
	border: 1px solid white;
	border-radius: 3px;
	margin: 0.25rem 0.25rem;
}

/*	.c2-table thead {
		background-color: var(--c2-blue-dark);
		color: white !important;
	}*/

		.c2-table thead tr {
			line-height: 2;
		}

	.c2-table th,
	.c2-table td {
		padding: 0.5rem 0.25rem;
		border: none;
		text-align: left;
	}

	.c2-table tbody tr:hover {
		background-color: var(--c2-gray-primary);
		cursor: pointer;
	}

.c2-table-head-light {
	background-color: #f2f2f2 !important;
	color: #444 !important;
}
	.c2-table-head-light th {
		background-color: #f2f2f2 !important;
		color: #444 !important;
	}

.c2-table-head-dark {
	background-color: var(--c2-blue-dark);
	color: white !important;
}
	.c2-table-head-dark th {
		background-color: var(--c2-blue-dark);
		color: white !important;
	}

.c2-table-blue {
	background-color: var(--c2-theme-blue1);
}

	.c2-table-blue:hover {
		background-color: var(--c2-theme-blue2) !important;
	}

/* Layout Container */
.c2-layout-wrapper {
	display: flex;
	flex-direction: column;
	height: 100vh;
}

/* Header */
.c2-header {
	background-color: #f2f2f2;
	/*color: white;*/
}

.c2-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 1rem;
	border-bottom: 1px solid #ccc;
}

.c2-navbar-logo img {
	height: 40px;
}

.c2-navbar-title a {
	font-size: 1.25rem;
	/*color: white;*/
	text-decoration: none;
	font-weight: bold;
	margin-left: 1rem;
}

.c2-navbar-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 1rem;
}

/*.c2-navbar-links li a {
	display: flex;*/
	/*padding: -0.5rem -1rem;
	margin: -2rem;*/
	/*color: #444;
	text-decoration: none;
}

	.c2-navbar-links li a:hover {
		background-color: var(--c2-gray-primary);
	}*/

/*.c2-navbar-links li button {
	display: block;
	border: none;
	background-color: inherit;
	color: #444;
	text-decoration: none;
}*/

/*	.c2-navbar-links li button:hover {
		background-color: var(--c2-gray-primary);
	}*/

.c2-navbar-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex; /* ← makes the LI’s line up horizontally */
	align-items: center; /* ← vertically center their contents */
	gap: 1rem; /* ← space between the LI’s */
	font-size: 1rem;
}

.c2-navbar-links li {
	margin: 0; /* ← reset any default spacing */
}

	.c2-navbar-links li > div,
	.c2-navbar-links li > form {
		display: flex; /* ← lay out inner elements inline too */
		align-items: center;
		gap: 0.5rem; /* ← space between text/button/inputs */
	}

/* Main Area */
.c2-layout-main {
	display: flex;
	flex: 1 1 auto;
	overflow: hidden;
}

/* Sidebar */
.c2-sidebar {
	width: 220px;
	background-color: #f2f2f2;
	padding: 0;
	overflow-y: auto;
	border-right: 1px solid #ddd;
}

.c2-sidebar-group {
	list-style: none;
	padding: 0;
	margin: 0;
}

.c2-sidebar-header {
	font-weight: bold;
	margin-top: 1rem;
	margin-bottom: 0.25rem;
	padding: 0.25rem 0.5rem;
	font-size: 0.9rem;
	color: #444;
}

.c2-sidebar-group li a {
	display: block;
	padding: 0.25rem 0.75rem 0.25rem 1rem;
	color: #444;
	text-decoration: none;
}

	.c2-sidebar-group li a:hover {
		background-color: var(--c2-gray-primary);
	}

.c2-content {
	flex: 1;
	padding: 1rem 0.5rem 0 1rem;
	margin-bottom: 1rem;
	overflow-y: auto;
}

.c2-footer {
	background-color: #f2f2f2;
	text-align: center;
	font-size: 0.75rem;
	padding: 0.25rem;
	border-top: 1px solid #ccc;
}

.c2-sidebar a.c2-active {
	font-weight: bold;
	/*border-bottom: 2px solid #288cc0;*/ /* theme highlight */
	color: var(--c2-blue-primary);
	background-color: #cccccc;
}

.c2-danger {
	color: #fff;
	background-color: #dc3545;
	border-color: #dc3545;
}

/* Container */
.c2-accordion {
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

/* Each panel */
.c2-accordion-item + .c2-accordion-item {
	border-top: 1px solid #ccc;
}

/* Hide default marker */
.c2-accordion-header::-webkit-details-marker {
	display: none;
}

.c2-accordion-header::marker {
	content: "";
}

/* Header */
.c2-accordion-header {
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	/*background-color: #288cc0;*/
	background-color: white;
	color: #444;
	font-size: 0.9rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
	transition: background-color 0.2s ease-in-out;
}

	/* Chevron icon via pseudo-element */
	.c2-accordion-header::after {
		content: "+";
		font-size: 1.2rem;
		line-height: 1;
		transition: transform 0.2s ease-in-out;
	}

/* Rotate chevron when open */
.c2-accordion-item[open] > .c2-accordion-header::after {
	content: "-";
}

/* Hover/focus state */
.c2-accordion-header:hover,
.c2-accordion-header:focus {
	background-color: #f2f2f2; /* darker hover */
	outline: none;
}

/* Body */
.c2-accordion-body {
	padding: 0.25rem;
	background-color: #f9f9f9;
	font-size: 0.875rem;
	line-height: 1.4;
	animation: c2-slide-down 0.2s ease-out;
}

/* Slide-down animation */
@keyframes c2-slide-down {
	from {
		opacity: 0;
		transform: translateY(-0.5rem);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.c2-alert-yellow {
	background: var(--c2-theme-yellow1) !important;
}
	.c2-alert-yellow:hover {
		background: var(--c2-theme-yellow2) !important;
	}

.c2-alert-red {
	background: var(--c2-theme-red1) !important;
}

	.c2-alert-red:hover {
		background: var(--c2-theme-red2) !important;
	}

.c2-list {
	display: flex;
	flex-direction: column;
	padding-left: 0;
	margin-bottom: 0;
	border-radius: 0.25rem;
	width: 100%;
}

.c2-list-item {
	position: relative;
	display: block;
	padding: 0.5rem 1rem;
	width: 100%;
	color: #636464;
	text-decoration: none;
	background-color: #fefefe;
	border: 1px solid rgba(0, 0, 0, 0.125);
	text-align: inherit;
	display: flex !important;
}

	.c2-list-item:first-child {
		border-top-left-radius: inherit;
		border-top-right-radius: inherit;
	}

	.c2-list-item:last-child {
		border-bottom-right-radius: inherit;
		border-bottom-left-radius: inherit;
	}

	.c2-list-item:hover, .c2-list-item:focus {
		text-decoration: none;
		background-color: #f8f9fa;
	}

.c2-flash {
	position: relative;
	padding: 1rem 1.5rem;
	margin: 1rem 0;
	border: 1px solid transparent;
	border-radius: 4px;
	/*font-family: Arial, sans-serif;*/
	font-size: 1rem;
	line-height: 1.4;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

	.c2-flash .c2-flash-close {
		background: none;
		border: none;
		font-size: 1.2rem;
		line-height: 1;
		cursor: pointer;
		color: inherit;
		padding: 0;
	}

.c2-flash-success {
	background-color: #e6f9ed;
	border-color: #28a745;
	color: #155724;
}

.c2-flash-failure {
	background-color: #fdecea;
	border-color: #dc3545;
	color: #721c24;
}

.c2-flash-info {
	background-color: #eaf4fc;
	border-color: #17a2b8;
	color: #0c5460;
}

.c2-flash-confirmationrequired {
	background-color: #fff8e1;
	border-color: #ffc107;
	color: #856404;
}