html,
body {
    height: 99%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
}

#leftBar,
#sidepanelRight {
    /*zoom: 150%;*/
}

#sidepanelRight.sidepanel {
    width: 500px;
}


#sidepanelLeft.sidepanel {
    width: 338px;
}

#sidepanelLeft .sidepanel-content {
    height: 100%;
    box-sizing: border-box;
}

#sidepanelLeft.sidepanel.tabs-top .sidepanel-content-wrapper {
    height: 100%;
    overflow: hidden;
}

.leaflet-anim-control-container.left-opened .leaflet-left {
    left: 338px;
}

.leaflet-anim-control-container.right-opened .leaflet-right {
    right: 500px;
}

.leaflet-container {
    height: 100%;
    width: 100vw;
    max-width: 100%;
    max-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    touch-action: none;
}

.sidepanel-content-wrapper {
    touch-action: pan-y;
}
#mapWrapper {
    display: inline-block;
    /*width: calc(100vw - 300px);*/
    width: 100vw;
    position: absolute;
    height: 100%;
}
#miniMap {
    /*display: block;
    width: 295px;
    position: static;
    height: 150px;
    overflow: auto;
    border: 3px solid #1d4ed8;
    border-radius: 5px;*/
    position: relative;
    height: 200px;
    width: 100%;
    flex: 0 0 200px;
    border: solid 1px #000000;
    box-sizing: border-box;
}

#normalMiniMapMount {
    width: 100%;
    flex: 0 0 200px;
}

#transparentNavSidebar {
    display: none;
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: min(338px, calc(100vw - 28px));
    max-height: calc(100% - 28px);
    z-index: 2600;
    pointer-events: none;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    min-height: 0;
}

body.transparentNavigationSidebarEnabled #transparentNavSidebar {
    display: flex;
}

body.transparentNavigationSidebarEnabled #sidepanelLeft {
    display: none;
}

body.transparentNavigationSidebarEnabled .leaflet-anim-control-container.left-opened .leaflet-left,
body.transparentNavigationSidebarEnabled .leaflet-anim-control-container.left-closed .leaflet-left {
    left: 0;
}

#transparentNavigationInstructions {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 172px;
    overflow: hidden;
    pointer-events: auto;
}

#transparentNavigationInstructions .instruction {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 5px;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    color: #fff;
    background: rgba(8, 12, 20, 0.58);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

#transparentNavigationInstructions .instruction:last-child {
    background: rgba(24, 74, 173, 0.82);
    border-color: rgba(174, 205, 255, 0.44);
}

#transparentNavigationInstructions .instructionText {
    width: auto;
    min-width: 0;
}

#transparentNavigationInstructions .instructionTextDistance {
    font-size: 1.18rem;
    line-height: 1.05;
}

#transparentNavigationInstructions .instructionTextStreet {
    display: block;
    font-size: 0.82rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#transparentNavigationInstructions .instructionIcon,
#transparentNavigationInstructions .instructionIcon svg {
    width: 36px;
    height: 36px;
}

#transparentIncidentSummary {
    display: none;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    color: #fff;
    background: rgba(8, 12, 20, 0.66);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: pointer;
}

#transparentIncidentSummary:focus-visible {
    outline: 2px solid rgba(174, 205, 255, 0.9);
    outline-offset: 2px;
}

#transparentIncidentSummary.visible {
    display: grid;
}

#transparentIncidentSummary .transparentEmergencyCode {
    width: 34px;
    height: 34px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    font-weight: bold;
}

#transparentIncidentSummary .transparentIncidentText {
    min-width: 0;
}

#transparentIncidentSummary .transparentIncidentLine {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.12;
}

#transparentIncidentSummary .transparentIncidentAddress {
    font-size: 0.95rem;
    font-weight: bold;
}

#transparentIncidentSummary .transparentDeliveryAddress {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

#transparentMiniMapMount {
    width: 100%;
    height: 200px;
    flex: 0 0 200px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(8, 12, 20, 0.46);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

#transparentMiniMapMount #miniMap {
    height: 100%;
    flex: none;
    border: 0;
}

#transparentEtaBox {
    display: none;
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    min-width: 82px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #fff;
    background: rgba(8, 12, 20, 0.72);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
}

#transparentEtaBox.visible {
    display: block;
}

#transparentEtaBox:focus-visible {
    outline: 2px solid rgba(174, 205, 255, 0.9);
    outline-offset: 2px;
}

#transparentNavSidebar.navigationCollapsed #transparentIncidentSummary,
#transparentNavSidebar.navigationCollapsed #transparentNavigationInstructions,
#transparentNavSidebar.navigationCollapsed #transparentMiniMapMount {
    display: none;
}

#transparentEtaBox .transparentEte {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.05;
}

#transparentEtaBox .transparentEta {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    line-height: 1.05;
}

#transparentEtaBox.compact {
    min-width: 0;
    padding: 4px 7px;
}

#transparentEtaBox.compact .transparentEte {
    font-size: 0.86rem;
    line-height: 1;
}

#transparentEtaBox.compact .transparentEta {
    display: none;
}

@media screen and (max-width: 700px) {
    #transparentNavSidebar {
        left: 10px;
        bottom: 10px;
        width: min(310px, calc(100vw - 20px));
        max-height: calc(100% - 20px);
    }

    #transparentNavigationInstructions {
        max-height: 150px;
    }

    #transparentMiniMapMount {
        height: 190px;
        flex-basis: 190px;
    }
}

.externalMarker {
    padding: 0px;
    font-size: 18px;
}

.miniMapMarker {
    display: block;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

#leftBar {
    display: inline-block;
    position: relative;
    width: 300px;
    height: 100%;
    overflow: hidden;
}

.incidentCard {
    width: 100%;
}

.incidentCard .emergencyCode {
    display: inline-block;
    vertical-align: top;
    font-size: 36px;
    font-weight: bold;
    border-radius: 50%;
    border: 3px solid #ddd;
    padding: 5px;
    background: gray;
    margin-right: 5px;
    min-width: 48px;
    min-height: 48px;
    text-align: center;
}

.incidentCard .incidentDetails {
    display: inline-block;
    min-width: 0;
}

.incidentCard .incidentDetails .incidentNumber {
    font-size: large;
    font-weight: bold;
}

.incidentCard .incidentDeliveryLocation {
    color: #aaa;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.incidentCard .incidentResources {
    margin-top: 5px;
    border-top: 2px solid #505050;
    padding-top: 5px;
}

/*.incidentCard .incidentResource {
}*/

.incidentCard .incidentResource .ete {
    min-width: 70px;
    display: inline-block;
    text-align: center;
}

.incidentCard .incidentResource [class*="ete_"] {
    min-width: 70px;
    display: inline-block;
    text-align: center;
}

.incidentCard .incidentResource.selected {
    color: rgb(221, 159, 34);
}

.etaCard {
    width: 100%;
}

.etaCard .etaIcon {
    display: inline-block;
    vertical-align: top;
    font-size: large;
}
.etaCard .etaIcon sl-icon {
    font-size: 32px;
}

.etaCard .etaInfo {
    display: inline-block;
    text-align: center;
    width: 80%;
}

.etaCard .etaInfo .ete {
    font-size: xx-large;
}

#navigationInstructions {
    height: 100%;
    max-height: none;
    /*height: 220px;*/
    overflow: auto;
}

.instructionClass {
    /*--sl-spacing-large: 0.2rem;*/
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.instructionClass::part(base) {
    height: 100%;
}
.instructionClass::part(body) {
    padding: 0.2rem;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.instruction {
    padding: 5px;
}

.instruction:last-child {
    background: #66d;
    border-radius: 5px;
}

.instructionText {
    display: inline-block;
    width: 80%;
    vertical-align: top;
}

.instructionTextStreet sl-badge {
    margin-right: 5px;
}

.instructionTextDistance {
    display: block;
    font-size: xx-large;
    font-weight: bold;
}

.instructionIcon {
    display: inline-block;
    height: 40px;
}

.instructionIcon svg {
    height: 40px;
    width: 40px;
}

sl-badge.white::part(base) {
    background-color: rgb(239, 239, 239);
}

/** Dialog **/
.setStatusDialog {
    --width: 740px;
}

sl-button.statusButton {
    min-width: 220px;
    margin: 4px;
}

sl-button.statusButton::part(base) {
    font-size: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.preferenceSwitch {
    display: block;
    margin: 12px 0;
}

sl-button.assignAction,
sl-button.assignIncident,
sl-button.assignMatrix {
    display: none;
}

body.showAssignmentButtons sl-button.assignAction,
body.showAssignmentButtons sl-button.assignIncident,
body.showAssignmentButtons sl-button.assignMatrix {
    display: inline-block;
}

.wetfag-sidebar-tab {
    display: none;
}

body.showWetfagButton .wetfag-sidebar-tab {
    display: block;
}

.wetfag-tab-link svg {
    display: block;
}

.wetfag-page.active {
    height: calc(100vh - 10px);
    overflow: hidden;
    box-sizing: border-box;
}

.wetfag-layout {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 7px;
    height: 100%;
    min-height: 0;
}

.wetfag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
}

.wetfag-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.wetfag-age-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    grid-auto-rows: 1fr;
    align-content: stretch;
    min-height: 0;
}

.wetfag-layout.show-details .wetfag-age-buttons {
    display: none;
}

.wetfag-age-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 6px;
    border: 1px solid #3f4651;
    border-radius: 6px;
    background: #1c222b;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.wetfag-age-button.active {
    border-color: #2f7df6;
    background: #123a72;
}

.wetfag-age-label {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.wetfag-age-weight {
    margin-top: 4px;
    color: #c7d0dc;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.wetfag-details {
    display: none;
    min-height: 0;
    grid-template-rows: auto 1fr;
    gap: 7px;
}

.wetfag-layout.show-details .wetfag-details {
    display: grid;
}

.wetfag-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid #3f4651;
    border-radius: 6px;
    background: #111821;
}

.wetfag-back-button {
    min-width: 104px;
    min-height: 42px;
    border: 1px solid #4a5361;
    border-radius: 6px;
    background: #232b36;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.wetfag-detail-age {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.wetfag-detail-weight {
    color: #d8dee8;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.wetfag-item-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    min-height: 0;
}

.wetfag-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    min-height: 88px;
    padding: 9px;
    border: 1px solid #3f4651;
    border-radius: 6px;
    background: #171d25;
    box-sizing: border-box;
}

.wetfag-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2f7df6;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.wetfag-item-label {
    color: #c3ccd8;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.05;
}

.wetfag-item-sublabel {
    color: #aeb8c5;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.05;
    margin-top: 1px;
}

.wetfag-item-value {
    margin-top: 5px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.wetfag-item-value span {
    color: #d5dce6;
    font-size: 20px;
    font-weight: 800;
}

/** /Dialog **/

/* RIGHT SIDEBAR */
.sidepanel-content-wrapper .sidepanel-content {
    padding: 0.1rem 0.1rem;
}

.sidepanel-content {
    width: 100%;
    font-size: 1rem;
}

.sidepanel-content-wrapper .sidepanel-content .sidepanel-tab-content.active {
    padding: 5px;
}

#sidepanelLeft .sidepanel-tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100%;
    box-sizing: border-box;
}

#sidepanelLeft .incidentCard,
#sidepanelLeft .etaCard {
    flex: 0 0 auto;
}

.sidepanel.sidepanel-dark.tabs-left .sidepanel-tabs-wrapper .sidepanel-tabs .sidepanel-tab .sidebar-tab-link:active,
.sidepanel.sidepanel-dark.tabs-left .sidepanel-tabs-wrapper .sidepanel-tabs .sidepanel-tab .sidebar-tab-link.active {
    border-right-color: #004199;
}

.sidepanel.sidepanel-dark .sidepanel-tabs-wrapper .sidepanel-tabs .sidepanel-tab .sidebar-tab-link:active,
.sidepanel.sidepanel-dark .sidepanel-tabs-wrapper .sidepanel-tabs .sidepanel-tab .sidebar-tab-link.active {
    color: #004199;
}

.sidepanel.sidepanel-dark .sidepanel-tabs-wrapper .sidepanel-tabs .sidepanel-tab .sidebar-lock-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6d737c;
    height: 45px;
    line-height: 1.7;
    padding-left: 8px;
    padding-right: 8px;
    border: 0;
    text-decoration: none;
}

.sidepanel.sidepanel-dark .sidepanel-tabs-wrapper .sidepanel-tabs .sidepanel-tab .sidebar-clear-link {
    color: #6d737c;
}

.sidepanel-tab .sidebar-tab-link {
    position: relative;
}

.tab-count-badge {
    display: none;
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #6d737c;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    box-sizing: border-box;
}

.tab-count-badge.has-new {
    background: #004199;
}

.incidentCategory {
    width: 100%;
}

.incidentCategory .severity {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: gray;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
    vertical-align: top;
}

.incidentCategory .incidentTypeWrapper {
    display: inline-block;
    vertical-align: top;
    max-width: calc(100% - 64px);
    padding-left: 8px;
}

.incidentCategory .incidentType {
    font-size: x-large;
}

.incidentDescriptions {
    width: 100%;
}

.incidentDescriptions .incidentLocationWrapper {
    display: inline-block;
    width: 59%;
    vertical-align: top;
}

.incidentDescriptions .incidentLocationWrapper .incidentLocationIcon {
    display: inline-block;
    font-size: 20px;
    vertical-align: middle;
}

.incidentDescriptions .incidentLocationWrapper .incidentLocation {
    display: inline-block;
    vertical-align: top;
}

.incidentDescriptions .incidentContact {
    display: inline-block;
    width: 39%;
    vertical-align: top;
}

.incidentDescriptions .incidentContact .incidentContactIcon {
    display: inline-block;
    font-size: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.incidentDescriptions .incidentContact .incidentContactDetails {
    display: inline-block;
    vertical-align: top;
}

.incidentDescriptions .incidentContact .incidentContactDetails .number {
    font-size: large;
}
.incidentDescriptions .incidentContact .incidentTimeIcon {
    display: inline-block;
    font-size: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.incidentDescriptions .incidentContact .incidentTimeDetails {
    display: inline-block;
    vertical-align: top;
    font-size: large;
}

.incidentPatients {
    width: 100%;
    margin-top: 10px;
    border-top: 2px solid #505050;
    padding-top: 5px;
}

.incidentPatients .incidentPatient {
    border-bottom: 1px solid #505050;
    padding: 5px;
}

.incidentPatients .incidentPatient .patientIcon {
    display: inline-block;
    font-size: 30px;
    vertical-align: middle;
    margin-right: 5px;
}

.incidentPatients .incidentPatient .patientInfo {
    display: inline-block;
    vertical-align: top;
}

.incidentPatients .incidentPatient .patientInfo .patientName {
    font-size: 1rem;
}

.incidentPatients .incidentPatient .patientDescriptors {
    display: inline-block;
    vertical-align: top;
    margin-left: 5px;
}

.incidentPatients .incidentPatient .patientDescriptors .patientGender {
    font-size: 1rem;
}

.incidentPatients .incidentPatient .patientDescriptors .patientAge {
    text-align: center;
}

.incidentLog {
    width: 100%;

    border-top: 2px solid #505050;
    padding: 5px;
}

.incidentLog .incidentLogElement {
    padding: 5px;
    border-bottom: 1px solid #505050;
}

.incidentLog .incidentLogElement .head {
    font-size: 0.75rem;
}

/* Mission List */
.mission {
    padding: 5px;
    background: #333;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.mission.active {
    background: #434dc5;
}

.missionId {
    display: inline-block;
    background: #f00;
    padding: 0px 3px 0px 3px;
    border-radius: 5px;
}

.missionIncidentType {
    display: inline-block;
}
/* /Mission List */

/*
  ##Map button sizes
*/
.leaflet-touch .leaflet-control-zoom-display {
    width: 48px;
    height: 48px;
    font-size: 18px;
    line-height: 30px;
}
.leaflet-touch .leaflet-bar a,
.leaflet-touch .leaflet-toolbar-0 > li > a {
    width: 44px;
    height: 44px;
    font-size: 20px;
    line-height: 45px;
    background-size: 314px 30px;
}
.leaflet-touch .leaflet-draw-toolbar.leaflet-bar a {
    background-position-y: 6px;
}
.leaflet-touch .leaflet-draw-actions a,
.leaflet-touch .leaflet-control-toolbar .leaflet-toolbar-1 > li > .leaflet-toolbar-icon {
    font-size: 20px;
    line-height: 44px;
    height: 44px;
}
.leaflet-touch .leaflet-draw-actions,
.leaflet-touch .leaflet-toolbar-1 {
    left: 45px;
}

.leaflet-right .leaflet-toolbar-1 {
    left: auto !important;
    right: 30px;
}
.leaflet-right .leaflet-toolbar-1 li:first-child > .leaflet-toolbar-icon {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.leaflet-right .leaflet-toolbar-1 li:last-child > .leaflet-toolbar-icon {
    border-top-right-radius: unset;
    border-bottom-right-radius: unset;
}

/* set up our 3D space */

/*body {
    -webkit-perspective: 1200px;
    perspective: 1200;
}

.tiltedMap,
.tiltedMap * {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.tiltedMap {
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotateX(60deg) rotateZ(0deg);
}

.tiltedMap .marker {
    -webkit-transform: rotateX(-90deg) rotateY(40deg);
    -moz-transform: rotateX(-90deg);
    -webkit-transform-origin: bottom center;
    -moz-transform-origin: bottom center;
}

.tiltedMap .leaflet-overlay-pane,
.tiltedMap .leaflet-marker-pane,
.tiltedMap .leaflet-objects-pane {
    transform: translateZ(2px);
}*/

/* MARKERS */
.incidentMarkerOuter {
    display: block;
    text-align: center;
    vertical-align: middle;
    border-radius: 30%;
    border-style: solid;
    font-size: 8px;
    font-weight: bold;

    /*background: rgba(0, 57, 128, 0.2);*/
    border-color: #464646;
    color: #000;
    overflow: hidden;

    width: 40px;
    height: 40px;
    border-width: 0px;
}

.incidentMarker {
    display: block;
    text-align: center;
    vertical-align: middle;
    border-radius: 30%;
    border-style: solid;
    font-size: 8px;
    font-weight: bold;

    /*background: rgba(0, 0, 0, 0.2);*/
    border-color: #3388ff;
    color: #000;
    overflow: hidden;
    width: 25px;
    height: 25px;
    border-width: 7px;
}

.incidentMarker.codeA {
    border-color: #bb3333;
}

.incidentMarker.codeH {
    border-color: #e6f505;
}

.incidentMarker.codeV1 {
    border-color: #45c92a;
}

.incidentMarker.codeV2 {
    border-color: #34a216;
}

/** Leaflet toggle-button */
.toggle-button {
    background-color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
}
.toggle-button:hover {
    background-color: #f4f4f4;
}

.leaflet-right .leaflet-control {
    margin-right: 10px;
}

.toggle-button.toggeled {
    background: #3388ff;
}

/** IncidentList */
#incidentList .incident,
#resourceMissionIncidentList .incident {
    display: block;
    cursor: pointer;
    width: 100%;
    /*min-height: 70px;*/
}

#incidentList .incident .problemDescription,
#resourceMissionIncidentList .incident .problemDescription {
    /*display: none;*/
    flex: 1;
    white-space: nowrap; /* Prevents text from wrapping to the next line */
    overflow: hidden; /* Hides any overflow content */
    text-overflow: ellipsis; /* Adds an ellipsis (...) to indicate clipped text */
    line-height: 1.2; /* Ensures a consistent line height */
}

#incidentList .incident::part(body),
#resourceMissionIncidentList .incident::part(body) {
    padding: 5px;
}

.incidentColor {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 5px;
    background: gray;
    margin-top: 5px;
}

.incidentColor[emergencyCode="A"] {
    background: red;
    color: #dfdfdf;
}

.incidentColor[emergencyCode="H"] {
    background: yellow;
    color: #222;
}

.incidentColor[emergencyCode="V1"] {
    background: #45c92a;
    color: #10240d;
}

.incidentColor[emergencyCode="V2"] {
    background: green;
    color: #dfdfdf;
}

.emergencyCodeSquare {
    width: 50px;
    height: 50px;
    display: inline-block;
    border-radius: 5px;
    background: gray;
    margin-top: 5px;
}

.emergencyCodeBackground {
    background: gray;
}

.emergencyCodeBackground[emergencyCode="A"] {
    background: var(--sl-color-danger-400);
}

.emergencyCodeBackground[emergencyCode="H"] {
    background: yellow;
}

.emergencyCodeBackground[emergencyCode="V1"] {
    background: #45c92a;
}

.emergencyCodeBackground[emergencyCode="V2"] {
    background: green;
}

.one-line-div {
    flex: 1;
    white-space: nowrap; /* Prevents text from wrapping to the next line */
    overflow: hidden; /* Hides any overflow content */
    text-overflow: ellipsis; /* Adds an ellipsis (...) to indicate clipped text */
    line-height: 1.2; /* Ensures a consistent line height */
}

.resourceMission {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    margin-top: -5px;
    width: 100%;
    box-sizing: border-box;
}

.resourceId {
    margin-top: 10px;
    font-size: 1.6em; /* Increase font size */
    margin-right: 10px; /* Space between resourceId and resourceDetails */
    flex: 0 0 auto; /* Prevent flex from shrinking */
}

.resourceDetails {
    flex: 1; /* Allow it to take the remaining space */
    padding-right: 5px;
}

.resourceDetails .resourceDetailsRow {
    display: flex;
    justify-content: space-between; /* Space between items */
    width: 100%;
}

.resourceDetails .resourceDetailsRow > div {
    flex: 1;
}

.resourceStatus {
    text-align: left;
    font-size: x-large;
}

.resourceStatusTime {
    text-align: right;
    font-size: x-large;
}

.resourceKm {
    text-align: left;
}

.resourceEte {
    text-align: right;
}

.resourceEte .resourceEta {
    margin-left: 8px;
}

.incident {
    position: relative;
}

.deviceIncidentDistance {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(36, 36, 40, 0.95);
    border-radius: 5px;
    padding: 1px;
}

.truncateText {
    white-space: nowrap;
    overflow: hidden;
    /* text-overflow: ellipsis; */
    /* border: 1px solid #ccc; */
}

/** Selectbox */
h4 {
    margin: 0px;
}

.multi-select-dropdown {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.multi-select-dropdown .select-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 5px;
    cursor: pointer;
}

.multi-select-dropdown .select-box span {
    flex-grow: 1;
}

.multi-select-dropdown .dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border: 1px solid #ccc;
    background-color: #3a3a3a;
    color: #ddd;
    z-index: 1;
    width: 100%;
}

.multi-select-dropdown .dropdown-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.multi-select-dropdown .dropdown-list ul li {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.multi-select-dropdown .dropdown-list ul li:last-child {
    border-bottom: none;
}

.multi-select-dropdown .dropdown-list ul li label {
    display: flex;
    align-items: center;
}

.multi-select-dropdown .dropdown-list ul li input {
    margin-right: 5px;
}

.incidentPatients .patient {
    padding: 5px;
    background: #555;
    display: inline-block;
    border-radius: 5px;
    margin-bottom: 5px;
    margin-right: 10px;
}

.incidentPatients .patient:has(.incidentWetfagButton) {
    cursor: pointer;
}

.incidentPatients .patientNumber {
    padding: 3px;
    background: #444;
    border-radius: 5px;
    min-width: 20px;
    display: inline-block;
    text-align: center;
}

.incidentPatients .patientAge {
    display: inline-block;
}

.incidentWetfagButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 5px;
    padding: 0;
    border: 1px solid #9aa5b3;
    border-radius: 50%;
    background: #1f2935;
    color: #fff;
    vertical-align: middle;
    cursor: pointer;
}

.incidentWetfagButton.active {
    border-color: #ff9f1c;
    box-shadow: 0 0 0 2px rgba(255, 159, 28, 0.35);
}

.incidentWetfagButton svg {
    display: block;
    width: 26px;
    height: 26px;
}

.incidentWetfagSummary {
    display: none;
    align-items: stretch;
    gap: 6px;
    margin-top: 7px;
    padding: 7px;
    border: 1px solid #475364;
    border-radius: 6px;
    background: #111923;
    color: #fff;
    box-sizing: border-box;
}

.incidentWetfagSummaries {
    display: block;
    clear: both;
    width: 100%;
}

.incidentWetfagSummary.visible {
    display: grid;
    grid-template-columns: minmax(84px, 0.8fr) minmax(142px, 1.25fr) minmax(98px, 0.95fr);
}

.incidentWetfagValue {
    min-width: 0;
    padding: 6px 8px;
    border-radius: 4px;
    background: #1f2935;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.incidentWetfagAgeValue {
    cursor: pointer;
    border: 1px solid rgba(47, 125, 246, 0.45);
}

.incidentWetfagValue > span:first-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #aeb8c5;
    font-size: 12px;
    line-height: 1;
}

.incidentWetfagValue strong {
    display: inline-block;
    margin-left: 0;
    margin-top: 3px;
    font-size: 26px;
    font-weight: 900;
    line-height: 0.95;
    white-space: nowrap;
}

.incidentWetfagValue span:last-child {
    margin-left: 2px;
    color: #c7d0dc;
    font-size: 15px;
}

.incidentWetfagLabel {
    color: #d5dce6;
}

/*** LiveDisp **/

.ldArea::part(base) {
    line-height: inherit;
    min-height: inherit;
    padding: 5px;
    min-width: 50px;
}

.ldArea::part(label) {
    padding: 0px;
}
.ldArea.active {
    --sl-button-border-color: var(--sl-color-primary-600);
    --sl-button-text-color: var(--sl-color-primary-600);
    border: 2px solid var(--sl-color-primary-600);
    color: var(--sl-color-primary-600);
    background: none;
    border-radius: 5px;
}

.ldStation {
    padding: 5px;
    border: 2px solid #000;
    border-radius: 5px; /* Add border radius */
    display: inline-block; /* Make the container no longer than needed */
    background: #333;
}

#liveDispPoints {
    border-bottom: 1px dashed #d4d4d4;
    padding-bottom: 5px;
}

.ldPoint {
    padding: 5px;
    border: 2px solid #000;
    border-radius: 5px; /* Add border radius */
    display: inline-block; /* Make the container no longer than needed */
    background: #333;
}

.ldPointUnit {
    border: 2px solid #000;
    border-radius: 5px;
    display: inline-block;
    padding: 5px;
    min-width: 40px;
    text-align: center;
    background: #222;
    position: relative;
}

.missionDeliveryFlex {
    display: flex;
    align-items: center;
}
.incidentListMissions {
  flex: 1;
  min-width: 0; /* Allows the flex item to shrink below its content size */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

#incidentList .incidentPatientPill,
#resourceMissionIncidentList .incidentPatientPill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 20px;
  max-width: 74px;
  margin-right: 8px;
  padding: 0 5px;
  border: 0;
  border-radius: 4px;
  background-color: #777;
  color: #222;
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lastDelivery {
  display: flex;
  align-items: bottom;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 40%;
  color: #666;
  font-size: 0.9em;
  text-align: left;
}

.ldUnit {
    border: 2px solid #000;
    border-radius: 5px;
    display: inline-block;
    padding: 5px;
    min-width: 40px;
    text-align: center;
    background: #222;
    position: relative;
}

.ldUnit[hide="1"] {
    display: none;
}

.ldUnit[status="1"] {
    background: rgb(146, 87, 87);
}

.ldUnit[bls="1"] {
    border-color: rgb(82, 136, 86);
}

.ldUnit[status="9"] {
    border-color: rgb(136, 82, 82);
    background: repeating-linear-gradient(45deg,
            #6b2c19,
            #6b2c19 5px,
            #523b36 5px,
            #523b36 10px);
}

.ldUnit[shiftWarn="2"] .badge-top-center {
    display: inline-flex;
}

.ldUnit[shiftWarn="2"] .badge-top-center::part(base) {
    background: yellow;
}

.ldUnit[shiftWarn="3"] .badge-top-center {
    display: inline-flex;
}

.ldUnit[shiftWarn="3"] .badge-top-center::part(base) {
    background: red;
}

.ldUnit[breakWarn="1"] .badge-top-right {
    display: inline-flex;
}

.ldUnit[breakWarn="1"] .badge-top-right::part(base) {
    background: yellow;
}

.ldUnit[breakWarn="2"] .badge-top-right {
    display: inline-flex;
}

.ldUnit[breakWarn="2"] .badge-top-rightr::part(base) {
    background: red;
}

.ldUnit[break="1"] {
    border: 2px solid #3388ff;
    /*border: 2px solid transparent;*/
}

.ldUnit[break="1"]::after {
    content: '';
    display: block;
    position: absolute;
    left: -3px;
    top: -3px;
    right: -3px;
    bottom: -3px;
    background-color: transparent;
    background-image: conic-gradient(#4482ff, #4482ff calc(100% - var(--break-progress-percent)), transparent calc(100% - var(--break-progress-percent)));
    z-index: -100;
    border-radius: 5px;
}

.badge-top-left {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-30%, -50%);
}

.badge-top-center {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.badge-top-right {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(30%, -50%);
}

.ldUnit sl-badge::part(base) {
    padding: 2px;
}

/*** /LiveDisp **/

/** Overlay **/
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #303030; /* Solid background color */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23282828' viewBox='0 0 100 169.5'%3E%3Cpolygon points='50,34.75 93.5,59.75 93.5,109.75 50,134.75 6.5,109.75 6.5,59.75'%3E%3C/polygon%3E%3Cpolygon points='0,-50 43.5,-25 43.5,25 0,50 -43.5,25 -43.5,-25'%3E%3C/polygon%3E%3Cpolygon points='100,-50 143.5,-25 143.5,25 100,50 56.5,25 56.5,-25'%3E%3C/polygon%3E%3Cpolygon points='0,119.5 43.5,144.5 43.5,194.5 0,219.5 -43.5,194.5 -43.5,144.5'%3E%3C/polygon%3E%3Cpolygon points='100,119.5 143.5,144.5 143.5,194.5 100,219.5 56.5,194.5 56.5,144.5'%3E%3C/polygon%3E%3C/svg%3E");
    background-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 999999;
    display: none;
}

.center-text {
    text-align: center;
}

.overlay h1 {
    font-size: 6rem;
}

.overlay h2 {
    font-size: 9rem;
}

.overlay h3 {
    font-size: 3rem;
}

#clock {
    font-size: 2em;
    margin-top: 20px;
}

.colon {
    animation: blink 1s steps(1) infinite;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
}
/** /Overlay **/

/** New incident dialog **/
#newIncidentDialog::part(base) {
    z-index: 99999;
}

.newIncidentDialogActions {
    text-align: right;
}

#newIncidentDescription {
    max-height: 100px;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.5em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 20px;
}

#newIncidentAddress {
    margin-top: 5px;
    font-size: 20px;
    font-weight: bold;
}
/** /New incident dialog **/

#deliveryDialog::part(base) {
    z-index: 99999;
}

sl-alert::part(base) {
    z-index: 99999;
    width: 50vw;
    margin-left: 25vw;
}


/*.sidepanel-tab-content {
    cursor: grab;   
    user-select: none; 
}*/

/* Resource overview */

.resourceOverviewArea::part(base) {
    line-height: inherit;
    min-height: inherit;
    padding: 5px;
    min-width: 50px;
}

.resourceOverviewArea::part(label) {
    padding: 0px;
}
.resourceOverviewArea.active {
    --sl-button-border-color: var(--sl-color-primary-600);
    --sl-button-text-color: var(--sl-color-primary-600);
    border: 2px solid var(--sl-color-primary-600);
    color: var(--sl-color-primary-600);
    background: none;
    border-radius: 5px;
}

.resourceOverviewStation {
    /*border-radius: 5px; 
    background: #333;*/
}

#resourceOverview .resource {
    border: 1px solid #DDD;
    width: 48%;
    display: inline-block;
    margin-bottom: 5px;
}

#resourceOverview .resource[hide="1"] {
    display: none;
}

#resourceOverview .line {
    /*display: flex;
    align-items: left;
    justify-content: space-around;*/
}

#resourceOverview .line div {
    display: inline-block;
}

#resourceOverview .resourceId {
    font-size: 16px;
    margin-top: 0px;
    margin-right: 0px;
    width: 40px;
}

#resourceOverview .statusTime {
    width: 40px;
}

#resourceOverview .icons, #resourceOverview .ETE {
    float: right;
}

#resourceOverview .progress-container {
    width: 100%;
    position: relative;
}

#resourceOverview .progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #4caf50;
    z-index: 0;
    width: var(--break-progress-percent, 0%);
}

#resourceOverview .progress-container div {
    display: inline-block;
    border-radius: 4px;
    position: relative;
    z-index: 1; /* Ensure it's above the progress bar */
}


.resource .icons .icon-badge {
    display: none;
}

.resource[breakWarn="1"] .badge-break {
    display: inline-flex;
}

.resource[breakWarn="1"] .badge-break::part(base) {
    background: yellow;
}

.resource[breakWarn="2"] .badge-break {
    display: inline-flex;
}

.resource[breakWarn="2"] .badge-break::part(base) {
    background: red;
}

.resource[shiftWarn="2"] .badge-shift {
    display: inline-flex;
}

.resource[shiftWarn="2"] .badge-shift::part(base) {
    background: yellow;
}

.resource[shiftWarn="3"] .badge-shift {
    display: inline-flex;
}

.resource[shiftWarn="3"] .badge-shift::part(base) {
    background: red;
}

#resourceOverview .resource[break="1"] .progress-container::before {
    background: #4482ff;
}

.resource[emergencyCode="A"] .line:first-child {
    background: #bb3333;
}

.resource[emergencyCode="H"] .line:first-child {
    background: #8b871d
}

.resource[emergencyCode="V1"] .line:first-child {
    background: #45c92a;
    color: #10240d;
}

.resource[emergencyCode="v2"] .line:first-child {
    background: #34a216;
}

/* /Resource overview */

/* LeafletPanels adjustments */
.sidepanel.tabs-left .sidepanel-tabs-wrapper, .sidepanel.tabs-right .sidepanel-tabs-wrapper {
    width: 68px;
}

.sidepanel.tabs-left .sidepanel-tabs, .sidepanel.tabs-right .sidepanel-tabs {
    width: 68px;
}

.sidepanel.tabs-right .sidepanel-content-wrapper, .sidepanel.tabs-left .sidepanel-content-wrapper {
    width: calc(100% - 68px);
}

.sidepanel.tabs-left .sidepanel-content-wrapper {
    left: 68px;
}

.sidepanel.tabs-left .sidepanel-tabs .sidepanel-tab, .sidepanel.tabs-right .sidepanel-tabs .sidepanel-tab {
    margin-bottom: 10px;
}

.sidepanel.sidepanel-right .sidepanel-toggle-container {
    left: -44px;
}
.sidepanel .sidepanel-toggle-container {
    top: calc(50% - 44px);
    width: 44px;
    height: 68px;
}

.sidepanel .sidepanel-toggle-container .sidepanel-toggle-button {
    width: 44px;
    height: 68px;
}

.sidepanel .sidepanel-toggle-container .sidepanel-toggle-button::before {
    width: 44px;
    height: 68px;
}

/* /LeafletPanels adjustments */

/* Matrix */
.matrixElement {
    border-bottom: 1px solid #DDD;
    min-height: 40px;
}

.matrixElement .resourceName {
    display: inline-block;
}
.matrixElement .duration {
    display: inline-block;
}
.matrixElement .distance {
    display: inline-block;
}

.matrixElement .matrixActions {
    float: right;
}
.matrixElement .matrixActions sl-button::part(base) {
    line-height: inherit;
    min-height: inherit;
    padding: 5px;
    min-width: 50px;
}
/* /Matrix */

sl-dialog::part(base) {
    z-index: 99999;
}

#incidentList .incident[computedstatus="Fremtidig"], #incidentList .incident[computedstatus="Kommende"],
#resourceMissionIncidentList .incident[computedstatus="Fremtidig"], #resourceMissionIncidentList .incident[computedstatus="Kommende"] {
    display: none !important;
}
