﻿:root {
    --black: #000;
    --black2: #2E2E2E;
    --danger-color: #d54646;
    --danger-color2: #db1717;
    --danger-color3: #931313;
    --dark-beige: #cca53a;
    --dark-grey: #404040;
    --dark-grey2: #333333;
    --dark-grey3: #242424;
    --editableFormControlColor: #efc0b3;
    --good-color: #17BF5D;
    --groundUnitListColor: #e6e4dc;
    --light-grey: #F2F2F2;
    --light-grey2: #EBEBEB;
    --light-grey3: #DEDEDE;
    --light-grey4: #D6D6D6;
    --mid-grey: #8A8A8A;
    --mid-grey2: #737373;
    --mid-grey3: #5E5E5E;
    --money-color: #4bc02d;
    --money-color2: #14380b;
    --point-color: #f16060;
    --primary-color: #578ff3;
    --primary-color2: #3D6EC4;
    --primary-color3: #2452A3;
    --secondary-color: #7db83a;
    --secondary-color2: #30b8b1;
    --secondary-color3: #3c5f13;
    --selectMapPixelColor: #5127ff;
    --third-color: #9df9ef;
    --third-color2: #74E3D6;
    --warning-color: #F5DB93;
    --warning-color2: #E6BD83;
    --white: #ffffff;
    --blue-section: #b9bddf;
}

/* Main page things */
html, body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--black2);
}

h5 {
    margin: 0.35em 0.1em 0.35em 0.1em;
    background-color: var(--light-grey3);
    padding: 0.5em 1em 0.4em 1em;
    border-radius: 0.5em 0.5em 0.25em 0.25em;
    font-size: 0.975em;
}


h6 {
    margin: 0.35em 0.1em 0.35em 0.1em;
    background-color: var(--light-grey3);
    padding: 0.5em 1em 0.4em 1em;
    border-radius: 0.5em 0.5em 0.25em 0.25em;
    font-size: 1.05em;
}

hr {
}


.w-100 {
    width: 100%;
    box-sizing: border-box;
}

.no-wrap {
    white-space: nowrap;
}

.pp-table {
    width: 100%;
    margin: 2px;
    border-collapse: collapse;
}

    .pp-table thead tr th {
        border-bottom: 0.1em solid var(--mid-grey);
        padding-bottom: 0.5em;
    }

    .pp-table tr:nth-child(even) {
        background-color: var(--light-grey2);
    }

    .pp-table tr:nth-child(odd) {
        background-color: var(--light-grey3);
    }

    .pp-table th {
        font-weight: bold;
    }

    .pp-table td {
        border: 0.1em solid var(--light-grey3);
        padding: 0.25em 0.2em 0.25em 0.2em;
    }


/* Table that turns into cards on narrow screens. See ResponsiveTable.razor */
/* Keep this breakpoint in sync with ResponsiveTable.CardModeMaxWidthPx. */
.pp-responsive-table-container {
    width: 100%;
    display: flow-root;
    min-width: 0;
}

@media (max-width: 520px) {
    .pp-responsive-table {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.5em;
    }

        .pp-responsive-table tbody,
        .pp-responsive-table tr,
        .pp-responsive-table td {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }

        .pp-responsive-table thead {
            display: none;
        }

        .pp-responsive-table tr {
            border: 0.1em solid var(--mid-grey);
            border-radius: 0.5em;
            margin-bottom: 0.5em;
            padding: 0.35em 0.5em 0.35em 0.5em;
        }

        .pp-responsive-table td {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5em;
            border: none;
            border-bottom: 0.1em solid var(--light-grey3);
            padding: 0.3em 0 0.3em 0;
        }

            /* Cell content (wrapping badge lists especially) has to be allowed to shrink and wrap,
           otherwise it overflows the card instead of making the card taller. */
            .pp-responsive-table td > * {
                min-width: 0;
                max-width: 100%;
            }

            .pp-responsive-table td:last-child {
                border-bottom: none;
            }

            .pp-responsive-table td::before {
                content: attr(data-label);
                font-weight: bold;
                flex: 0 0 40%;
                max-width: 40%;
            }

            .pp-responsive-table td:not([data-label])::before,
            .pp-responsive-table td[data-label=""]::before,
            .pp-responsive-table td.card-title::before {
                content: none;
            }

            .pp-responsive-table td.card-title {
                display: block;
                font-size: 1.1em;
                border-bottom: 0.1em solid var(--mid-grey);
                padding-bottom: 0.35em;
            }
}

.pp-table2 {
    width: 100%;
    margin: 2px;
    border-collapse: collapse;
}

    .pp-table2 > tbody > tr > th,
    .pp-table2 > tr > th {
        border: 0.1em solid var(--primary-color3);
        vertical-align: top;
        padding: 0.5em 0.5em 0.5em 0.5em;
        text-align: left;
    }

    .pp-table2 > tbody > tr > td,
    .pp-table2 > tr > td {
        border: 0.1em solid var(--primary-color3);
        padding: 0.25em 0.2em 0.25em 0.2em;
    }

.pp-table3 {
    width: 100%;
    margin: 0 4px 0 4px;
    border-collapse: collapse;
}

    .pp-table3 > tbody > tr > th,
    .pp-table3 > tr > th {
        vertical-align: top;
        padding: 0.5em 0.5em 0.5em 0.5em;
        text-align: left;
    }

    .pp-table3 > tbody > tr > td,
    .pp-table3 > tr > td {
        padding: 0.35em 0.1em 0.35em 0.1em;
    }


.pp-table-debug {
    width: 100%;
    margin: 0 4px 0 4px;
    border-collapse: collapse;
}

    .pp-table-debug > tbody > tr > th,
    .pp-table-debug > tr > th {
        vertical-align: top;
        padding: 0.5em 0.5em 0.5em 0.5em;
        text-align: left;
    }

    .pp-table-debug > tbody > tr > td,
    .pp-table-debug > tr > td {
        padding: 0.35em 0.1em 0.35em 0.1em;
    }


.form-control {
    width: 100%;
    box-sizing: border-box;
    border: 0.14em solid #007bff;
    border-radius: 0.35em;
    padding: 0.4em 0.2em 0.4em 0.2em;
}

.red1-text {
    color: var(--color2b);
}

div.nils-flex {
    display: flex;
    flex-wrap: wrap;
}

div.nils-inline-flex {
    display: inline-flex;
    flex-wrap: wrap;
}

div.nils-flex-gap-0 {
    gap: 0.01em;
}

div.nils-flex-gap-1 {
    gap: 0.25em;
}

div.nils-flex-gap-2 {
    gap: 0.75em;
}

div.nils-flex-gap-3 {
    gap: 1.25em;
}

div.nils-flex-no-wrap {
    flex-wrap: nowrap;
}

div.nils-flex-wrap {
    flex-wrap: wrap;
}

div.nils-flex-align-start {
    align-content: start;
}

div.nils-flex-align-items-center {
    align-items: center;
}

div.nils-flex-justify-end {
    justify-content: end;
}

div.nils-flex-space-between {
    justify-content: space-between;
}

div.nils-flex-justify-center {
    justify-content: center;
}

div.nils-flex-align-self-end {
    align-self: end;
}

div.nils-flex-cols {
    flex-direction: column;
}

.display-none {
    display: none;
}


/* Input styling */
.pp-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1.1rem;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-top: 6px;
}

    /* Focus effect */
    .pp-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.18);
        outline: none;
    }

    /* Placeholder styling */
    .pp-input::placeholder {
        color: #999;
    }




/* #region Default */
#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-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

div.center-container {
    max-width: 800px; /* or whatever width you want */
    margin: 0 auto; /* centers the whole block */
    padding: 20px;
}

/* #endregion Default */


/*
XSmall	Small     Medium	  Large	    XL	      XXL
<576px	>=576px	  >=768px	  >=992px	>=1200px  >=1400px
*/

/* sm */

@media (max-width: 767px) {
}

/* md */
@media (min-width: 768px) and (max-width: 991px) {
}
