﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#app, body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ddd;
}

button {
    width: fit-content;
    padding: 0.3em 0.6em;
    border: 1px solid #c0c0c0;
    background-color: #f7f6f6;
    border-radius: 4px;
    height: 30px;
}

    button:hover {
        border: 1px solid #8a8a8a;
    }

.logo-placeholder {
    position: absolute;
    bottom: 1em;
    right: 1em;
    width: 60%;
}

.logo-placeholder img {
    max-width: 100%;
    max-height: 40px;
    float: right;
}

#mapMenu {
    position: absolute;
    right: 1em;
    top: 0em;
    z-index: 1000;
    background-color: #eee;
    padding: 0.75em 1em;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 5px 5px;
    display: flex;
    flex-direction: column;
}

select {
    min-width: 8em;
    max-width: 16em;
    margin: 0.2em 0;
    border-color: #aaa;
    border-radius: 3px;
    padding: 2px 4px;
    width: 100%;
}

    select.highlighted {
        border-color: #00a6eb;
        border-width: 2px;
    }

.leafletlayer-info {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    font: 16px Arial, Helvetica, sans-serif;
    background: #eee;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

    .leafletlayer-info div.attributevalue {
        padding: 0.35em 2em 0em 0.2em;
        font-weight: unset;
        color: unset;
        font-size: unset;
        text-align: unset;
    }

    .leafletlayer-info div.attributename {
        padding: 0.18em 1em 0.18em 0.2em;
        font-weight: bold;
        color: #444;
        font-size: 0.85em;
    }

    .leafletlayer-info div.attributevaluenamecontainer {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto;
        grid-auto-flow: row;
        margin-top: 0.5em;
        /*align-content: stretch;*/
    }

    .leafletlayer-info div.attributevalue.small {
        padding: 0 0.4em 0.35em 0;
        font-weight: unset;
        color: unset;
        font-size: 0.85em;
        text-align: left;
    }

    .leafletlayer-info div.attributename.small {
        padding: 0.18em 1em 0.18em 0.2em;
        font-weight: bold;
        color: #444;
        font-size: 0.72em;
        text-align: right;
    }

    .leafletlayer-info div.instancename {
        padding: 0.35em 2em 0.35em 0.2em;
        font-weight: unset;
        color: unset;
        font-size: 0.85em;
    }

    .leafletlayer-info div.info {
        padding: 0.35em 2em 0.35em 0.2em;
        font-weight: unset;
        color: unset;
        font-size: 0.85em;
    }

.legend {
    display: flex;
    flex-direction: column;
    max-height: 350px;
    overflow-y: auto;
}

.legend-container {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 25px auto;
    grid-template-areas: "color value";
}

    .legend-item-color {
        grid-area: color;
        width: 25px;
        height: 25px;
    }

.legend-item-value {
    grid-area: value;
    text-align: left;
    height: 25px;
    line-height: 25px;
    padding: 0 0.5em;
}

    .legend-item-color.legend-quantitative {
        margin-top: -12.5px;
    }

    .legend-item-value.legend-quantitative {
        margin: 0;
    }

#chooseFile {
    position: absolute;
    top: 0;
    left: 5em;
    font-family: "Arial";
    font-size: 14px;
    background-color: #eee;
    color: #444;
    padding: 0.75em 1em;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 5px 5px;
    z-index: 1000;
}

    #chooseFile div {
        margin-top: 0;
        color: #444;
        font-size: 0.85em;
    }

    #chooseFile input {
        width: 0.1px;
        height: 0.1px;
        opacity: 0;
        overflow: hidden;
        position: absolute;
        z-index: -1;
    }

    #chooseFile .fileName {
        margin-bottom: 0.3em;
        margin-top: unset;
        color: #666;
        font-size: unset;
        min-width: 100px;
        cursor: pointer;
        min-height: 14px;
    }

        #chooseFile .fileName:hover {
            color: #009FE3;
        }

        #chooseFile .fileName span:first-child {
            margin-right: 5px;
        }

#welcomePane {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

    #welcomePane > div {
        position: relative;
        border-left: 2px solid #878786;
        border-top: 2px solid #878786;
        border-right: 2px solid #832665;
        border-bottom: 2px solid #832665;
        background-color: #005470;
        padding: 1em;
        color: white;
        max-width: 400px;
        width: 75%;
        min-width: 245px;
        box-shadow: 3px 3px 5px 0px #832665, -3px -3px 5px 0px #878786;
    }

    #welcomePane #chooseFile {
        position: unset;
        border-radius: 5px;
        margin-top: 12px;
    }

    #welcomePane > div > div {
        text-align: center;
    }

    #welcomePane > div > div:first-child {
        font-size: 2em;
        text-align: center;
        padding-bottom: 12px;
        white-space: nowrap;
    }

    #welcomePane a {
        color: #e29ccc;
        text-decoration: none;
    }

#bottomLeftPane {
    position: absolute;
    left: 10px;
    bottom: 23px;
    z-index: 1000;
}

#versionPane {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 13px;
    background: #eee;
    z-index: 2000;
    font-size: 10px;
    padding-left: 5px;
    padding-right: 5px;
    line-height: 13px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#bottomRightPane {
    position: absolute;
    right: 1em;
    bottom: 0;
    z-index: 1000;
}

#bottomRightPaneButton {
    height: 16px;
    width: 28px;
    position: absolute;
    top: -16px;
    left: 80%;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
    background-color: #e8e8e8;
    cursor: pointer;
    border-radius: 2px;
    text-align: center;
    font-size: 14px;
    padding: 0 6px;
    color: #666
}

#mapDetail {
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
    border-radius: 5px 5px 0 0;
    background-color: #eee;
    font-family: "Arial";
    position: relative;
    bottom: 0;
    right: 0;    
    padding: 0.75em 1em;
    display: grid;
    grid-template-rows: auto auto auto auto auto;
    grid-template-columns: auto auto auto auto;
    grid-template-areas:
        "title titlevalue date datevalue"
        "projectname projectnamevalue drawn drawnvalue"
        "projectnumber projectnumbervalue checked checkedvalue"
        "phase phasevalue number numbervalue"
        "logo logo logo logo"
}

    #mapDetail > div {
        padding: 0.2em 0 0 0;
        font-weight: bold;
        color: #444;
        font-size: 0.85em;
        vertical-align: middle;
        line-height: 1.5em;
    }

        #mapDetail > div.value {
            padding: 0 2em 0 0.7em;
            font-weight: unset;
            color: unset;
            font-size: unset;
            text-align: unset;
        }

        #mapDetail > div.title {
            padding: 0.2em 0 0 0;
            font-weight: bold;
            color: #444;
            font-size: 0.85em;
            text-align: right;
        }

.item-title {
    grid-area: title;
}

.item-titlevalue {
    grid-area: titlevalue;
}

.item-date {
    grid-area: date;
}

.item-datevalue {
    grid-area: datevalue;
}

.item-projectname {
    grid-area: projectname;
}

.item-projectnamevalue {
    grid-area: projectnamevalue;
}

.item-drawn {
    grid-area: drawn;
}

.item-drawnvalue {
    grid-area: drawnvalue;
}

.item-projectnumber {
    grid-area: projectnumber;
}

.item-projectnumbervalue {
    grid-area: projectnumbervalue;
}

.item-checked {
    grid-area: checked;
}

.item-checkedvalue {
    grid-area: checkedvalue;
}

.item-phase {
    grid-area: phase;
}

.item-phasevalue {
    grid-area: phasevalue;
}

.item-number {
    grid-area: number;
}

.item-numbervalue {
    grid-area: numbervalue;
}

.item-logo {
    grid-area: logo;
    text-align: right;
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1em;
    justify-content: space-between;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm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Dg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.leaflet-popup-content-wrapper {
    background: #eee;
    color: #444;
    font-size: 16px;
    line-height: 24px;
    border-radius: 0px;
}

    .leaflet-popup-content-wrapper a {
        color: rgba(255,255,255,0.1);
    }

.leaflet-popup-tip-container {
    width: 30px;
    height: 0;
}

.leaflet-popup-tip {
    background: transparent;
    border: none;
    box-shadow: none;
}

.leaflet-popup-content {
    margin: 5px 10px;
}

.leaflet-popup-content p {
    margin: 0;
}