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: 450px;
}

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

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

.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;
}
#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: absolute;
    height: 200px;
    bottom: 0;
    width: 100%;
    border: solid 1px #000000;
}

.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;
}

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

.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 {
    max-height: 700px;
    /*height: 220px;*/
    overflow: auto;
}

.instructionClass {
    /*--sl-spacing-large: 0.2rem;*/
    width: 100%;
}
.instructionClass::part(body) {
    padding: 0.2rem;
}

.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;
}

/** /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;
}

.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;
}

.incidentCategory {
    width: 100%;
}

.incidentCategory .severity {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: gray;
    display: inline-block;
}

.incidentCategory .incidentTypeWrapper {
    display: inline-block;
    vertical-align: top;
}

.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: #47e01d;
}

.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 {
    display: block;
    cursor: pointer;
    width: 100%;
    /*min-height: 70px;*/
}

#incidentList .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) {
    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: lightgreen;
    color: #dfdfdf;
}

.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: lightgreen;
}

.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;
}

.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 .patientNumber {
    padding: 3px;
    background: #444;
    border-radius: 5px;
    min-width: 20px;
    display: inline-block;
    text-align: center;
}

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

/*** 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;
}

.missionDeliveryFlex {
    display: flex;
    align-items: left;
}
.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;
}

.lastDelivery {
  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: #3a9b1f;
}

.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"] {
    display: none !important;
}