:root {
	--bs-primary: #3b82f6;
	--bs-body-bg: #f8fafc;
	--bs-body-color: #1e293b;
}

body {
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-style: normal;
	background: var(--bs-body-bg);
	color: var(--bs-body-color);
}

.eclipse::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	left: 0;
	top: 0;
	transition: opacity 0.6s;
	opacity: 0;
}

.eclipse:hover::after {
	opacity: 1;
}

.grid {
	display: grid;
}

.c-3 {
	grid-template-columns: repeat(3, 1fr);
}

@media ( max-width : 320px) {
	.c-flex {
		grid-template-columns: 1fr;
	}
}

@media ( min-width : 321px) and (max-width: 720px) {
	.c-flex {
		grid-template-columns: repeat(2, 1fr);
	}
	.c-flex-control {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media ( min-width : 721px) {
	.c-flex {
		grid-template-columns: repeat(5, 1fr);
	}
	.c-flex-control {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media ( min-width : 1280px) {
	.c-flex {
		grid-template-columns: repeat(5, 1fr);
	}
	.c-flex-control {
		grid-template-columns: repeat(5, 1fr);
	}
}

.required::after {
	content: '*';
	margin-left: 0.3em;
	color: #f66151;
}

.order-value {
	--buttons-width: 2rem;
	position: relative;
	padding: 0.4rem 1rem;
	border: 1px solid rgb(222, 221, 218);
	border-radius: 0.4rem;
	padding-right: calc(var(--buttons-width));
	overflow: hidden;
	text-align: center;
	width: calc(var(--buttons-width)*3);
}

.order-value::before {
	position: absolute;
	display: block;
	width: calc(var(--buttons-width));
	height: 100%;
	left: 0;
	top: 0;
	bottom: 0;
	font-size: 1.5em;
	font-family: 'bootstrap-icons';
	content: "\f12E";
	background-color: var(--bs-tertiary-bg);
	color: var(--bs-link-color);
}

.order-value::after {
	position: absolute;
	display: block;
	width: calc(var(--buttons-width));
	height: 100%;
	right: 0;
	bottom: 0;
	top: 0;
	font-size: 1.5em;
	font-family: 'bootstrap-icons';
	content: '\f137';
	background-color: var(--bs-tertiary-bg);
	color: var(--bs-link-color);
}

.c-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100vw;
	height: 100vh;
}

.login-bg {
	height: 100vh;
	width: 100vw;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-form {
	background: #fff;
	opacity: 1;
	border-radius: 16px;
	padding: 2.5rem !important;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	min-width: 25rem;
	transition: box-shadow 0.3s;
}

.login-form:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-selectable {
	position: relative;
}

.select-label {
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	/*opacity: .5;*/
}

.select-label-checked {
	opacity: .3;
	/*background: rgb(46, 194, 126);*/
	background-color: rgb(98, 160, 234);
}

.hide {
	display: none;
}

input:focus, select:focus, textarea:focus, .accordion-button:focus {
	border-color: #3b82f6 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.card-footer-tile {
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.btn-fill {
	color: #222;
	/*background-color: var(--bs-tertiary-bg-rgb);*/
	width: 100%;
	height: 100%;
	text-align: center;
	text-decoration: none;
	padding: .3rem;
}

.btn-fill:hover {
	background-color: rgba(82, 168, 236, 0.8);
}

.btn-fill:active {
	background: rgba(52, 138, 206, 0.8);
}

.btn-fill+.btn-fill {
	border-left: 1px solid rgb(192, 191, 188);
}

.pageNav {
	transition: .25s;
	height: 0;
}

.nav-visible {
	height: 50px;
}

.card-hover:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.transition-long {
	transition: 3s;
}

.alert2 {
	margin-top: 20px;
	height: 3.7rem;
	overflow: hidden !important;
	margin-bottom: 0;
}

.collaps {
	margin-top: 0;
	height: 0px;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	border: 0;
	/*padding:0 !important;*/
}

.sidebar-version {
	font-size: 0.75rem;
	color: #64748b;
}

.sidebar-copyright {
	font-size: 0.7rem;
	color: #475569;
	margin-top: 0.5rem;
}

.invariant-count {
	display: inline-block;
	border: 1px solid #444444;
	color: #444444;
	text-decoration: none;
	border-radius: 50%;
	width: 1.5em;
	height: 1.5em;
	text-align: center;
}

.table-product-details>tbody>tr>td+td {
	text-align: end;
}

/* ===== MODERN TABLES ===== */
.table {
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	border-radius: 12px;
	overflow: hidden;
}

.table thead th {
	background: #f8fafc;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	color: #64748b;
	border-bottom: 2px solid #e2e8f0;
	padding: 0.875rem 1rem;
}

.table tbody tr {
	transition: background 0.15s;
}

.table tbody tr:hover {
	background: #f0f7ff;
}

.table td, .table th {
	padding: 0.75rem 1rem;
	border: none;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
	--bs-table-bg-type: rgba(0,0,0,0.01);
}

.table-responsive {
	border-radius: 12px;
}

.popup-wrapper {
	position: fixed;
	min-width: 15rem;
	border-radius: .5rem;
	overflow: hidden;
	border: 1px solid #c0bfbc;
	z-index: 11;
}

.popup__wrapper_relative {
	position: relative;
	width: 100%;
	height: 100%;
}

.popup__headline {
	width: 100%;
	height: 1.5rem;
	background-color: #62a0ea;
	display: flex;
	align-items: center;
}

.popup__title {
	display: inline;
	color: white;
	width: 100%;
	text-align: center;
	user-select: none;
}

.popup__close-button {
	color: #fff;
	width: 1.5rem;
}

.popup__close-button:hover {
	color: rgb(224, 27, 36);
}

.popup__close-button:active {
	color: #888;
}

.popup__resizebutton {
	position: absolute;
	bottom: 0;
	right: 0;
}

.popup__reload {
	color: #fff;
}

.popup__reload:hover {
	color: #aaa;
}

.logo {
	text-transform: uppercase;
	color: rgb(154, 153, 150);
	font-size: 2rem;
	text-shadow: 1px 1px 0 rgb(0, 0, 0, .5);
	display: flex;
	align-items: center;
}

.logo>a {
	text-decoration: none;
}

.cell-align-center {
	vertical-align: middle;
	text-align: center;
}

.text-start {
	text-align: start;
}

td {
	vertical-align: middle;
}

.nowrap {
	white-space: nowrap;
}

.wrap {
	white-space: pre-line;
}

/* ===== FOOTER ===== */
.footer {
	position: fixed;
	bottom: 0;
	left: 240px;
	right: 0;
	background: #fff;
	border-top: 1px solid #e2e8f0;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
	z-index: 50;
	transition: left 0.3s ease;
}

.footer-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.5rem;
	transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
	max-height: 200px;
	opacity: 1;
	overflow: visible;
}

.footer-expand-btn {
	display: none;
	width: 100%;
	background: #f8fafc;
	border: none;
	border-top: 1px solid #e2e8f0;
	padding: 0.5rem;
	cursor: pointer;
	color: #3b82f6;
	font-size: 1rem;
	transition: background 0.15s;
}

.footer-expand-btn:hover {
	background: #f1f5f9;
}

.footer-expand-btn i {
	display: block;
	transition: transform 0.3s;
}

.footer.collapsed .footer-actions {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
	pointer-events: none;
}

body.sidebar-collapsed .footer {
	left: 64px;
}

.status-radio {
	border-radius: 10px;
	border-width: 1px;
	border-color: #000;
	border-style: solid;
	padding: .3rem .4rem;
	font-weight: 500;
}

.status-radio:hover {
	background: #c0bfbc;
}

input.status-radio[type="radio"] {
	display: none;
}

input.status-radio[type="radio"]:checked+.status-radio {
	background-color: var(--bs-success);
	color: white;
}

/* ===== SELECT2 CUSTOM THEME ===== */
.select2-container {
	width: 100% !important;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	min-height: 38px;
	padding: 4px 8px;
	background: #fff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	outline: none;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open.select2-container--focus .select2-selection--multiple {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background: #e2e8f0;
	border: none;
	border-radius: 9999px;
	color: #334155;
	padding: 2px 10px;
	margin: 3px 4px 3px 0;
	font-size: 0.875rem;
	line-height: 1.4;
	font-family: 'Inter', sans-serif;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: #64748b;
	margin-right: 4px;
	font-weight: 400;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: #ef4444;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
	color: #94a3b8;
	font-size: 0.875rem;
	margin: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.select2-dropdown {
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	margin-top: 2px;
	overflow: hidden;
}

.select2-search--dropdown {
	padding: 6px 8px;
	border-bottom: 1px solid #f1f5f9;
}

.select2-search--dropdown .select2-search__field {
	border: 1px solid #dee2e6;
	border-radius: 0.25rem;
	padding: 6px 10px;
	font-size: 0.875rem;
	font-family: 'Inter', sans-serif;
	outline: none;
	width: 100% !important;
}

.select2-search--dropdown .select2-search__field:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.select2-results__option {
	padding: 8px 12px;
	font-size: 0.875rem;
	font-family: 'Inter', sans-serif;
	color: #334155;
}

.select2-results__option--highlighted[aria-selected] {
	background: #3b82f6;
	color: #fff;
}

.select2-results__option[aria-selected="true"] {
	background: #eff6ff;
	color: #1e40af;
	font-weight: 500;
}

.select2-results__option[aria-selected="true"]:hover {
	background: #3b82f6;
	color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__arrow {
	display: none;
}

.select2-container--default.select2-container--open .select2-selection--multiple {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.select2-container--default .select2-selection--single {
	border: 1px solid #dee2e6;
	border-radius: 0.375rem;
	height: 38px;
	padding: 6px 12px;
	background: #fff;
	font-size: 0.875rem;
	font-family: 'Inter', sans-serif;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 24px;
	color: #334155;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 36px;
	right: 8px;
}

.select2-container--default.select2-container--open.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===== SIDEBAR ===== */
aside.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 240px;
	height: 100vh;
	background: #1e293b;
	color: #e2e8f0;
	display: flex !important;
	flex-direction: column;
	z-index: 100;
	overflow-y: auto;
	overflow-x: hidden;
	border: none;
	padding: 0;
	margin: 0;
	transition: width 0.3s ease;
}

aside.sidebar.collapsed {
	width: 64px;
}

aside.sidebar .sidebar-toggle-btn {
	position: absolute;
	top: 1.25rem;
	right: 0.75rem;
	background: none !important;
	border: none !important;
	color: #94a3b8;
	font-size: 1.25rem;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 6px;
	transition: all 0.15s;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	line-height: 1;
}

aside.sidebar .sidebar-toggle-btn:hover {
	background: rgba(255,255,255,0.1) !important;
	color: #e2e8f0;
}

aside.sidebar.collapsed .sidebar-toggle-btn {
	right: 50%;
	transform: translateX(50%);
}

aside.sidebar .sidebar-logo {
	padding: 1.5rem 1.25rem;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

aside.sidebar .sidebar-logo a {
	text-decoration: none;
}

aside.sidebar .sidebar-nav {
	flex: 1;
	padding: 0.5rem 0;
}

aside.sidebar .sidebar-nav .nav-link {
	display: flex !important;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	color: #94a3b8 !important;
	text-decoration: none !important;
	transition: all 0.15s;
	border-radius: 0 8px 8px 0;
	margin-right: 8px;
	font-size: 0.95rem;
	background: transparent !important;
	border: none;
}

aside.sidebar .sidebar-nav .nav-link:hover {
	background: rgba(255,255,255,0.08) !important;
	color: #e2e8f0 !important;
}

aside.sidebar .sidebar-nav .nav-link.active {
	background: #3b82f6 !important;
	color: #fff !important;
}

aside.sidebar .sidebar-nav .nav-link i {
	font-size: 1.1rem;
	width: 1.5rem;
	text-align: center;
}

aside.sidebar .sidebar-footer {
	padding: 1rem 1.25rem;
	border-top: 1px solid rgba(255,255,255,0.1);
}

aside.sidebar .sidebar-user {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	color: #94a3b8;
	font-size: 0.9rem;
}

aside.sidebar .sidebar-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.5rem;
	flex-wrap: wrap;
}

aside.sidebar .sidebar-logout {
	color: #94a3b8;
	text-decoration: none;
	font-size: 0.85rem;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	transition: all 0.15s;
}

aside.sidebar .sidebar-logout:hover {
	background: rgba(255,255,255,0.08);
	color: #e2e8f0;
}

/* Sidebar collapsed */
aside.sidebar.collapsed .sidebar-logo a {
	font-size: 0;
}
aside.sidebar.collapsed .sidebar-logo a::after {
	content: '\F4E6';
	font-family: 'bootstrap-icons';
	font-size: 1.5rem;
	display: block;
}

aside.sidebar.collapsed .sidebar-nav .nav-link {
	justify-content: center;
	padding: 0.75rem;
	margin-right: 0;
	border-radius: 8px;
	margin: 0 6px;
}

aside.sidebar.collapsed .nav-link-text {
	display: none;
}

aside.sidebar.collapsed .sidebar-footer {
	padding: 1rem 0.5rem;
	text-align: center;
}

aside.sidebar.collapsed .sidebar-user {
	justify-content: center;
}

aside.sidebar.collapsed .sidebar-user .nav-link-text {
	display: none;
}

aside.sidebar.collapsed .sidebar-actions {
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
}

aside.sidebar.collapsed .sidebar-version {
	font-size: 0;
}
aside.sidebar.collapsed .sidebar-version::after {
	content: 'v';
	font-size: 0.65rem;
	color: #64748b;
}

aside.sidebar.collapsed .sidebar-copyright {
	font-size: 0;
}

aside.sidebar.collapsed .sidebar-logout {
	font-size: 0;
	padding: 0.4rem;
}
aside.sidebar.collapsed .sidebar-logout::after {
	content: '\F609';
	font-family: 'bootstrap-icons';
	font-size: 0.9rem;
}

/* ===== MAIN CONTENT ===== */
body {
	margin-left: 240px;
	transition: margin-left 0.3s ease;
}

body.sidebar-collapsed {
	margin-left: 64px;
}

.main-content {
	min-height: 100vh;
	padding-bottom: 3rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	aside.sidebar {
		display: none !important;
	}

	body {
		margin-left: 0;
	}

	.footer {
		left: 0;
	}

	.footer-expand-btn {
		display: block;
	}
}

@media (max-width: 576px) {
	.footer-actions {
		flex-direction: column;
		gap: 0.5rem;
		padding: 0.75rem 1rem;
	}

	.footer-actions > * {
		width: 100%;
	}

	.footer-actions .btn-group {
		width: 100%;
	}

	.footer-actions .btn-group > .btn,
	.footer-actions > .btn,
	.footer-actions > input[type="submit"] {
		width: 100%;
	}

	.footer .btn {
		font-size: 0.8rem;
		padding: 0.4rem 0.75rem;
	}
}

/* ===== MODERN CARDS ===== */
.card {
	border: none;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: box-shadow 0.2s;
}

.card-header {
	background: #f8fafc;
	border-bottom: 1px solid #f1f5f9;
	font-weight: 600;
}

/* ===== CARD LIST ===== */
.card-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.card-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: box-shadow 0.2s, transform 0.15s;
}

.card-list-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	transform: translateY(-1px);
}

.card-list-item-body {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
}

.card-list-item-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

/* ===== MODERN BUTTONS ===== */
.btn {
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.15s;
}

.btn-primary {
	background: #3b82f6;
	border-color: #3b82f6;
}

.btn-primary:hover {
	background: #2563eb;
	border-color: #2563eb;
}

.btn-success {
	background: #10b981;
	border-color: #10b981;
}

.btn-success:hover {
	background: #059669;
	border-color: #059669;
}

.btn-danger {
	background: #ef4444;
	border-color: #ef4444;
}

.btn-danger:hover {
	background: #dc2626;
	border-color: #dc2626;
}

.btn-secondary {
	background: #475569;
	border-color: #475569;
	color: #fff;
}

.btn-secondary:hover {
	background: #334155;
	border-color: #334155;
	color: #fff;
}

.btn-warning {
	background: #f59e0b;
	border-color: #f59e0b;
	color: #fff;
}

.btn-warning:hover {
	background: #d97706;
	border-color: #d97706;
	color: #fff;
}

.btn-info {
	background: #0ea5e9;
	border-color: #0ea5e9;
	color: #fff;
}

.btn-info:hover {
	background: #0284c7;
	border-color: #0284c7;
	color: #fff;
}

.btn-light {
	background: #e2e8f0;
	border-color: #e2e8f0;
	color: #334155;
}

.btn-light:hover {
	background: #cbd5e1;
	border-color: #cbd5e1;
	color: #1e293b;
}

.btn-outline-primary {
	background: transparent;
	border: 1px solid #3b82f6;
	color: #3b82f6;
}

.btn-outline-primary:hover {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
}

.btn-outline-secondary {
	background: transparent;
	border: 1px solid #94a3b8;
	color: #475569;
}

.btn-outline-secondary:hover {
	background: #475569;
	border-color: #475569;
	color: #fff;
}

.btn-outline-danger {
	background: transparent;
	border: 1px solid #fca5a5;
	color: #ef4444;
}

.btn-outline-danger:hover {
	background: #ef4444;
	border-color: #ef4444;
	color: #fff;
}

.btn-outline-success {
	background: transparent;
	border: 1px solid #6ee7b7;
	color: #10b981;
}

.btn-outline-success:hover {
	background: #10b981;
	border-color: #10b981;
	color: #fff;
}

/* ===== MODERN FORMS ===== */
.form-control, .form-select {
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	padding: 0.625rem 0.875rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-label {
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.375rem;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
	border-radius: 8px;
	margin: 0 2px;
	border: 1px solid #e2e8f0;
	color: #3b82f6;
}

.pagination .page-item.active .page-link {
	background: #3b82f6;
	border-color: #3b82f6;
}

/* ===== ALERTS ===== */
.alert {
	border-radius: 10px;
	border: none;
}

/* ===== POPUP ===== */
.popup-wrapper {
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.popup__headline {
	background: #3b82f6;
}

.breadcrumb {
	font-size: 0.875rem;
	background: none;
	padding: 0;
	margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
	color: #94a3b8;
}

