/* Additions for the rewrite. The legacy look lives in inventory.css, menu.css and main.css. */

/* Navigation links are now a real list; keep them inline like the legacy bare <li>s. */
.navigation ul {
	display: inline;
	margin: 0;
	padding: 0;
}

.required {
	color: red;
}

.alignRight {
	text-align: right;
}

.welcome {
	text-align: center;
	font-size: 14px;
}

.welcome .projectName {
	color: green;
	font-weight: bold;
}

/* Delete is a POST form now; make its button look like the legacy link. */
form.inline {
	display: inline;
	margin: 0;
}

button.link {
	background: none;
	border: 0;
	padding: 0;
	color: LinkText;
	font: inherit;
	cursor: pointer;
}

.cellPadRight {
	padding-right: 10px;
}

.excelIcon {
	margin-top: 7px;
}

.wide {
	width: 100%;
}

.fieldWidth {
	width: 430px;
}

/* Login and project picker. */
.signOut {
	margin-top: 10px;
	font-size: 12px;
	color: #fff;
}

.signOut button.link {
	color: #fff;
}

.login td {
	padding: 4px;
	text-align: left;
}

.login input[type=text],
.login input[type=password] {
	width: 220px;
}

.archiveNote {
	text-align: center;
	background-color: #ffe0e0;
}

/* Header: the project name opens a project menu; Users and Sign out on the right. */
.topBanner { position: relative; }
.projectMenu { float: left; position: relative; }
.projectMenu > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	height: 70px;
	padding: 0 14px 0 4px;
	border-radius: 6px;
	user-select: none;
}
.projectMenu > summary::-webkit-details-marker { display: none; }
.projectMenu > summary:hover,
.projectMenu[open] > summary { background: rgba(255, 255, 255, 0.08); }
.projectMenu > summary:focus-visible { outline: 2px solid #ffe22e; outline-offset: -4px; }
.projectMenu .databaseTitle { float: none; width: auto; }
.projectMenu .caret {
	width: 7px;
	height: 7px;
	border-right: 2px solid rgba(255, 255, 255, 0.85);
	border-bottom: 2px solid rgba(255, 255, 255, 0.85);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 120ms ease;
}
.projectMenu[open] .caret { transform: translateY(2px) rotate(-135deg); }

.projectList {
	position: absolute;
	top: 64px;
	left: 0;
	z-index: 20;
	min-width: 260px;
	padding: 6px 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(40, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
	animation: projectListIn 120ms ease-out;
}
@keyframes projectListIn { from { opacity: 0; transform: translateY(-4px); } }
.projectList .menuLabel {
	padding: 10px 16px 4px;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #999;
}
.projectList .projectItem {
	display: block;
	padding: 7px 16px 7px 13px;
	border-left: 3px solid transparent;
	font-size: 13px;
	color: #333;
	white-space: nowrap;
}
.projectList a.projectItem:hover,
.projectList a.projectItem:focus-visible { background: #f8eeee; border-left-color: #992222; outline: none; }
.projectList .projectItem.current { font-weight: bold; color: #721414; border-left-color: #721414; cursor: default; }
.projectList .projectItem.current::after { content: "✓"; float: right; margin-left: 16px; color: #992222; }

.headerTools {
	float: right;
	padding-right: 20px;
	line-height: 70px;
	font-size: 12px;
}
.headerTools form { display: inline; }
.headerTools a, .headerTools button.link {
	color: rgba(255, 255, 255, 0.85);
	margin-left: 14px;
	font-size: 12px;
}
.headerTools a:hover, .headerTools button.link:hover { color: #fff; text-decoration: underline; }
