/*
 * Purlieu application layer (layer 3 in docs/sui.md: the purlieu- prefix), loaded by
 * layout/main.html. bootstrap-shell.css is the shared SUI layer and is never edited here.
 *
 * The unprefixed rules below predate the SUI prefixes (formerly dashboard/css/purlieu.css);
 * they are renamed as the pages using them are ported.
 */

.test-result-pass {color: green;}
.test-result-fail {color: red;}

table.stdtable {border-collapse: collapse; width:100% }
table.stdtable thead, table.stdtable tfoot {background-color: var(--bs-tertiary-bg); font-weight:bold;}
table.stdtable tbody.subtotals {font-weight:bold;}
table.stdtable tbody.grandtotals {font-weight:bold; background-color: var(--bs-tertiary-bg);}

table.stdtable td, table.stdtable th { border: 1px solid var(--bs-border-color); padding:4px; vertical-align:top;}
table.stdtable th {background:var(--bs-tertiary-bg)}

table.stdtable tr.deleted {text-decoration: line-through;}
table.stdtable tr.lc_DELETED {display:none;text-decoration:line-through;}
table.stdtable tr.lc_NORMAL .undelete {display:none; text-decoration:none;}
table.stdtable tr.s_ELIMINATED td.strikethruable {text-decoration:line-through;}
table.stdtable td.number {text-align:right}
table.stdtable td.n {text-align:right;}
table.stdtable td.derived {background-color:var(--bs-tertiary-bg);}
table.stdtable .exceeded {color:red; font-weight:bold;}
table.stdtable .exceeded::before {content:"? ";}


.n {text-align:right}
.check-green{color:green;}

LABEL {font-weight:bold}


.button-bar {margin: 0.5em 0}

.pur-species-thumbnail {
  /* Set equal width and height or use aspect-ratio */
  width: 120px;
  aspect-ratio: 1 / 1; 

  /* Center and crop the image within the square bounds */
  object-fit: cover;
  object-position: center;

  /* Apply rounded corners */
  border-radius: 12px;  
}

/* Topbar async-activity menu (static/js/purlieu-topbar.js) */
@keyframes purlieu-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
#asyncActivityBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.purlieu-spin {
	display: inline-block;
	animation: purlieu-spin 0.9s linear infinite;
}
.async-job-progress {
	height: 6px;
}
#asyncActivityLogsPanel pre {
	white-space: pre-wrap;
	margin: 0;
	font-size: 0.75rem;
}

/* Topbar breadcrumb trail (bootstrap-fragments :: purlieuTopbar): reads as the subtitle, not as links. */
.purlieu-topbar-trail {
	font-size: 0.875rem;
}
.purlieu-topbar-trail a {
	color: inherit;
	text-decoration: none;
}
.purlieu-topbar-trail a:hover,
.purlieu-topbar-trail a:focus-visible {
	text-decoration: underline;
}

/* Sign-in page (templates/auth/login.html). */
.purlieu-login-card {
	width: 100%;
	max-width: 26rem;
}
.purlieu-login-mark {
	height: 2rem;
	width: auto;
}

/* Uppy's drag-and-drop area (action_add) paints a fixed white background; follow the colour mode
   (docs/sui.md §2.6). The Dashboard plugin used elsewhere takes a theme option instead. */
[data-bs-theme="dark"] .uppy-DragDrop-container {
	background-color: var(--bs-tertiary-bg);
	color: var(--bs-body-color);
}
