:root {
	--bg-img-black-piece: #535a618a;
	--changelog-img-border-radius: 6px;
}

html, body {
	height: 100%;
	overflow-x: hidden;
}

.page-container {
	display: block;
	position: relative;
	padding: 0.2rem 0.1rem 3rem 0.5rem;
	min-height: calc(100vh - 1.5rem); /*Needs to be 1.5rem for Production. 4rem looks good on staging/testing, but breaks on production*/
}

.page-content {
	margin-top: 0.75rem;
}

/* Staging warning */
div.staging-warning {
	box-sizing: border-box;
	left: 0;
	bottom: 0;
	width: 100%;
	display: block;
	text-align: center;
	background: #bf6070;
	color: #fcfcfc;
	font-weight: bold;
	padding: 0.25rem;
	margin-bottom: 0.5rem;
}

.staging-warning .staging-warning-text {
	font-size: 0.85rem;
}

/* Username in navbar */
.username {
	display: flex;
	font-size: 0.75rem;
	padding-right: 0.5rem;
	margin-left: 8px;
	min-width: 40px;
}

/* Table styling */
.sticky-header th {
	position: sticky;
	top: 0;
	z-index: 1;
}

.truncate-tooltip {
	max-width: 75px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: top;
}

#inventoryTable .goal-completed {
	--bs-table-bg: #0b410b;
}

#inventoryTable tr.black-piece > td > img,
#modalImage.black-piece {
	background: var(--bg-img-black-piece);
	border-radius: 16px;
}

/* Modal */
#btnEditRemarks {
	position: absolute;
	right: 3.75rem;
	top: 0.25rem;
}

#modalRemarksContainer {
	display: relative;
}

#btnCancelEditRemarks {
	display: none;
	position: absolute;
	left: 1rem;
}

#btnSaveEditRemarks {
	display: none;
	position: absolute;
	right: 1rem;
}

#modalImage {
	max-width: 100%;
	height: auto;
	margin-bottom: 1rem;
}

.modalQty {
	display: inline-block;
	min-width: 40px;
	font-size: 1.25em;
	font-weight: bold;
}

#confettiContainer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 1100;
	display: none;
}

/* XML generator */
.code-container {
	background-color: var(--bs-secondary-bg);
	padding: 0;
	font-family: Consolas, Monaco, monospace;
	border-radius: 6px;
	overflow: auto;
	max-width: 100%;
	margin-top: 0.5rem;
}

.code-block {
	display: flex;
	width: fit-content;
}

.line-numbers {
	text-align: right;
	padding: 10px;
	color: #999;
	border-right: 1px solid #454444;
	user-select: none;
}

.code-content {
	padding: 10px;
	white-space: pre;
	margin: 0;
	tab-size: 4;
}

/* Rummaging table and recent changes log */
.rummaging-table {
	--bs-table-bg: #184067;
	--bs-border-color: #083663;
}

.rummaging-table th:first-of-type {
	border-radius: 4px 0 0 0;
}

.rummaging-table th:last-of-type {
	border-radius: 0 4px 0 0;
}

img.rummage-image {
	background-color: #507395;
	border-radius: var(--changelog-img-border-radius);
}

.rummage-image,
.changelog-image {
	height: 2.5rem;
}

img.changelog-image.black-piece {
	background-color: var(--bg-img-black-piece);
	border-radius: var(--changelog-img-border-radius);
}

/* Remarks log */
td.remark-log {
	word-wrap: break-word;
}

td.remark-log.old {
	color: #a55a61;
}

td.remark-log.new {
	color: var(--bs-teal);
}

td.remark-log.empty {
	color: var(--bs-gray);
	font-size: 0.75rem;
	font-style: italic;
}

@media (max-width: 767.98px) {
	td.remark-log {
		max-width: 100px;
	}

	#recentRemarksTable .timestamp {
		font-size: 0.75rem;
	}
}

/* Settings table */
th span#loading-spinner-settings {
	margin-left: 5px;
	visibility: hidden;
}

.table .expanding-row > td {
	vertical-align: top;
	padding-top: 0.75rem;
}

.table .expanding-row div.expanding-options {
	padding-top: 0.5rem;
}

.table .expanding-row > td > div > div.form-check.form-switch {
	min-height: 1.75rem;
}

.setting-slider-column {
	width: 70px;
}

/* Footer */
footer {
	box-sizing: border-box;
	left: 0;
	bottom: 0;
	width: 100%;
	display: block;
	text-align: center;
	background: #25292d;
	color: #626261;
}

footer span#copyright {
	font-size: 0.65rem;
}

a.credits {
	color: #626261;
}

@media (orientation: landscape) {
	#modalImage {
		max-height: 40vh;
	}
}
