:root {
	--sidebar-width: 240px;
	--primary-color: #b0181e;
	--secondary-color: #4A4447;
	--light-bg: #f8f9fa;
	--dark-bg: #212529;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--danger-color: #ef4444;
}

/* #b0181e #0000FF */

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	background-color: #f5f7fb;
	overflow-x: hidden;
	min-height: 100vh;
}

.hide{
	display:none !important;
}

/* Sidebar Styles */
.sidebar {
	width: var(--sidebar-width);
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
	background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
	color: white;
	transition: all 0.3s;
	z-index: 1000;
	box-shadow: 3px 0 15px rgba(0,0,0,0.1);
	overflow-y: auto;
}

.sidebar.collapsed {
	width: 70px;
}

.sidebar.collapsed .nav-link span,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .submenu,
.sidebar.collapsed .submenu-item,
.sidebar.collapsed .chevron {
	display: none !important;
}

.sidebar.collapsed .nav-link {
	justify-content: center;
	padding: 12px !important;
}

.sidebar.collapsed .has-submenu::after {
	display: none;
}

.logo {
	padding: 11px 10px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-link {
	color: rgba(255,255,255,0.8);
	/*padding: 12px 20px;
	margin: 2px 10px;*/
	border-radius: 8px;
	transition: all 0.3s;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-link:hover, .nav-link.active {
	color: white;
	background: rgba(255,255,255,0.1);
}

.nav-link .link-text {
	flex-grow: 1;
}

.chevron {
	transition: transform 0.3s;
	font-size: 12px;
}

.chevron.rotated {
	transform: rotate(90deg);
}

/* Submenu Styles */
.submenu {
	background: rgba(0,0,0,0.15);
	border-radius: 8px;
	margin-left: 15px;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s ease-out, opacity 0.3s;
	opacity: 0;
}

.submenu.show {
	max-height: 500px;
	opacity: 1;
	margin-top: 5px;
	margin-bottom: 5px;
}

.submenu-item {
	padding: 5px 10px 5px 20px;
	color: rgba(255,255,255,0.8);
	text-decoration: none;
	display: block;
	border-left: 3px solid transparent;
	transition: all 0.3s;
	font-size: 14px;
}

.submenu-item:hover, .submenu-item.active {
	color: white;
	background: rgba(255,255,255,0.05);
	border-left-color: white;
}

.submenu-item .bi {
	font-size: 12px;
	margin-right: 3px;
}

.has-submenu.active .nav-link {
	background: rgba(255,255,255,0.15);
}

/* Badge styles */
.menu-badge {
	font-size: 10px;
	padding: 3px 6px;
	margin-left: 8px;
}

.submenu-badge {
	font-size: 9px;
	padding: 2px 5px;
	float: right;
	margin-top: 2px;
}

/* Main Content */
/* .main-content {
	/*margin-left: calc(var(--sidebar-width) + 10px);*
	margin-left: var(--sidebar-width);
	transition: all 0.3s;
	min-height: 100vh;
}

.main-content.expanded {
	margin-left: 70px;
} */

.main-content {
    margin-left: 70px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 250px;
}

.sidebar:not(.expanded) .link-text,
.sidebar:not(.expanded) .logo-text,
.sidebar:not(.expanded) .chevron {
    /* opacity: 0;
    visibility: hidden; */
    white-space: nowrap;
}

.sidebar.expanded .link-text,
.sidebar.expanded .logo-text,
.sidebar.expanded .chevron {
    opacity: 1;
    visibility: visible;
}

/* Top Navbar */
.top-navbar {
	background: white;
	box-shadow: 0 2px 15px rgba(0,0,0,0.08);
	padding: 10px 10px;
	position: sticky;
	top: 0;
	z-index: 999;
}

/* Stats Cards */
.stats-card {
	border-radius: 15px;
	border: none;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
	transition: transform 0.3s;
	overflow: hidden;
}

.stats-card:hover {
	transform: translateY(-5px);
}

.stats-icon {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

/* Chart Container */
.chart-container {
	background: white;
	border-radius: 15px;
	padding: 20px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.password-container {
	/*max-width: 500px;*/
	margin: 0 auto;
	padding: 10px 10px;
}

.password-card {
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	padding: 40px;
	border: none;
}

.password-header {
	text-align: center;
	margin-bottom: 30px;
}

.password-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--primary-color), #000);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	color: white;
	font-size: 32px;
}

.password-requirements {
	background-color: #f8fafc;
	border-radius: 10px;
	padding: 20px;
	margin: 25px 0;
	border-left: 4px solid var(--primary-color);
}

.requirement-item {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
	font-size: 14px;
}

.requirement-item:last-child {
	margin-bottom: 0;
}

.requirement-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	font-size: 12px;
}

.requirement-met {
	color: var(--success-color);
}

.requirement-met .requirement-icon {
	background-color: #d1fae5;
	color: var(--success-color);
}

.requirement-not-met {
	color: #6b7280;
}

.requirement-not-met .requirement-icon {
	background-color: #f3f4f6;
	color: #9ca3af;
}

.password-input-group {
	position: relative;
	margin-bottom: 25px;
}

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

.password-strength {
	margin-top: 5px;
}

.strength-meter {
	height: 8px;
	border-radius: 4px;
	background-color: #e5e7eb;
	overflow: hidden;
	margin-bottom: 5px;
}

.strength-bar {
	height: 100%;
	border-radius: 4px;
	width: 0;
	transition: width 0.3s, background-color 0.3s;
}

.strength-text {
	font-size: 12px;
	font-weight: 500;
}

.strength-weak {
	color: var(--danger-color);
}

.strength-fair {
	color: var(--warning-color);
}

.strength-good {
	color: #3b82f6;
}

.strength-strong {
	color: var(--success-color);
}

.password-hints {
	font-size: 12px;
	color: #6b7280;
	margin-top: 5px;
}

.password-match {
	display: none;
	font-size: 14px;
	margin-top: 5px;
}

.match-success {
	color: var(--success-color);
}

.match-error {
	color: var(--danger-color);
}

.password-actions {
	display: flex;
	gap: 15px;
	margin-top: 30px;
}

.btn-password {
	flex: 1;
	padding: 12px;
	border-radius: 10px;
	font-weight: 500;
	transition: all 0.3s;
}

.password-history {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.history-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.history-item:last-child {
	border-bottom: none;
}

.history-date {
	color: #6b7280;
	font-size: 14px;
}

.history-device {
	display: flex;
	align-items: center;
	gap: 10px;
}

.device-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
}

.alert-password {
	border-radius: 10px;
	border: none;
	padding: 15px;
	margin-bottom: 20px;
}

.password-complexity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}

.complexity-label {
	font-size: 14px;
	font-weight: 500;
}

.complexity-value {
	font-size: 14px;
	font-weight: 600;
}

.input-group-text {
	background-color: #f0ecf0;
	border-right: none;
}

.form-control:focus {
	border-color: var(--primary-color);
	/* box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25); */
	box-shadow: 0 0 0 0.25rem #f0ecf0 !important;
}

.progress {
	height: 8px;
	margin-top: 5px;
}

.last-changed {
	font-size: 13px;
	color: #6b7280;
	text-align: center;
	margin-top: 20px;
}

.select2-container .select2-selection--multiple{
	min-height:38px !important;
	border: solid 1px #e0e0e0 !important;
	border-radius: 8px !important;
}
.select2-container .select2-search--inline .select2-search__field{
	height: 20px !important;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
	width: 5px;
}

.sidebar::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.3);
	border-radius: 10px;
}

/* Notification Badge */
.notification-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 10px;
	padding: 3px 6px;
}

/* Dark Mode */
.dark-mode {
	background-color: #1a1d28;
	color: #e9ecef;
}

.dark-mode .top-navbar,
.dark-mode .chart-container,
.dark-mode .stats-card,
.dark-mode .card {
	background-color: #2d3748;
	color: #e9ecef;
	border-color: #4a5568;
}

/* Task List */
.task-item {
	border-left: 4px solid #dee2e6;
	padding-left: 15px;
	margin-bottom: 15px;
}

.task-item.high-priority {
	border-left-color: #dc3545;
}

.task-item.medium-priority {
	border-left-color: #ffc107;
}

.task-item.low-priority {
	border-left-color: #28a745;
}

/* Nested Submenu */
.nested-submenu {
	background: rgba(0,0,0,0.1);
	margin-left: 10px;
	border-radius: 5px;
	overflow: hidden;
}

.nested-submenu .submenu-item {
	padding-left: 55px;
	font-size: 13px;
}
.page-container {
	/*max-width: 1200px;*/
	margin: 0 auto;
	padding: 10px 10px;
}

.page-header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	border-radius: 16px;
	padding: 15px;
	color: white;
	margin-bottom: 10px;
	position: relative;
	overflow: hidden;
}

.page-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='softGlow'%3E%3CfeGaussianBlur stdDeviation='4' result='blur'/%3E%3CfeMerge%3E%3CfeMergeNode in='blur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cpolygon points='100,12 95,18 28,100 33,100' fill='%23var(--primary-color)' fill-opacity='0.8' filter='url(%23softGlow)'/%3E%3C/svg%3E");
	opacity: 0.3;
}

.profile-avatar {
	width: 72px;
	height: 72px;
	border: 2px solid rgba(255,255,255,0.35);
	display: flex;
	font-size: 22px;
	/* width: 150px; */
	/* height: 150px; */
	border-radius: 50%;
	/* border: 5px solid rgba(255, 255, 255, 0.3); */
	object-fit: cover;
	background-color: white;
	cursor: pointer;
	transition: all 0.3s;
}

.profile-avatar:hover {
	transform: scale(1.05);
	border-color: rgba(255, 255, 255, 0.5);
}

.page-info {
	padding-left: 0px;
}

.profile-actions {
	display: flex;
    flex-wrap: wrap;
	margin-top: 40px;
	position: relative;
	/* z-index: 999; */
}

.profile-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	padding: 30px;
	margin-bottom: 30px;
	border: 1px solid #e2e8f0;
}

.card-header {
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 15px;
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.section-title {
	color: #000;
	font-weight: 600;
	margin-bottom: 0;
}

.edit-btn {
	padding: 8px 20px;
	border-radius: 8px;
	font-weight: 500;
	transition: all 0.3s;
}

.edit-btn:hover {
	transform: translateY(-2px);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.info-item {
	padding: 10px 0;
}

.info-label {
	color: #64748b;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 5px;
	display: block;
}

.info-value {
	color: #1e293b;
	font-weight: 500;
	font-size: 16px;
}

.badge-status {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

.status-active {
	/* background-color: #d1fae5;
	color: #065f46; */
	background-color: #000;
	color: #fff;
}

.status-verified {
	background-color: #000;
	color: #fff;
}

.status-pending {
	background-color: #000;
	color: #fff;
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.social-link {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	transition: transform 0.3s;
}

.social-link:hover {
	transform: translateY(-3px);
	color: white;
}

.social-facebook { background-color: #1877f2; }
.social-twitter { background-color: #1da1f2; }
.social-linkedin { background-color: #0a66c2; }
.social-github { background-color: #333; }
.social-instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.stat-card {
	text-align: center;
	padding: 20px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 5px;
}

.stat-label {
	color: #64748b;
	font-size: 14px;
}

.activity-timeline {
	position: relative;
	padding-left: 30px;
}

.activity-timeline::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, var(--primary-color), #e2e8f0);
}

.activity-item {
	position: relative;
	margin-bottom: 25px;
	padding: 15px;
	background: #f8fafc;
	border-radius: 10px;
	border-left: 4px solid var(--primary-color);
}

.activity-item::before {
	content: '';
	position: absolute;
	left: -30px;
	top: 22px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: white;
	border: 3px solid var(--primary-color);
}

.activity-time {
	font-size: 12px;
	color: #64748b;
}

.tab-navigation {
	/* background: white; */
	background: linear-gradient(135deg, var(--primary-color), #000);
	border-radius: 12px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding: 3px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-navigation .nav-link {
	/*padding: 20px 30px;*/
	color: #fff;
	border: none;
	/* border-bottom: 3px solid transparent; */
	font-weight: 500;
	transition: all 0.3s;
}

.tab-navigation .nav-link:hover {
	color: var(--primary-color);
	background-color: #f8fafc;
}

.tab-navigation .nav-link.active {
	color: var(--primary-color);
	/* border-bottom-color: var(--primary-color); */
	background-color: #f0ecf0;
}

li.nav-item{
	margin-right: 3px;
}

.skill-tag {
	display: inline-block;
	padding: 8px 16px;
	background: #f0ecf0;
	color: var(--primary-color);
	border-radius: 20px;
	margin: 5px;
	font-size: 14px;
}

.preference-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #e2e8f0;
}

.preference-item:last-child {
	border-bottom: none;
}

.form-switch .form-check-input:checked {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.upload-zone {
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	background: #f8fafc;
}

.upload-zone:hover {
	border-color: var(--primary-color);
	background: #f1f5f9;
}

.upload-zone.dragover {
	border-color: var(--primary-color);
	background: #e0e7ff;
}

.document-list {
	margin-top: 20px;
}

.document-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	background: #f8fafc;
	border-radius: 8px;
	margin-bottom: 10px;
}


.modal-profile .modal-header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	border-bottom: none;
}

.modal-profile .modal-header .btn-close {
	filter: invert(1) brightness(200%);
}

.avatar-options {
	display: flex;
	gap: 15px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.avatar-option {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	cursor: pointer;
	border: 3px solid transparent;
	transition: all 0.3s;
}

.avatar-option:hover,
.avatar-option.selected {
	border-color: var(--primary-color);
	transform: scale(1.1);
}

.crop-container {
	max-height: 400px;
	overflow: hidden;
	margin-bottom: 20px;
}

.nav-link {
	cursor: pointer;
}

.action-link {
	text-decoration: none;
	color: inherit;
}

.action-link:hover {
	color: var(--primary-color);
}

.btn-custom-primary {
	background-color: var(--primary-color) !important;;
	color: white !important;;
	border: none !important;;
}

.btn-space{
	margin-bottom: 4px;
	margin-right: 16px;
}

.back-btn-space{
	margin-right: 7px;
}

.btn-custom-primary:hover {
	/*background-color: #962428 !important;*/
	background-color: var(--primary-color) !important;
    opacity: 0.85;

}

.status-badge {
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 450;
	display: inline-block;
}

.status-badge-btn{
	width: 100px;
}

/* .status-active {
	background-color: rgba(6, 214, 160, 0.1);
	color: var(--success-color);
} */

.status-inactive {
	background-color: var(--primary-color);
	/* background-color: rgba(239, 71, 111, 0.1); */
	color: #fff;
}

.status-pending {
	background-color: rgba(255, 209, 102, 0.1);
	color: #e6a700;
}
.not-enabled-button{
	color: gray !important;
    background-color: transparent !important;
    border-color: black;
    opacity: var(--bs-btn-disabled-opacity);
}

.action-buttons {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.action-btn {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: all 0.3s ease;
	border: none;
}

.action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-edit {
	/* background-color: rgba(255, 209, 102, 0.1); */
	background-color: #f0ecf0;
	color: var(--primary-color);
}

.btn-edit:hover {
	background-color: var(--primary-color);
	color: white;
}

.btn-delete {
	background-color: rgba(239, 71, 111, 0.1);
	color: var(--danger-color);
}

.btn-delete:hover {
	background-color: var(--danger-color);
	color: white;
}

.btn-archive{
	color: #333;
    background-color: #f0f0f0;
}

.btn-archive:hover{
	color: #f0f0f0;
    background-color: #333;
}

.btn-view {
	background-color: #f0ecf0;
	/* background-color: rgba(67, 97, 238, 0.1); */
	color: var(--primary-color);
}

.btn-view:hover {
	background-color: var(--primary-color);
	color: white;
}

.bg-primary{
	background-color: var(--primary-color) !important;
}

.bg-sent{
	background-color: #A9A9A9;
}

.datepicker.dropdown-menu{
	max-width:300px !important;
}

.card {
	border: none;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border-radius: 12px;
	overflow: hidden;
	background-color: white;
}

.card-header {
	/* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-bottom: none; */
	border-left: 5px solid var(--primary-color);
	color: #000;
	padding: 1rem 1rem;
}

.dataTables_wrapper {
	padding: 0;
}

.table th {
	font-weight: 600;
	color: var(--dark-color);
	border-top: none;
	background-color: #f8fafc;
	padding: 15px 12px;
	font-size: 16px;
}

table.dataTable > thead > tr > th, table.dataTable > thead > tr > td {
    padding: 3px !important;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.3); */
}

.table td {
	padding: 12px;
	vertical-align: middle;
}

.table-hover tbody tr:hover {
	background-color: rgba(67, 97, 238, 0.04);
}

.table-responsive {
	border-radius: 8px;
	overflow: hidden;
}

.loader-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	display: none;
}

.loader {
	text-align: center;
	padding: 30px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.data-table-info {
	background-color: #f8fafc;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 20px;
	border-left: 4px solid var(--primary-color);
}

.modal-content {
	border: none;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
	background-color: var(--light-color);
	border-bottom: 2px solid rgba(0,0,0,0.05);
}

.form-control, .form-select {
	border-radius: 8px;
	border: 1px solid #6c757d;
	/*padding: 10px 15px;*/
}

.form-control:focus, .form-select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.25rem #f0ecf0;
}

.search-box {
	max-width: 300px;
}

.batch-actions {
	background-color: #f8fafc;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: none;
}

.selected-count {
	background-color: var(--primary-color);
	color: white;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	margin-left: 5px;
}

.virtual-scroll-container {
	max-height: 600px;
	overflow-y: auto;
}

.export-buttons {
	margin-bottom: 10px;
}

.filter-section {
	background-color: #f8fafc;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.pagination-info {
	font-size: 0.9rem;
	color: #6c757d;
}

/* Optimize table rendering */
table.dataTable tbody tr {
	height: 54px;
}

table.dataTable tbody td {
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	/* white-space: nowrap; */
}

/* Virtual scrolling optimization */
.dataTables_scrollBody {
	overflow-y: auto !important;
}

/* Performance optimizations */
* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.table {
	table-layout: fixed;
}

.dataTables_wrapper .dataTables_length {
	width:50%;
	margin-top: 7px; /* Adds space above the control */
	margin-left: 20px; /* Adds space to the left of the control */
	margin-bottom: 10px;
	float: left;
	/* Other positioning properties like 'float' can also be used */
}
.dataTables_wrapper .dataTables_length select {
	padding: .375rem .75rem;
	/* padding: 10px; Increases the size of the dropdown area */
	font-size: 14px; /* Changes the text size */
	border: 1px solid #ccc; /* Customizes the border */
	border-radius: 4px; /* Rounds the corners */
	width:100px !important;
	/* You can add other standard CSS properties like width, height, etc. */
}
.dataTables_filter {
   float: right;
   text-align: right;
   margin-bottom: 10px;
   margin-top: 3.2px;
}

/* Action rows inline */
table.dataTable.dtr-inline.collapsed 
> tbody > tr > td.child ul.dtr-details li.action-group,
table.dataTable.dtr-inline.collapsed 
> tbody > tr > td.child ul.dtr-details li.actions-label {
	display: inline-flex !important;
	align-items: center !important;
	width: auto !important;
	border: none !important;
	padding: 0 4px !important;
	margin: 0 !important;
	vertical-align: middle !important;
	margin-top: 7px !important;
}

/* Hide titles for buttons */
table.dataTable.dtr-inline.collapsed 
> tbody > tr > td.child ul.dtr-details li.action-group .dtr-title {

	display: none !important;
}

/* Remove spacing */
table.dataTable.dtr-inline.collapsed 
> tbody > tr > td.child ul.dtr-details li.action-group .dtr-data {

	padding: 0 !important;
	margin: 0 !important;
	display: inline-block !important;
}

/* Actions label */
table.dataTable.dtr-inline.collapsed 
> tbody > tr > td.child ul.dtr-details li.actions-label {

	font-weight: 600;
	padding-right: 10px !important;
}

/* Keep normal rows vertical */
table.dataTable.dtr-inline.collapsed 
> tbody > tr > td.child ul.dtr-details li:not(.action-group):not(.actions-label) {

	display: block !important;
	width: 100% !important;
	white-space: break-spaces !important;
}
 
 /* Remove fixed widths, use max-width instead for better responsiveness */
.col-status { 
    text-align: center;
    white-space: nowrap;
}
.col-contact { 
    text-align: center;
    white-space: nowrap;
}
.col-view { 
    text-align: center;
    white-space: nowrap;
}
.col-history { 
    text-align: center;
    white-space: nowrap;
}
.col-edit { 
    text-align: center;
    white-space: nowrap;
}
.col-archive { 
    text-align: center;
    white-space: nowrap;
}

/* Make icon buttons more compact */
.col-status .btn,
.col-contact .btn,
.col-view .btn,
.col-history .btn,
.col-edit .btn,
.col-archive .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

div.dataTables_processing>div:last-child>div{
	background-color: var(--primary-color) !important;
}

div.dataTables_processing {
	z-index: 1100;
}

em {
	color:red;
}
.error{
	color:red;
}

label.error {
    color: red;
    font-size: 10px;
}

.select2-selection select2-selection--single{
	min-height: 37px !important;
	border: solid 1px lightgrey;
	border-radius: 8px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	top:7px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
	line-height: 35px !important;
	color: #212529 !important;
	padding-left: 11px;
}
.select2-container--default .select2-selection--single{
	min-height: 37px !important;
	border: solid 1px #6c757d;
	border-radius: 8px;
}

.form-check-input{
	border: 1px solid #6c757d;
}

/********************************Aditya Start************************************/
.accordion-body {
    background: #e9e9e9;
    padding: 15px;
    border-radius: 6px;
}
.accordion-body label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    color: #222;
}
.accordion-body .select2-container--default .select2-selection--multiple {
    background-color: #f4f4f4;
    border: 1px solid #cfcfcf;
    border-radius: 6px !important;
    min-height: 38px !important;
    padding: 4px !important;
}
.accordion-body .select2-container--default.select2-container--focus 
.select2-selection--multiple {
    border-color: #999;
    box-shadow: none;
}
.accordion-body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #5b86d6;
    color: #fff;
}
.accordion-body .select2-container--default .select2-selection__choice {
    background-color: #5b86d6;
    border: none;
    color: #fff;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
}
.accordion-body .select2-container--default .select2-selection__choice__remove {
    color: #fff;
    margin-right: 5px !important;
}
.accordion-body .select2-dropdown {
    border: 1px solid #cfcfcf;
    border-radius: 6px !important;
    padding: 4px 0 !important;
    overflow: hidden; /* important */
}
.accordion-body .select2-results__options {
    padding: 0 !important;
    margin: 0 !important;
}
.accordion-body .select2-container--default .select2-results__option {
    padding: 8px 12px !important;
    font-size: 14px !important;
}
.select2-container--default 
.select2-results__option--highlighted[aria-selected] {
    background-color: #5b86d6 !important;
    color: #fff !important;
}
.select2-container--default 
.select2-results__option[aria-selected=true] {
    background-color: #e9e9e9 !important;
    color: #000 !important;
}
.accordion-body .select2-container--default .select2-selection--multiple {
    background-color: #f4f4f4;
    border: 1px solid #cfcfcf;
    border-radius: 6px !important;
    min-height: 38px !important;
    padding: 4px !important;
}



.accordion-body .select2-container .select2-search--inline .select2-search__field{
position: relative;
top: -18px;
}

.accordion-body .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 3px 3px 5px 18px !important;
}
.accordion-body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #f1f1f1 !important;
}
.accordion-body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 1px solid var(--light-bg);
    padding: 2px 4px 5px !important;
}

.accordion-body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .accordion-body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
    background-color: var(--secondary-color);
}
/********************************Aditya End************************************/

@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }

}

/* DataTable responsive text fix */
/* table.dataTable td,
table.dataTable th {
    white-space: normal !important;
} */
	

/* table.dataTable th {
    white-space: nowrap !important;
} */


/* new one */
.text-primary {
	color: var(--primary-color) !important;
}

.text-grey {
	color: var(--bs-secondary-color);
}

.btn-outline-primary {
	--bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--primary-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--primary-color);
    --bs-gradient: none;
}

/* .btn-outline-secondary {
    --bs-btn-color: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6c757d;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-focus-shadow-rgb: 108,117,125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none
} */

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #dddddd;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

/* .btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #6c757d;
    --bs-btn-border-color: #6c757d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5c636a;
    --bs-btn-hover-border-color: #565e64;
    --bs-btn-focus-shadow-rgb: 130,138,145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #565e64;
    --bs-btn-active-border-color: #51585e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6c757d;
    --bs-btn-disabled-border-color: #6c757d
} */

.custom-callout{
	border-left-color: var(--primary-color);
}

.btn-link{
	color: var(--primary-color);
}

.btn-link:hover{
	color: #000;
}

.progress-bar{
	background-color: var(--primary-color);
}

.logout-fix{
	position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--primary-color);
}

/* Avatar */
.profile-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 22px;
  border: 2px solid rgba(255,255,255,0.35);
}

.profile-avatar span {
  color: #fff;
}

.status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #000;
}

/* Text */
.profile-info h2 {
  font-size: 22px;
  font-weight: 600;
}

.profile-info p {
  font-size: 14px;
  opacity: 0.85;
}

/* Badges */
.badge-custom {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
}

.badge-custom-outline {
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  background: transparent;
}

/* Buttons */
/* .profile-actions .btn {
  border-radius: 8px;
  font-size: 13px;
  padding: 6px 12px;
} */

.profile-actions .btn-outline-light {
  border-color: rgba(255,255,255,0.6);
}

/* .logout-btn{
	position: absolute;
    bottom: 0;
    background: #0000FF;
    width: 100%;
    color: #fff !important;
    border-radius: 0;	
	
} */

.logout-fixed {
    position: fixed;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary-color);
    z-index: 1000;
	transition: all 0.3s;
}

.logout-fixed .nav-link {
    color: #fff !important;
    border-radius: 0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
}


.sidebar-brand-link{
	color: #fff;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
}

.sidebar.collapsed + .logout-fixed {
    width: 70px;
}

.sidebar.collapsed + .logout-fixed .link-text {
    display: none;
}

.sidebar.collapsed + .logout-fixed .nav-link {
    justify-content: center;
}

.form-label {
    margin-bottom: 0.1rem;
}

.datepicker {
    padding: .375rem .75rem !important;
    border-radius: 8px !important;
    direction: ltr;
}

input[type="checkbox"] {
  accent-color: var(--primary-color);
}

input[type="checkbox"]:focus {
  box-shadow: 0 0 0 0.25rem #f0ecf0;
}


.form-switch .form-check-input:focus{
    /* --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, 0.25%29'/%3e%3c/svg%3e) !important; */
    width: 2em;
    margin-left: -2.5em;
    background-image: var(--bs-form-switch-bg) !important;
}

.form-switch .form-check-input:focus {
    --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, 0.25%29'/%3e%3c/svg%3e) !important;
}

.form-check-input:focus {
    /* border-color: #86b7fe; */
	border: var(--bs-border-width) solid var(--bs-border-color);
    outline: 0;
    box-shadow: 0 0 0 .25rem #dee2e6;
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: #000;
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-hover-bg: #f0ecf0;
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--primary-color);
    --bs-pagination-focus-bg: var(--bs-secondary-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem #f0ecf0;
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #000;
    --bs-pagination-active-border-color: #000;
    --bs-pagination-disabled-color: var(--bs-secondary-color);
    --bs-pagination-disabled-bg: var(--bs-secondary-bg);
    --bs-pagination-disabled-border-color: var(--bs-border-color);
    display: flex;
    padding-left: 0;
    list-style: none;
}

.bg-success{
	background-color: var(--primary-color) !important;
	color: #fff !important;
}

 .details_page_link_color{
	 cursor:pointer;
	 color: var(--primary-color);
	 font-weight:500;
 }
.btn-close:focus {
    box-shadow: 0 0 0 0.25rem #f0ecf0;
}

.search-box .input-group-text,
.search-box .form-control {
    border: 1px solid #ced4da;
}

.search-box:focus-within .input-group-text,
.search-box:focus-within .form-control {
    border-color: var(--primary-color);
    box-shadow: none !important;
}

.search-box .form-control:focus {
    box-shadow: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Selected option (works in most browsers) */
/* select option:checked {
  background-color: #365e5e !important;
  color: #fff !important;
}

/* Firefox only (hover/focus support) */
/* @-moz-document url-prefix() {
  select option:hover,
  select option:focus {
    background-color: #678E8E !important;
    color: #fff !important;
  }
}  */
#mainContent{
	overflow: hidden;
}

.document-item .fw-medium {
    word-break: break-word;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef !important;
}
.select2-dropdown{
	z-index: 1100 !important;
}

.select2-dropdown{
	z-index: 1100 !important;
}

.make_read_only{
 	pointer-events: none;      /* disables clicking */
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.make_read_only input,
.make_read_only select,
.make_read_only textarea {
    background-color: #f5f5f5 !important;
    pointer-events: none;
}

input[type="radio"], input[type="checkbox"] {
  height: 20px;
  width: 20px;
}


.col-id { width: 65px; }

/* .col-name { width: 150px !important; text-align:center;} */
.col-postcode { width: 110px !important; text-align:center;}
.col-status { width: 90px !important; text-align:center;}
.col-invoiceStatus { width: 140px !important; text-align:center;}
.col-contact { width: 50px !important; font-size: 13px !important; text-align:center;}
.col-view { width: 50px !important; font-size: 13px !important; text-align:center;}
.col-note { width: 50px !important; font-size: 13px !important; text-align:center;}
.col-history { width: 50px !important; font-size: 13px !important; text-align:center;}
.col-edit { width: 50px !important; font-size: 13px !important; text-align:center;}
.col-archive { width: 75px !important; font-size: 13px !important; text-align:center;}
.col-payment{ width: 50px !important; font-size: 13px !important; text-align:center;}
.col-docs { width: 50px !important; font-size: 13px !important; text-align:center;}
.col-Items { width: 50px !important; font-size: 13px !important; text-align:center;}
.col-orderRecieved { width: 170px !important; text-align:center;}
/* 
table.dataTable > tbody > tr > th, table.dataTable > tbody > tr > td {
    padding: 2px 3px !important;
} */

.td-NoSpace{
	padding: 3px 0 !important;
	/* padding-left: 0 !important;
	padding-right: 0 !important; */
	margin: 0 !important;
}

.td-NoSpace .btn{
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-padding-y: 0.25rem;
}

.item-doc-btn{
	width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


#locationDataTable{
	table-layout: auto;
}

#locationDataTable tr.strikethrough td {
    text-decoration: line-through;
}
#locationDataTable tr.group,
#locationDataTable tr.group:hover {
    /* background-color: rgba(0, 0, 0, 0.1) !important; */
	background-color: var(--primary-color) !important;
	color: #fff !important;
	/* font-weight: 500; */
    font-size: larger;
}
 
:root.dark #locationDataTable tr.group,
:root.dark #locationDataTable tr.group:hover {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

#locationDataTable tr.group-start, tr.group-start:hover {
    background-color: var(--primary-color) !important;
	color: #fff !important;
    cursor: pointer;
    font-weight: bold;
}

/* Optional: add +/- icons using a pseudo-element or Font Awesome */
/* For Font Awesome, ensure you have the library included */
#locationDataTable tr.group-start td:first-child::before {
    content: '-';
    display: inline-block;
    margin-right: 10px;
}

#locationDataTable tr.group-start.collapsed td:first-child::before {
    content: '+';
}

.tabs_bg{
	background-color:var(--primary-color);
}

.anchor-color{
	 cursor:pointer;
	 color:var(--primary-color);
	 font-weight:500;
}

#contactDataTable{
	table-layout: auto;
}

#contactDataTable tr.strikethrough td {
    text-decoration: line-through;
}
#contactDataTable tr.group,
#contactDataTable tr.group:hover {
    /* background-color: rgba(0, 0, 0, 0.1) !important; */
	background-color: var(--primary-color) !important;
	color: #fff !important;
	/* font-weight: 500; */
    font-size: larger;
}
 
:root.dark #contactDataTable tr.group,
:root.dark #contactDataTable tr.group:hover {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

#contactDataTable tr.group-start, tr.group-start:hover {
    background-color: var(--primary-color) !important;
	color: #fff !important;
    cursor: pointer;
    font-weight: bold;
}

/* Optional: add +/- icons using a pseudo-element or Font Awesome */
/* For Font Awesome, ensure you have the library included */
#contactDataTable tr.group-start td:first-child::before {
    content: '-';
    display: inline-block;
    margin-right: 10px;
}

#contactDataTable tr.group-start.collapsed td:first-child::before {
    content: '+';
}

.doc-table-wrapper{
    max-height:300px;
    overflow-x:auto;
}

.doc-table{
    width:100%;
    table-layout: auto;
}

.doc-table th,
.doc-table td{
    white-space: nowrap;
}

.doc-table td.text-break{
    white-space: normal;
    word-break: break-word;
}

/* .doc-table td:last-child{
    white-space: normal;
} */

.doc-table .item-doc-btn{
    padding:3px 6px;
}



/* dashboard */
.stats-card{
	border:1px solid #dbe7ff;
	border-radius:22px;
	box-shadow:0 8px 24px rgba(15,23,42,.08);
	overflow:hidden;
	background:#fff;
	transition:all .3s ease;
}
/* .stats-card:hover{
	transform:translateY(-4px);
	box-shadow:0 14px 35px rgba(15,23,42,.12);
} */
.stats-card .stats-header{
	/* background:linear-gradient(135deg,#3b82f6,#2563eb); */
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	padding: 13px 15px;
	color:#fff;
}
.stats-card .stats-title{
	font-size:16px;
	font-weight:700;
	margin-bottom:14px;
	color: #F0801A;
}
.stats-card .stats-title a{
	color: #F0801A;
	text-decoration: none;
}
.stats-card .stats-title a:hover{
	text-decoration: underline;
}

#btn_quotation_status,
#btn_purchase_status,
#btn_sales_status{
	font-size: 13px;
	padding: 1px 4px;
	border-radius: 4px;
}
.stats-card .stats-total{
	font-size:42px;
	font-weight:800;
	line-height:1;
}
.stats-card .stats-label{
	font-size:15px;
	opacity:.95;
	margin-left:8px;
}
.stats-card .stats-body{
	padding: 10px;
	background-color: #dadada;
}
.stats-card .job-stats-body{
	padding: 10px;
	/* background-color: #9F9C9E; */
}
.stats-card .list-group{
	gap:10px;
}
	
.stats-card .list-group-item{
	border: 1px solid #fff;
	border-radius: 8px;
	padding: 5px 5px;
	/* background:linear-gradient(90deg,#4A4447 0%, #9F9C9E 55%, #ffffff 100%); */
	/* background:linear-gradient(90deg,#9F9C9E 0%, #9F9C9E 55%, #ffffff 100%); */
	background-color: #fff;
	border: 1px solid #9F9C9E;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 14px rgba(15,23,42,.06);
	font-size:14px;
	font-weight:600;
	color:#1e293b;
	/* margin-bottom:10px; */
}

.stats-card .list-group-item:hover{
	cursor: pointer;
	border: 1px solid #F0801A;
	/* background:linear-gradient(90deg,#d5dde7 0%, #edf1f5 55%, #ffffff 100%); */
	transition:all .25s ease;
}

.stats-card .badge{
	min-width:30px;
	height:30px;
	padding:0 10px;
	display:flex;
	align-items:center;
	justify-content:center;
	border-radius:8px !important;
	/* background:var(--primary-color) !important; */
	background:var(--primary-color) !important;
	font-size:14px;
	font-weight:700;
	/* box-shadow:0 6px 14px rgba(37,99,235,.22); */
}

.stats-card .item-with-icon{
	display:flex;
	align-items:center;
}

/* .stats-card .badge.zero-badge{
	background:#eef2f7 !important;
	color:#64748b !important;
	box-shadow:none;
} */

.stats-card .icon-box{
	width:30px;
	height:30px;
	border-radius:8px;
	display:flex;
	align-items:center;
	justify-content:center;
	/* background:linear-gradient(135deg,#3b82f6,#2563eb); */
	background-color: var(--primary-color);
	color:#fff;
	margin-right:6px;
	font-size:14px;
	flex-shrink:0;
}

/* .stats-card .icon-box.gray{
	background:#eef2f7;
	color:#64748b;
} */

						
.date-filter{
	display:flex;
	align-items:end;
	flex-wrap: wrap;
	gap:10px;
	width:100%;
}

.date-box{
	flex:1;
}

.date-box label{
	display:block;
	font-size:13px;
	font-weight:600;
	color:#fff;
	margin-bottom:5px;
}

.date-box input{
	width:100%;
	border-radius:8px;
	height:30px;
}

.custom-list-group{
	gap:14px;
	display:flex;
	flex-direction:column;
}

.custom-table-responsive{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
}

.responsive-all-table{
    width:100%;
    min-width:1300px;
    white-space:nowrap;
    margin-bottom:0;
}

.responsive-all-table th,
.responsive-all-table td{
    vertical-align:middle;
	white-space: break-spaces;
    /* padding:6px; */
}

.filter_email {
    color: red;
    font-size: 8px;
    margin-left: 3px;
}

.stats-header-head{
	font-size: 16px;
	margin-bottom: 0;
	color: #F0801A;
}

/* Responsive Design */
@media (max-width: 920px) {
	.profile-actions {
		margin-top: 20px;
	}

	.profile-card {
		padding: 20px;
	}

	.btn-outline-primary {
        flex: 1;
    }

}

@media (max-width: 768px) {
	/* .sidebar {
		margin-left: -280px;
	} */
	
	.sidebar.mobile-show {
		margin-left: 0;
	}

	#mainContent {
		margin-left: 0 !important;
	}	

	#sidebar.mobile-open {
		transform: translateX(0);
	}		

	#sidebarToggle.toggle-fixed {
		position: fixed;
		top: 15px;
		left: 240px;
		z-index: 1300;
	}

	/* default state (closed) = normal flow */
	#sidebarToggle {
		position: static;
		transition: left 0.35s ease;
	}

	/* when sidebar opens → toggle becomes fixed and moves with it */
	#sidebar.mobile-open ~ #sidebarToggle,
	#sidebar.mobile-open + #sidebarToggle {
		position: fixed;
		top: 15px;
		left: calc(var(--sidebar-width) - 40px);
		z-index: 1300;
	}

	#sidebar {
		transform: translateX(-100%);
		transform: translateX(-100%);
		transition: transform 0.35s ease;
		will-change: transform;
	}
	#sidebar.mobile-open {
		transform: translateX(0);
	}

	.logout-fixed {
		transform: translateX(-100%);
		transition: transform 0.35s ease;
		/* width: calc(var(--sidebar-width) - 40px); */
	}

	/* show logout when sidebar opens */
	#sidebar.mobile-open + .logout-fixed {
		transform: translateX(0);
	}
	
	.main-content {
		margin-left: 0;
	}
	
	.main-content.expanded {
		margin-left: 0;
	}
	
	.submenu {
		margin: 5px 10px;
	}
	
	.submenu-item {
		padding-left: 35px;
	}
/* }

@media (max-width: 768px) { */
	.main-content {
		margin-left: 0;
	}
	
	/* .sidebar {
		margin-left: -280px;
	} */
	
	.sidebar.mobile-show {
		margin-left: 0;
	}
	
	.profile-header {
		text-align: center;
		padding: 30px 20px;
	}
	
	.page-info {
		padding-left: 0;
		margin-top: 20px;
	}
	
	/* .profile-avatar {
		width: 120px;
		height: 120px;
	} */
	
	.tab-navigation .nav-link {
		padding: 15px;
		/* padding: 20px 30px; */
		font-size: 14px;
	}

	div.dataTables_wrapper div.dataTables_length, div.dataTables_wrapper div.dataTables_filter, div.dataTables_wrapper div.dataTables_info, div.dataTables_wrapper div.dataTables_paginate {
        text-align: left !important;
		margin-left: 0px !important;
		/* float: none !important; */
    	/* clear: both !important; */
		width: 100% !important;
    }

	.dataTables_length label {
        justify-content: space-between;
        max-width: 100%;
    }

    .search-box {
        /* max-width: 100%; */
    }

	.export-buttons i,
	.batch-actions i{
		display: block;
		width: 100%;
	}

	div.dataTables_wrapper div.dataTables_filter{
		margin-bottom: 10px;
	}

	.doc-table th,
    .doc-table td{
        font-size:14px;
        padding:6px;
    }

    /* .doc-table td:last-child{
        display:flex;
        flex-wrap:wrap;
        gap:4px;
        justify-content:center;
    } */
}


@media (max-width: 576px) {
	.password-card {
		padding: 25px;
	}

	.card-header {
		padding: 0.5rem 0.5rem;
        flex-direction: column;
        align-items: flex-start !important;
        padding: 0.75rem;
    }

    .card-header h3 {
        margin-bottom: 8px;
        font-size: 1.1rem;
    }

    .card-header > div {
        width: 100%;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .card-header .btn {
        /* flex: 1; */
        justify-content: center;
    }

	.header_name{
		display: none;
	}

	.profile-card {
		margin-bottom: 0;
	}
	
	.password-actions {
		flex-direction: column;
	}

	.profile-card {
		padding: 15px;
	}

	.edit-btn {
		padding: 5px 15px;
	}

	.activity-item {
		margin-bottom: 15px;
		padding: 15px;
	}

	.document-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-item > div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 10px;
    }

	.document-item {
		padding: 10px;
	}

	.btn-outline-primary{
		flex: 1;
	}
	
	.nav-link{
		flex: 1;
	}
	
	/* .tab-navigation .nav-item{
		flex: 1;
	} */

	.action-buttons .btn{
		/* padding: 5px 8px; */
		font-size: 12px;
	}
	
}

@media (max-width: 390px) {
	.action-buttons .btn{
		padding: 5px 8px;
		/* font-size: 12px; */
	}

}

@media (max-width: 300px) {
	.input-group-text {
		padding: .2rem .3rem;
	}
}

/* ============================================================================
 * Quantities-&-costs rule builder — shared by the quotation line modal, the
 * cost-template editor (templates/form.php) and the quotation template picker.
 * ========================================================================== */
.qc-help        { font-size:.8rem; color:#5b6470; background:#fff; border:1px solid #e6e9ee; border-left:3px solid var(--primary-color); border-radius:8px; padding:.5rem .7rem; }
.qc-help i      { color:var(--primary-color); }
.qc-field       { background:#fff; border:1px solid #e6e9ee; border-top:3px solid var(--qc-accent,#6c757d); border-radius:10px; padding:.75rem .85rem; height:100%; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.qc-field-head  { display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--qc-accent,#495057); margin-bottom:.55rem; }
.qc-field-head i{ font-size:1rem; }
.qc-field-head .qc-head-label { display:flex; align-items:center; gap:.4rem; flex-shrink:0; }
.qc-head-rule   { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-weight:600; font-size:.72rem; letter-spacing:0; text-transform:none; color:#0d6efd; text-align:right; overflow-wrap:anywhere; }
.qc-head-rule:empty { display:none; }
.qc-field .form-select-sm, .qc-field .form-control-sm { font-size:.85rem; }
.qc-mode        { font-weight:500; background-color:#f8f9fb; }
.form-label-mini{ font-size:.7rem; color:#8a929c; margin-bottom:.15rem; }
.val-hint, .qc-term .t-val { background:#eef4ff; color:#0d6efd; font-weight:600; min-width:64px; justify-content:center; }
.qc-terms       { display:flex; flex-direction:column; gap:.3rem; }
.qc-term        { flex-wrap:nowrap; }
.qc-preview     { background:linear-gradient(90deg,#0f5132,#146c43); color:#fff; border-radius:10px; padding:.7rem 1rem; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.5rem .75rem; }
.qc-preview .pv-name { font-weight:700; font-size:1.05rem; max-width:100%; }
.qc-chips       { display:flex; gap:.5rem; flex-wrap:wrap; }
.qc-chip        { background:rgba(255,255,255,.16); border-radius:20px; padding:.2rem .8rem; font-size:.85rem; white-space:nowrap; }
.qc-chip b      { font-weight:700; }
.qc-chip-cost   { background:#fff; color:#0f5132; }
