html, body {
    height: 100%;
    margin: 0;
    background: repeating-linear-gradient(
        -60deg,
        #f3f3f3,
        #f3f3f3 15px,
        #e8e8e8 15px,
        #e8e8e8 20px
    );
};

body {
    display: flex;
    flex-direction: column;
}

.tab {
    min-width: 100px;
}

.table-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.table-container {
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

/* Avoid border-collapse issues with sticky header */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Sticky header, with background so rows don't show through */
thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.table-footer-sticky {
    position: sticky;
    bottom: 0;
    padding: .25rem;
    border-top: 1px solid var(--bs-border-color);
    margin-top: auto;
    left: 0;
    z-index: 10;
    align-self: stretch;
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6); /* dimming */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001; /* above Leaflet tiles and legend */
}

.map-marker-yellow:before {
    background-color: #dcd135;
    border: 2px solid #72651c;
}

.map-marker-blue:before {
    background-color: #135ee7;
    border: 2px solid #0e438a;
}

.map-marker-red:before {
    background-color: #dc3545;
    border: 2px solid #721c24;
}

.map-marker-green:before {
    background-color: #15aa10;
    border: 2px solid #0d5f05;
}

.map-marker-gray:before {
    background-color: #d4d4d4;
    border: 2px solid #838383;
}

.map-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -50% !important; /* offset for centering */
    margin-top: -100% !important; /* offset for pin point */
}

.map-marker::before {
    content: "";
    position: absolute;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    width: 20px;
    height: 20px;
}

.map-marker::after {
    content: "";
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    z-index: 1;
}

.map-marker-in-legend {
    margin-left: 0 !important;
    margin-top: -5px !important;
}

.map-marker-in-legend::before {
    width: 16px;
    height: 16px;
}

.map-marker-in-legend::after {
    width: 6px;
    height: 6px;
}

.map-legend {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000; /* above Leaflet tiles */
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.no-select {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}

.edit-modal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    place-items: center;
}

.edit-modal-grid .item-a { grid-column: 1; grid-row: 2; }
.edit-modal-grid .item-ab { grid-column: 2; grid-row: 1; }
.edit-modal-grid .item-bc { grid-column: 2; grid-row: 3; }
.edit-modal-grid .item-b { grid-column: 3; grid-row: 1; }
.edit-modal-grid .item-c { grid-column: 3; grid-row: 3; }
.edit-modal-grid .item-bd { grid-column: 4; grid-row: 1; }
.edit-modal-grid .item-d { grid-column: 5; grid-row: 1; }

.navbar-subtitle {
    font-size: 0.75rem; /* smaller than brand */
    line-height: 1;
    color: #6c757d; /* grayish subtitle */
}

.subtitle-link {
    color: #6c757d;       /* match subtitle color */
    text-decoration: none; /* remove underline */
}

.subtitle-link:hover {
    text-decoration: underline; /* optional hover effect */
}

/*  Remove spinner buttons for the input of number type */
/* Chrome, Safari, Edge, Opera */
.no-arrows::-webkit-outer-spin-button,
.no-arrows::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
.no-arrows {
-moz-appearance: textfield;
}
