:root {
    color-scheme: light;
    --cq-color-surface: #ffffff;
    --cq-color-text: #111827;
    --cq-color-text-muted: #5f6b7a;
    --cq-color-border: rgb(17 24 39 / 10%);
    --cq-color-border-strong: rgb(17 24 39 / 16%);
    --cq-color-primary-hover: #57a284;
    --cq-font-sans: "Montserrat", "Segoe UI", Arial, sans-serif;
    --cq-text-md: 0.85rem;
    --cq-radius-md: 0.45rem;
    --cq-control-height: 2.35rem;
}

* {
    box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--cq-font-sans);
}

.cq-field {
    display: grid;
    gap: 0.3rem;
}

.cq-field > label {
    color: var(--cq-color-text);
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
}

.cq-select-wrap {
    position: relative;
}

.cq-select-wrap::after {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--cq-color-text-muted);
    border-bottom: 2px solid var(--cq-color-text-muted);
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.cq-select {
    width: 100%;
    min-height: var(--cq-control-height);
    appearance: none;
    border: 1px solid var(--cq-color-border);
    border-radius: var(--cq-radius-md);
    padding: 0 2.25rem 0 0.6rem;
    font: inherit;
    font-size: var(--cq-text-md);
    color: var(--cq-color-text);
    background: var(--cq-color-surface);
    cursor: pointer;
}

.cq-select:hover:not(:disabled) {
    border-color: var(--cq-color-border-strong);
}

.cq-select:focus-visible {
    border-color: var(--cq-color-primary-hover);
    outline: 3px solid rgb(47 109 87 / 25%);
    outline-offset: 2px;
}

.cq-select:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.maplibregl-popup-content{
    margin-top: 20px;
    margin-right: 2px;
    padding-right: 12px;
    max-height: 300px;
    width: 350px;
    max-width: calc(100vw - 40px);
    overflow: hidden;
}
#popupScaling {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 300px;
}
.popup-table-scroll {
    width: 100%;
    min-height: 0;
    overflow-y: auto;
}
table {
    border-collapse: collapse;
    min-width: 95%;
    width: 100%;
    table-layout: fixed;
    margin: 5px;
}

tr {
    border: solid thin;
}

td {
    border: solid thin;
    padding-left: 4px;
    padding-top: 4px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

html,
body {
    height: 100%;
    margin: 0
}

#map {
    min-height: 100%;
    z-index: 1;
}

.dot {
    height: 15px;
    width: 15px;
    margin-top: 3px;
    border: 1px solid black;

    border-radius: 50%;
    display: inline-block;
}

.parcel {
    height: 15px;
    width: 15px;
    margin-top: 3px;
    border: 2px solid red;
    display: inline-block;
}

.footprint {
    height: 15px;
    width: 15px;
    margin-top: 3px;
    border: 2px solid #e28743;
    display: inline-block;
    background-color: rgb(225, 135, 65, .5);
}

.custom-style-legend-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 4px 0;
}

.custom-style-legend-row .dot,
.custom-style-legend-row .footprint,
.custom-style-legend-row .parcel {
    flex: 0 0 15px;
    margin-top: 2px;
}

.custom-style-legend-label {
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.maplibregl-canvas{
        cursor: pointer;
}
.floatingControl{
    position: absolute;
    z-index: 10;
    border-radius: 5px;
    border: 1px solid black;
    padding: 5px;
    margin: 10px;
    background-color: #cccccc;
    opacity: 95%;
    font-family: Arial, Verdana, Tahoma;
    font-size: 20px;
    font-weight: normal;
    color: #000000;
}
#information {
   
    left: 0;
    top: 0;
    width: 300px;
    height: 95%;
    overflow-y: auto;
   
}
#legend{
    right: 0;
    top: 0;
    width: 150px;
    text-align: left;
    padding-top:1px;
}

#legend.has-custom-style-legend {
    width: 260px;
}

.history-dialog,
.history-dialog table,
.history-dialog th,
.history-dialog td {
    font-size: 12px;
}

.button-group {
    display: flex;
    gap: 0.3rem;
}

.button-group  button {
    flex: 1;
}


#ctxMenu{
    display:none;
    z-index:100;
}
menu {
    position:absolute;
    display:block;
    left:0px;
    top:0px;
    height:20px;
    width:20px;
    padding:0;
    margin:0;
    border:1px solid black;
    background-color:  #57a284;
    color:black;
    font-weight:normal;
    white-space:nowrap;
}
menu:hover{
    background-color:  #437e66;
    color: white;
}
menu:hover > menu{
    display:block;
}
#highlightMenu::after,
#popupMenu::after,
#npReviewMenu::after {
    content: "›";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}
menu > menu{
    display:none;
    position:relative;
    font-size: 14px;
    
    align-items: center;
    top:-20px;
    left:100%;
    width:130px;
    color:white;
}
.ctx2{
    width:130px;
}
menu[title]:before{
    content:attr(title);
}
menu:not([title]):before{
    content:"\2630";
}
.highlightChoice.unavailable,
.popupChoice.unavailable {
    display: none !important;
}

#messagedisplaycontainer {
    display: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid #6b9f8a;
    border-left: 4px solid #6b9f8a;
    border-radius: 6px;
    background: #f1f7f4;
    color: #28483b;
    font-weight: 600;
    box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
}

#messagedisplaycontainer.message-visible {
    animation: message-in 180ms ease-out;
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#messagesource {
    display: none;
    align-self: flex-start;
    padding: 1px 4px;
    border-radius: 3px;
    background: #6b9f8a;
    color: white;
    font-size: 0.6rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

#messagedisplaycontainer {
    flex-direction: column;
    gap: 3px;
}

h4 {
margin-bottom: 30px;
}



.address-typeahead {
    position: relative;
}

#addresslookup {
    box-sizing: border-box;
    width: 100%;
}

#addressSuggestions {
    display: none;
    position: absolute;
    z-index: 20;
    width: 100%;
    border: 1px solid #437e66;
    background: white;
}

.address-suggestion {
    padding: 5px;
    cursor: pointer;
    font-size: 13px;
}

.address-suggestion:hover,
.address-suggestion.selected {
    background: #437e66;
    color: white;
}