html, body {
    height: 100%;
    margin: 0
}

.layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden
}

.sidebar {
    width: 420px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e0e0e0;
    background: #fff
}

.sidebar-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto
}

.sidebar-actions {
    border-top: 1px solid #e0e0e0;
    padding: 1rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
    background: #fff
}

.main {
    flex: 1 1 auto;
    height: 100%
}

#map {
    width: 100%;
    height: 100%
}

.saving-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000
}

    .saving-overlay.show {
        display: flex
    }

.dirty-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    margin-left: .5rem;
    background: currentColor;
    opacity: .6
}

a, .btn-link {
    color: #006bb7
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb
}

.content {
    padding-top: 1.1rem
}

h1:focus {
    outline: none
}

.validation-message {
    color: #e50000
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fff
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start
}

.project-card {
    margin-bottom: 1rem
}

.sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%
}

.sidebar-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto
}

.sidebar-actions.sticky {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff
}

.tab-header-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .5rem 0 .5rem
}

.hint-toolbar .e-toolbar-items {
    border: 1px dashed #888;
    border-radius: 6px;
    padding: 2px 6px
}

.geometry-tab-hint {
    position: relative
}

.gm-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px
}

.gm-icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 2px;
    background: #fff;
    box-shadow: rgba(60,64,67,0.3) 0 1px 2px 0, rgba(60,64,67,0.15) 0 1px 3px 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none
}

.gm-search-inputwrap {
    position: relative;
    display: none
}

.gm-search-input {
    height: 40px;
    line-height: 40px;
    box-sizing: border-box;
    padding: 0 8px;
    border: 0;
    border-radius: 2px;
    box-shadow: rgba(60,64,67,0.3) 0 1px 2px 0, rgba(60,64,67,0.15) 0 1px 3px 1px;
    background: #fff;
    min-width: 260px;
    outline: none
}

.gm-search-list {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 2px;
    box-shadow: rgba(60,64,67,0.3) 0 1px 2px 0, rgba(60,64,67,0.15) 0 1px 3px 1px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    display: none
}

.gm-suggestion-item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px
}

    .gm-suggestion-item:hover {
        background: #f1f3f4
    }

.gm-geom-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px
}

.gm-geom-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 2px;
    background: #fff;
    box-shadow: rgba(60,64,67,0.3) 0 1px 2px 0, rgba(60,64,67,0.15) 0 1px 3px 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none
}

    .gm-geom-btn.active {
        filter: brightness(0.95)
    }

    .gm-geom-btn:disabled {
        opacity: .5;
        cursor: not-allowed
    }

.gm-sprite {
    width: 16px;
    height: 16px;
    position: relative;
    overflow: hidden
}

    .gm-sprite::before {
        content: "";
        position: absolute;
        left: 0;
        top: var(--sprite-top, 0);
        width: 16px;
        height: 192px;
        background: url('https://maps.gstatic.com/mapfiles/drawing.png') no-repeat 0 0
    }

.icon-move {
    --sprite-top: -144px
}

.icon-marker {
    --sprite-top: -176px
}

.icon-polygon {
    --sprite-top: -64px
}

.icon-polyline {
    --sprite-top: -32px
}

.icon-rectangle {
    --sprite-top: -16px
}
