.crane-files-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Bill QA #12 — visible horizontal-scroll affordance on narrow viewports */
@media (max-width: 767px) {
	.crane-files-table-wrap {
		position: relative;
	}

	.crane-files-table-wrap::before {
		content: 'Swipe for download →';
		display: block;
		margin: 0 0 8px;
		font-family: Poppins, Arial, sans-serif;
		font-size: 12px;
		font-weight: 600;
		color: #53565a;
	}

	.crane-files-table-wrap::after {
		content: '';
		position: absolute;
		top: 28px;
		right: 0;
		bottom: 0;
		width: 32px;
		pointer-events: none;
		background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
	}

	.crane-files-table {
		min-width: 560px;
	}
}

.crane-files-table {
	width: 100%;
	border-collapse: collapse;
	font-family: Poppins, Arial, sans-serif;
	font-size: 14px;
	color: #1a1a1a;
}

.crane-files-table thead th {
	padding: 15px;
	text-align: left;
	font-weight: 700;
	color: #53565a;
	border-bottom: 1px solid #e5e5e7;
	white-space: nowrap;
}

.crane-files-table tbody td {
	padding: 15px;
	vertical-align: top;
	border-bottom: 1px solid #e5e5e7;
	line-height: 1.5;
}

.crane-files-table tbody tr.crane-files-table__row--odd td {
	background: rgba(128, 128, 128, 0.07);
}

.crane-files-table tbody td a {
	color: #1a1a1a;
	text-decoration: none;
}

.crane-files-table tbody td a:hover {
	color: #ed1c24;
}

.crane-files-table__action {
	text-align: right;
	white-space: nowrap;
}

.crane-files-table__download {
	font-weight: 700;
	color: #ed1c24 !important;
}

.crane-files-table__download:hover {
	text-decoration: underline;
}

.crane-files-table__revisions {
	white-space: nowrap;
}

.crane-files-table__revisions-na {
	color: #6b7280;
}

.crane-files-table__revisions-toggle,
.crane-files-table button.crane-files-table__revisions-toggle,
.crane-files-table [type="button"].crane-files-table__revisions-toggle {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	color: #53565a;
	font-family: Poppins, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	text-decoration: none;
	transition: color 0.2s ease;
}

.crane-files-table__revisions-toggle:hover,
.crane-files-table__revisions-toggle:focus,
.crane-files-table__revisions-toggle:focus-visible,
.crane-files-table button.crane-files-table__revisions-toggle:hover,
.crane-files-table button.crane-files-table__revisions-toggle:focus,
.crane-files-table button.crane-files-table__revisions-toggle:focus-visible,
.crane-files-table [type="button"].crane-files-table__revisions-toggle:hover,
.crane-files-table [type="button"].crane-files-table__revisions-toggle:focus,
.crane-files-table [type="button"].crane-files-table__revisions-toggle:focus-visible {
	color: #ed1c24;
	background: transparent;
	background-color: transparent;
	box-shadow: none;
	outline: none;
}

.crane-files-table__revisions-text {
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-color: currentColor;
}

.crane-files-table__revisions-caret {
	display: inline-block;
	transition: transform 0.2s ease;
	transform: rotate(-90deg);
	text-decoration: none;
}

.crane-files-table__revisions-toggle[aria-expanded="true"] .crane-files-table__revisions-caret {
	transform: rotate(0deg);
}

.crane-files-table__row-revision td {
	overflow: hidden;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
	line-height: 0;
	border-bottom-color: transparent;
	transition:
		opacity 0.25s ease,
		padding 0.25s ease,
		line-height 0.25s ease,
		border-color 0.25s ease;
}

.crane-files-table__row-revision.is-expanded td {
	opacity: 1;
	padding-top: 15px;
	padding-bottom: 15px;
	line-height: 1.5;
	border-bottom-color: #e5e5e7;
}

.crane-files-table__row-revision td:first-child {
	border-bottom: none;
}

.crane-files-table__lang-select {
	appearance: none;
	-webkit-appearance: none;
	min-width: 72px;
	padding: 6px 28px 6px 10px;
	border: 1px solid #cfd2d4;
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2353565a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
	color: #1a1a1a;
	font-family: Poppins, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.crane-file-matrix {
	padding: 8px 0 4px;
	overflow-x: auto;
}

.crane-file-matrix__table {
	width: auto;
	min-width: 280px;
	border-collapse: collapse;
	font-family: Poppins, Arial, sans-serif;
	font-size: 13px;
}

.crane-file-matrix__table th,
.crane-file-matrix__table td {
	padding: 8px 14px;
	text-align: center;
	border-bottom: 1px solid #e5e5e7;
	color: #1a1a1a;
	white-space: nowrap;
}

.crane-file-matrix__table th[scope='row'] {
	text-align: left;
	font-weight: 600;
	color: #53565a;
}

.crane-file-matrix__table thead th {
	font-weight: 700;
	color: #53565a;
	border-bottom-color: #cfd2d4;
}

.crane-file-matrix__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #ed1c24 !important;
	text-decoration: none;
	font-size: 16px;
	line-height: 1;
}

.crane-file-matrix__download:hover,
.crane-file-matrix__download:focus {
	color: #c9181f !important;
}

.crane-file-matrix__empty {
	color: #cfd2d4;
}

.crane-files-table__load-more-wrap {
	display: flex;
	justify-content: center;
	padding-top: 32px;
}

.crane-files-table__load-more,
.crane-app-notes__load-more {
	appearance: none;
	border: 0;
	border-radius: 50px;
	padding: 14px 32px;
	background: #ed1c24;
	color: #fff;
	font-family: Poppins, Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.crane-files-table__load-more:hover,
.crane-app-notes__load-more:hover {
	background: #c9181f;
}

.crane-downloads-empty,
.crane-app-notes__empty {
	margin: 0;
	padding: 40px 0;
	text-align: center;
	color: #6b7280;
}

/* -------------------------------------------------------------------------
 * Downloads table toolbar (#31 polish): search + selects + Apply / Clear
 * ------------------------------------------------------------------------- */

.crane-downloads-toolbar {
	margin: 0 0 24px;
}

.crane-downloads-toolbar__form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.crane-downloads-toolbar__search,
.crane-downloads-toolbar__select {
	display: block;
	margin: 0;
	min-width: 0;
}

.crane-downloads-toolbar__search {
	flex: 1 1 220px;
}

.crane-downloads-toolbar__select {
	flex: 1 1 160px;
}

.crane-downloads-toolbar__search input[type='search'],
.crane-downloads-toolbar__select select {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #cfd2d4;
	border-radius: 4px;
	background-color: #fff;
	color: #1a1a1a;
	font-family: Poppins, Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crane-downloads-toolbar__search input[type='search']::placeholder {
	color: #8a8d91;
}

.crane-downloads-toolbar__select select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2353565A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	cursor: pointer;
}

.crane-downloads-toolbar__search input[type='search']:hover,
.crane-downloads-toolbar__select select:hover {
	border-color: #a8abb0;
}

.crane-downloads-toolbar__search input[type='search']:focus,
.crane-downloads-toolbar__select select:focus {
	outline: none;
	border-color: #ed1c24;
	box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12);
}

.crane-downloads-toolbar__submit {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	min-height: 48px;
	padding: 12px 28px;
	border: 1px solid #ed1c24;
	border-radius: 4px;
	background: #ed1c24;
	color: #fff;
	font-family: Poppins, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.crane-downloads-toolbar__submit:hover,
.crane-downloads-toolbar__submit:focus {
	background: #c9181f;
	border-color: #c9181f;
	color: #fff;
	outline: none;
}

.crane-downloads-toolbar__submit:focus-visible {
	box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.2);
}

.crane-downloads-toolbar__clear {
	display: inline-flex;
	align-items: center;
	align-self: center;
	min-height: 48px;
	padding: 0 4px;
	color: #ed1c24;
	font-family: Poppins, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.crane-downloads-toolbar__clear:hover,
.crane-downloads-toolbar__clear:focus {
	color: #c9181f;
	text-decoration: underline;
	outline: none;
}

.crane-downloads-count {
	display: block;
	margin: 8px 0 0;
	text-align: right;
	font-family: Poppins, Arial, sans-serif;
	font-size: 12px;
	color: #53565a;
}

@media (max-width: 767px) {
	.crane-downloads-toolbar__search,
	.crane-downloads-toolbar__select {
		flex: 1 1 100%;
	}

	.crane-downloads-toolbar__submit {
		flex: 1 1 auto;
	}
}
