.full-logo-icon {
    height: 36px;
}
.form-select {
	padding-top: .4rem;
}
.btn:active {
	background: #105543 !important;
	color: #fff !important;
    border-color: #0E3B2E !important;
}
.btn-close:active {
	background: #00000000 !important;
	color: #0E3B2E !important;
    border: 0 !important;
}
.app-btn-secondary-danger {
    background: #fff;
    color: #d78478;
    border: 1px solid #d78478;
}
.app-btn-secondary-danger:hover {
    background: #fff;
    color: #cd685a !important;
    border: 1px solid #cd685a !important;
}
.app-btn-secondary-danger:active {
	background: #cd685a !important;
	color: #fff !important;
    border-color: #cd685a !important;
}

.app-btn-secondary-success {
    background: #fff;
    color: #0E3B2E;
    border: 1px solid #0E3B2E;
}
.app-btn-secondary-success:hover {
    background: #fff;
    color: #105543 !important;
    border: 1px solid #105543 !important;
}

input:disabled {
	cursor: not-allowed;
}
select:disabled {
	cursor: not-allowed;
}
textarea:disabled {
	cursor: not-allowed;
}
.border-left-green {
    border-left: 3px solid #0E3B2E !important;
}
.border-left-danger {
    border-left: 3px solid #cd685a !important;
}
.border-left-warn {
    border-left: 3px solid #eebf41 !important;;
}
.border-left-info {
    border-left: 3px solid #5b99ea !important;	
}

.donut-adjust{
	position: relative; width: 900px;
}


/* Container box style definitions */
.upload-box {
    width: 100%;
    max-width: 100%;
    height: 340px;
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

/* Inner container tracking items layout structure */
.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Crucial: prevents text/image from intercepting drag gestures */
    pointer-events: none; 
}

/* Custom SVG Vector Graphics Icon presentation settings */
.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    fill: #94a3b8;
    transition: all 0.2s ease-in-out;
}

.upload-text {
    color: #475569;
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.upload-subtext {
    color: #94a3b8;
    margin: 0;
    font-size: 13px;
}

/* Activated hover states managed dynamically by jQuery script below */
.upload-box.dragover {
    background: #f0fdf4;
    border-color: #22c55e;
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.1);
}

.upload-box.dragover .upload-icon {
    fill: #22c55e;
    transform: scale(1.1);
}

/* Error state for invalid file formats */
.upload-box.error-state {
    background: #fef2f2;
    border-color: #ef4444;
    animation: shake 0.4s ease-in-out;
}

.upload-box.error-state .upload-icon {
    fill: #ef4444;
}


.upload-box.processing-state {
    background: rgb(223, 230, 255);
    border-color: rgb(74, 74, 255);
    animation: shake 0.4s ease-in-out;
}

.upload-box.processing-state .upload-icon {
    fill: rgb(74, 74, 255);
}

.file-processing {
	color: rgb(74, 74, 255);
}

      /* Attention grabbing animation for blocked formats */
 @keyframes shake {
     0%, 100% { transform: translateX(0); }
     25% { transform: translateX(-6px); }
     75% { transform: translateX(6px); }
 }
 
 .cursor-pointer{
 	cursor: pointer;
 }
 
        /* Change the default square handle color */
.slider .ui-slider-handle {
    background: #0E3B2E; 
    border: 1px solid #0E3B2E; 
}

/* Optional: Change the color when hovering over the square */
.slider .ui-slider-handle.ui-state-hover {
    background: #105543;
}

/* Optional: Change the color when clicking/dragging the square */
.slider .ui-slider-handle.ui-state-active {
    background: #105543;
}
.slider .ui-slider-handle.ui-corner-all.ui-state-default{
	    background: #0E3B2E !important; 
    border: 1px solid #0E3B2E !important; 
}

.slider {
	font-size:0.5em !important;
	margin-top: 0.4em;
}

.slider-text {
	font-size:0.8em;
	color:#0E3B2E;
}

.slider-header {
	font-size:0.9em !important;
	color:#5d6778;
	/*color:rgb(0, 0, 0) !important;
	font-weight: bold !important;*/
}
.slider-value {
	font-size:0.9em;
	color:#0E3B2E;
	font-weight: bold;
}

.rotate-45{
	transform: rotate(45deg);
}
.rotate-90{
	transform: rotate(90deg);
}
.rotate-180{
	transform: rotate(180deg);
}
.stats-type-transparency{
	font-size: .775rem !important;
}
.stats-figure-transparency{
	font-size: 1.2rem !important;
}


/* KPI CARD */

.kpi-card{

    border:0;

    border-radius:16px; /* same corners as every card (.app-card) */

    box-shadow:0 8px 30px rgba(20,40,80,.06);

    transition:.25s;

    background:#fff;

}

.kpi-card:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(20,40,80,.10);

}

.kpi-card .card-body{

    padding:30px 22px;

}

.metric-icon{

    width:62px;

    height:62px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:28px;

}

.metric-success{

    background:#edf9f2;

    color:#1e8f5a;

}

.metric-info{

    background:#eef6ff;

    color:#2f6df6;

}

.metric-warn{

    background:rgb(255, 249, 238);

    color:rgb(245, 197, 48);

}

.metric-danger{

    background:rgb(255, 240, 238);

    color:rgb(245, 57, 48);

}

.metric-good{

    background:rgb(237, 249, 250);

    color:rgb(29, 132, 143);

}

.metric-female{

    background:#f5f2ff;

    color:#7a4df5;

}

.metric-male{

    background:#eef6ff;

    color:#2f6df6;

}

.metric-overall{

    background:#eef7ff;

    color:#4285f4;

}

.kpi-title{

    font-size:.74rem;

    font-weight:600;

    letter-spacing:.09em;

    color:#7d8797;

    /*margin-bottom:12px;*/

}

.kpi-value{

    font-size:1.6rem;

    font-weight:600;

    color:#2b3552;

    /*line-height:1.1;*/

    /*min-height:48px;*/

}
.kpi-value-simulated{

    font-size:1.4rem;

    font-weight:400;

    color:#717b97;

    /*line-height:1.1;*/

    /*min-height:48px;*/

}

.kpi-footer{

    margin-top:18px;

    color:#8b95a8;

    font-size:.86rem;

}

.kpi-footer i{

    margin-right:5px;

}
.control-panel{

    border-radius:16px; /* same corners as every card (.app-card) */

}

.panel-icon{

    width:48px;

    height:48px;

    border-radius:50%;

    background:#eef7f3;

    color:#1b6b4d;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

}

.section-title{

    text-transform:uppercase;

    letter-spacing:.08em;

    color:#8a93a5;

    font-size:.75rem;

    font-weight:700;

    margin-bottom:25px;

}

.slider-group{

    display:flex;

    flex-direction:column;

    gap:26px;

}

.slider-item{

    display:flex;

    flex-direction:column;

}

.slider-h1{

	font-size:1.1em;
}

.slider-title{

    font-weight:500;

    color:#4c5568;
	
	font-size:0.9em;
}

.slider-value{

    font-weight:700;

    color:#156b47;

}
.slider-icon{

	font-size:1.2em;
	color:#0E3B2E;
    font-weight:700;
/*
    color:#156b47;*/

}



.slider-item small{

    color:#8b93a2;

    font-size:.82rem;

}

.alert{

    border:0;

    background:white;

   /* background:#f7f9fc;**/

}
/* Only the row under the cursor is highlighted (the table itself keeps the card's white) */
.app-table-hover>tbody>tr:hover>* {
    background-color: rgb(153 153 153 / 8%) !important;
}
.btn-small{
	padding: .125rem .5rem;
    font-size: .75rem;
}
.text-green{
	color: #0E3B2E;
    text-decoration: none;
}

.bg-progress-green {
    --bs-bg-opacity: 1;
    background-color: #0E3B2E !important;
}

.pov-active {
    background: #105543;
    color:  #fff !important;
    border: 1px solid #105543 !important;
}

.pov-male-active {
    background: #105543;
    color:  #fff !important;
    border: 1px solid #105543 !important;
}
.pov-female-active {
    background: #cd685a ;
    color:  #fff !important;
    border: 1px solid #cd685a  !important;
}
.pov-male-active:hover {
    background: #105543;
    color:  #fff !important;
    border: 1px solid #105543 !important;
}
.pov-female-active:hover {
    background: #cd685a ;
    color:  #fff !important;
    border: 1px solid #cd685a  !important;
}
.page-link.active,.active>.page-link {
    z-index: 3 !important;
    color: white !important;
    background-color: #105543 !important;
    border-color: #0E3B2E !important;
}
.page-link:hover {
    z-index: 2;
    color: var(--bs-pagination-hover-color);
    background-color: var(--bs-pagination-hover-bg);
    border-color: var(--bs-pagination-hover-border-color);
}
.page-link {
    position: relative;
    display: block;
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: 0.8rem; /*var(--bs-pagination-font-size);*/
    color: #105543 !important;
    text-decoration: none;
    background-color: var(--bs-pagination-bg);
    border: var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out
}

.dt-paging .dt-paging-button {
    font-size: 12px !important;
}
.dt-paging .dt-paging-button {
    font-size: 12px !important; /* Adjust pixel size as needed */
}

.dt-info{
    font-size: 0.8rem; /*var(--bs-pagination-font-size);*/
}
.dt-length{
    font-size: 0.8rem; /*var(--bs-pagination-font-size);*/
}
.dt-search{
    font-size: 0.8rem; /*var(--bs-pagination-font-size);*/
}
/* Change cursor for the color preview swatch icon inside the input */
.minicolors-swatch {
  cursor: pointer;
}

/* Change cursor for the dropdown color picker panel */
.minicolors-panel, 
.minicolors-grid, 
.minicolors-slider {
  cursor: crosshair; /* Crosshair is excellent for pinpointing colors */
}

/*Editor*/
/* 1. Shrink the entire toolbar container height */
.ql-toolbar.ql-snow {
  padding: 4px 8px !important;  /* Default is usually 8px */
}

/* 2. Resize the buttons and dropdown selectors */
.ql-toolbar.ql-snow button, 
.ql-toolbar.ql-snow .ql-picker-label {
  width: 20px !important;   /* Default is 28px */
  height: 20px !important;  /* Default is 24px */
  padding: 2px !important;  /* Adjust padding to prevent clipping */
}

/* 3. Force the SVG icons inside the buttons to scale down */
.ql-toolbar.ql-snow button svg {
  width: 12px !important;  /* Default is usually 18px */
  height: 12px !important;
}

/* 4. Adjust the dropdown arrow and text placement */
.ql-toolbar.ql-snow .ql-picker {
  height: 24px;
  line-height: 20px;
}
.ql-toolbar.ql-snow .ql-picker-label svg {
  right: 2px !important; /* Prevents the dropdown arrow from overlapping text */
}

.ql-editor {
  font-size: 13px !important;; /* Adjust this value to your preferred smaller size */
  line-height: 1.1 !important;
}

.html-editor {
  padding: .375rem 0.2rem;
}

.ql-snow .ql-picker.ql-font {
  width: 140px; /* Adjust this value if your custom font names are longer */
}

/* Ensure the selected text doesn't clash with the arrow icon */
.ql-snow .ql-picker.ql-font .ql-picker-label {
  padding-right: 22px; 
}

/* Remove the dropdown arrow icon ONLY for header and size pickers */
.ql-snow .ql-picker.ql-header .ql-picker-label svg,
.ql-snow .ql-picker.ql-size .ql-picker-label svg {
  display: none !important;
}

/* Reset the right padding for just these two pickers */
.ql-snow .ql-picker.ql-header .ql-picker-label,
.ql-snow .ql-picker.ql-size .ql-picker-label {
  padding-right: 8px !important;
}

.ql-snow .ql-picker.ql-header {
    width: 60px !important;
}

.ql-snow .ql-picker.ql-size {
    width: 60px !important;
}

.ql-toolbar.ql-snow .ql-formats {
    margin-right: 2px !important;
}


/*group section*/
  :root{
    --forest:#0E3B2E;
    --forest-light:#E7F1EC;
    --amber:#B7791F;
    --amber-bg:#FBF3E3;
    --red:#B4432E;
    --red-bg:#FBEAE6;
    --blue:#2E5FA3;
    --blue-bg:#EAF0FA;
    --bg-main:#F4F5FB;
    --card-border:#E7E8F1;
    --text-dark:#1C1F1D;
    --text-mid:#5B6169;
    --text-soft:#8B909A;
  }
.group-badge{
    margin:0 8px 18px;
    padding:11px 12px;
    border-radius:10px;
    background:var(--forest);
    color:#fff;
}
.group-badge .gl{font-size:10.5px;letter-spacing:0.02em;color:#B9D6C8;margin-bottom:3px;}
.group-badge .gn{font-size:13.5px;font-weight:600;}
  .group-badge.company-badge{background:var(--forest-light);}
  .group-badge.company-badge .gl{color:#5B9A82;}
  .group-badge.company-badge .gn{color:var(--forest);}

  .oversight-pill{
    display:inline-flex;align-items:center;gap:6px;
    background:var(--forest-light);color:var(--forest);
    font-size:12.5px;font-weight:600;
    padding:5px 11px;border-radius:20px;
    margin-bottom:22px;
  }
  .oversight-pill svg{width:13px;height:13px;}

/* Dashboard report toggle (dashboard.jsp): white rounded box, the selected button filled in forest green */
.report-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #FFFFFF;
  border: 1px solid #E7E9F0;
  border-radius: 12px;
}

.report-toggle-btn {
  display: inline-block;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #5B6B63;
  white-space: nowrap;
  cursor: pointer;
}

.report-toggle-btn:hover {
  color: #0E3B2E;
}

.report-toggle-btn--on,
.report-toggle-btn--on:hover {
  background: #0E3B2E;
  color: #FFFFFF;
}
.status-chip{
    font-size:11.5px;font-weight:600;
    padding:4px 9px;border-radius:20px;
    white-space:nowrap;
  }
  .status-chip.ok{background:var(--forest-light);color:var(--forest);}
  .status-chip.warn{background:var(--amber-bg);color:var(--amber);}
  .status-chip.risk{background:var(--red-bg);color:var(--red);}
  
    .back-link{
    display:flex;align-items:center;gap:8px;
    padding:10px 12px 14px;
    font-size:13px;font-weight:600;color:var(--text-mid);
    cursor:pointer;
  }
  .back-link:hover{color:var(--forest);}
  
.app-nav .nav-link {
    display: block;
    padding: 0.6rem 1rem;
    color: #252930;
    position: relative;
    display: block;
    padding-left: 3rem;
    border-left: 3px solid rgba(0, 0, 0, 0);
}  

.app-sidepanel {
    font-size: .8rem;
} 

.fs-px-7 {
	font-size: 7px !important;
} 
.fs-px-8 {
	font-size: 8px !important;	
} 
.fs-px-9 {
	font-size: 9px !important;	
} 
.fs-px-10 {
	font-size: 10px !important;	
} 
.fs-px-11 {
	font-size: 11px !important;	
} 
.fs-px-12 {
	font-size: 12px !important;	
} 
.fs-px-13 {
	font-size: 13px !important;	
} 
.fs-px-14 {
	font-size: 14px !important;	
} 
.height-30 {
	height: 30px !important;	
} 
.height-48 {
	height: 48px !important;	
} 
.height-40 {
	height: 40px !important;	
} 
.width-10 {
	width: 10px !important;	
} 
.width-15 {
	width: 15px !important;	
} 
.width-20 {
	width: 20px !important;	
} 
.width-23 {
	width: 23px !important;	
} 
.width-30 {
	width: 30px !important;	
} 
.width-40 {
	width: 40px !important;	
} 
.width-50 {
	width: 50px !important;	
} 
.width-60 {
	width: 60px !important;	
} 
.width-70 {
	width: 70px !important;	
} 
.width-90 {
	width: 90px !important;	
}
.width-120 {
	width: 120px !important;	
} 
.width-160 {
	width: 160px !important;	
} 
.width-230 {
	width: 230px !important;	
}
.width-300 {
	width: 300px !important;	
}  
/* Company Configuration logo (company-config.jsp / .js).
   The logo shows inside 170 x 130: half the report cover box (report.html, max 340 x 260) and the same shape as the stored
   logo (ImageHelper, fitted in 680 x 520), so every logo looks here as it will on the report, at half the size.
   The frame is 156px high (130 + padding + border) and as wide as the logo needs, from 120px to 196px; the logo keeps its
   proportions, never stretched. Empty: the dashed upload box (upload-box), same outer size 196 x 156. */
.logo-frame{
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 156px;
	min-width: 120px;
	max-width: 196px;
	padding: 12px;
	border: 1px solid #e1e4ea;
	border-radius: 12px;
	background: #f8f9fb;
	overflow: hidden;
}
.logo-frame.upload-box{
	width: 196px;
	max-width: 196px;
	height: 156px;
	padding: 8px;
	border: 2px dashed #cbd5e1;
	background: #fff;
	box-shadow: none;
}
.logo-frame .upload-icon{
	width: 28px;
	height: 28px;
	margin-bottom: 6px;
}
.logo-frame .upload-text{
	font-size: 12px;
	font-weight: 500;
	margin: 0;
}
.logo-img{
	display: block;
	width: auto;
	height: auto;
	max-width: 170px;
	max-height: 130px;
	object-fit: contain;
}
/* "Drop a new logo or click to replace": over the logo on mouse-over or while a file is dragged over it */
.logo-hover{
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px;
	background: rgba(14, 59, 46, .72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	transition: opacity .15s ease-in-out;
	pointer-events: none;
}
.logo-hover i{
	font-size: 20px;
}
.logo-frame.has-logo:hover .logo-hover,
.logo-frame.has-logo.dragover .logo-hover{
	opacity: 1;
}
/* The field wraps the frame tightly, so the trash can sit on the frame's top-right corner */
.logo-field{
	position: relative;
	display: inline-block;
}
.logo-delete{
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 2;
	width: 26px;
	height: 26px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
	color: #c0504c;
	background: rgba(255, 255, 255, .95);
	border: 1px solid #ecc8c6;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
	cursor: pointer;
}
.logo-delete:hover{
	background: #fff;
	color: #a33a36;
}

/* 1. Forces the select box to its own line under the label, but keeps it shrink-to-fit */
.select2-container--bootstrap-5 {
    display: block !important;
    width: fit-content !important;
    min-width: 180px; 
}

/* 2. Re-apply the clean border dimensions and clear duplicate icons */
.select2-container--bootstrap-5 .select2-selection--single {
    height: 42px !important;              
    border: 1px solid #dee2e6 !important; 
    border-radius: 6px !important;        
    background-image: none !important;    
    padding-right: 48px !important;     
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s ease-in-out;
}

/* 3. Matches the blue focus border color and removes the heavy outer glow */
.select2-container--bootstrap-5.select2-container--focus .select2-selection--single,
.select2-container--bootstrap-5.select2-container--open .select2-selection--single {
    border-color: #86b7fe !important; 
    box-shadow: none !important;       
    outline: none !important;
}

/* Keep the main input box's bottom corners sharp when open, but top corners rounded */
.select2-container--bootstrap-5.select2-container--open .select2-selection--single {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-top-left-radius: 6px !important;
    border-top-right-radius: 6px !important;
}

/* 4. Fixes the font family, color, and weight inside the main field box */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 12px !important;
    line-height: 42px !important;
    font-family: inherit !important;     
    color: #495057 !important;           
    font-weight: 400 !important;         
    font-size: 15px !important;          
}

/* 5. Moves the clear button (x) cleanly to the right hand side */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 32px !important;             
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    margin: 0 !important;
    color: #a8aeb7 !important;           
    font-size: 16px !important;
    font-weight: normal !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover {
    color: #dc3545 !important;           
    background: none !important;
}

/* 6. Injects a matching hollow Chevron (v) arrow perfectly aligned */
.select2-container--bootstrap-5 .select2-selection--single::after {
    content: "";
    position: absolute;
    right: 16px; 
    top: 45%;
    
    width: 7px;
    height: 7px;
    border-right: 2px solid #212529; 
    border-bottom: 2px solid #212529;
    transform: translateY(-50%) rotate(45deg); 
    
    pointer-events: none;
}

/* 7. Dropdown Panel Container Styles */
.select2-dropdown {
    width: max-content !important;
    min-width: 100% !important;
}

/* FIXES THE MISSING LINE: Forces a clean top and side border all around the list panel */
.select2-container--bootstrap-5 .select2-dropdown,
.select2-container--bootstrap-5 .select2-dropdown--above,
.select2-container--bootstrap-5 .select2-dropdown--below {
    border: 1px solid #dee2e6 !important; 
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    border-bottom-left-radius: 6px !important;   
    border-bottom-right-radius: 6px !important;
}

/* 8. Makes the font size smaller inside the option list */
.select2-container--bootstrap-5 .select2-results__option {
    font-size: 13px !important;       
    padding: 6px 12px !important;     
    color: #212529 !important;        
}

/* FIXES THE HOVER BLUE EFFECT: Changes BOTH hovered and selected items to a soft light gray */
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"],
.select2-container--bootstrap-5 .select2-results__option--highlighted--active {
    background-color: #f1f3f5 !important; /* Soft modern light gray background */
    color: #212529 !important;            /* Clean dark text color */
}

/* 9. Hide default Select2 arrow structural graphics */
.select2-container--bootstrap-5 .select2-selection__arrow {
    display: none !important;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear, .select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
    position: absolute;
    top: 50%;
    left: auto !important;
    width: .75rem;
    height: .75rem;
    padding: .25em;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: transparent url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23676a6d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e) 50% / .75rem auto no-repeat;
    transform: translateY(-50%);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding: 0px 45px 0px 5px !important;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
}
.form-select-sm~.select2-container--bootstrap-5 .select2-selection--single {
    padding: .25rem .5rem .25rem 10px !important;
}

/* 1. REMOVES THE BLUE GLOW SHADOW RING FROM THE SEARCH INPUT FIELD */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    box-shadow: none !important;        /* Kills the blue glowing halo completely */
    outline: none !important;           /* Blocks default browser focus outlines */
    border-color: #dee2e6 !important;   /* Keeps the soft, stable gray border color */
}

/* 2. REDUCES THE HEIGHT OF THE SEARCH INPUT BOX */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    height: 32px !important;            /* Shrinks input height from 42px down to a clean 32px */
    padding: 4px 8px !important;        /* Adjusts internal spacing so text doesn't look cramped */
    font-size: 14px !important;         /* Micro-adjusts font size to look cleaner in a small box */
    border-radius: 4px !important;      /* Subtle soft corners matching the tight height */
}

/* ==========================================================================
   FIXES THE HOVER BLUE EFFECT ON ALL LIST SELECTION/ACTIVE STATES
   ========================================================================== */

/* 1. Catches standard mouse hovers and keyboard arrow navigation highlighting */
.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--usable,

/* 2. Catches when an option is actively clicked or marked as selected in the list */
.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"],
.select2-container--bootstrap-5 .select2-results__option--selected,

/* 3. Global catch-all fallback for any active or focused state classes */
.select2-container--bootstrap-5 .select2-results__option--highlighted--active,
.select2-container .select2-results__option[aria-disabled="false"]:hover,
.select2-results__option--highlighted[style] {
    background-color: #f1f3f5 !important; /* Forces the soft gray color over the bright blue */
    background: #f1f3f5 !important;       /* Extra fallback layer for theme overrides */
    color: #212529 !important;            /* Keeps the text dark and perfectly readable */
}

.error-field {
    border-color: #ef4444 !important;
    animation: shake 0.4s ease-in-out;
}


.progressx {
  display: flex;
  gap: 6px;
  margin: 18px 0 26px;
}

.progressx-step {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #E7E9F0;
}

.progressx-step--done {
  background: #0E3B2E;
}

/* Move popover (toggled via .is-open) */
.move-popover {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 20;
  background: #fff;
  border: 1px solid #E7E9F0;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(22, 36, 29, 0.14);
  padding: 12px;
  width: 230px;
}

.move-popover.is-open {
  display: block;
}

.popover-field {
  width: 100%;
  font-size: 11.5px;
  color: #16241D;
  border: 1px solid #E7E9F0;
  border-radius: 6px;
  padding: 6px 7px;
  margin-bottom: 9px;
  box-sizing: border-box;
}

/* Delete warnings (e.g. employee-delete.jsp): light red, so they stand out from the white details card.
   Needed because .alert above forces a white background on every alert. */
.alert.alert-danger-soft {
  background: #fef3f2;
  border: 1px solid #f4c7c2;
  color: #912018;
}

.alert.alert-danger-soft .small {
  color: #5c2620;
}

/* Compact light yellow warning (e.g. weightings that do not add up to 100%: weighting-factor-list.jsp, includes/weightings-panel.jsp) */
.alert.alert-warning-soft {
  background: #FFF8E1;
  border: 1px solid #F5E1A4;
  color: #7A5B00;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 14px;
}

.alert.alert-warning-soft .bi {
  font-size: 15px;
  line-height: 1.3;
}

.alert.alert-warning-soft ul {
  margin-top: 2px;
}

/* Solid red action button (e.g. Delete on employee-delete.jsp), built like .app-btn-primary.
   :active repeats !important so the green .btn:active at the top of this file does not win. */
.app-btn-danger {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.app-btn-danger:hover,
.app-btn-danger:focus {
  background: #912018;
  color: #fff;
  border-color: #912018;
}

.app-btn-danger:active {
  background: #7a1a14 !important;
  color: #fff !important;
  border-color: #7a1a14 !important;
}

/* Disabled (waiting for the confirmation): soft red instead of Bootstrap's faded opacity */
.app-btn-danger:disabled,
.app-btn-danger.disabled {
  background: #e3b2ad;
  color: #fff;
  border-color: #e3b2ad;
  opacity: 1;
}

/* Search criteria shown above a result list ("Filtered by" line, e.g. employee-list.jsp) */
.filter-chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #e7ecf7;
  color: #2b3a55;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

/* List cell with a name and a small line under it (.note): keeps the row compact */
.app-card-orders-table .table .cell-employee {
  padding-top: .45rem;
  padding-bottom: .45rem;
  line-height: 1.25;
}

.app-card-orders-table .table .cell-employee .note {
  margin-top: 1px;
}

/* Smaller text for dense result lists (e.g. employee-list.jsp): add table-compact to the table */
.app-card-orders-table .table-compact .cell {
  font-size: .8125rem;
}

.app-card-orders-table .table-compact .cell .note {
  font-size: .7rem;
}

.app-card-orders-table .table-compact .badge {
  font-size: .7rem;
}

/* DataTables right-aligns numeric columns and puts the sort icon first: keep them on the left like the other columns.
   cell-order: Order column of a sortable list (question-group-list.jsp, question-list.jsp);
   cell-start: any other column that may hold only numbers (e.g. option type / value on question-options.jsp) */
table.dataTable thead > tr > th.cell-order,
table.dataTable tbody > tr > td.cell-order,
table.dataTable thead > tr > th.cell-start,
table.dataTable tbody > tr > td.cell-start {
  text-align: left !important;
}

table.dataTable thead > tr > th.cell-order div.dt-column-header,
table.dataTable thead > tr > th.cell-start div.dt-column-header {
  flex-direction: row !important;
}

/* Every DataTables list (any table DataTables has set up: dataTable class), the look of the chart detail list
   (dashboard-drilldown.jsp): small grey uppercase headings, 12.5px dark rows with light separators.
   The th.cell / td.cell forms win over portal.css .app-card-orders-table .table .cell and .table-compact .cell */
.table.dataTable > thead > tr > th,
.table.dataTable > thead > tr > th.cell {
  font-size: 11px;
  font-weight: 600;
  color: #5B6474;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid #E4E7EE;
}

.table.dataTable > tbody > tr > td,
.table.dataTable > tbody > tr > td.cell {
  font-size: 12.5px;
  color: #101828;
  border-bottom: 1px solid #F0F1F4;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  /* One line per row (the table scrolls sideways when it does not fit: table-responsive) */
  white-space: nowrap;
}

/* Employments table (employee/employee-employments.jsp): an ended employment is greyed out */
.table.dataTable > tbody > tr.employment-ended > td {
  color: #98A2B3;
}

/* Long text columns (descriptions, questions, issues) do wrap: cell-wrap on the column heading,
   validate.js copies it to the column's cells (columnDefs) */
.table.dataTable > tbody > tr > td.cell-wrap {
  white-space: normal;
  min-width: 240px;
}

/* No box around a heading after clicking it to sort (still shown when moving with the keyboard) */
.table.dataTable > thead > tr > th:focus:not(:focus-visible) {
  outline: none;
}

/* Every card of the app: rounded, light border and soft shadow like the cards of the dashboard (dashboard.css .db2-card).
   The shadow wins over the shadow-sm utility the cards carry. Headers / footers with a background follow the corners */
.app-card {
  border: 1px solid #E4E7EE;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.04) !important;
}

.app-card > .app-card-header {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.app-card > .app-card-footer {
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Tables reaching the card edges (Group List, Security Items...): no white cell background, so the card's rounded
   corners show instead of square table corners (the card is white anyway) */
.app-card .table {
  --bs-table-bg: transparent;
}

/* Bootstrap cards (transparency, group dashboards...): the same corners and border */
.card {
  --bs-card-border-radius: 16px;
  --bs-card-inner-border-radius: 15px;
  --bs-card-border-color: #E4E7EE;
}

/* List cards: a bit more room around the table, as the chart detail list */
.app-card:has(table.dataTable) > .app-card-body {
  padding: 20px 22px;
}

/* Bordered tables (e.g. snapshot Data Validation and Snapshot Summary): rounded corners like the cards.
   Separate borders so the corners can be rounded; each cell draws only its right and bottom line, the table the outside */
.table.table-bordered {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
}

.table.table-bordered > :not(caption) > * {
  border-width: 0;
}

.table.table-bordered > :not(caption) > * > * {
  border-width: 0 1px 1px 0;
}

.table.table-bordered > :not(caption) > * > *:last-child {
  border-right-width: 0;
}

/* Cells of the last row (last section > last row > cells): the table border is their bottom line */
.table.table-bordered > :not(caption):last-child > :last-child > * {
  border-bottom-width: 0;
}

/* Compact side list (e.g. options card on question/question-edit.jsp), same sizes as the "Needs review"
   card of architecture-step1.jsp: 13.5px title, 12.5px rows, controls and buttons the size of its Assign button */
.side-list-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #16241D;
  margin-bottom: 12px;
}

.side-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid #E7E9F0;
  font-size: 11.5px;
  color: #16241D;
}

/* Name in a fixed width so the notes (e.g. option values) line up in a column */
.side-list-row .side-list-label {
  display: inline-block;
  min-width: 8.5rem;
}

/* Colour of a question option (Constants.QuestionOptionColor), same colours as the buttons of architecture-step4.jsp */
.option-color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Factor colour (company_weighting_factor.factor_color): SVG circle filled with the colour, a light ring so white stays visible */
.factor-color-swatch {
  vertical-align: -1px;
}

.factor-color-swatch circle {
  stroke: rgba(0, 0, 0, 0.15);
  stroke-width: 1px;
}

.option-color-G {
  background: #0E3B2E;
}

.option-color-R {
  background: #E2735C;
}

.option-color-P {
  background: #7C5CA6;
}

.side-list-row .side-list-note {
  font-size: 11px;
  color: #96A39C;
}


.form-control.form-compact,
.form-select.form-compact {
  font-size: 11px;
  height: auto;
  min-height: 0;
  padding: 4px 9px;
  border-radius: 6px;
}

.form-select.form-compact {
  padding-right: 24px;
  background-position: right 6px center;
  background-size: 10px 8px;
}

/* Fixed widths of compact fields sharing a row (options card of question/question-edit.jsp) */
.form-compact-value {
  width: 7.5rem;
}

.form-compact-color {
  width: 7rem;
}

.btn-compact {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1.5;
  white-space: nowrap;
}

/* Header user menu: the user's initials (JspHelper.getUserInitials) in the circle of the former avatar image
   (assets/images/user.png): 36px, teal ring around a white disc, the initials in the same teal */
.app-user-dropdown .user-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 4px #528A83;
  color: #528A83;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  vertical-align: middle;
  user-select: none;
}

/* Header language menu (includes/language-dropdown.jsp) */
.app-language-dropdown .flag-icon {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  vertical-align: middle;
}

.app-language-dropdown .dropdown-item {
  display: flex;
  align-items: center;
}

.app-language-dropdown .dropdown-item .bi-check2 {
  margin-left: auto;
  color: #15a362;
}

/* The current language is marked with the tick, not with Bootstrap's blue active background */
.app-language-dropdown .dropdown-item.active,
.app-language-dropdown .dropdown-item:active {
  background-color: transparent;
  color: inherit;
  font-weight: 600;
}

/* Footer attribution heart (includes/footer.jsp) */
.copyright .fa-heart {
  color: #fb866a;
}
/* DataTables loading indicator of every list: a small white box with the animated dots only, in the app green
   (primary buttons, #0E3B2E). The "Loading..." text is visually hidden (commons.js dataTableLanguage) and the
   table's own loading row is left empty. The dots are zoomed out as a group, so the animation keeps its proportions */
div.dt-processing {
  --dt-processing-circle_background: 14, 59, 46;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  margin-left: -32px;
  margin-top: -12px;
  padding: 8px 10px;
  border-radius: 999px;
}

div.dt-processing > div:last-child {
  zoom: 0.5;
  margin: 0;
  flex-shrink: 0;
}

/* Form fields and buttons of the whole app: 13px text and about 34px high (were 16px / 40px fields, 14px / 37px buttons).
   The compact variants (form-compact, btn-compact, btn-small) keep their own sizes; text areas keep their height */
.form-control:not(.form-compact),
.form-select:not(.form-compact),
.input-group-text {
  font-size: 13px;
}

input.form-control:not(.form-compact),
select.form-control:not(.form-compact):not(.form-select) {
  height: 34px;
  padding: 6px 10px;
}

/* Text areas grow with their rows (portal.css gives every .form-control a field's height) */
textarea.form-control {
  height: auto;
  padding: 6px 10px;
}

.form-select:not(.form-compact) {
  height: 34px;
  padding: 6px 2rem 6px 10px;
  background-position: right .6rem center;
}

.input-group-text {
  padding-top: 6px;
  padding-bottom: 6px;
}

.btn:not(.btn-compact):not(.btn-small) {
  font-size: 13px;
  padding: 7px 14px;
}

/* Searchable dropdowns (Select2) the same height as the other fields */
.select2-container--bootstrap-5 .select2-selection--single {
  height: 34px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  line-height: 32px !important;
  font-size: 13px !important;
}