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

h1:focus {
    outline: none;
}

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

.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;*/
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}


:root {
    --blazor-load-percentage: 0%;
    --blazor-load-percentage-text: "Loading";
    --mcu-range-width: 20px;
    --mcu-range-height: 20px;
    --mortar-position-height-display: flex;
    --target-position-height-display: flex;
}


.circle-marker-target {
    width: 8px;
    height: 8px;
    border: 2px solid #D10000;
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
            0 0 2px 1.25px rgba(0, 0, 0, 0.85),   /* внешняя размытая обводка */
            inset 0 0 1px 1.25px rgba(0, 0, 0, 0.5); /* внутренняя размытая обводка */
}

.circle-marker-mortar {
    width: 8px;
    height: 8px;
    border: 2px solid #00f100;
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
            0 0 2px 1.25px rgba(0, 0, 0, 0.85),   /* внешняя размытая обводка */
            inset 0 0 1px 1.25px rgba(0, 0, 0, 0.5); /* внутренняя размытая обводка */
}
.mortar-data{
    position: absolute;
    top: 50%;
    left: 105%; /* смещение справа от круга */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    font-family: "Arial", sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #00f100;
    text-shadow:
            1px 1px 0 #000000,   /* правая нижняя тень */
            -1px -1px 0 #000000, /* левая верхняя тень */
            1px -1px 0 #000000,  /* правая верхняя тень */
            -1px 1px 0 #000000;  /* левая нижняя тень */
    padding: 1px 6px;
    pointer-events: none;
}
.data-container{
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.target-data {
    position: relative;
    top: 50%;
    left: 135%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    font-family: "Arial", sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: red;
    text-shadow:
            1px 1px 0 #fff,   /* правая нижняя тень */
            -1px -1px 0 #fff, /* левая верхняя тень */
            1px -1px 0 #fff,  /* правая верхняя тень */
            -1px 1px 0 #fff;  /* левая нижняя тень */
    padding: 1px 6px;
    pointer-events: none; 
}

.mortar-height{
    display: var(--mortar-position-height-display, flex);
}
.target-height {
    display: var(--target-position-height-display, flex);
}

.data-container,
.target-data,
.mortarNumber,
.circle-marker-mortar,
.circle-marker-target {
    z-index: 1000;
}


/* Общий класс для параметров */
.target-param {
    display: inline-flex;
    white-space: nowrap;
}
.target-param.elevation, .target-param.mortarNumber {
    font-size: 18px;
    line-height: 1.05;
}

.target-data-row {
    display: flex; 
    gap: 4px;
    line-height: 1.2;
}

/* Можно скрыть отдельные элементы через класс .hidden */
.hidden {
    display: none;
}


.leaflet-marker-draggable {
    cursor: default !important;
}

.leaflet-marker-icon {
    outline: none !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#map {
    cursor: default !important;
    user-select: none;          
    -webkit-user-select: none;   
    -moz-user-select: none;      
    -ms-user-select: none;       
}
#map {
    height: 100vh; /* Или фиксированная высота, например 800px */
    width: 100%;
    background: #ff0000; /* Полезно, чтобы видеть границы контейнера */
}
.mcu-range {
    width: var(--mcu-range-width, 20px);
    height: var(--mcu-range-height, 20px);
    border-radius: 50%;
    background-color: rgba(25, 25, 122, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    visibility: visible;
}

body:has(#mcu-range-checkbox:not(:checked)) .mcu-range {
    visibility: hidden;
}

body:has(#mcu-range-checkbox:checked) .mcu-range {
    visibility: visible;
}

body:has(#mortar-height-checkbox:checked) .mortar-height {
    display: flex;
}
body:has(#mortar-height-checkbox:not(:checked)) .mortar-height {
    display: none;
}
body:has(#target-height-checkbox:checked) .target-height {
    display: flex;
}
body:has(#target-height-checkbox:not(:checked)) .target-height {
    display: none;
}
