body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 14px;
}
.appHeader {
    background: white;
    height: 70px;
    margin: 0;
    padding: 0;
    width: 100%;
}
.appHeader .headerLogo {
    float: left;
    left: 30px;
    position: relative;
    top: 8px;
}
.appHeader .headerTitle {
    color: #000000;
    float: left;
    font-size: 16pt;
    font-weight: bold;
    left: 60px;
    top: 15px;
    position: relative;
}
.appHeader .subHeaderTitle {
    color: #bdbdbd;
    font-size: small;
    padding-left: 20px;
}
.appHeader .search {
    float: left;
    left: 80px;
    position: relative;
    top: 18px;
}
.appHeader .headerLinks {
    float: right;
    color: #bdbdbd;
    position: relative;
    top: 27px;
    right: 10px;
    text-align: right;
}
.appHeader .headerLinks a {
    color: #bdbdbd;
}
#borderContainerOuter {
    position: absolute;
    top: 70px;
    bottom: 0;
    left: 0;
    right: 0;
    border: none;
    padding: 0;
    background-color: #FFFFFF;
}
#sidebarLeft {
    width: 334px;
    padding: 4px;
    margin: 0;
    overflow: auto;
    overflow-x: hidden;
    border-right: 1px solid #B5BCC7;
}
#sidebarRight {
    width: 300px;
    padding: 4px;
    margin: 0;
    overflow: auto;
    overflow-x: hidden;
    border-left: 1px solid #B5BCC7;
}
#sidebarBottom {
    height: 100px;
    padding: 4px;
    margin: 0;
    overflow: auto;
    overflow-x: hidden;
    border-top: 1px solid #B5BCC7;
}
#sidebarTop {
    height: 50px;
    padding: 4px;
    margin: 0;
    overflow: auto;
    overflow-x: hidden;
    border-bottom: 1px solid #B5BCC7;
}
#mapCenter {
    padding: 0;
    overflow: hidden;
    background: url("../images/noisy_grid.png") #fff;
}
.panetop {
    border-top: 1px solid #B5BCC7;
}
.panebottom {
    border-bottom: 1px solid #B5BCC7;
}
.paneleft {
    border-left: 1px solid #B5BCC7;
}
.paneright {
    border-right: 1px solid #B5BCC7;
}
.HomeButton, .LocateButton {
    margin-bottom: 10px;
}
.titlePaneBottomFix {
    margin-bottom: -1px;
}
.titlePaneRightFix {
    margin-right: -1px;
}
.sidebarCollapseButton {
    position: absolute;
    z-index: 40;
    background-color: white;
    cursor: pointer;
    color: #666666;
    font-size: 1.3em;
    font-family: FontAwesome;
}
.sidebarCollapseButtonHorz {
    width: 16px;
    height: 25px;
    top: 48%;
    top: -webkit-calc(50% - 12px);
    top: -moz-calc(50% - 12px);
    top: -o-calc(50% - 12px);
    top: calc(50% - 12px);
    border-bottom: 1px solid #B5BCC7;
    border-top: 1px solid #B5BCC7;
}
.sidebarCollapseButtonVert {
    width: 25px;
    height: 18px;
    left: 48%;
    left: -webkit-calc(50% - 12px);
    left: -moz-calc(50% - 12px);
    left: -o-calc(50% - 12px);
    left: calc(50% - 12px);
    border-left: 1px solid #B5BCC7;
    border-right: 1px solid #B5BCC7;
}
.sidebarleftCollapseButton {
    left: -1px;
    border-radius: 0 5px 5px 0;
    border-right: 1px solid #B5BCC7;
}
.sidebarrightCollapseButton {
    right: -1px;
    border-radius: 5px 0 0 5px;
    border-left: 1px solid #B5BCC7;
}
.sidebarbottomCollapseButton {
    bottom: -1px;
    border-radius: 5px 5px 0 0;
    border-top: 1px solid #B5BCC7;
}
.sidebartopCollapseButton {
    top: -1px;
    border-radius: 0 0 5px 5px;
    border-bottom: 1px solid #B5BCC7;
}
.sidebarCollapseButton .open:before, .sidebarCollapseButton .close:before {
    font-family: FontAwesome;
}
.sidebarCollapseButtonHorz .button {
    padding-top: 4px;
    padding-left: 2px;
}
.sidebarCollapseButtonVert .button {
    padding-left: 4px;
    margin-top: -2px;
}
.sidebarleftCollapseButton .open:before {
    content: "\f054";
}
.sidebarleftCollapseButton .close:before {
    content: "\f053";
}
.sidebarrightCollapseButton .open:before {
    content: "\f053";
}
.sidebarrightCollapseButton .close:before {
    content: "\f054";
}
.sidebarbottomCollapseButton .open:before {
    content: "\f077";
}
.sidebarbottomCollapseButton .close:before {
    content: "\f078";
}
.sidebartopCollapseButton .open:before {
    content: "\f078";
}
.sidebartopCollapseButton .close:before {
    content: "\f077";
}
.floatingWidget_underlay {
    display: none
}
#help_parent_underlay {
    display: block;
}

/*
    media queries bootstrap style
    https://getbootstrap.com/css/#grid-media-queries
*/

@media screen and (max-width: 991px) {
    /* adjust the l/r sidebars on small and extra-small devices. */
    #sidebarLeft {
        width: 204px;
        max-width: 95%;
    }

    #sidebarRight {
        max-width: 95%;
        display: none;
    }
}
@media screen and (max-width: 767px) {
    /* hide the sidebars by default on extra-small devices (phones) */
    #sidebarLeft, #sidebarBottom, #sidebarTop {
        display: none;
    }
    /* no search widget in app header */
    .appHeader .search {
        display: none;
    }
    /* no logo in app header */
    .appHeader .headerLogo {
        display: none;
    }
    /* move the title when no logo */
    .appHeader .headerTitle {
        left: 10px;
    }
}

/* end media queries bootstrap style */

.featureDetailsSelected {
    background-color: orangered;
}

/* Classes */
.box-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.box-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
}

    .box-row > calcite-input-number {
        flex-basis: 40%;
    }

    .box-row > calcite-select {
        margin: 0;
        flex-basis: 25%;
        flex-grow: 1;
    }

.buttonContainer {
    display: flex;
    gap: 10px;
}

    .buttonContainer > calcite-button {
        flex: 1;
        padding: 10px;
    }

.export-button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--calcite-ui-border-3);
    background-color: var(--calcite-ui-background);
}

    .export-button-container > span {
        font-size: 14px;
        color: var(--calcite-ui-text-2);
        font-weight: 500;
    }

    .export-button-container > calcite-button {
        --calcite-ui-icon-color: var(--calcite-ui-text-1);
    }

.fit-width {
    align-items: stretch;
}

.featureDetailsSelected {
    background-color: orangered;
}

.radiusRingConfigInput {
    gap: 0.5em;
}

.searchByShapeInput {
    gap: 0.5em;
    margin-bottom: 1em;
}

.waterLevelActive {
    --calcite-ui-icon-color: red !important;
}

.waterLevelInactive {
    --calcite-ui-icon-color: blue !important;
}


/* ID Based */
#attribute-table-collapse-button {
    width: 25px;
    position: absolute;
    cursor: pointer;
    z-index: 40;
    left: 49%;
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-bottom-width: 0px;
    border-style: solid;
    border-color: black;
    border-radius: 5px 5px 0px 0px;
    background-color: white;
    display: flex;
    justify-content: center;
}

#attribute-table-drag-bar {
    border: 1px solid;
    border-color: black;
    height: 8px;
    cursor: row-resize;
    position: relative;
}

#attribute-table-drag-bar-thumb {
    background: #9e9e9e;
    height: 1px;
    top: 2px;
    width: 19px;
    position: absolute;
    left: 49%;
}

#map-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#drawShapes > div {
    display: block;
    text-align: center;
}

#bookmarks > calcite-input {
    flex-basis: 70%;
    flex-grow: 1;
}

#bookmarks > calcite-button {
    flex-basis: 30%;
    flex-grow: 2;
}

#find > div > calcite-button {
    flex-basis: 50%;
    flex-grow: 1;
}

#find > calcite-table {
    height: 20em;
    margin: 1em 0 1em 0;
}

#map-view-container {
    flex: 1;
}

#resizeable-attribute-table {
    flex: 0 0 auto;
}

#waterLevelWidget {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-align: center;
    color: #6e6e6e;
    background-color: #fff;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    display: flex;
    overflow: hidden;
}

    #waterLevelWidget:not([appearance]), #waterLevelWidget[appearance=solid] {
        --calcite-color-foreground-3: #fff;
    }

#boreWidgetButton {
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    color: #6e6e6e;
    background-color: #fff;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
}

    #boreWidgetButton #abButtonImg {
        margin-top: 0.3rem;
        width: 16px;
        height: 16px;
    }

#pointer-coordinates-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5em;
    background-color: rgba(255, 255, 255, 0.6);
    /* mimic calcite styling */
    border: 1px solid #007ac2; /* Calcite blue border */
    /* border-radius: 4px; */
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: "Avenir Next", Arial, sans-serif; /* Calcite font stack */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.calcite-blue {
    color: #007ac2;
}

/* Element Based */
calcite-button {
    margin: 0.25em;
}

calcite-checkbox {
    margin: 0.2em;
    vertical-align: text-top;
}

calcite-select {
    margin-bottom: 1em;
}

calcite-input {
    vertical-align: middle;
}

calcite-navigation {
    --calcite-navigation-background-color: #3c8dbc;
}

calcite-navigation-logo {
    --calcite-navigation-logo-heading-text-color: white;
    --calcite-navigation-logo-text-color: white;
}

calcite-menu-item {
    --calcite-menu-background-color: #3c8dbc;
    --calcite-menu-text-color: white;
}

.aquifer-bore-grow-in {
    animation: growIn 0.3s ease-out;
}

calcite-list-item[selected] {
    --calcite-list-background-color: #d3d3d3;
}

@keyframes growIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
