/* ================================================= */
/* ========== PROGRESS AND TIME INDICATOR ========== */
/* ================================================== */

.grid-step-progress {
	display: grid;
	grid-gap: 0px;
	grid-template-columns: 1fr 16px 5px 16px 5px 16px 5px 16px 5px 16px 1fr;
	grid-template-rows: 16px;	
}
.grid-step-progress > div {
	font-size: 14px;
}
.grid-step-progress-line {
	display: grid;
	grid-gap: 0px;
	grid-template-columns: 5px;
	grid-template-rows: 8px 8px;	
}
.grid-step-progress-line > div:nth-child(1) {
	border-bottom: 1px solid #fff;
}
.grid-step-progress-line > div:nth-child(2) {
	border-top: 1px solid #fff;
}
.progress-step {
	cursor: pointer;
	transition: all .1s ease-in-out;
}
.progress-step:hover {
	transform: scale(1.1);
}

/* ======================================= */
/* ========== MODALS ADDITIONAL ========== */
/* ======================================= */

.modal-insert-question {
	letter-spacing: 0.1em;
	padding: 0 0 20px 0;
}
.modal-insert-reference {
	font-style: italic;
	padding: 0 20px 20px 20px;
}

/* ==================================== */
/* ========== METHOD IN FORM ========== */
/* ==================================== */

.form-step-header {
	font-size: 1.1em;
	letter-spacing: 0.1em;
	color: #000;
	text-transform: uppercase;
	margin: 2em 0 1em 0;
}

.method-step {
	text-transform: none;
	font-size: 1em;
	letter-spacing: 0em;
}

.method-question {
	font-weight: 700;
	letter-spacing: .05rem;
	font-size: 105%;
}
.form-method[open] > :not(summary) {
    background-color: #f0f0f0;  /* Example gray background */
	padding: 1em;
	margin-bottom: 1em;
}

.method-step ol {
	list-style-type: lower-alpha;
	line-height: 1.7;
	letter-spacing: .01rem;
}
.method-step ol li {
	padding-left: 1em;
}	

.method-step ol ul {
	list-style-type: square;
	margin-left:0px !important;
}

/* ========================== */
/* ========== FORM ========== */
/* ========================== */

.step-header {
    text-transform: uppercase;
}

/* Space between delete and save buttons in modals */
.button-spacing {
    margin-right: 10px;
}

/* Future task */
#likelihoodText, #consequenceText, #riskText { text-transform: capitalize; }

.task-main {
	box-shadow: var(--main-box-shadow);
	background: var(--main-box-background);
	padding: 20px;
	min-height: 80px;
	border-radius: 10px;
}

/* Task statement grid */
.grid-task-statement {
	display: grid;
	grid-template-columns: 40px 1fr;
	grid-template-rows: minmax(0, auto);
}
.grid-task-statement > div:nth-child(1) {
	display: table-cell;
	height: 100%;
	position:relative;
	padding: 22px 0 0 0px;
}
.grid-task-statement > div:nth-child(2) {
	padding: 0 20px 0 20px;
}

/* Task question grid */
.grid-task-risk-question {
	display: grid;
	margin: 5px 5% 5px 5%;
	grid-template-columns: 20px 1fr 10px 1fr;
	grid-template-rows: minmax(0, auto) minmax(0, auto) minmax(0, auto) 30px;
	grid-template-areas:
		"trq-numb trq-text trq-text trq-text"
		"trq-space1 trq-text trq-text trq-text"
		"trq-space1 trq-yes trq-space2 trq-no"
		"trq-space1 trq-space3 trq-space3 trq-space3"
}
.task-risk-question-number {
	grid-area: trq-numb;
}
.task-risk-question-text {
	grid-area: trq-text;
	padding: 0 20px 0 20px;
}
.task-risk-question-space1 {
	grid-area: trq-space1;
}
.task-risk-question-space2 {
	grid-area: trq-space2;
}
.task-risk-question-space3 {
	grid-area: trq-space3;
}
.task-risk-question-answer {
	border: 1px solid #EAEAEA;
	border-radius: 2px;
	margin: 10px 0 0 20px;
	padding: 10px;
	cursor: pointer;
}

.answer-selected {
	border: 1px solid #59AAEF;
	background: #E7F4FF;
	color: #59AAEF;
}

/* Task conclusion */
.task-risk-conclusion {
	padding: 10px 50px 20px 50px;
}

/* Task risk matrix */
.grid-risk-matrix {
	display: grid;
	grid-gap: 5px;
	grid-template-columns: 10px 10px;
	grid-template-rows: 10px 10px;
}
.grid-risk-matrix> div {
	height: 10px;
	width: 10px;
	border-radius: 50%;
	display: inline-block;
}
.risk-matrix-red {background: #D92727;}
.risk-matrix-yellow {background: #FBDA32;}
.risk-matrix-green {background: #63CF6B;}
.risk-matrix-grey {background: #EAEAEA;}

/* List potential problems with order ID */
.grid-pp-order {
	display: grid;
	grid-template-columns: 20px 1fr;
	grid-column-gap: 10px;
	grid-template-areas:
		"pp-number pp-box"
}
.pp-order-number {
	grid-area: pp-number;
	color: grey;
}
.pp-order-box {
	grid-area: pp-box;
}
.number-list-element {
	display: flex;
	justify-items: center;
	align-items: center;
	height: 92px;
}

/* Buttons */
#add_pp, #add_lc, #add_po, #add_mo {
	color: var(--main-button-color);
	cursor: pointer;
	padding: 20px 0 0 30px;
}

/* Sorting list of potential problems */
#sortable_pps {
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
#sortable_pps div {
	margin: 5px 10px 5px 0;
	float: left;
	width: 100%;
	background: #fff !important;
}
.ui-state-default {
	border-radius: 4px;	
}
.grid-pp-list {
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	grid-template-rows: 70px;
    padding-right: 20px;
}
.grid-pp-list > div:nth-child(1) {
	display: grid;
	justify-items: center;
	align-items: center;
	color: #aeaeae;
	cursor: ns-resize;
	font-size: 20px;
}
.grid-pp-list > div:nth-child(2) {
	padding: 0 10px 0 10px;
	cursor: pointer;
	display: grid;
	align-items: center;
}
.grid-pp-list > div:nth-child(3) {
	display: grid;
	justify-items: center;
	align-items: center;
	font-size: 20px;
}

/* Potential problems list without sorting */
.grid-pp-list-no-drag {
	display: grid;
	grid-template-columns: 1fr 40px;
	grid-template-rows: 70px;
}
.grid-pp-list-no-drag > div:nth-child(1) {
	padding: 0 20px;
	cursor: pointer;
	display: grid;
	align-items: center;
}
.grid-pp-list-no-drag > div:nth-child(2) {
	display: grid;
	justify-items: center;
	align-items: center;
	font-size: 20px;
}

/* Potential problem */
.grid-pp {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: 1fr;
	grid-auto-rows: minmax(0, auto);	
}
.grid-pp-title {
    color: #797979;
	font-size: 70%;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	margin-top: 20px;
	margin-bottom: 20px;
}
.grid-lc-po, .grid-lc-po-title {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: minmax(0, auto);
}
.add-lc, .add-po, .add-mo {
	font-size: 12px;
    color: var(--main-button-color);
	text-transform: uppercase;
	cursor: pointer;
}
.lc-delete, .po-delete, .mo-delete, .tr-delete {
	display: grid;
	align-items: center;
	justify-content: center;
	color: var(--main-button-color);
	font-size: 12px;
	cursor: pointer;
}

/* Potential problem risk level selection */
.criteria {
    margin-bottom: 20px;
}
.options {
    display: flex;
    justify-content: space-between;
}
.radio {
    flex: 1;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 0 5px;
    box-sizing: border-box;
}
.radio input[type="radio"] {
    display: none;
}
.radio label {
    display: block;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: border 0.2s, transform 0.2s, box-shadow 0.2s;
    margin: 0 5px;
}
.radio input[type="radio"]:checked + label.low {
    background-color: #387a34;
    color: white;
    border: 2px solid #155724;
}
.radio input[type="radio"]:checked + label.medium {
    background-color: #d7a000;
    color: white;
    border: 2px solid #856404;
}
.radio input[type="radio"]:checked + label.high {
    background-color: #b32020;
    color: white;
    border: 2px solid #721c24;
}
.radio label.low {
    background-color: #7cb342;
    color: white;
}
.radio label.medium {
    background-color: #fbc02d;
    color: white;
}
.radio label.high {
    background-color: #f44336;
    color: white;
}
.radio label:hover {
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

/* Causes and Options */
#display_pp { display: none; }
#done_btn {
	margin-top: 40px;
	float: right;
}
.grid-lc, .grid-po {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, auto);	
}
.grid-mo {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, auto);	
}
.lc-element { height: 100%; }
.modal-title {
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.1em;
}
.modal-question {
	letter-spacing: 0.1em;
	padding: 0 0 20px 0;
}
.modal-reference {
	font-style: italic;
	padding: 0 20px 20px 20px;
}

/* List treatment actions with order ID */
.grid-tr-order {
	display: grid;
	grid-template-columns: 20px 1fr;
	grid-column-gap: 10px;
	grid-template-areas:
		"pp-number pp-box"
}
.tr-order-number {
	grid-area: pp-number;
	color: grey;
}
.tr-order-box {
	grid-area: pp-box;
}
.tr-number-list-element {
	display: flex;
	justify-items: center;
	align-items: center;
	height: 92px;
}

/* Sortable Treatment Actions */
#sortable_trs {
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 100%;
}
#sortable_trs div {
	margin: 5px 10px 5px 0;
	float: left;
	width: 100%;
	background: #fff !important;
}
.grid-lc {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, auto);	
}
.grid-po {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, auto);	
}
.grid-mo {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, auto);	
}
.grid-tr {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: minmax(0, auto);	
}
.grid-tr-list {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 40px 3fr 1fr 1fr 20px 40px;
	grid-template-rows: 70px;	
}
.grid-tr-list > div:nth-child(1) {
	display: grid;
    justify-items: center;
    align-items: center;
    color: #aeaeae;
    cursor: ns-resize;
    font-size: 20px;
}
.grid-tr-list > div:nth-child(2), .grid-tr-list > div:nth-child(3), .grid-tr-list > div:nth-child(4) {
	display: grid;
    align-items: center;
}
.grid-tr-list > div:nth-child(5), .grid-tr-list > div:nth-child(6) {
	display: grid;
    justify-items: center;
    align-items: center;
    color: #aeaeae;
    font-size: 12px;
}
.lc-element { height: 100%; }
.tr-click-element { cursor: pointer; }

/* Your analyses / Result */
.task-text {
	display: grid;
    align-items: center;
}
.result-label {
	font-size: 80%;
    width: auto;
    color: #6F6F6F;
    letter-spacing: 0.2em;
    text-transform: uppercase;	
}
.result-ta-risk {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 30px 1fr;
	grid-template-rows: minmax(0, auto);
	margin-top: 20px;
}
.task-container {
	padding-left: 10px;
	margin-bottom: 40px;
}
.result-pp {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 30px 1fr 2fr 1fr;
	grid-template-rows: minmax(0, auto);
	margin-bottom: 40px;
}
.result-pp > div:nth-child(4n+1) {
	text-align: center;
}
.result-pp > div:nth-child(4n+2) {
	padding-right: 10px;
}
.result-lc {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: minmax(0, auto);
}
.result-lc > div:nth-child(2n+1) {
	padding-right: 20px;
}
.result-po {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, auto);	
}
.result-mo {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 1fr;
	grid-template-rows: minmax(0, auto);	
}
.result-mo > div {
	padding-left: 20px;
}
.result-tr-list {
	display: grid;
	grid-gap: 20px;
	grid-template-columns: 30px 3fr 1fr 1fr;
	grid-template-rows: minmax(0, auto);
	margin-bottom: 40px;
}
.result-list-number {
	text-align: center;
	color: #6F6F6F;
	padding-top: 25px;
}

/* ========================================= */
/* ========== INFORMATION SOURCES ========== */
/* ========================================= */

.risk-info-source {
	display: flex;
	justify-content: center;
}

.risk-info-source-inner {
    width: 100%;
    max-width: 600px;
}

/*===========================*/
/*========== INBOX ==========*/
/*===========================*/

.grid-inbox {
	display: grid;
	grid-template-columns: 40px 1fr minmax(40px, auto);
	grid-template-rows: 40px 40px auto;
	grid-template-areas:
		"mailrec mailrec maildat"
		"mailhea mailhea mailhea"
		"mailcon mailcon mailcon"
}
.inbox-receiver {
	grid-area: mailrec;
	padding-left: 10px;
	margin-top: auto;
	margin-bottom: auto;
	/*border-top: 1px solid #979797;*/
}
.inbox-date {
	grid-area: maildat;
	font-size: 90%;
	color: grey;
	margin-top: auto;
	margin-bottom: auto;
	text-align: right;
}
.inbox-header {
	grid-area: mailhea;
	font-size: 110%;
	margin-top: auto;
	margin-bottom: auto;
	/*border-bottom: 1px solid #979797;*/
}
.inbox-content {
	grid-area: mailcon;
	padding: 10px;
}

/*============================*/
/*========== MANUAL ==========*/
/*============================*/

.grid-manual-information-source {
	display: grid;
	grid-template-columns: 10px 10px 1fr;
	grid-template-rows: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto);
	grid-template-areas:
		"mis-num mis-num mis-tex"
		"mis-lil trq-lir mis-tex"
		"mis-lil trq-lir mis-fig"
		"mis-lil trq-lir mis-war"
}
.manual-information-source-number {
	grid-area: mis-num;
	color: #C00000;
	font-weight: 700;
	text-align: center;
	padding: 10px 0 0 0;
}
.manual-information-source-text {
	grid-area: mis-tex;
	padding: 10px 0 5px 10px;
}
.manual-information-source-line-left {
	grid-area: mis-lil;
	/*border-right: 0.75px solid grey;*/
	margin-top: 5px;
}
.manual-information-source-line-right {
	grid-area: mis-lir;
	/*border-left: 0.75px solid grey;*/
	margin-top: 5px;
}
.manual-information-source-figur {
	grid-area: mis-fig;
	padding: 5px 10px 5px 10px;
}
.manual-information-source-warning {
	grid-area: mis-war;
	background: #FFE469;
	border-radius: 6px;
	color: #181818;
	padding: 10px;
	margin: 5px 0 0 10px;
	font-weight: 500;
}

.manual-header {
	font-size: 24px;
	padding-bottom: 10px;
}
.manual-header-red {
	color: #C00000;
}

.grid-manual-warning {
	display: grid;
	grid-template-columns: 20px 1fr;
	grid-template-rows: minmax(0, auto) minmax(0, auto);
	grid-template-areas:
		"war-ico war-tit"
		"war-tex war-tex"
}
.manual-warning-icon {
	grid-area: war-ico;
	margin-top: auto;
	margin-bottom: auto;
}
.manual-warning-title {
	grid-area: war-tit;
	padding-left: 10px;
	text-transform: uppercase;
}
.manual-warning-text {
	grid-area: war-tex;
	padding-left: 30px;
}

/*=============================*/
/*========== COMPANY ==========*/
/*=============================*/

.grid-company-information-source {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto) minmax(0, auto);
	grid-template-areas:
		"cis-log cis-nam cis-sto"
		"cis-tit cis-tit cis-tit"
		"cis-ye1 cis-fo1 cis-lo1"
		"cis-ye2 cis-fo2 cis-lo2"
		"cis-inf cis-inf cis-inf"
}
.company-information-source-logo {
	grid-area: cis-log;
}
.company-information-source-name {
	grid-area: cis-nam;
	font-size: 16px;
	color: #173147;
	text-align: center;
}
.company-information-source-stock {
	grid-area: cis-sto;
	color: #139307;
	text-align: right;
}
.company-information-source-title {
	grid-area: cis-tit;
	font-size: 16px;
	padding: 20px 0 20px 0
}
.company-information-source-year1 {
	grid-area: cis-ye1;
	font-size: 13px;
	color: #000;
	text-align: center;
}
.company-information-source-founder1 {
	grid-area: cis-fo1;
	font-size: 13px;
	color: #000;
	text-align: center;
}
.company-information-source-location1 {
	grid-area: cis-lo1;
	font-size: 13px;
	color: #000;
	text-align: center;
}
.company-information-source-year2 {
	grid-area: cis-ye2;
	font-size: 11px;
	color: #535353;
	text-align: center;
}
.company-information-source-founder2 {
	grid-area: cis-fo2;
	font-size: 11px;
	color: #535353;
	text-align: center;
}
.company-information-source-location2 {
	grid-area: cis-lo2;
	font-size: 11px;
	color: #535353;
	text-align: center;
}
.company-information-source-info {
	grid-area: cis-inf;
	font-size: 12px;
	padding: 20px 0 0 0;
	text-align: justify;
}

/*==============================*/
/*========== CAPACITY ==========*/
/*==============================*/

.grid-capacity-speed {
	display: grid;
	margin-top: 20px;
	grid-template-columns: 40px 1fr;
	grid-template-rows: minmax(0, auto) minmax(0, auto);
	grid-template-areas:
		"cas-ico cas-tit"
		"cas-tex cas-tex"
}
.capacity-speed-icon {
	grid-area: cas-ico;
}
.capacity-speed-title {
	grid-area: cas-tit;
	font-size: 14px;
	color: #173147;
	padding: 4px 0 0 10px;
}
.capacity-speed-text {
	grid-area: cas-tex;
	text-align: justify;
}

/*==============================*/
/*========== CALENDAR ==========*/
/*==============================*/

.wrapper-outer {
	width:100%;
	display: flex;
	justify-content: center;
}
.wrapper {
	width: 450px;
}
.wrapper header {
	display: flex;
	align-items: center;
	padding-bottom: 10px;
	justify-content: space-between;
}

header .icons {
	display: flex;
}
header .icons span {
	height: 38px;
	width: 38px;
	margin: 0 1px;
	cursor: pointer;
	color: #878787;
	text-align: center;
	line-height: 38px;
	-webkit-user-select: none;
	user-select: none;
	border-radius: 50%;
}
.icons span:last-child {
	margin-right: -10px;
}
header .current-date{
	letter-spacing: 0.2em;
	font-size: 1.05rem;
	font-weight: 500;
}
.calendar{
	padding-bottom: 20px;
}
.calendar ul{
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	text-align: center;
}
.calendar .days{
	margin-bottom: 20px;
}
.calendar li{
	color: #333;
	width: calc(100% / 7);
	font-size: 0.9rem;
}
.calendar .weeks li {
	font-weight: 500;
	cursor: default;
}
.calendar .days li {
	z-index: 1;
	position: relative;
	margin-top: 30px;
}
.days li.inactive {
	color: #DCDCDC;
}
.days li.active {
	color: #fff;
}
.days li::before {
	position: absolute;
	content: "";
	left: 50%;
	top: 50%;
	height: 30px;
	width: 30px;
	z-index: -1;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}
.days li.active::before {
	background: #9B59B6;
}
.days li.maintenance::before {
	background: #FFB1B0;
}
.days li.dayoff::before {
	background: #A9D1F7;
}
.days li.mark-today::before {
	border: 2px solid #000;
}

.maintenance-icon { color: #FFB1B0; }
.dayoff-icon { color: #A9D1F7; }

/*============================*/
/*========== SEARCH ==========*/
/*============================*/

.risk-search-container {
    position: relative;
    margin-bottom: 20px;
}

.risk-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    font-size: 16px;
    outline: none;
}

.risk-search-input:focus {
    border-color: #4285f4;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28), 0 0 8px rgba(66, 133, 244, 0.6);
}

.risk-search-clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    outline: none;
    display: none;
}

.risk-search-results-container {
    width: 100%;
    background-color: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    height: auto;
    overflow-y: auto;
}

.risk-search-result-item {
    padding: 10px;
    border-bottom: 1px solid #dfe1e5;
    cursor: pointer;
}

.risk-search-result-item:last-child {
    border-bottom: none;
}

.risk-search-result-item:hover {
    background-color: #f1f1f1;
}

.risk-search-short-content {
    display: block;
}

.risk-search-full-content {
    display: none;
}

/* ============================================ */
/* ========== TEST FOR UNDERSTANDING ========== */
/* ============================================ */

.tfu-title {
	display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    text-align: center;
    color: #333333;
}

.tfu-sub-title {
	display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    text-align: center;
    color: #333333;
}

.tfu-statement {
    margin: 15px 0;
    padding: 10px;
    border-bottom: 1px solid #cccccc;
}

.tfu-statement label {
    margin-right: 15px;
    font-size: 16px;
    color: #555555;
}