#splash {
	position: absolute;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	z-index: 800;
}

#splash .splash-container {
	border-radius: 15px 0;
	background-color: rgba(23, 162, 184, 0.7);
}

#splash .fa-spinner {
	animation-name: spin;
	animation-duration: 800ms;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

#map-editor {
	position: relative;
	height: 90vh;
	overflow: hidden;
}

#btn-geom-attribute {
	display: none;
}

#geom-attribute {
	position: absolute;
	width: 15rem;
	padding: 0 0 5px 0;
	top: calc(50% - 133px);
	left: 1px;
	border-radius: 0 5px 5px 0;
	background-color: rgba(255, 255, 255, 0.9);
	z-index: 1;
}

#print-menu {
	display: none;
}

.map-editor-fullscreen {
	position: fixed !important;
	width: 100vw !important;
	height: 100vh !important;
	max-height: 100vh !important;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 200;
}

.fullscreen-map-body {
	height: 100%;
	overflow: hidden;
}

.layer-list-item-info {
	margin-top: 1px;
	white-space: nowrap;
	font-size: 9px;
	color: #6c757d;
}

.layer-visibility {
    font-size: 9px;
}

.layer-list-item div {
	padding: 0 1px;
	vertical-align: middle;
}

.layer-list-item-legend .fa-square {
	border: 1px solid black;
}

.layer-list-item .layer-list-item-name {
	width: 100%;
	font-size: 11px;
	line-height: 1.3;
}

.layer-list-item .layer-list-item-opt {
	padding: 0 3px;
	font-size: 12px;
	cursor: pointer;
}

.layer-list-item .layer-list-item-opt:hover {
	color: #ff0000;
}

.dropdown-item {
	cursor: pointer;
}

.ol-attribution.ol-uncollapsible {
	height: auto !important;
	line-height: normal !important;
}

.map-point-indicator {
	height: 0.8rem;
	width: 0.8rem;
	border-radius: 50%;
	border: 1px solid black;
	display: inline-block;
}

.map-poly-indicator {
	height: 0.8rem;
	width: 0.8rem;
	border: 1px solid black;
	display: inline-block;
}

#coord-container {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 14rem;
	height: 22px;
	padding: 0.2rem;
	line-height: normal !important;
	border-radius: 0 4px 0 0;
	background: rgba(255, 255, 255, .8);
	font-size: 0.9rem;
}

#editor {
    display: flex;
    flex-direction: row;
	min-height: 500px;
	height: 100%;
}

#map-sidebar {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* ============================================================
   SIDEBAR TABS
   ============================================================ */

.sidebar-tabs {
	flex-shrink: 0;
	border-bottom: 1px solid #dee2e6;
	background: #f8f9fa;
}

.sidebar-tabs .nav-link {
	font-size: 0.75rem;
	padding: 5px 8px;
	color: #495057;
	white-space: nowrap;
}

.sidebar-tabs .nav-link.active {
	font-weight: 600;
	color: #17a2b8;
	border-color: #dee2e6 #dee2e6 #fff;
}

.sidebar-tab-content {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.sidebar-tab-pane {
	height: 100%;
	flex-direction: column;
}

.sidebar-tab-pane.show.active {
	display: flex !important;
}

.sidebar-tab-header {
	flex-shrink: 0;
	border-bottom: 1px solid #dee2e6;
	background: #fff;
}

.sidebar-tab-list {
	flex: 1 1 0;
	min-height: 0;
	overflow-y: auto;
}

.sidebar-search {
	font-size: 0.78rem;
}

.gutter {
	background-color: #eee;
	/* background-color: #eaeaea; */
    background-repeat: no-repeat;
    background-position: 50%;
	/* background-position: center center; */
}

.gutter.gutter-horizontal {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    cursor: col-resize;
}

.gutter.gutter-vertical {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
    cursor: row-resize;
}

/* ============================================================
   LAYER GROUPS & DRAG-AND-DROP
   ============================================================ */

.layer-group {
    border-bottom: 1px solid #dee2e6;
}

.layer-group-header {
    background-color: #f0f4f8;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 16px !important;
    border-bottom: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    user-select: none;
}

.layer-group-header:hover {
    background-color: #e0e8f0;
}

.layer-group-header i {
    cursor: pointer;
    color: #6c757d;
}

.layer-group-header i:hover {
    color: #343a40;
}

.layer-group-body {
    padding-left: 8px;
    border-left: 3px dotted #adb5bd;
    margin-left: 6px;
    min-height: 2em;
}

/* Drop zone highlight */
.layer-drop-zone.dnd-over {
    outline: 2px dashed #17a2b8;
    background-color: rgba(23, 162, 184, 0.07);
}

.ungrouped-zone {
    min-height: 4px;
}

/* Dragging state */
.layer.dnd-dragging {
    opacity: 0.4;
}

/* Expired public layers */
.layer.layer-expired {
    opacity: 0.6;
    color: #6c757d;
}

.layer.layer-expired .layer-list-item-name {
    color: #6c757d;
}

.layer-expired-label {
    color: #6c757d;
    font-style: italic;
}

.layer[draggable="true"] {
    cursor: default;
}

.layer.active,
.layer.list-group-item-action.active {
    background-color: transparent;
    color: inherit;
    border-color: transparent;
    border-left: 3px solid #17a2b8 !important;
}

/* Section header controls */
.section-header-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.btn-section-ctrl {
    background: none;
    border: none;
    padding: 0 3px;
    cursor: pointer;
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1;
}

.btn-section-ctrl:hover {
    color: #212529;
}

/* ============================================================
   LAYER EXPAND TOGGLE & FEATURE LIST
   ============================================================ */

.layer-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    cursor: pointer;
    color: #6c757d;
    flex-shrink: 0;
    margin-right: 2px;
}

.layer-expand-toggle:hover {
    color: #343a40;
}

.layer-features-body {
    padding: 2px 4px 2px 20px;
    border-left: 2px solid #dee2e6;
    margin-left: 10px;
    margin-bottom: 2px;
}

.layer-features-empty {
    color: #adb5bd;
    padding: 2px 4px;
}

.feature-item {
    font-size: 11px;
    border-radius: 2px;
    gap: 4px;
    justify-content: space-between;
    padding: 0 2em;
}

.feature-item:hover {
    background-color: #f0f4f8;
}

.feature-item-name {
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feature-item-opt {
    flex-shrink: 0;
    cursor: pointer;
    color: #6c757d;
    font-size: 11px;
    padding: 0 2px;
}

.feature-item-opt:hover {
    color: #343a40;
}

/* Fill pattern selector */
.pattern-btn {
    padding: 3px 4px;
    line-height: 1;
}

.pattern-preview {
    width: 28px;
    height: 28px;
    border-radius: 2px;
}

.patt-none {
    background: #adb5bd;
}

.patt-hatch-h {
    background:
        repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        #adb5bd;
}

.patt-hatch-v {
    background:
        repeating-linear-gradient(to right, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        #adb5bd;
}

.patt-hatch-d {
    background:
        repeating-linear-gradient(45deg, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        #adb5bd;
}

.patt-hatch-d2 {
    background:
        repeating-linear-gradient(-45deg, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        #adb5bd;
}

.patt-cross {
    background:
        repeating-linear-gradient(to bottom, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        repeating-linear-gradient(to right, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        #adb5bd;
}

.patt-cross-d {
    background:
        repeating-linear-gradient(45deg, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        repeating-linear-gradient(-45deg, transparent 0px, transparent 3px, rgba(0,0,0,0.6) 3px, rgba(0,0,0,0.6) 4px),
        #adb5bd;
}

.patt-dots {
    background: radial-gradient(circle, rgba(0,0,0,0.7) 1.5px, transparent 1.5px) #adb5bd;
    background-size: 7px 7px;
}

/* Modal sections */
.layer-modal-section {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.layer-modal-section-title {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #495057;
}

.layer-modal-section-body {
    padding: 12px;
}

.layer-modal-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 4px;
    display: block;
}

/* Disabled style section */
.layer-section-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Hunt type checkboxes */
.layer-hunt-type-checks {
    max-height: 100px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 8px;
    background: #fff;
}

.layer-list-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:6px 10px;
}

.layer-list-item-legend{
    display:flex;
    align-items:center;
}

.map-poly-indicator{
    width:18px;
    height:18px;
    border:1px solid;
    border-radius:3px;
}

.layer-list-item-name{
    flex:1;
    overflow:hidden;
    text-overflow:ellipsis;
    font-weight:500;
}