
@media (min-width: 1720px){
    .modal-xl {
        --bs-modal-width: 1440px;
    }
}

.sft-authentication-aside-header {
    padding: 100px 75px;
}

.sft-main-interface header{
    padding-top: 0;
}

.list-dash-seperator li::after{
    content: '-';
    margin: 0 5px;
}

.list-dash-seperator li:last-child::after{
    display: none;
}

.license-element{
    background-color: var(--bs-gray-100);
    cursor: pointer;
}

.license-element .icon{
    width: 35px;
}

/** Logo Branding */
.branding{
    background: url(../img/4red-logo.svg) no-repeat;
}

.sft-loading-overlay .branding{
    background: url(../img/4red-logo-white.svg) no-repeat;
}

.sft-sidebar-sidebar .application-info .branding{
    background-size: 100px;
}

/** Bosch Sprite Adjustments */
.bosch .bosch-sprite{
    height: calc(env(safe-area-inset-top, 0) + 8px);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    background-image: url(../img/bosch-sprite.svg);
    margin-bottom: -2px;
}

.bosch .header-info-bar:has(*){
    padding-top: 0;
}

.bosch .sft-fullscreen-container-wrapper{
    padding-top: calc(63px + var(--header-info-bar-height, 0));
}

@media (min-width: 992px){
    .bosch .sft-main-interface-header-double .sft-fullscreen-container-wrapper{
        padding-top: calc(118px + var(--header-info-bar-height, 0));
    }

    .bosch .sft-main-interface-header-double .sft-main-interface-header {
        height: calc(118px + env(safe-area-inset-top, 0) + var(--header-info-bar-height, 0));
    }
}

@media (min-width: 1024px){
    .bosch .sft-main-interface header .gap {
        width: 150px;
    }
    .bosch .sft-main-interface header .branding{
        background-size: 100px;
    }
}

.bosch .sft-authenticate-content .branding {
    width: 300px;
    height: 50px;
    background-size: 175px;
}

.bosch .branding{
    background: url(../img/bosch-logo.svg) no-repeat;
}

.bosch[data-bs-theme=dark]  .branding{
    background-image: url(../img/bosch-logo-white.svg);
}

.bosch .sft-loading-overlay .branding{
    background: url(../img/bosch-icon-white.svg) no-repeat;
}

.sft-authentication-aside-graphic{
    background-image: url(../img/illustrations/presentation.png);
    background-position: center 0;
    background-size: 80%;
}

.sft-fullscreen-map-container-inner{
    position: relative;
}

.sft-fullscreen-map{
    position: absolute;
    width: 100%;
    height: 100%;
}

.sft-fullscreen-form-editor,
.sft-fullscreen-interface-editor,
.sft-fullscreen-document-editor{
    position: absolute;
    width: 100%;
    min-height: 100%;
    background-color: var(--bs-body-bg);
    transform: translateY(-100%);
    transition: transform .350s ease-in-out;
}

.sft-fullscreen-form-editor, .form-editor{
    min-height: 800px;
}

.sft-fullscreen-form-editor.show,
.sft-fullscreen-interface-editor.show,
.sft-fullscreen-document-editor.show{
    transform: initial;
}

.gis-positioning-container,
.gis-roadnet-container{
    width: 250px;
    min-height: 75px;
    border-radius: 3px;
    box-shadow: 0px 0px 5px -1px rgba(0,0,0,0.75);
    background: var(--bs-body-bg);
    padding: 10px;
    z-index: 9000;
}

.gis-positioning-container,
.gis-roadnet-control{
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-group-gis-positioning{
    height: 30px;
    width: 60px;
}

.gis-base-positioning-layer{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 150px;
    border: 5px solid var(--bs-primary);
    border-radius: 5px;
    pointer-events: none;
    background: transparent;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    z-index: 1;
}

.gis-base-positioning-layer .ui-resizable-handle {
    pointer-events: auto;
}

.gis-positioning-grid{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 90px;
}

.gis-positioning-grid span{
    flex-basis: 33%;
}

.gis-positioning-grid span button{
    width: 30px;
    height: 30px;
}

/** UN Kemler input */
.input-group-unkemler{
    display: block;
    border: 4px solid #000000;
    max-width: 140px;
    background-color: #ff6d03;
}

.input-group-unkemler .form-control-unkemler{
    display: block;
    border: none;
    background: none;
    outline: none;
    text-align: center;
    font-size: 28px;
    line-height: 42px;
    font-weight: bold;
    color: #000000;
}

.input-group-unkemler .form-control-unkemler:first-child{
    border-bottom: 4px solid #000000;
}

.table-row-icon.table-row-icon-kemler{
    background-color: #ff6d03;
    border: 2px solid #000000;
    border-radius: 2px;
    width: 65px;
    font-weight: bold;
    font: 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: #000000;
}

.table-row-icon.table-row-icon-kemler > div{
    flex: 1;
    line-height: 22px;
}

.table-row-icon.table-row-icon-kemler > div:first-child{
    border-bottom: 2px solid #000000;
}

/** NFPA Diamant input */
.input-group-nfpa{
    max-width: 125px;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-group-nfpa .nfpa-background{
    width: calc(100% / 1.414);
    height: calc(100% / 1.414);
    position: absolute;
    border: 2px solid #000000;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    transform: rotate(45deg);
}

.input-group-nfpa .nfpa-background > span{
    display: flex; 
    flex-basis: 50%;
    background-color: #ffffff;
    border: 2px solid #000000;
}

.input-group-nfpa .nfpa-background span:nth-child(1){
    background-color: #ee3b33;
}

.input-group-nfpa .nfpa-background span:nth-child(2){
    background-color: #fff200;
}

.input-group-nfpa .nfpa-background span:nth-child(3){
    background-color: #007ac3;
}

.input-group-nfpa .nfpa-input{
    position: absolute;
    width: 100%;
    height: 100%;
}

.input-group-nfpa .nfpa-input .form-control-nfpa{
    width: 30px;
    height: 30px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    position: absolute;
    border: none;
    background-color: transparent;
    color: #000000;
}

.input-group-nfpa .nfpa-input .form-control-nfpa:nth-child(1){
    left: calc(50% - 15px);
    top: calc(25% - 14px);
}

.input-group-nfpa .nfpa-input .form-control-nfpa:nth-child(2){
    left: calc(25% - 14px);
    top: calc(50% - 16px);
}

.input-group-nfpa .nfpa-input .form-control-nfpa:nth-child(3){
    right: calc(25% - 14px);
    top: calc(50% - 16px);
}

.input-group-nfpa .nfpa-input span{
    position: absolute;
    left: calc(50% - 15px);
    bottom: calc(25% - 8px);
    font-weight: bold;
    width: 30px;
    text-align: center;
    color: #000000;
}

.input-group-nfpa .nfpa-input i{
    font-size: 20px;
    position: relative;
    top: 3px;
}

.input-group-nfpa .nfpa-input .nfpa-use-no-water span{
    text-decoration: line-through;
    font-size: 19px;
    position: relative;
    top: 4px;
}

.form-map{
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bs-gray-100);
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
    position: relative;
}

.form-map-inner{
    width: 100%;
    height: 100%;
}

.form-map > div{
    position: absolute;
}

.form-map .form-map-inner{
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
}

/** State breadcrumb */
.state-breadcrumb{
	background: var(--bs-warning-bg-subtle);
	width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 18px;
}

.state-breadcrumb-cancelled{
    background: var(--bs-danger-bg-subtle);
}

.state-breadcrumb li{
	padding: 10px 0px 10px 10px;
    height: 76px;
    overflow: hidden;
}

.state-breadcrumb .complete{
	background-color: var(--bs-success-bg-subtle);
}

.state-breadcrumb :nth-last-child(1 of .complete)::before{
    content: '';
    float: right;
    position: relative;
    top: -10px;
    background: var(--bs-warning-bg-subtle);
	border-top: 38px solid transparent;
	border-bottom: 38px solid transparent;
	border-left: 38px solid var(--bs-success-bg-subtle);;
}

.state-breadcrumb-cancelled :nth-last-child(1 of .complete)::before{
    background: var(--bs-danger-bg-subtle);
}

.state-breadcrumb li:last-child::before{
    display: none;
}

.sensor-icon-fs-1{
    width: 60px;
    text-align: center;
}

/** Incident Styling */
.incident-icon{
    width: 35px;
    text-align: center;
}

#toggle_trainingMode:checked {
    background-color: var(--bs-purple);
    border-color: var(--bs-purple);
}

.incident-timer{
    border: none;
    height: 61px;
    min-width: 150px;
}

.incident-checklist{
    margin: -5px 0;
}

.incident-checklist-list li,
.incident-checklist-blocks li{
    background-color: var(--bs-gray-100);
    cursor: pointer;
}

.incident-checklist-blocks{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px;
    align-items: start;
}

.incident-checklist-blocks-end{
    align-items: end;
}

.incident-checklist-blocks li{
    max-width: 200px;
    height: 100%;
}

.incident-checklist-list li time,
.incident-checklist-blocks li time{
    opacity: .5;
}

.incident-checklist-list .checked,
.incident-checklist-blocks .checked{
    background-color: var(--bs-success-bg-subtle);
    color: var(--bs-success-text-emphasis);
}

.incident-checklist-list .checked time,
.incident-checklist-blocks .checked time{
    opacity: 1;
}

.incident-photoroll > div{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1px;
    align-items: start;
}

.incident-photoroll a{
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1 / 1;
    color: var(--bs-gray-500);
    background-color: var(--bs-gray-100);
    overflow: hidden;
}

.icident-phototoll-preview{
    width: 100%;
    height: 100%;
    position: relative;
}

.icident-phototoll-preview > div{
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    align-items: center;
    text-align: center;
}

.icident-phototoll-preview i{
    font-size: 48px;
}

.incident-photoroll img{
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
}

.incident-photoroll-upload{
    width: 100%;
    height: 100%;
    position: relative;
}

.incident-photoroll-upload > div,
.incident-photoroll-upload > form{
    position: absolute;
    width: 100%;
    height: 100%;
}

.incident-photoroll-upload-icons{
    display: grid;
    align-items: center;
    text-align: center;
}

.incident-photoroll-upload-icons-uploading{
    display: none;
}

.incident-photoroll-upload input{
    width: 100%;
    height: 100%;
    opacity: 0;
}

.incident-photoroll-uploading .incident-photoroll-upload-icons-browse{
    display: none;
}

.incident-photoroll-uploading .incident-photoroll-upload-icons-uploading{
    display: grid;
}

.incident-photoroll-uploading input{
    display: none;
}

.incident-messages .messages-list{
    background-color: var(--bs-gray-100);
    border-radius: 10px;
    padding: 10px 0;
}

.incident-messages .messages-list li{
    padding: 10px 0;
}

.incident-messages .messages-list .message-send{
    flex-direction: row-reverse !important;
}

.incident-messages .messages-list img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-body-bg);
    margin: 0 15px;
    align-self: flex-end;
}

.incident-messages .messages-list .bubble{
    background-color: var(--bs-gray-400);
    padding: 5px;
    border-radius: 5px;
    max-width: 65%;
    position: relative;
}

.incident-messages .messages-list .bubble::before{
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.incident-messages .messages-list .message-send .bubble{
    background-color: var(--bs-info-bg-subtle);
}

.incident-messages .messages-list .message-received .bubble::before{
    bottom: 5px;
    left: -8px;
    border-width: 5px 10px 5px 0;
    border-color: transparent var(--bs-gray-400) transparent transparent;
    transform: translateY(-50%);
}

.incident-messages .messages-list .message-send .bubble::before{
    bottom: 5px;
    right: -8px;
    border-width: 5px 0 5px 10px;
    border-color: transparent transparent transparent var(--bs-info-bg-subtle);
    transform: translateY(-50%);
}

.incident-messages .messages-list time{
    font-size: 10px;
}

.incident-sensor-list li,
.incident-sensor-blocks li{
    background-color: var(--bs-gray-100);
}

.incident-sensor-list li .icon{
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.incident-substance{
    background-color: var(--bs-gray-100);
}

.incident-substance button{
    border: none !important;
}

.incident-substance input{
    background-color: var(--bs-body-bg) !important;
}

.incident-substance li > span{
    display: inline-block;
    width: 40%;
    color: var(--bs-gray-600);
    overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.incident-substance li > strong{
    display: inline-block;
    width: 60%;
    color: var(--bs-gray-600);
    overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.incident-substance label > strong{
    color: var(--bs-gray-600);
}

.weather-condition-icon{
    background: none !important;
    border: 1px solid var(--bs-gray-100);
}

.weather-condition-icon img{
    width: 40px;
}

.roadnet-button-blink{
    animation: roadnet-button-blink 1s infinite;
}

@keyframes roadnet-button-blink {
    0%, 49% {
        background-color: var(--bs-success);
        border-color: var(--bs-success);
        color: #ffffff
    }
    50%, 100% {
        background-color: var(--bs-body-bg);
        border-color: var(--bs-gray-400);
        color: var(--bs-gray-800);
    }
}