.loader {
  display: none;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  align-content: center; 
  justify-content: center;  
  z-index: 100000;
  --point-color: #5789bb;
  --size: 3px;
  margin-top: 60px;
  margin-bottom: 90px;
}

.loader_element {
  border-radius: 100%;
  border: var(--size) solid var(--point-color);
  margin: calc(var(--size)*2);
}

.loader_element:nth-child(1) {
  animation: preloader .6s ease-in-out alternate infinite;
}
.loader_element:nth-child(2) {
  animation: preloader .6s ease-in-out alternate .2s infinite;
}

.loader_element:nth-child(3) {
  animation: preloader .6s ease-in-out alternate .4s infinite;
}

@keyframes preloader {
  100% { transform: scale(2); }
}


.selections {
	gap: 10px;
    margin: 0 auto;
    padding: 0px;
	width: 100%;
}


.selections select {
    width: 250px;
    margin-bottom: 30px;
}

.select-wrapper {
    position: relative;
    flex: 1;
    z-index: 3;
	max-width: 250px;
}

.select-wrapper::after {
    content: url(../icons/fa-angle-down.svg);
    position: absolute;
    right: 15px;
    top: 10px;
    opacity: .35;
    width: 11px;
    z-index: -1;
}

.select-wrapper select {
    font-size: 16px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    background: none;
    outline: none;
    cursor: pointer;
    align-self: center;
    height: 37.2px;
}

label {
    margin-bottom: 0.5em;
}

.current-standard {
	flex: 0.8;
}

.standard-wrapper, .year-wrapper {
	flex: 0.1;
}
.current-standard h1 {
	margin-top: 37px;
	margin-left: 15px;
	display: inline-block;
}

table#scorecardScope tr td:nth-child(2), table#scorecardScope tr th:nth-child(2) {
    text-align: center;
}

#scorecardOverview td:first-child {
  max-width: 500px;
}

#scorecardOverview i {
  font-size: 1.75em;
  color: #a5a5a5;
}

.letter-grade {
    margin-left: 20px;
    background: #9f0000;
    color: #fff;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    line-height: 40px;
	font-size: 20px;
    font-weight: 800;
    text-align: center;
    position: relative;
    top: -3px;
	text-shadow: 1px 1px 0px #00000038;
  display: block;
}

.grade-f {
	background: linear-gradient(to bottom, #dd3a3a 0%, #ff0a0a 100%);
	box-shadow: 0px 0px 7px #ff0000;
}

.grade-d {
	background: linear-gradient(to bottom, #f3ad10 0%, #f9d13a 100%);
	box-shadow: 0px 0px 7px #ff8d00;
}

.grade-c {
	background: linear-gradient(to bottom, #fbe349 0%, #ffeb00 100%);
	box-shadow: 0px 0px 7px #ffed1b;
}

.grade-b {
	background: linear-gradient(to bottom, #64f14c 0%, #9de58f 100%);
	box-shadow: 0px 0px 7px #51ff3c;
}

.grade-a {
	background: linear-gradient(to bottom, #68e552 0%, #34a51f 100%);
	box-shadow: 0px 0px 7px #37912c;
}

.scorecard-chart-canvas-wrap {
	display: none;
	position: relative;
	width: 100%;
	max-height: min(75vh, 900px);
	overflow-x: hidden;
	overflow-y: auto;
}

.scorecard-chart-canvas-wrap canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

#scorecardScope tfoot th {
	vertical-align: middle;
}

#scorecardOverview tbody tr {
	cursor: default;
}

#scorecardOverview tbody tr:hover {
	background-color: #f8f9fa;
}

#scorecardOverview th.scorecard-col-standard-type,
#scorecardOverview th.scorecard-col-version,
#scorecardOverview th.scorecard-col-grade,
#scorecardOverview th.scorecard-col-details,
#scorecardOverview td.scorecard-col-standard-type,
#scorecardOverview td.scorecard-col-version,
#scorecardOverview td.scorecard-col-grade,
#scorecardOverview td.scorecard-col-details {
	text-align: center;
	vertical-align: middle;
}

#scorecardOverview .scorecard-overview-grade .letter-grade {
	margin-left: 0;
	top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#scorecardOverview .scorecard-view-detail {
	min-width: 2.5rem;
	pointer-events: auto;
  margin-right: 0 !important;
}

.scorecard-detail-section {
	margin-top: 2rem;
}

#scorecardDetailModal .scorecard-detail-section {
	margin-top: 0;
}

#scorecardDetailModal .modal-body {
	max-height: calc(100vh - 9rem);
	overflow-y: auto;
}

#scorecardDetailModal .scorecard-chart-canvas-wrap,
#scorecardDetailModal #chartCanvas {
	max-width: 100%;
}

/* Overview table: same loader overlay pattern as risk / asset register */
#scorecard-overview-view {
	position: relative;
	min-height: 200px;
}

#scorecard-overview-view.scorecard-overview-loading #scorecard-overview-panel {
	opacity: 0;
	pointer-events: none;
}

#scorecard-overview-view .loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-height: 160px;
	margin: 0;
	background-color: #ffffff;
	z-index: 6;
	display: flex;
	align-items: center;
	align-content: center;
	justify-content: center;
	--point-color: #5789bb;
	--size: 3px;
}

#scorecard-overview-view .loader .container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}