/* JG-13000: the new report pages, from the Reports page design: the single-report download pages
   (teleSGreports.txt: Crops, Feed), the reports tables (teleSGreportsTable.txt: Grains), the
   Archives page (teleSGarchives.txt) and the breadcrumb drop-down. */
.sg-rep {
	/* the page title (title.txt) sits outside, at the same left edge */
	padding: 0 0 40px;
	font-family: Roboto, Helvetica, Arial, sans-serif;
	color: #222;
}
.sg-rep a { color: #0074c7; }
.sg-rep a:hover { color: #00406e; }

/* The Reports landing (teleSGlanding.txt): a thumbnail per category, 4 in a row */
.sg-rep-landing {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px 44px;
	max-width: 1012px;
	margin: 24px auto 0;
	padding-bottom: 32px;
}
.sg-rep a.sg-rep-category {
	flex: 1 1 110px;
	min-width: 0;
	max-width: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	font-size: 22px;
	font-weight: 400;
	text-align: center;
	text-decoration: none;
}
.sg-rep-category img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* The issue: instruction and date */
.sg-rep-choice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin-bottom: 36px;
}
.sg-rep .sg-rep-choice label {
	/* the site's CSS floats labels, with a width */
	float: none;
	width: auto;
	margin: 0 26px 0 0;
	font-size: 13px;
	font-weight: 700;
	color: #222;
}

/* The date select: no native look, a white caret */
.sg-rep-select {
	position: relative;
	display: inline-block;
}
.sg-rep-select::after {
	content: '';
	position: absolute;
	right: 20px;
	top: 20px;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 7px solid #fff;
	pointer-events: none;
}
.sg-rep select.sg-rep-date {
	appearance: none;
	-webkit-appearance: none;
	height: 48px;
	margin: 0;
	border: 0;
	border-radius: 3px;
	color: #fff;
	font: 700 15px Roboto, Helvetica, Arial, sans-serif;
	cursor: pointer;
}
.sg-rep select.sg-rep-date option { color: #222; background: #fff; }
.sg-rep-select-date { width: min(270px, 100%); }
.sg-rep select.sg-rep-date {
	width: 100%;
	padding: 0 48px 0 12px;
	background: #f0365c;
}
/* The report: buttons, cover */
.sg-rep-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 48px 60px;
	padding-left: clamp(0px, 6vw, 104px);
}
.sg-rep-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 540px;
}
.sg-rep-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.sg-rep input.sg-rep-btn {
	height: 48px;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 18px;
	border: 0;
	border-radius: 3px;
	background: #0074c7;
	color: #fff;
	font: 700 15px Roboto, Helvetica, Arial, sans-serif;
	white-space: nowrap;
	cursor: pointer;
}
.sg-rep input.sg-rep-btn:hover { background: #00406e; }
.sg-rep-cover { display: block; cursor: pointer; }
.sg-rep-cover img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #d6dadd;
}
.sg-rep-empty {
	font-size: 14px;
	color: #5a6066;
}

/* The reports table of a category (teleSGreportsTable.txt: Grains, Oilseeds) */
.sg-rep-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 8px 16px;
	max-width: 1000px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #5a6066;
}
.sg-rep button.sg-rep-sort {
	padding: 0 0 2px;
	border: 0;
	background: none;
	font: 500 13px Roboto, Helvetica, Arial, sans-serif;
	color: #8a8f94;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}
.sg-rep button.sg-rep-sort.is-active {
	font-weight: 700;
	color: #00406e;
	box-shadow: 0 4px 0 -2px #63c553;
}
.sg-rep-table {
	max-width: 1000px;
	margin-bottom: 48px;
	border-top: 2px solid #00406e;
}
.sg-rep-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(140px, 200px) minmax(150px, 264px);
	gap: 16px;
	align-items: center;
	padding: 10px 12px;
	border-bottom: 1px solid #e6e9ec;
}
.sg-rep-rows .sg-rep-row:nth-child(even) { background: #f7faf9; }
.sg-rep-head {
	font-size: 11px;
	font-weight: 700;
	color: #8a8f94;
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom-color: #d6dadd;
}
.sg-rep-name b {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #00406e;
}
.sg-rep-name span {
	font-size: 12px;
	color: #8a8f94;
}
.sg-rep-none {
	font-size: 13px;
	color: #8a8f94;
}
/* The date select of a row: outlined, a blue caret */
.sg-rep-select-outline { width: 100%; }
.sg-rep-select-outline::after {
	right: 14px;
	top: 17px;
	border-left-width: 5px;
	border-right-width: 5px;
	border-top: 6px solid #0074c7;
}
.sg-rep select.sg-rep-outline {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 36px 0 10px;
	border: 1px solid #0074c7;
	border-radius: 3px;
	background: #fff;
	color: #00406e;
	font: 500 14px Roboto, Helvetica, Arial, sans-serif;
	cursor: pointer;
}
.sg-rep-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}
.sg-rep input.sg-rep-btn-sm {
	height: 40px;
	padding: 0 14px;
	font-size: 14px;
}
@media (max-width: 700px) {
	.sg-rep-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.sg-rep-head { display: none; }
	.sg-rep-actions { justify-content: flex-start; }
}

/* Archives page: a link per old report */
.sg-rep-caption {
	margin: 0 0 32px;
	font-size: 16px;
	font-weight: 500;
	color: #8a8f94;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.sg-rep-archives {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.sg-rep a.sg-rep-archive {
	font-size: 22px;
	font-weight: 400;
	color: #0074c7;
	text-decoration: none;
}
.sg-rep a.sg-rep-archive:hover { color: #00406e; }

/* A breadcrumb drop-down (sg_fm_submenu_dropdown()): Archives, the old reports' pages */
.sg-archives {
	position: relative;
}
/* the toggle takes the look of the other entries (.content-nav__link); only the button's own is undone */
.sg-archives button.sg-archives__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	font-family: inherit;
	letter-spacing: inherit;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}
.sg-archives button.sg-archives__toggle:focus:not(:focus-visible) { outline: none; }
.sg-archives.is-active button.sg-archives__toggle { color: #00406e; }
.sg-archives__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform .15s;
}
.sg-archives.is-open .sg-archives__caret { transform: rotate(180deg); }
.sg-archives__menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 14px);
	z-index: 1000;
	min-width: 220px;
	padding: 6px 0;
	flex-direction: column;
	background: #fff;
	border: 1px solid #d6dadd;
	border-radius: 3px;
	box-shadow: 0 8px 24px rgba(0, 40, 70, .12);
	text-align: left;
}
.sg-archives.is-open .sg-archives__menu { display: flex; }
.sg-archives__caption {
	padding: 8px 16px 6px;
	font-size: 11px;
	font-weight: 400;
	color: #8a8f94;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
}
.sg-archives a.sg-archives__item {
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #4a5056;
	text-transform: uppercase;
	letter-spacing: .02em;
	white-space: nowrap;
}
.sg-archives a.sg-archives__item:hover { background: #f0f4f7; color: #00406e; }
.sg-archives a.sg-archives__item.is-active { background: #eef7ec; color: #00406e; font-weight: 700; }
