﻿:root {
    --main-primary-color: #036272;
    --main-primary-highlight-color: #0b85991f;
    --main-hover-color: #004c57;
    --main-hover-background-color: #E3E3E3;
    --main-accent-color: #ff9e00;
    --background-color-light: #f8f9fa;
    --main-icon-link-color: #256E7D;
    --light-border-color: #E3E3E3;
    --normal-border-color: #BBBBBB;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-solid {
    font-family: 'Font Awesome 7 Pro Solid', 'Font Awesome 7 Pro';
}

.fa-m-size {
    font-size: 1rem;
}

@font-face {
    font-family: 'Font Awesome 7 Pro Solid';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("./fontawesome.7.1.0/webfonts/fa-solid-900.woff2") format("woff2");
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: unset;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 100px;
    border: solid white 2px;
}

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

i {
    color: var(--main-primary-color);
}

.display-on-hover {
    visibility: hidden;
}

.hover-container:hover .display-on-hover {
    visibility: visible;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: unset;
    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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnL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NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

p[role=alert] {
    padding: 0.75rem;
    background-color: lightgoldenrodyellow;
    color: #b32121;
}

.icon-button.disabled i {
    color: #D3D3D3;
}

.icon-button:not(.disabled):hover {
    cursor: pointer;
}

.icon-line {
    line-height: 1.5;
}

.nav-link {
    color: var(--main-primary-color);
}

.button-height {
    height: 45px;
}

.topbar-icon-link {
    white-space: nowrap;
    text-decoration: none;
    font-weight: normal;
    color: white;
}

.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: 600;
}

.mud-list-subheader-extended {
    color: var(--main-primary-color);
    letter-spacing: .02857em;
    padding-bottom: 12px;
    padding-top: 12px;
    text-transform: uppercase;
    user-select: none;
    white-space: normal;
}

.gr-table-extra-dense.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 3px 20px 3px 12px !important;
}

.gr-table-inputs * {
    font-size: 16px !important;
}

.gr-table-inputs .mud-input-text {
    margin-top: 0 !important;
}

.gr-table-inputs .mud-input-control {
    margin-top: 0 !important;
}

.gr-table-inputs .mud-input.mud-input-underline:before {
    border-bottom: none;
}

.gr-table-inputs .mud-table-container {
    overflow: unset;
}

.gradient-control .label {
    position: absolute;
    text-align: right;
}

.gradient-control .top-label {
    top: 0;
    right: 29px;
    font-weight: bold;
    padding: 0 5px 0 5px;
    background-color: rgba(206, 208, 210, 0.78);
}

.gradient-control .bottom-label {
    bottom: 0;
    right: 29px;
    font-weight: bold;
    padding: 0 5px 0 5px;
    background-color: rgba(206, 208, 210, 0.78);
}

.gradient-control {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    height: 200px;
    text-wrap: nowrap;
}

.gradient-control .color-legend {
    position: absolute;
    right: 0;
    cursor: pointer;
    border: 1px solid #006272;
    border-radius: 5px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    height: 200px;
    width: 20px;
}

/*#region Font Awesome size alignment fix */

.fa, .fa-brands, .fa-classic, .fa-light, .fa-regular, .fa-sharp, .fa-solid, .fab, .fal, .far, .fas {
    align-items: center;
    align-self: center;
    display: inline-flex;
    justify-content: center;
}

/*#endregion Font Awesome size alignment fix */

.mud-list-item-icon {
    min-width: 40px;
}

.icon-square {
    border-radius: unset;
}

.icon-square > .mud-button-root {
    border-radius: unset;
}

.icon-square.active {
    background-color: var(--mud-palette-primary-hover);
}

/*#region MudBlazor message box button styling  */

.mud-message-box__no-button {
    background-color: var(--mud-palette-action-default-hover);
    color: var(--mud-palette-text-primary);
    margin-right: 8px;
    --mud-ripple-color: var(--mud-palette-text-primary);
}

.mud-message-box__no-button:hover {
    background-color: var(--mud-palette-action-disabled-background) !important;
}

.mud-message-box__yes-button {
    background-color: var(--mud-palette-error);
    color: var(--mud-palette-error-text) !important;
    --mud-ripple-color: var(--mud-palette-error-text);
}

.mud-message-box__yes-button:hover {
    background-color: var(--mud-palette-error-darken) !important;
}

/*#endregion MudBlazor message box button styling  */

.gridit-clickable:hover {
    cursor: pointer;
}

.gridit-content {
    background-color: #FAFAFA;
    height: calc(100% - 48px);
    padding: 12px 24px 24px 24px;
}

.gridit-content.drawer {
    margin-left: 242px;
}

.gridit-drawer {
    background-color: #F6F6F6;
    border-right: 1px solid var(--mud-palette-divider);
    height: calc(100% - 48px) !important;
}

.gridit-drawer .mud-drawer-header {
    min-height: unset;
    padding: 12px;
}

.gridit-filter-input .mud-input.mud-input-outlined:not(:focus-within) .mud-input-outlined-border {
    border-width: 0;
}

.gridit-input-outlined.mud-input-control:has(.mud-input-outlined):has(label) {
    padding-top: 18px;
}

.gridit-input-outlined .mud-input-outlined {
    background-color: white;
}

.gridit-input-outlined .mud-input-outlined-border > legend {
    display: none;
}

.gridit-input-outlined.mud-input-control.mud-input-control-margin-dense:has(.mud-input-outlined) {
    margin-left: 0;
    margin-right: 0;
}

.gridit-input-outlined .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-radius: 4px;
}

.gridit-input-outlined label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    background-color: unset;
    left: -18px;
    transform: translate(14px, -6px) !important;
    top: -18px;
}

.gridit-table .mud-toolbar {
    padding-left: 24px;
    padding-right: 24px;
}

.gridit-table.select .mud-table-head > .mud-table-row > .mud-table-cell:first-child {
    width: 53px;
}

.gridit-table .mud-table-head > .mud-table-row > .action-cell {
    width: 42px;
}

.gridit-table.select .mud-table-row > .mud-table-cell:first-child {
    padding-left: 30px;
    padding-right: 15px;
}

.gridit-table.select.align-top .mud-table-row > .mud-table-cell:first-child {
    padding-top: 13px !important;
}

.gridit-table.select.align-top .mud-table-row > .mud-table-cell {
    vertical-align: top !important;
}

.gridit-table.select .mud-table-row > .mud-table-cell:first-child .mud-button-root {
    color: var(--mud-palette-primary);
}

.gridit-table .mud-table-row > .action-cell {
    padding-left: 8px;
    padding-right: 8px;
}

.gridit-table .mud-table-row.selected {
    background-color: var(--mud-palette-primary-hover) !important;
}

.gridit-temporary-panel {
    border-radius: 6px;
    height: calc(100% - 32px) !important;
    right: 16px !important;
    top: 16px !important;
}

.gridit-settings-tabs {
    border: 1px solid var(--mud-palette-lines-default);
    height: calc(100vh - 120px) !important;
}

.gridit-add-epsg-tabs {
    border: 1px solid #BDBDBD;
    height: calc(70vh - 305px) !important;
}

.ol-ctx-menu-container {
    padding: 0;
    overflow: hidden;
    width: auto !important;

    .gridit-ol-ctx-menu-item {
        --icon-content: undefined;

        display: flex;
        align-items: center;
        position: relative;
        padding: 4px 16px;
        height: 36px;
        color: var(--mud-palette-text-primary);

        &:hover {
            color: var(--mud-palette-text-primary) !important;
            background-color: var(--mud-palette-action-default-hover) !important;
        }

        & > span {
            padding-left: 32px;
            font-size: 14px;
        }

        &::before {
            content: var(--icon-content);
            font-family: 'Font Awesome 7 Pro';
            position: absolute;
            width: 20px;
            height: 20px;
            font-size: 20px;
            text-align: center;
            color: var(--mud-palette-primary);
            font-weight: 100;
        }
    }

    .gridit-ol-ctx-menu-item-copy-coords {
        --icon-content: "\f328";
    }
}

.mud-chip.truncate-chip > .mud-chip-content {
    display: unset;
    height: unset;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*#region Bootstrap utility classes */

.h-100 {
    height: 100% !important;
}

.w-50 {
    width: 50% !important;
}

.w-100 {
    width: 100% !important;
}

.float-end {
    float: right !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: right !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*#endregion Bootstrap utility classes */

/*#region Fix label styling for MudBlazor inputs */

.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol, .mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol {
    transform: translate(0, -1px) scale(0.75);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    line-height: unset;
}

.mud-input-label-inputcontrol {
    transform: translate(0, 20px) scale(1)
}

/*#endregion Fix label styling for MudBlazor inputs */

/*#region Fix MudDataGrid overflow */

.mud-table-container {
    width: 100% !important;
}

/*#endregion Fix MudDataGrid overflow */

/*#region Fix MudMenu styling */

.mud-menu-item.mud-menu-item-dense {
    padding: 4px 12px;
}

.mud-menu-item-icon {
    font-size: 1.25rem;
}

.mud-menu-list {
    padding: 0;
}

/*#endregion Fix MudMenu styling */