:root {
    --font-family-primary: "Source Sans Pro";
    --font-size-body-m: 16px;
    --font-weight-semi-bold: 600;
    --font-line-height-body-m: 24px;
    --CCC-Typeicon-body: #3C3D3E;
    --CCC-primary-dark: #0D7474;
    --CCC-Typeicon-white: #FFF;
}

html,
body,
#map {
    height: 100%;
    margin: 0;
}

* {
    background-repeat: no-repeat;
}

body {
    color: var(--CCC-Typeicon-headings, #3C3D3E);

    /* Headings/bold-s */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-heading-s, 24px);
    font-style: normal;
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--font-line-height-line-height-s, 30px);
    /* 125% */
}

body:not(.mapfilter) .leaflet-tile {
    filter: opacity(0.4) brightness(0.9) grayscale(50%) contrast(150%)
}

.italic {
    font-style: italic !important;
}

.leaflet-tooltip-pane {
    z-index: 1001;
}

.filter:not(.open) .legend {
    display: none;
}

.legend {
    position: absolute;
    top: 100%;
    z-index: 10;
    border-radius: 0 0 24px 12px;
    padding: 10px;
    /* box-shadow: 0 0 15px rgba(0, 0, 0, 0.2); */
    right: 0px;
    transition: transform 0.3s ease;
    background: var(--CCC-primary-lightest, #E7F6F6);

    /* Small shadow */
    box-shadow: 0 5px 5px 1px rgba(0, 0, 0, 0.15);
    display: flex;
    padding: 0 8px;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    color: var(--CCC-Typeicon-body, #3C3D3E);

    /* Mobile/H4light */
    font-family: "Source Sans Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 20px;
    /* 125% */
    padding: 20px;
    gap: 10px;
    overflow-y: auto;
    max-height: calc(100vh - 150px);

    min-width: calc-size(max-content, min(size, calc(100vw - 40px)));
}


.legend div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #D2D2D3;
    width: 100%;
}


.legend div span {
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend div#sitelegend span {
    /*  background-image: url(mappointer.svg);
    background-size: contain; */
    /*  transform: scale(1.2); */
    background-color: #ff7800;
    background-color: #ff7800d0;
    background-color: #5cf0edd0;

    border-color: #693100;
    border-radius: 50%;
    border-style: solid;
    border-width: 1px;
}

.legend div#waterlegend span {
    background-color: rgb(216, 181, 56);
}

.legend div#riverlegend span {
    background-color: rgb(71, 100, 175);
    border-radius: 0;
    height: 5px;

    background-clip: content-box;
    padding: 9px 5px;
}

.filter {
    position: relative;
    /* width: 531px; */
    margin-right: 20px;
}

.value-flag {
    color: #DE1B1B !important;
}

img.value-flag {
    border-radius: 50%;
    ;
}

span.guideline {
    display: block;
    font-weight: bold;
}

.gradient-box {
    width: 50px;
    height: 10px;
    background: linear-gradient(to right, red, green);
    border: 1px solid black;
}



.chart-marker svg {
    width: 60px;
    height: 60px;
}


#app {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#map {
    flex-shrink: 1;
    width: 100%;
    transition: all 0.3s ease;
}


#map.shrink {
    width: 50%;
}


#dashboard {
    box-sizing: border-box;
    min-width: calc-size(min-content, min(size, 100%));
    width: 66%;
    background: #F9F9F9;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: -100%;
    top: 0;
    height: 100%;
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* padding: 20px; */
}

#dashboard.show {
    right: 0;
}

div#dashboard-content {
    height: 100%;
    overflow-y: auto;
}


#dashboard h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
    /*  text-transform: capitalize; */
}

#parameters {
    margin-top: 10px;
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

#parameters p {
    margin: 6px 0;
    font-size: 0.95em;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

#chart {
    margin-top: 20px;
    max-width: 100%;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
    max-height: 300px;
    /*  display: none; */
}

.measured {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: normal;
}

a {
    color: inherit;
    /* text-decoration: none; */
}


.powered {
    background-color: rgba(255, 255, 255, 0.3);
    font-size: 60%;
    position: absolute;
    left: 0;
    top: 100%;
    /* background-color: inherit; */
    border-radius: 0px 0px 10px 0px;
    padding: 5px 10px;
}

span.accordion-val {
    font-weight: normal;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 75%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: #555;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes gradientFlash {
    0% {
        background-position: 0% 50%;
        color: transparent;
    }

    100% {
        background-position: 100% 50%;
        color: transparent;
    }
}

.funky-flash {
    background: linear-gradient(90deg, #00f260, #0575e6, #00f260);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlash 1s ease-out;
}

.river-label {
    z-index: 10;
    background: none;
    border: none;
    color: #000060;
    /* font-weight: bold; */
    font-size: 11px;
    text-shadow: -1px 2px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    box-shadow: none;
    color: #FFF;

    /* Button/label */
    font-family: "Source Sans Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    /* 137.5% */
}


.catchment-label {
    z-index: 20;
    display: inline-flex;
    padding: 3px 10px;
    justify-content: center;
    align-items: center;
    gap: 7px;
    border-radius: 12px;
    opacity: 0.9;
    background: var(--off-white, #F9F9F9);
    color: var(--neutral-darker, #3C3D3E);

    /* Labels and Links/label */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-m, 16px);
    font-style: normal;
    font-weight: var(--font-weight-semi-bold, 600);
    line-height: var(--font-line-height-line-height-body-m, 24px);
}

.catchment-name {
    color: var(--neutral-darker, #3C3D3E);

    /* Labels and Links/label */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-m, 16px);
    font-style: normal;
    font-weight: var(--font-weight-semi-bold, 600);
    line-height: var(--font-line-height-line-height-body-m, 24px);
}

.catchment-name i,
.catchment-label i,
#sensor-name i {
    font-style: normal;
    font-weight: 300;
    color: var(--neutral-darker, #3C3D3E);
}

.catchment-label i {
    color: var(--neutral-darker, #3C3D3E);
    text-align: center;
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-m, 16px);
    font-style: normal;
    font-weight: 300;
    line-height: var(--font-line-height-line-height-body-m, 24px);
    /* 150% */
}

.river-hover-label {
    font-size: 12px;
    font-weight: bold;
    background: white;
    border: 1px solid #ccc;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
}

#parameters table {
    width: 100%;
    border-spacing: 1px 0px;
    /* border-collapse: collapse; */
    margin-top: 10px;
    /* row-gap: 0; */
}

#parameters th,
#parameters td {
    padding: 12px;
    /* border-bottom: 1px solid #ddd; */
    vertical-align: top;
}

#parameters th {
    text-align: left;
    vertical-align: bottom;
    color: var(--CCC-Typeicon-body, #3C3D3E);

    /* Body/bold-l */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-l, 20px);
    font-style: normal;
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--font-line-height-line-height-body-l, 30px);
    /* 150% */
    /* background-color: #f2f2f2; */
    border-bottom: 2px solid var(--CCC-Divider-divider-primary, #0D7474);
}

#parameters tr:nth-child(odd) td {

    background: var(--CCC-neutral-lightest, #F0F1F1);
}

.detail-btn {
    padding: 4px 8px;
    font-size: 0.9em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.detail-btn:hover {
    background-color: #0056b3;
}

.sensor-table {
    border-radius: 24px;
    border: 1px solid var(--CCC-Divider-divider-neutral, #D2D2D3);
    background: var(--White-white, #FFF);

    /* Regular shadow */
    box-shadow: 0 4px 10px 5px rgba(0, 0, 0, 0.15);
    width: 100%;
    /* border-collapse: collapse; */
    margin-top: 10px;
    table-layout: auto;
}

.sensor-table:not(.mobile) {
    table-layout: auto;
}

.sensor-table:not(.mobile) td:first-child {
    width: 30%;
}

.sensor-table.mobile {
    display: none;
    max-width: calc(100vw - 20px);
}

.sensor-table tr:first-child th:first-child {
    border-top-left-radius: 24px;
}

/* Top-right corner */
.sensor-table tr:first-child th:last-child {
    border-top-right-radius: 24px;
}

/* Bottom-left corner */
.sensor-table tr:last-child td:first-child {
    border-bottom-left-radius: 24px;
}

/* Bottom-right corner */
.sensor-table tr:last-child td:last-child {
    border-bottom-right-radius: 24px;
}

.sensor-table th,
.sensor-table td {
    padding: 8px;
    border-bottom: 1px solid var(--CCC-Divider-divider-neutral, #D2D2D3);
    /* border: 1px solid #ddd; */
    text-align: left;
}

.sensor-table th {
    /* background-color: #f2f2f2; */
    border-bottom: 2px solid var(--CCC-Divider-divider-primary, #0D7474);
}

.sensor-table td {
    vertical-align: top;
    color: var(--CCC-Typeicon-body, #3C3D3E);

    /* Body/reg-m */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-m, 16px);
    font-style: normal;
    font-weight: var(--font-weight-regular, 400);
    line-height: var(--font-line-height-line-height-body-m, 24px);
    /* 150% */
}

.accordion {
    display: flex;

    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: stretch;
}

.accordion.expanded {}

.accordion-header {
    display: flex;
    height: 48px;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    align-self: stretch;

    color: var(--CCC-Typeicon-headings, #3C3D3E);

    /* Headings/bold-s */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-heading-s, 24px);
    font-style: normal;
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--font-line-height-line-height-s, 30px);
    /* 125% */
}

.accordion-icon {
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-image: url(plus.svg);
    background-position: center;
    border: 1Px solid #ccc;
    border-radius: 50%;
    background-color: var(--White-white, #FFF);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.expanded .accordion-icon {
    background-image: url(minus.svg);
    background-color: var(--White-primarydark, #0D7474);
    fill: var(--CCC-Surface-bg-primarydark, #0D7474);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}

.accordion-title {
    display: flex;
    height: 48px;
    /* padding-bottom: 12px; */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex: 1 0 0;
    /*  text-transform: capitalize; */
    border-bottom: 1px solid var(--CCC-Divider-divider-neutral, #D2D2D3);
}

.param-desc {
    padding-left: 51px;
    display: none;
    font-size: 16px;
    font-weight: normal;
}

.expanded .param-desc {
    display: block;
}

.graph-button,
.default-button {
    display: flex;
    min-width: 80px;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background: var(--CCC-primary-dark, #0D7474);
    color: var(--CCC-Typeicon-white, #FFF);
    text-align: center;

    /* Labels and Links/label */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-m, 16px);
    font-style: normal;
    font-weight: var(--font-weight-semi-bold, 600);
    line-height: var(--font-line-height-line-height-body-m, 24px);
    /* 150% */
    border: none;
    margin: 10px 0px;
}

header.main {
    /* height: 100px;*/
    background: var(--primary-lighter, #B6E3E3);
    /* flex-basis: 100%; */
    position: fixed;
    display: grid;
    width: 100vw;
    z-index: 1000;
    grid-template-rows: 100px;
    grid-template-columns: 200px auto auto;
    justify-items: center;
    justify-content: space-between;
    align-items: center;
}

.sensor-table td:first-child {
    /*  text-transform: capitalize; */
}

.main h1 {
    color: #2E2E2F;
    margin: 0;
    /* Headings/bold-m */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-heading-m, 30px);
    font-style: normal;
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--font-line-height-line-height-m, 39px);
    /* 130% */
}

.h1normal {
    font-weight: normal;
}

.h1sub {
    display: block;
    font-size: 80%;
    margin-top: -10px;
}

.filterpanel {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter button {
    border: none;
    display: inline-flex;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    background-color: var(--CCC-primary-dark, #0D7474);
    color: var(--CCC-Typeicon-white, #FFF);
    text-align: center;

    /* Labels and Links/label */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-m, 16px);
    font-style: normal;
    font-weight: var(--font-weight-semi-bold, 600);
    line-height: var(--font-line-height-line-height-body-m, 24px);
    /* 150% */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">  <path d="M8.35352 12.353C8.15977 12.5468 7.84102 12.5468 7.64727 12.353L1.64727 6.35303C1.45352 6.15928 1.45352 5.84053 1.64727 5.64678C1.84102 5.45303 2.15977 5.45303 2.35352 5.64678L8.00039 11.2937L13.6473 5.64678C13.841 5.45303 14.1598 5.45303 14.3535 5.64678C14.5473 5.84053 14.5473 6.15928 14.3535 6.35303L8.35352 12.353Z" fill="white"/></svg>');
    background-position: calc(100% - 14px) center;
    padding-right: 40px;
    position: relative;
}

.filter.open button {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none"><path d="M7.64727 3.78618C7.84102 3.59243 8.15977 3.59243 8.35352 3.78618L14.3535 9.78618C14.5473 9.97993 14.5473 10.2987 14.3535 10.4924C14.1598 10.6862 13.841 10.6862 13.6473 10.4924L8.00039 4.84556L2.35352 10.4924C2.15977 10.6862 1.84102 10.6862 1.64727 10.4924C1.45352 10.2987 1.45352 9.97993 1.64727 9.78618L7.64727 3.78618Z" fill="rgba(13, 116, 116, 1)"/></svg>');
    display: flex;
    align-self: stretch;
    border-radius: 12px 12px 0 0;
    background-color: var(--CCC-primary-lightest, #E7F6F6);
    box-shadow: 0 4px 10px 5px rgba(0, 0, 0, 0.15);
    color: var(--CCC-Typeicon-body, #3C3D3E);

}

.catchment .back-btn {
    visibility: hidden;
}


.mapstyle {
    display: flex;
    align-items: center;
}

input[type=checkbox] {

    appearance: none;
    display: flex;
    width: 14px;
    height: 16px;
    flex-shrink: 0;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    border: 1px solid var(--CCC-neutral, #6D6E71);
}

input[type=checkbox]:checked {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10" fill="none"><path d="M13.7812 0.218848C14.075 0.512598 14.075 0.987597 13.7812 1.27822L5.53123 9.53135C5.23748 9.8251 4.76248 9.8251 4.47185 9.53135L0.218726 5.28135C-0.0750244 4.9876 -0.0750244 4.5126 0.218726 4.22197C0.512476 3.93135 0.987476 3.92822 1.2781 4.22197L4.99685 7.94072L12.7187 0.218848C13.0125 -0.0749023 13.4875 -0.0749023 13.7781 0.218848H13.7812Z" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid var(--CCC-primary-darker, #0A5A5A);
    background-color: var(--CCC-primary-darker, #0A5A5A);
}

.main label {
    /*     color: var(--CCC-Typeicon-body, #3C3D3E);
    font-family: "Source Sans Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; */
    /* 137.5% */
}

.logo {
    display: flex;
    align-items: center;
}

.dash {
    background: var(--CCC-primary-lightest, #E7F6F6);
    height: 101px;
    display: grid;
    /* grid-auto-columns: auto; */
    grid-template-columns: 100px auto 100px;
    grid-template-rows: 100px;
    justify-content: space-between;
    justify-items: center;
    align-items: center;
}

.dash .dash-btn {
    /* align-self: flex-end; */
    background: none;
    border: none;
    font-size: 1.2em;
    color: #888;
    cursor: pointer;

    transition: color 0.2s;
    display: inline-flex;
    padding: 8px 24px;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    border-radius: 20px;
    color: var(--neutral-darkest, #2E2E2F);
    text-align: center;

    /* Button/label */
    font-family: "Source Sans Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
    /* 137.5% */
}

.dash .close-btn {
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.dash .back-btn {
    display: inline-flex;
    min-width: 80px;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--CCC-Typeicon-link, #0D7474);

}

.sensor-name {
    color: #333;

    /* Header/H2 */
    font-family: "Source Sans Pro";
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    /* 120% */
}

button.detail-btn {
    display: flex;
    width: 80px;
    min-width: 80px;
    padding: 8px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    background: var(--CCC-primary-dark, #0D7474);
    color: var(--CCC-Typeicon-white, #FFF);
    text-align: center;

    /* Labels and Links/label */
    font-family: var(--font-family-primary, "Source Sans Pro");
    font-size: var(--font-size-body-m, 16px);
    font-style: normal;
    font-weight: var(--font-weight-semi-bold, 600);
    line-height: var(--font-line-height-line-height-body-m, 24px);
    /* 150% */
}

.indicate {
    text-align: right;
    font-size: 80%;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: normal;
}

.infobutton {
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: inherit;
    color: inherit;
    padding-top: 1px;
    border-radius: 50%;
    height: 36px;
    width: 36px;
}

button.infobutton:hover {
    background: rgba(240, 241, 241, 1);
}

dialog#info {
    position: fixed;
    top: 74px;
    right: 10px;
    width: clamp(200px, 500px, 100vw);
    box-sizing: border-box;
    font-weight: normal;
    z-index: 1000;
    margin: 0;
    left: auto;
    border-radius: 24px;
    background-color: #f9f9f9D0;
    color: inherit;
    border: 1px solid;
    background-color: #B6E3E3;
}

/* 
@media (max-width: 768px) { */
@media (max-width: 1160px) {

    :root {
        --font-size-heading-s: 16px;
    }

    #app {
        flex-direction: column;
    }

    #map {
        width: 100%;
        height: 100vh;
    }

    #map.shrink {
        height: 0vh;
        width: 100%;
    }

    .shrink #legend {
        transform: scale(0.7);
        transform-origin: right top;
    }

    .h1sub {
        margin-top: -20px;
    }

    #dashboard {
        width: 100%;
        height: 100vh;
        right: 0;
        top: 100%;
        transition: top 0.3s ease;
    }

    #dashboard.show {
        top: 0vh;
    }

    .mobile-close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #eee;
        border: none;
        padding: 8px 12px;
        font-size: 1em;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        z-index: 1100;
        cursor: pointer;
    }

    .sensor-table td:first-child {
        /*  text-transform: capitalize; */
    }

    header.main {
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        justify-items: left;
        align-items: end;
    }

    .logo {
        display: none;
    }

    .main h1 {
        font-size: clamp(16px, 2vw + 0.7rem, 24px);
        padding-left: 20px;
    }

    /*     .powered {
        display: none;
    }
 */
    .filterpanel {
        background: var(--CCC-primary-dark, #0D7474);
        flex-grow: 1;
        display: flex;
        width: 100%;
        height: 50px;
        gap: 5px;
    }

    .filter button {
        background-color: var(--primary-lighter, #B6E3E3);
        color: rgba(60, 61, 62, 1);
        font-size: var(--font-size-body-m, 15px);
        padding: 4px 10px;
        padding-right: 25px;
        background-position-x: calc(100% - 7px);
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">  <path d="M8.35352 12.353C8.15977 12.5468 7.84102 12.5468 7.64727 12.353L1.64727 6.35303C1.45352 6.15928 1.45352 5.84053 1.64727 5.64678C1.84102 5.45303 2.15977 5.45303 2.35352 5.64678L8.00039 11.2937L13.6473 5.64678C13.841 5.45303 14.1598 5.45303 14.3535 5.64678C14.5473 5.84053 14.5473 6.15928 14.3535 6.35303L8.35352 12.353Z" fill="black"/></svg>');
    }

    .filter {
        text-align: right;
        width: auto;
        flex-grow: 1;
        padding-right: 5px;
        margin-right: 5px;

        display: flex;
        justify-content: flex-end;
    }

    .mapstyle {
        padding-left: 5px;
        color: white;
    }

    .mapstyle label {
        color: white;
    }

    input[type=checkbox] {
        appearance: auto;
    }

    header.dash {
        height: auto;
        grid-template-columns: 100px auto 100px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "back mid close"
            "h h h";
    }

    .dash .back-btn {
        grid-area: back;
    }

    #dashboard h2 {
        grid-area: h;
        font-size: 1em;
        padding: 10px 0;
        width: 100%;
        text-align: center;
        background: var(--primary-lighter, #B6E3E3);
    }

    .dash .close-btn {
        grid-area: close;
    }

    .sensor-table.mobile {
        display: revert
    }

    .sensor-table:not(.mobile) {
        display: none
    }

    .mobile button.detail-btn {
        width: 100%;
    }

    .legend {
        padding: 10px;
        right: 5px;
    }

    .legend div {
        gap: 5px;
    }

    .main label {
        flex-grow: 1;
        text-align: left;
    }

    .infobutton {
        position: absolute;
        top: 22px;
        right: 20px;
    }

    dialog#info {
        top: 57px;
        right: 0px;
        border: none;
        border-bottom: 1px solid;
        border-radius: 0px 0px 23px 24px;
    }
}

th[role=columnheader]:not(.no-sort) {
    cursor: pointer;
}

th[role=columnheader]:not(.no-sort):after {
    content: '';
    float: right;
    margin-top: 7px;
    border-width: 0 4px 4px;
    border-style: solid;
    border-color: #404040 transparent;
    visibility: hidden;
    opacity: 0;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

th[aria-sort=ascending]:not(.no-sort):after {
    border-bottom: none;
    border-width: 4px 4px 0;
}

th[aria-sort]:not(.no-sort):after {
    visibility: visible;
    opacity: 0.4;
}

th[role=columnheader]:not(.no-sort):focus:after,
th[role=columnheader]:not(.no-sort):hover:after {
    visibility: visible;
    opacity: 1;
}


dialog#layer-dialog:open {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1Px solid #999;
    background-color: #eee;
    border-radius: 10px;
}

.layer-option {
    display: flex;
    gap: 20px;
    border-bottom: 1px dashed #ccc;
}

#layer-dialog button {
    width: 80%;
    margin: 5px;
}

#layer-dialog button.apply {
    margin-top: 20px;
}


#layer-dialog label {
    font-weight: normal;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

#external-layer-toggle input {
    display: inline-block;
    padding: 0.35em 1.2em;
    border: 0.1em solid #FFFFFF;
    margin: 0 0.3em 0.3em 0;
    border-radius: 0.12em;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 300;
    color: #FFFFFF;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid var(--CCC-primary-darker, #0A5A5A);
    background-color: var(--CCC-primary-darker, #0A5A5A);
    width: 100%;
}

.leaflet-popup-content {
    width: max-content !important;
}

table {
    table-layout: fixed;
}

td {
    width: 200px;
}

.mapcircle {
    background-color: #5cf0edd0;
    border-color: #693100;
    border-radius: 50%;
    border-style: solid;
    border-width: 1px;

}

@supports not selector(::-webkit-color-swatch-wrapper) {
    input.customColor {
        display: none !important;
    }
}

@supports selector(::-webkit-color-swatch-wrapper) {
    input.customColor[type="color"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: transparent;
        width: 18px;
        height: 18px;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        outline: none;
        /* box-sizing: content-box; */
        padding: 0;
    }

    input.customColor[type="color"]::-webkit-color-swatch {
        border-radius: 50%;
        /* height: 20px; */
        border: none;
        /* width: 20px; */
        /* display: block; */
        background-color: #ff7800d0;
    }

    input.customColor[type="color" i]::-webkit-color-swatch-wrapper {
        padding: 0px;
        background-color: #ff7800d0;
        border-color: #693100;
        border-radius: 50%;
        border-style: solid;
        border-width: 0px;
    }
}