:root{
    --body_bk_white_color: #FFFFFF;
    --body_bk_light_color: #ddd;/* F6F7F8 */
    --body-gray-bk-color: #F5F5F5;
    --body-primary-bk-color: linear-gradient(115.45deg, #08A1F7 16.12%, #004FE1 83.88%);
    --body-primaryhover-color: linear-gradient(115.45deg, #005d92 16.12%, #075af1 83.88%);
    --body-primary-text-color: #08A1F7;
    --body-hover-color2: #08E9F7;
    --body-light-color: #ffffff;
    --body-border-color: #4B4A5B;
    --body-border-color2: #313143;
    --body-border-color3: #EEEEEE;
    --body-fonts: 'Inter', sans-serif;
    --body-text-dark: #201F2D;
    --body-black-color:#000000;
    --body-darkgray-color: #d2d0d0;
    --body-text-dark2: #313143;
    --body-line-height: 1.3;
}

.userTaskPage .bgHead{padding: 8px;font-size: 17px;font-weight: 600; border-radius: 10px;}
.userTaskPage .dotted-bar {display: flex;gap: 4px;}
.userTaskPage .dot {width: 20px;height: 20px;background-color: #eee;position: relative;}
.userTaskPage .dot.full {background-color: #4caf50;}
.userTaskPage .dot.half::before {content: "";position: absolute;width: 50%;height: 100%;background-color: #4caf50;}
.userTaskPage .perShow{font-weight:600}
.spAppSts{margin-left:10px; padding: 1px 10px; border-radius: 5px;}
.content-header .alert{font-weight: 500;margin: 10px 0px 0px 0px;padding: 10px;}
.ts_section .list-group-flush > .list-group-item{ white-space: nowrap; border: none; font-size: 15px; font-weight:500;  }
.ts_section .list-group-flush > .list-group-item.active{background-color: var(--body_bk_light_color);color: var(--body-primary-text-color);border-color: var(--body_bk_light_color);border-radius: 0;position: relative;}
.ts_section .list-group-flush > .list-group-item.active::before{z-index: -1; content: ""; width: 30px; height: 100%; top: 0; right: -10px; position: absolute; background-color: var(--body_bk_light_color);}
.training_session_list{background-color: var(--body_bk_light_color); padding: 15px; border-radius: 0;}
.table>:not(:first-child){border-top:none;}
.arCls {
    border: 1px solid #112;
    padding: 5px;
    border-radius: 45%;
    cursor: pointer;
    font-size: 15px;background-color: #f5f5f5; margin: 2px 1px;
}
.aiLnk{cursor:pointer; color:#004FE1; margin-left:20px;}
.plus_icon {
    min-width: 35px;
    min-height: 35px;
    max-width: 35px;
    max-height: 35px;
    display: flex;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    background: #333;
    transition: .5s;
    cursor: pointer;
} 
span.notiarCls {
    border: 1px solid #112;
    padding: 4px;
    border-radius: 74%;
    cursor: pointer;
    font-size: 13px;
    background-color: #71c7ec;
}
.potpn{padding: 8px 20px; margin:5px 3px;background: #f5f5f5;border: 1px solid #dce0e6;border-radius: 35px;font-weight: 500; cursor: pointer;color: #485b79;}
.modal-header, .lgtBlue-mh{ background-color: #71c7ec;}
.sendNotiBtn{padding: 0px 10px; font-size: 13px; font-weight: 500;}
.smallRecp{display: block;padding-left: 16px;font-size: 95%;}
.form-label {margin-bottom: 3px;font-weight: 500;}
.form-fields{ margin-bottom: 10px;}
.error1{color: #dd4b39;display: inline-block;font-weight: 500;margin-bottom: 5px;max-width: 100%;}
label.error{color:#ff0000;}
.w100{width: 100%;}
.pro_stk_tbl a{ margin-bottom:2px;}
.fmc{font-weight: 500;font-size: 24px;letter-spacing: 0.5px;}
.plpr{padding-left:5px; padding-right:5px;}
.hr{margin-top: 15px;margin-bottom: 10px;border: 0;border-top: 1px dashed #ddd;}
.fw600{font-weight:500;} 
.login_err_msg .alert-danger{margin: 0; padding:8px 10px;}
.fs15{font-size: 15px;}
.fs16{font-size: 15px;}
.fs17{font-size: 17px;}
.fs18{font-size: 18px;}
.table th{vertical-align:top !important; font-weight: 600;}
.table small {display: block;margin-left: 5px; font-size: 90%;margin-top: 2px; font-weight:500;}
.table .btn-group-sm>.btn, .btn-sm {font-size:13px;}
a{cursor: pointer;}
.pro_name{font-weight:500;border-bottom:1px dashed #333; font-size: 14px;}
.pro_name:hover{border-bottom:1px dashed #40516C;}
.mstus {border: 1px dashed;padding: 1px 10px; font-size: 14px; font-weight:500; text-align:center;}
.accepted {color: green;}
.rejected {color: #a94442;}
.pending {color: #333;}

.tskSts {width: 15px;height: 15px;border-radius: 50%; margin-right: 5px;}
.tskLegSts {width: 10px;height: 10px;border-radius: 50%; margin-right: 5px;}
.notStarted {background-color: #e1304c; color: #fff;}
.inProgress {background-color: #fdab3d; color: #333;}
.completed {background-color: #01c875; color: #333;}
.pendingBg {background-color: #333; color: #fff;}
.flagSts{padding: 5px;border-radius: 15px;}

.leftRoleSec{background: #eee;border-radius: 10px;padding: 10px;}
.leftRoleSec .roleAssCon{ display: block;margin: 10px;}
.smlRoletag{ display: block;font-size: 95%;margin-left: 18px;}
option { padding:5px; }
label.col-sm-4.control-label {color: #333;}
.adminType {color: #ccc;font-weight: 400;font-size: 14px;margin-left: 5px;}
.btn{ font-weight: 400; cursor: pointer; font-size: 14px;}
.btn-primary{color:#fff;background-color:#40516C;border-color:#40516C}
.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#485b79;border-color:#485b79;box-shadow:0 0 0 .25rem rgba(64, 81, 108,.5);}
.btn-check:active+.btn-primary:focus, .btn-check:checked+.btn-primary:focus, .btn-primary.active:focus, .btn-primary:active:focus, .show>.btn-primary.dropdown-toggle:focus {    box-shadow: 0 0 0 .25rem rgba(64, 81, 108, .5);}
.btn-primary:hover{color:#fff;background-color:#485b79;border-color:#485b79}
.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#485b79;border-color:#485b79}
.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#485b79;border-color:#485b79}
.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}
.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#485b79;border-color:#485b79}

.modal-content .btn-primary{color:#212529;background-color:#71c7ec;border-color:#71c7ec; font-weight: 500;}
.modal-content .btn-primary.focus,.modal-content .btn-primary:focus{color:#212529;background-color:#71c7ec;border-color:#71c7ec;box-shadow:0 0 0 .25rem rgba(113, 199, 236,.5);}
.modal-content .btn-check:active+.btn-primary:focus, .modal-content .btn-check:checked+.btn-primary:focus, .modal-content .btn-primary.active:focus, .modal-content .btn-primary:active:focus, .modal-content .show>.btn-primary.dropdown-toggle:focus {    box-shadow: 0 0 0 .25rem rgba(113, 199, 236, .5);}
.modal-content .btn-primary:hover{color:#212529;background-color:#71c7ec;border-color:#71c7ec}
.modal-content .btn-primary.active,.modal-content .btn-primary:active,.modal-content .open>.dropdown-toggle.btn-primary{color:#212529;background-color:#71c7ec;border-color:#71c7ec}
.modal-content .btn-primary.active.focus,.modal-content .btn-primary.active:focus,.modal-content .btn-primary.active:hover,.modal-content .btn-primary:active.focus,.modal-content .btn-primary:active:focus,.modal-content .btn-primary:active:hover,.modal-content .open>.dropdown-toggle.btn-primary.focus,.modal-content .open>.dropdown-toggle.btn-primary:focus,.modal-content .open>.dropdown-toggle.btn-primary:hover{color:#212529;background-color:#71c7ec;border-color:#71c7ec}
.modal-content .btn-primary.active,.modal-content .btn-primary:active,.modal-content .open>.dropdown-toggle.btn-primary{background-image:none}
.modal-content .btn-primary.disabled.focus,.modal-content .btn-primary.disabled:focus,.modal-content .btn-primary.disabled:hover,.modal-content .btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#71c7ec;border-color:#71c7ec}

.btn-primary .badge{color:#337ab7;background-color:#fff}
.btn.pd30{ padding: 4px 30px;}
.btn.pd20{ padding: 4px 20px;}
.col-form-label {text-align: right;font-weight: 500;font-size: 15px;color: #333;}
.nbs-five{margin: 14px;}
.nbs-five .dropdown-menu{margin-top: 10px;}

.task-lnk{ display:block; cursor: pointer; margin-bottom:5px;}
.task-lnk:hover{ text-decoration:underline}
.tdgreen{ background-color:green;}
.cp{cursor: pointer; }
.cscritical{ background-color:#333 !important; color:#fff !important; }
.cshigh{background-color:#ff6725 !important; color:#fff !important;}
.csmedium{background-color:#fad83b !important; color:#333 !important;}
.cslow{background-color:#00d76d !important; color:#333 !important;}
.iwarning{color: #f5c300 !important;}
.task-lnk{ display:block; cursor: pointer; margin-bottom:5px;}
.task-lnk:hover{ text-decoration:underline}
.toggle-group .btn-xs{font-weight:400}

.ajaxFrmRes .alert{padding: 10px; font-weight: 500;}

.dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropbtn {
    background-color: unset;
    color: black;
    padding: 0;
    font-size: 4px;
    border: none;
    cursor: pointer;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #485b79;
    min-width: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding:5px;margin-top: -4px;
  }
  
  .dropdown-content .deBtn {
    color: white;
    padding: 3px 15px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content .deBtn:hover {
    background-color: #f1f1f1;
    color: #333;
    border-radius:3px;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .more-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #333;
    margin: 0 2px;
  }

  .icon-sm {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
  }
  .icon-sm:hover {
    stroke-width: 2;
  }

  .icon-lg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
  }

.modalbsToggle .bootstrap-toggle.btn {width: 200px; /* Adjust width as needed */}
.modalbsToggle .toggle-on, .modalbsToggle .toggle-off {padding-left: 12px;padding-right: 12px;}
.modalbsToggle .toggle.btn {min-width: 4.7rem;min-height: 1.55rem;}
.modalbsToggle .toggle-group label, .modalbsToggle .toggle-group span{ line-height:12px;font-size: 13px;}

.modalacToggle .bootstrap-toggle.btn {width: 100px; /* Adjust width as needed */}
.modalacToggle .toggle-on, .modalbsToggle .toggle-off {padding-left: 6px;padding-right: 6px;}
.modalacToggle .toggle.btn {min-width: 2.7rem;min-height: 1.55rem;}
.modalacToggle .toggle-group label, .modalbsToggle .toggle-group span{ line-height:12px;font-size: 13px;}

.page-item.active .page-link{
    background-color: #40516C;
    border-color: #40516C;
}
.page-link:focus{
    box-shadow:0 0 0 1px rgba(64, 81, 108,0.20);
}
.form-select:focus{
    box-shadow:0 0 0 1px rgba(64, 81, 108,0.20); border-color:#40516C;
}
.page-link:hover{ color: #40516C;}

.spReport{font-size:15px;}
.spReport .hclr{ color:#485b79;}
.spReport .topSec { font-size:18px;}
.spReport .topSec p { padding-bottom:5px; margin-bottom:0}
.spReport .topSec p label{font-weight:500; margin-left:10px;font-size:19px;}
.spReport .aiSum p{ line-height:25px;}

/* ============================================================
   Modern Analytics Page Design
   ============================================================ */
.analytics-page-wrapper {
	padding: 0;
	background: #f8f9fa;
	min-height: calc(100vh - 60px);
}

.analytics-header {
	background: linear-gradient(135deg, #485b79 0%, #e18125 100%);
	padding: 2.5rem 2rem;
	margin: -15px -15px 2rem -15px;
	border-radius: 0;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.analytics-header-content {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.analytics-icon-wrapper {
	width: 64px;
	height: 64px;
	background: rgba(255,255,255,0.2);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.analytics-header-text {
	flex: 1;
}

.analytics-title {
	font-size: 2rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.5px;
}

.analytics-subtitle {
	font-size: 1rem;
	color: rgba(255,255,255,0.9);
	margin: 0;
	font-weight: 400;
}

.manager-section {
	margin-bottom: 3rem;
	background: #fff;
	border-radius: 16px;
	padding: 2rem;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.manager-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid #f0f0f0;
}

.manager-avatar {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	background: linear-gradient(135deg, #485b79 0%, #e18125 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(72,91,121,0.3);
}

.manager-name {
	font-size: 1.5rem;
	font-weight: 600;
	color: #2c3e50;
	margin: 0;
	text-transform: capitalize;
	letter-spacing: -0.3px;
}

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
}

.project-card-wrapper {
	position: relative;
}

.project-card {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.05);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.project-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1.5rem 1.5rem 1rem 1.5rem;
	position: relative;
}

.project-icon {
	width: 48px;
	height: 48px;
	background: rgba(255,255,255,0.25);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: #fff;
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-card-actions {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-card:hover .project-card-actions {
	opacity: 1;
}

.view-badge {
	background: rgba(255,255,255,0.25);
	color: #fff;
	padding: 0.4rem 0.8rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	backdrop-filter: blur(10px);
}

.project-card-body {
	padding: 0 1.5rem 1rem 1.5rem;
	flex: 1;
}

.project-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 1.25rem 0;
	line-height: 1.4;
	letter-spacing: -0.3px;
}

.project-meta {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
}

.meta-item i {
	font-size: 1rem;
	width: 18px;
	text-align: center;
}

.meta-item span {
	font-weight: 500;
}

.meta-item strong {
	font-weight: 600;
}

.project-card-footer {
	padding: 1rem 1.5rem 1.5rem 1.5rem;
	display: flex;
	justify-content: flex-end;
	border-top: 1px solid rgba(255,255,255,0.2);
	margin-top: auto;
}

.project-arrow {
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.25);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.project-card:hover .project-arrow {
	transform: translateX(5px);
	background: rgba(255,255,255,0.35);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.empty-state-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 1.5rem;
	background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	color: #999;
}

.empty-state h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 0.5rem 0;
}

.empty-state p {
	font-size: 1rem;
	color: #7f8c8d;
	margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.analytics-header {
		padding: 1.5rem 1.25rem;
		margin: -15px -15px 1.5rem -15px;
	}
	
	.analytics-header-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.analytics-icon-wrapper {
		width: 56px;
		height: 56px;
	}
	
	.analytics-title {
		font-size: 1.5rem;
	}
	
	.analytics-subtitle {
		font-size: 0.9rem;
	}
	
	.manager-section {
		padding: 1.5rem;
	}
	
	.projects-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
	
	.project-card-header,
	.project-card-body,
	.project-card-footer {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

/* Legacy support for old class names */
.pmProList .project-box {position: relative;width: 100%;height: 100%;background: #f1f1f1;border-radius: 10px;box-shadow: 0 4px 12px rgba(0,0,0,0.1);padding: 20px;transition: all 0.3s ease;overflow: hidden;cursor: pointer;}
.pmProList .project-box:hover {/* background: #e0f7fa; */background: #dfe4ec;transform: translateY(-5px);cursor: pointer;}
.pmProList .project-box h3 { font-size: 20px;color: #333;}
.pmProList .project-box p {margin: 5px 0 0;font-size: 14px;color: #444;font-style: italic;cursor: pointer;}
.pmProList .project-box p label{font-weight: 500;margin-left: 1px;}
.pmProList .hover-arrow {position: absolute;bottom: 15px;right: 15px;opacity: 0.5;transform: translateX(-10px);transition: all 0.3s ease;font-weight: bold;color: #007BFF;}
.pmProList .project-box:hover .hover-arrow {opacity:1;transform: translateX(0);cursor: pointer;}


/* ============================================================
   AMEE Flow – System-Admin Modern Layout (No Sidebar)
   Scoped to body.af-system-admin so other panels are unaffected.
   ============================================================ */

/* ---------- Reset AdminLTE sidebar layout ---------- */
body.af-system-admin {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
	background: #f4f6f9 !important;
	overflow-x: hidden;
}
body.af-system-admin .main-header,
body.af-system-admin .main-sidebar {
	display: none !important;
}
body.af-system-admin .content-wrapper,
body.af-system-admin .main-footer {
	margin-left: 0 !important;
}
/* Sticky footer: wrapper fills viewport, content grows, footer stays at bottom */
body.af-system-admin .wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	/* Prevent stacking-context so modals inside can escape above the backdrop */
	transform: none !important;
	-webkit-transform: none !important;
	filter: none !important;
	perspective: none !important;
}
body.af-system-admin .content-wrapper {
	flex: 1 0 auto;
	background: #f4f6f9 !important;
	padding-top: 68px; /* offset for fixed navbar */
	/* Prevent stacking-context trap */
	transform: none !important;
	-webkit-transform: none !important;
}
body.af-system-admin .af-footer {
	flex-shrink: 0;
}

/* ---------- Header / Navbar ---------- */
.af-navbar {
	background: linear-gradient(45deg, #485b79 25%, #e18125 100%);
	padding: 0 1.8rem;
	min-height: 60px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.18);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1040;
	border: none;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.af-navbar .navbar-brand {
	color: #fff !important;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: .5px;
	padding: .5rem 0;
	margin-right: 1.5rem;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
}
/* Vertical divider after brand */
.af-navbar .navbar-brand::after {
	content: '';
	display: block;
	width: 1px;
	height: 28px;
	background: rgba(255,255,255,0.25);
	margin-left: 10px;
}
.af-navbar .navbar-brand:hover { color: #f0f0f0 !important; }
.af-navbar .navbar-brand .af-brand-icon {
	width: 34px;
	height: 34px;
	background: rgba(255,255,255,0.18);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	color: #fff;
	transition: background .2s ease;
}
.af-navbar .navbar-brand:hover .af-brand-icon {
	background: rgba(255,255,255,0.28);
}

/* Toggler */
.af-navbar .navbar-toggler {
	border: 2px solid rgba(255,255,255,0.45);
	padding: 4px 10px;
	border-radius: 8px;
}
.af-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.25); }
.af-navbar .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Nav item spacing */
.af-navbar .navbar-nav .nav-item {
	margin: 0 2px;
}

/* Nav links */
.af-navbar .nav-link {
	color: rgba(255,255,255,0.88) !important;
	font-size: .84rem;
	font-weight: 500;
	padding: .5rem 1rem !important;
	border-radius: 8px;
	transition: all .2s ease;
	white-space: nowrap;
	letter-spacing: .2px;
}
.af-navbar .nav-link:hover,
.af-navbar .nav-link:focus {
	color: #fff !important;
	background: rgba(255,255,255,0.16);
	border-radius: 38px;
}
.af-navbar .nav-item.af-active > .nav-link {
	color: #fff !important;
	background: rgba(255,255,255,0.22);
	border-radius: 38px;
}

/* Nav icon helpers */
.af-nav-icon { margin-right: 5px; font-size: .82rem; }
.af-sub-icon { width: 10px; }

/* Dropdown menus */
.af-navbar .dropdown-menu {
	border: none;
	border-radius: 12px;
	box-shadow: 0 10px 35px rgba(0,0,0,0.12);
	padding-bottom: 10px !important;
	padding-top: 10px !important;
	margin-top: .35rem;
	min-width: 220px;
	animation: afFadeIn .2s ease;
}
@keyframes afFadeIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.af-navbar .dropdown-menu .dropdown-item {
	padding: .5rem 1.15rem;
	font-size: .855rem;
	color: #444;
	transition: all .15s ease;
}
.af-navbar .dropdown-menu .dropdown-item:hover,
.af-navbar .dropdown-menu .dropdown-item:focus {
	background: linear-gradient(45deg, #485b79 25%, #e18125 100%);
	color: #fff;
	border-radius: 4px;
    width: 96%;
    margin-left: 5px;
    margin-right: 5px;
}
.af-navbar .dropdown-menu .dropdown-item i {
	width: 20px;
	text-align: center;
	margin-right: 8px;
	font-size: .82rem;
}
.af-navbar .dropdown-divider {
	margin: .3rem 0;
	border-top-color: #eaeaea;
}

/* Nested sub-dropdown */
.af-navbar .dropdown-submenu { position: relative; }
.af-navbar .dropdown-submenu > .dropdown-menu {
	top: 0; left: 100%;
	margin-top: -.45rem; margin-left: 0;
	border-radius: 10px;
}
.af-navbar .dropdown-submenu > .dropdown-item::after {
	content: "\f105";
	font-family: FontAwesome;
	float: right;
	margin-left: 10px;
	opacity: .6;
}

/* ---------- Profile dropdown ---------- */
.af-profile-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}
.af-profile-toggle img {
	width: 34px; height: 34px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255,255,255,0.5);
}
.af-profile-toggle .af-user-name {
	color: #fff;
	font-weight: 500;
	font-size: .88rem;
}
.af-profile-dropdown { min-width: 260px !important; border-radius: 14px !important; overflow: hidden; }

.af-profile-header {
	margin-top: -10px !important;
	margin-bottom: 10px !important;
	text-align: center;
	padding: 1.3rem 1rem 1rem;
	background: linear-gradient(45deg, #485b79 25%, #e18125 100%);
}
.af-profile-header img {
	width: 58px; height: 58px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255,255,255,0.55);
	margin-bottom: 8px;
}
.af-profile-header .af-pname {
	color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: 2px;
}
.af-profile-header .af-prole {
	color: rgba(255,255,255,0.78); font-size: .76rem;
}
.af-profile-header .af-plastlogin {
	color: rgba(255,255,255,0.65); font-size: .7rem; margin-top: 5px;
}

/* Profile toggle separator */
.af-navbar .navbar-nav:last-child {
	margin-left: 8px;
	padding-left: 12px;
	border-left: 1px solid rgba(255,255,255,0.18);
}

/* Logout link colour */
.af-logout-link { color: #dc3545; }
.af-logout-link:hover { color: #fff; }

/* Alert icon */
.af-alert-icon { margin-top: -3px; }

/* ---------- Sticky Table Header (sticks below fixed navbar) ---------- */
body.af-system-admin .table-responsive {
	overflow: visible !important;
}
body.af-system-admin .table thead th {
	position: sticky;
	z-index: 20;
	background: #f8fafc;
	color: #475569;
	font-weight: 700;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .6px;
	border: none;
	border-bottom: 2px solid #e2e8f0;
	padding: 14px 16px;
	white-space: nowrap;
	transition: background .2s;
}
body.af-system-admin .table thead th a { color: #475569; text-decoration: none; }
body.af-system-admin .table thead th a:hover { color: #e18125; }
body.af-system-admin .table thead th:first-child { border-radius: 12px 0 0 0; }
body.af-system-admin .table thead th:last-child  { border-radius: 0 12px 0 0; }
body.af-system-admin .dataTables_wrapper .table thead th {
	position: sticky;
	top: 60px;
	z-index: 20;
	background: #f8fafc;
	color: #475569;
}

/* ---------- Content area ---------- */
body.af-system-admin .content-header {
	padding: 15px 15px 0 15px;
}
body.af-system-admin .content-header > h1 {
	font-size: 1.45rem;
	font-weight: 600;
	color: #485b79;
}
body.af-system-admin .content-header > h1 small,
body.af-system-admin .content-header > h1 .pageSubTitle {
	font-size: .82rem;
	color: #888;
	font-weight: 400;
}

/* ============================================================
   Box & Table – Modern Redesign
   ============================================================ */

/* ---------- Box card ---------- */
body.af-system-admin .box {
	border-radius: 14px !important;
	border: none !important;
	box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
	overflow: visible;
	background: #fff;
	margin-bottom: 20px;
}

/* ---------- Box header ---------- */
body.af-system-admin .box-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 18px 20px 14px !important;
	border-bottom: 1px solid #eef0f3 !important;
	gap: 6px 0;
	background: #fff;
	border-radius: 14px 14px 0 0;
}
body.af-system-admin .box-header.no-border {
	border-bottom: 1px solid #eef0f3 !important;
}

/* Title: full width on its own line */
body.af-system-admin .box-header .box-title {
	width: 100%;
	font-size: 1.15rem;
	font-weight: 700;
	color: #485b79;
	margin-bottom: 10px;
	letter-spacing: .2px;
	display: flex;
	align-items: center;
	gap: 8px;
}
body.af-system-admin .box-header .box-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 20px;
	background: linear-gradient(180deg, #e18125, #485b79);
	border-radius: 2px;
	flex-shrink: 0;
}

/* Tools row: wraps below title, full width */
body.af-system-admin .box-header .box-tools {
	width: 100%;
	float: none !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 0;
}
body.af-system-admin .box-header .box-tools .form-control,
body.af-system-admin .box-header .box-tools .form-control-sm,
body.af-system-admin .box-header .box-tools select {
	height: 48px !important;
	border-radius: 38px !important;
	border: 1px solid #dce0e6 !important;
	font-size: .84rem;
	padding: 4px 12px;
	background: #f8f9fb;
	transition: border-color .2s, box-shadow .2s;
}
body.af-system-admin .box-header .box-tools .form-control:focus,
body.af-system-admin .box-header .box-tools select:focus {
	border-color: #485b79 !important;
	box-shadow: 0 0 0 3px rgba(72,91,121,0.12) !important;
	background: #fff;
}
body.af-system-admin .box-header .box-tools .input-group {
	border-radius: 8px;
}
body.af-system-admin .box-header .box-tools .input-group .input-group-text {
    border-radius: 0 8px 8px 0;
    background: #f8f9fb;
    border: 1px solid #e8e8e8;
    border-left: none;
    font-size: .82rem;
    color: #888;
    height: 45px !important;
    margin-left: -29px !important;
    z-index: 100;
    margin-top: 1px;
}
body.af-system-admin .box-header .box-tools .btn {
	border-radius: 8px;
	padding: 6px 16px !important;
	font-size: .84rem !important;
	font-weight: 500;
	letter-spacing: .2px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: all .2s ease;
}
body.af-system-admin .box-header .box-tools .btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0,0,0,0.13);
}

/* ---------- Box body ---------- */
body.af-system-admin .box-body {
	padding: 0 !important;
}

/* ---------- Table ---------- */
body.af-system-admin .table {
	margin-bottom: 0;
	border-collapse: separate;
	border-spacing: 0;
	width: 100% !important;
}
body.af-system-admin .table tbody tr {
	transition: background .15s ease;
}
body.af-system-admin .table tbody tr:hover {
	background: #f0f4fa !important;
}
body.af-system-admin .table tbody td {
	padding: 11px 14px;
	font-size: .88rem;
	color: #444;
	vertical-align: middle;
	border-top: 1px solid #f0f1f4;
}
body.af-system-admin .table-striped > tbody > tr:nth-of-type(odd) > td {
	background-color: #fafbfc;
}
body.af-system-admin .table-striped > tbody > tr:nth-of-type(even) > td {
	background-color: #fff;
}
body.af-system-admin .table tbody td .btn-sm {
	border-radius: 6px;
	padding: 3px 12px;
	font-size: .8rem;
}
body.af-system-admin .table tbody tr:last-child td:first-child { border-radius: 0 0 0 14px; }
body.af-system-admin .table tbody tr:last-child td:last-child  { border-radius: 0 0 14px 0; }

/* ---------- DataTables wrapper layout ---------- */
body.af-system-admin .dataTables_wrapper {
	padding: 0;
}
body.af-system-admin .dataTables_wrapper > table {
	width: 100% !important;
}

/* ---------- DataTables – top bar (search) ---------- */
body.af-system-admin .af-dt-top {
	display: flex;
	padding: 12px 16px 6px;
}
div.dataTables_wrapper div.dataTables_filter{
	width:100% !important;
}
div.dataTables_wrapper div.dataTables_filter label{
	width:100% !important;
}

body.af-system-admin .dataTables_filter {
	text-align: right;
	padding: 0;
}
body.af-system-admin .dataTables_filter label {
	font-size: .84rem;
	font-weight: 500;
	color: #666;
}
body.af-system-admin .dataTables_filter input {
	border: 1px solid #dce0e6;
	border-radius: 22px;
	padding: 10px 12px;
	font-size: .84rem;
	margin-left: 6px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	background: #f8f9fb;
}
body.af-system-admin .dataTables_filter input:focus {
	border-color: #485b79;
	box-shadow: 0 0 0 3px rgba(72,91,121,0.12);
	background: #fff;
}

/* ---------- DataTables – bottom bar (info + length + pagination) ---------- */
body.af-system-admin .af-dt-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: #f8f9fb;
	border-top: 1px solid #eef0f3;
	border-radius: 0 0 14px 14px;
	padding: 6px 0;
}
body.af-system-admin .af-dt-bottom .dataTables_info {
	padding: 8px 16px;
	font-size: .82rem;
	color: #888;
	flex: 1;
}
body.af-system-admin .af-dt-bottom .dataTables_length {
	padding: 8px 16px;
}
body.af-system-admin .af-dt-bottom .dataTables_length label {
	font-size: .82rem;
	font-weight: 500;
	color: #777;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
body.af-system-admin .af-dt-bottom .dataTables_length select {
	border: 1px solid #dce0e6;
	border-radius: 6px;
	padding: 3px 8px;
	font-size: .82rem;
	background: #f8f9fb;
	outline: none;
}
body.af-system-admin .af-dt-bottom .dataTables_paginate {
	padding: 8px 16px;
	margin-left: auto;
}
body.af-system-admin .dataTables_paginate .pagination {
	margin: 0;
	gap: 3px;
}
body.af-system-admin .dataTables_paginate .paginate_button {
	border-radius: 8px !important;
	font-size: .82rem;
	border: 1px solid #e0e3e8 !important;
	background: #fff !important;
	color: #485b79 !important;
	transition: all .2s ease;
	margin-top: 29px;
}
body.af-system-admin .dataTables_paginate .paginate_button:hover {
	background: #485b79 !important;
	color: #fff !important;
	border-color: #485b79 !important;
}
body.af-system-admin .dataTables_paginate .paginate_button.current {
	background: #485b79 !important;
	color: #fff !important;
	border-color: #485b79 !important;
	font-weight: 600;
}
body.af-system-admin .dataTables_paginate .paginate_button.disabled {
	opacity: .4;
	cursor: default;
}

/* Alert */
body.af-system-admin .alert { border-radius: 10px; border: none; }

/* ---------- Footer ---------- */
.af-footer {
	background: #485b79;
	color: rgba(255,255,255,0.85);
	padding: 16px 28px;
	font-size: .84rem;
}
.af-footer a {
	color: rgba(255,255,255,0.9);
	text-decoration: none;
	transition: color .2s;
}
.af-footer a:hover { color: #e18125; }
.af-footer .af-footer-tagline {
	color: rgba(255,255,255,0.55);
	font-style: italic;
	font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
	.af-navbar { padding: .5rem 1rem; }
	.af-navbar .navbar-brand::after { display: none; }
	.af-navbar .navbar-brand { margin-right: 0; }
	.af-navbar .navbar-nav .nav-item { margin: 1px 0; }
	.af-navbar .navbar-nav:last-child {
		margin-left: 0;
		padding-left: 0;
		border-left: none;
		border-top: 1px solid rgba(255,255,255,0.15);
		padding-top: 8px;
		margin-top: 6px;
	}
	.af-navbar .navbar-collapse {
		background: rgba(55,70,95,0.97);
		border-radius: 12px;
		padding: .8rem 1rem;
		margin-top: .5rem;
		box-shadow: 0 10px 30px rgba(0,0,0,0.25);
		max-height: 75vh;
		overflow-y: auto;
	}
	.af-navbar .dropdown-menu {
		background: rgba(255,255,255,0.08);
		box-shadow: none;
		border-radius: 8px;
	}
	.af-navbar .dropdown-menu .dropdown-item {
		color: rgba(255,255,255,0.88);
	}
	.af-navbar .dropdown-menu .dropdown-item:hover {
		background: rgba(255,255,255,0.13);
	}
	.af-navbar .dropdown-submenu > .dropdown-menu {
		left: 0;
		position: static;
		margin-left: 1rem;
	}
	.af-profile-dropdown {
		position: static !important;
		transform: none !important;
	}
	.af-profile-header {
		border-radius: 10px 10px 0 0;
	}
}

@media (max-width: 768px) {
	body.af-system-admin .box-header .box-tools {
		gap: 6px;
	}
	body.af-system-admin .box-header .box-tools .form-control,
	body.af-system-admin .box-header .box-tools select,
	body.af-system-admin .box-header .box-tools .input-group {
		width: 100% !important;
	}
	body.af-system-admin .box-header .box-tools .btn {
		flex: 1;
		min-width: 0;
	}
	body.af-system-admin .dataTables_filter,
	body.af-system-admin .dataTables_length,
	body.af-system-admin .dataTables_info,
	body.af-system-admin .dataTables_paginate {
		width: 100% !important;
		text-align: left !important;
		padding: 8px 14px;
	}
	body.af-system-admin .dataTables_paginate {
		margin-left: 0;
		border-radius: 0 0 14px 14px;
	}
	body.af-system-admin .dataTables_info {
		border-radius: 0;
	}
}

@media (max-width: 576px) {
	body.af-system-admin .content-header > h1 { font-size: 1.15rem; }
	.af-footer {
		text-align: center;
		padding: 14px 15px;
	}
	.af-footer .d-flex { flex-direction: column; gap: 4px; }
}

@media (min-width: 768px) {
	div.dataTables_wrapper div.dataTables_filter input{
		width: 30% !important;
	}
}

/* ============================================================
   Input Fields – Modern Redesign
   ============================================================ */
body.af-system-admin .form-control,
body.af-system-admin .form-select,
body.af-system-admin select.form-control,
body.af-system-admin textarea.form-control,
body.af-system-admin input[type="text"],
body.af-system-admin input[type="email"],
body.af-system-admin input[type="password"],
body.af-system-admin input[type="number"],
body.af-system-admin input[type="tel"],
body.af-system-admin input[type="url"],
body.af-system-admin input[type="search"],
body.af-system-admin input[type="date"],
body.af-system-admin input[type="datetime-local"],
body.af-system-admin input[type="time"] {
	border: 1px solid #dce0e6;
	border-radius: 22px !important;
	padding: 9px 38px !important;
	font-size: .88rem;
	color: #333;
	background: #f8f9fb;
	transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
body.af-system-admin .form-control:focus,
body.af-system-admin .form-select:focus,
body.af-system-admin select.form-control:focus,
body.af-system-admin textarea.form-control:focus,
body.af-system-admin input[type="text"]:focus,
body.af-system-admin input[type="email"]:focus,
body.af-system-admin input[type="password"]:focus,
body.af-system-admin input[type="number"]:focus,
body.af-system-admin input[type="tel"]:focus,
body.af-system-admin input[type="url"]:focus,
body.af-system-admin input[type="search"]:focus,
body.af-system-admin input[type="date"]:focus,
body.af-system-admin input[type="datetime-local"]:focus,
body.af-system-admin input[type="time"]:focus {
	border-color: #485b79 !important;
	box-shadow: 0 0 0 3px rgba(72,91,121,0.13) !important;
}
body.af-system-admin .form-control::placeholder,
body.af-system-admin input::placeholder {
	color: #adb3bd;
	font-weight: 400;
}
body.af-system-admin textarea.form-control {
	border-radius: 14px !important;
	min-height: 90px;
	resize: vertical;
}
body.af-system-admin select.form-control,
body.af-system-admin .form-select {
	padding-right: 36px !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23485b79' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px 10px;
}
/* Input groups (rounded pill ends) */
body.af-system-admin .input-group .form-control {
	border-radius: 22px 0 0 22px !important;
}
body.af-system-admin .input-group .input-group-text,
body.af-system-admin .input-group .input-group-append .btn,
body.af-system-admin .input-group .input-group-btn .btn {
	border-radius: 0 22px 22px 0 !important;
	border: 1px solid #dce0e6;
	background: #f0f2f5;
	color: #666;
	font-size: .84rem;
	transition: background .2s, border-color .2s;
}
body.af-system-admin .input-group .input-group-text:hover,
body.af-system-admin .input-group .input-group-append .btn:hover {
	background: #e2e6ec;
}
/* Labels */
body.af-system-admin label.control-label,
body.af-system-admin .form-label,
body.af-system-admin .col-form-label {
	font-weight: 500;
	color: #485b79;
	font-size: .88rem;
	margin-bottom: 5px;
}
/* Checkbox & Radio */
body.af-system-admin .form-check-input {
	border-radius: 4px;
	border: 1.5px solid #c0c6d0;
	width: 18px;
	height: 18px;
	transition: all .2s ease;
}
body.af-system-admin .form-check-input:checked {
	background-color: #485b79;
	border-color: #485b79;
}
body.af-system-admin .form-check-input:focus {
	box-shadow: 0 0 0 3px rgba(72,91,121,0.15);
	border-color: #485b79;
}
/* Disabled / readonly */
body.af-system-admin .form-control[disabled],
body.af-system-admin .form-control[readonly],
body.af-system-admin .form-control:disabled {
	background: #eef0f3 !important;
	color: #999;
	cursor: not-allowed;
	opacity: .7;
}

/* ============================================================
   Modal – Modern Redesign
   After JS moves modals to <body>, they share the root stacking
   context with .modal-backdrop. Use Bootstrap 5 defaults:
   backdrop 1050 · modal 1055 · navbar 1040 → correct layering.
   ============================================================ */

/* --- z-index (matches Bootstrap 5 defaults, above navbar 1040) --- */
body.af-system-admin .modal-backdrop {
	z-index: 1050 !important;
}
body.af-system-admin .modal {
	z-index: 1055 !important;
}

/* --- Vertical + Horizontal Centering --- */
body.af-system-admin .modal-dialog {
	display: flex;
	align-items: center;
	min-height: calc(100% - 1rem);
	margin: .5rem auto;
}
body.af-system-admin .modal-content {
	width: 100%;
	border: none !important;
	border-radius: 18px !important;
	box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.08) !important;
	overflow: hidden;
}

/* --- Backdrop appearance --- */
body.af-system-admin .modal-backdrop.show {
	opacity: 1;
	background: rgba(30,40,55,0.45);
}

/* --- Header --- */
body.af-system-admin .modal-header {
	background: linear-gradient(45deg, #485b79 25%, #e18125 100%) !important;
	color: #fff !important;
	border-bottom: none !important;
	padding: 16px 24px !important;
	border-radius: 18px 18px 0 0 !important;
	position: relative;
}
body.af-system-admin .modal-header .modal-title,
body.af-system-admin .modal-header h4,
body.af-system-admin .modal-header h5 {
	color: #fff !important;
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: .2px;
}
/* Close button (works with .close, .btn-close, [data-bs-dismiss]) */
body.af-system-admin .modal-header .close,
body.af-system-admin .modal-header .btn-close,
body.af-system-admin .modal-header [data-bs-dismiss="modal"],
body.af-system-admin .modal-header [data-dismiss="modal"] {
	color: #fff !important;
	opacity: .85;
	text-shadow: none;
	font-size: 1.3rem;
	transition: opacity .2s, transform .2s;
	filter: brightness(0) invert(1);
	cursor: pointer;
	z-index: 2;
	position: relative;
}
body.af-system-admin .modal-header .close:hover,
body.af-system-admin .modal-header .btn-close:hover,
body.af-system-admin .modal-header [data-bs-dismiss="modal"]:hover,
body.af-system-admin .modal-header [data-dismiss="modal"]:hover {
	opacity: 1;
	transform: scale(1.15);
}

/* --- Body --- */
body.af-system-admin .modal-body {
	padding: 24px 24px 18px !important;
	background: #fff;
	font-size: .9rem;
	color: #444;
}

/* --- Footer --- */
body.af-system-admin .modal-footer {
	border-top: 1px solid #eef0f3 !important;
	padding: 14px 24px !important;
	background: #fafbfc;
	border-radius: 0 0 18px 18px !important;
	gap: 8px;
}
body.af-system-admin .modal-footer .btn {
	border-radius: 22px !important;
	padding: 8px 22px !important;
	font-size: .86rem !important;
	font-weight: 500;
	letter-spacing: .2px;
	transition: all .2s ease;
}
body.af-system-admin .modal-footer .btn-primary {
	background: linear-gradient(45deg, #485b79, #e18125) !important;
	border: none !important;
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(72,91,121,0.25);
}
body.af-system-admin .modal-footer .btn-primary:hover {
	box-shadow: 0 4px 14px rgba(72,91,121,0.35);
	transform: translateY(-1px);
}
body.af-system-admin .modal-footer .btn-default,
body.af-system-admin .modal-footer .btn-secondary {
	background: #f0f2f5 !important;
	border: 1px solid #dce0e6 !important;
	color: #555 !important;
	border-radius: 22px !important;
}
body.af-system-admin .modal-footer .btn-default:hover,
body.af-system-admin .modal-footer .btn-secondary:hover {
	background: #e4e7ec !important;
	transform: translateY(-1px);
}

/* --- Animation --- */
body.af-system-admin .modal.fade .modal-dialog {
	transform: translateY(-30px) scale(0.97);
	transition: transform .3s ease, opacity .3s ease;
}
body.af-system-admin .modal.show .modal-dialog {
	transform: translateY(0) scale(1);
}

/* --- Scrollable modals --- */
body.af-system-admin .modal-dialog-scrollable .modal-body {
	border-radius: 0;
}

/* --- Modal form inputs inherit the rounded style --- */
body.af-system-admin .modal-body .form-control,
body.af-system-admin .modal-body select,
body.af-system-admin .modal-body textarea {
	border-radius: 22px !important;
}
body.af-system-admin .modal-body textarea {
	border-radius: 14px !important;
}

/* ---------- Scrollbar (system-admin only) ---------- */
body.af-system-admin ::-webkit-scrollbar { width: 18px; }
body.af-system-admin ::-webkit-scrollbar-track { background: #f1f1f1; }
body.af-system-admin ::-webkit-scrollbar-thumb { background: #485b79; border-radius: 0px; }
body.af-system-admin ::-webkit-scrollbar-thumb:hover { background: #3a4a63; }

.box-header>.box-tools{
	position:initial !important;
}

/* Move dataTables length to bottom - align with pagination */
#table_recordtbl_mam_wrapper .row:last-child {
	align-items: center;
}
#table_recordtbl_mam_wrapper .row:last-child .dataTables_length {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Sticky cloned thead for DataTables - Universal */
.af-sticky-header {
	display: none;
	position: fixed;
	top: 60px;
	left: 0;
	right: 0;
	z-index: 1030;
	background: #fff;
	box-shadow: 0 3px 8px rgba(0,0,0,0.12);
	overflow: hidden;
	padding-left: 10px;
	padding-right: 10px;
}
.af-sticky-header .dataTables_scrollHeadInner {
	box-sizing: content-box;
}
.af-sticky-header table {
	margin-bottom: 0 !important;
}
.af-sticky-header table thead th {
	border-bottom: 2px solid #dee2e6;
	vertical-align: middle;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.af-sticky-header {
		top: 56px;
	}
}

/* MAM table – top horizontal scrollbar */
#mam-top-scrollbar {
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	margin-bottom: 0;
	height: 18px;
}
#mam-top-scrollbar::-webkit-scrollbar { height: 18px; }
#mam-top-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0; }
#mam-top-scrollbar::-webkit-scrollbar-thumb { background: #485b79; border-radius: 0; }
#mam-top-scrollbar::-webkit-scrollbar-thumb:hover { background: #3a4a63; }
#mam-top-scrollbar-inner {
	height: 1px;
}

/* MAM table – sticky scrollbar (fixed below sticky header) */
#mam-sticky-scrollbar {
	display: none;
	position: fixed;
	top: 60px; /* adjusted dynamically via JS */
	left: 0;
	right: 0;
	z-index: 1029;
	overflow-x: auto;
	overflow-y: hidden;
	height: 24px;
}
#mam-sticky-scrollbar::-webkit-scrollbar { height: 18px; width: 18px; }
#mam-sticky-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0; }
#mam-sticky-scrollbar::-webkit-scrollbar-thumb { background: #485b79; border-radius: 0; }
#mam-sticky-scrollbar::-webkit-scrollbar-thumb:hover { background: #3a4a63; }
#mam-sticky-scrollbar-inner {
	height: 1px;
}

/* MAM table – sticky header clone */
#mam-sticky-header {
	display: none;
	position: fixed;
	top: 60px;
	left: 0;
	right: 0;
	z-index: 1030;
	background: #fff;
	box-shadow: 0 3px 12px rgba(0,0,0,.08);
	overflow: hidden;
}
#mam-sticky-header .dataTables_scrollHeadInner {
	box-sizing: content-box;
}
#mam-sticky-header table {
	margin-bottom: 0 !important;
}
#mam-sticky-header table thead th {
	border-bottom: 2px solid #e2e8f0;
	vertical-align: middle;
	white-space: nowrap;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	padding: 12px 10px;
}
@media (max-width: 767px) {
	#mam-sticky-header {
		top: 56px;
	}
}
/* Fixed-column backgrounds & sticky enforcement */
.table.dataTable thead tr>.dtfc-fixed-left,
.table.dataTable thead tr>.dtfc-fixed-right{
	background-color: #f0f3f8 !important;
	position: sticky !important;
	z-index: 22 !important;
}
.table.dataTable tbody tr>.dtfc-fixed-left,
.table.dataTable tbody tr>.dtfc-fixed-right{
	background-color: #f8fafd !important;
	position: sticky !important;
	z-index: 11 !important;
}

/* ============================================================
   Modern Form Select Fields (Sampling Plan & Reports)
   ============================================================ */
.form-control.modern-select,
select.modern-select {
	border: 2px solid #e0e0e0 !important;
	border-radius: 8px !important;
	padding: 0.65rem 1rem !important;
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	color: #2c3e50 !important;
	background-color: #fff !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
	height: auto !important;
}

.form-control.modern-select:focus,
select.modern-select:focus {
	border-color: #485b79 !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(72,91,121,0.1) !important;
	background-color: #fff !important;
}

.form-control.modern-select:hover:not(:disabled),
select.modern-select:hover:not(:disabled) {
	border-color: #b0b0b0 !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.form-control.modern-select:disabled,
select.modern-select:disabled {
	background-color: #f5f5f5 !important;
	cursor: not-allowed !important;
	opacity: 0.7 !important;
}

.form-label {
	font-weight: 600;
	color: #2c3e50;
	font-size: 0.9rem;
	letter-spacing: 0.3px;
	margin-bottom: 0.5rem;
	display: block;
}

.btn-modern {
	border-radius: 8px;
	padding: 0.65rem 1.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	box-shadow: 0 2px 8px rgba(72,91,121,0.2);
	transition: all 0.3s ease;
	border: none;
}

.btn-modern:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(72,91,121,0.3);
}

.btn-modern i {
	margin-right: 0.5rem;
}

/* Disabled view link styling */
.pro_name[style*="cursor: not-allowed"],
span[style*="cursor: not-allowed"] {
	opacity: 0.6;
	text-decoration: none;
	pointer-events: none;
}

/* Feedback badge styling */
.badge.bg-warning.text-dark {
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.badge.bg-warning.text-dark:hover {
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(255,193,7,0.3);
}

/* ============================================================
   No Data Found Message for Empty Tables
   ============================================================ */
.no-data-row {
	background-color: #fafafa !important;
}

.no-data-row td {
	border: none !important;
	padding: 3rem 1rem !important;
}

.no-data-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

.no-data-message i {
	opacity: 0.5;
	animation: fadeIn 0.5s ease;
}

.no-data-message p {
	animation: fadeIn 0.5s ease 0.1s both;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Ensure no-data row doesn't get striped */
.table-striped tbody tr.no-data-row:nth-of-type(odd) {
	background-color: #fafafa !important;
}

.input-group{
	flex-wrap: initial !important;
}
.btn-danger{
	background-color: #ff5454d1;
	border: none;
    border-radius: 38px !important;
    color: black;
}
.btn-warning{
	border-radius: 39px !important;
}
.btn-primary{
    border-radius: 38px !important;
}
.btn-success{
	border-radius: 38px !important;
}

/* ============================================================
   DataTables Sorting Icons – Font Awesome replacement
   (Glyphicons not available in Bootstrap 5)
   ============================================================ */
body.af-system-admin table.dataTable thead .sorting:after,
body.af-system-admin table.dataTable thead .sorting_asc:after,
body.af-system-admin table.dataTable thead .sorting_desc:after,
body.af-system-admin table.dataTable thead .sorting_asc_disabled:after,
body.af-system-admin table.dataTable thead .sorting_desc_disabled:after {
	font-family: 'FontAwesome' !important;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-block !important;
	font-size: .72rem;
}
body.af-system-admin table.dataTable thead .sorting:after {
	content: "\f0dc" !important; /* fa-sort (up+down arrows) */
	opacity: 0.3;
	color: #8b97a8;
}
body.af-system-admin table.dataTable thead .sorting_asc:after {
	content: "\f0de" !important; /* fa-sort-asc (up arrow) */
	opacity: 0.7;
	color: #485b79;
}
body.af-system-admin table.dataTable thead .sorting_desc:after {
	content: "\f0dd" !important; /* fa-sort-desc (down arrow) */
	opacity: 0.7;
	color: #485b79;
}
body.af-system-admin table.dataTable thead .sorting_asc_disabled:after {
	content: "\f0de" !important;
	opacity: 0.15;
	color: #ccc;
}
body.af-system-admin table.dataTable thead .sorting_desc_disabled:after {
	content: "\f0dd" !important;
	opacity: 0.15;
	color: #ccc;
}
body.af-system-admin table.dataTable thead > tr > th {
	padding-right: 30px;
	position: relative;
	cursor: pointer;
}
