﻿/*----------------------------------------------------------------------------
  Reset and default styles:
----------------------------------------------------------------------------*/

html {
	margin: 0;
	padding: 0;
	font-size: 62.5%;
	font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

body {
	font-size: 1.6rem;
}

a {
	text-decoration: underline;
}

/*----------------------------------------------------------------------------
 Site-wide sections:
----------------------------------------------------------------------------*/

.content-container {
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
}

.content {
	width: 80%;
}

.back-link {
	display: block;
	margin-bottom: 36px;
	font-size: 1.6rem;
}

/*----------------------------------------------------------------------------
  Admin home page:
----------------------------------------------------------------------------*/

.login-box {
	max-width: 420px;
	padding: 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #eee;
}

.login-row {
	margin: 16px 0;
}

.links {
	margin-top: 16px;
}
	.links a {
		display: block;
		margin: 6px 0;
		color: #007acc;
		text-decoration: none;
	}
		.links a:hover {
			text-decoration: underline;
		}

.message {
	color: #b00;
	margin-top: 12px;
}

/*----------------------------------------------------------------------------
  Markers page:
----------------------------------------------------------------------------*/

.marker-types-list {
	padding-bottom: 24px;
}

.markers-table {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid #333;
	border-radius: 4px;
	margin-bottom: 36px;
	overflow: hidden;
}

.markers-header,
.markers-row {
	display: flex;
	align-items: center;
	padding: 6px 12px;
}

.markers-header {
	background: #f5f5f5;
	font-weight: bold;
	border-bottom: 1px solid #e0e0e0;
}

.markers-cell {
	flex: 1 1 0;
	min-width: 0; /* allow truncation */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
	.markers-cell.col-name {
		flex-grow: 2;
	}

	.markers-cell.col-desc {
		flex-grow: 3;
	}
	
	.markers-cell.col-addr {
		flex-grow: 2;
	}

.markers-row:hover {
	background: #eef6ff;
	cursor: pointer;
}

.markers-row-link {
	display: contents; /* keep the flex layout but make the link clickable across the row. */
	text-decoration: none;
	color: inherit;
}

.markers-message {
	margin-top: 16px;
	color: #666;
}

.marker-edit-panel {
	margin-bottom: 36px;
	padding: 12px;
	border: 1px solid #333;
	border-radius: 4px;
	max-width: 900px;
}

	.marker-edit-panel label {
		display: block;
		margin-top: 8px;
		font-weight: 600;
	}

	.marker-edit-panel input[type="text"],
	.marker-edit-panel textarea {
		width: 100%;
		box-sizing: border-box;
		padding: 6px 8px;
		margin-top: 4px;
	}

.marker-edit-panel-form-row {
	display: flex;
	gap: 12px;
}

	.marker-edit-panel-form-row .col {
		flex: 1;
	}

.marker-edit-panel-buttons {
	margin-top: 12px;
}

.marker-edit-panel-error {
	color: #b00;
	margin-bottom: 12px;
}
