#gosendex-upload-container {
	width: 176px;
	display: inline-flex;
	align-items: center;
	margin-right: 1rem;
}

#gse-uploaded-files {
	width: 100%;
	table-layout: fixed;
}

/* Center all content in table cells */
#gse-uploaded-files th,
#gse-uploaded-files td {
	text-align: center;
	vertical-align: middle;
}

#gse-uploaded-files thead {
	font-weight: bold;
	border-bottom: 1px solid black;
	border-style: dotted;
}

/* Column width adjustments */
#gse-uploaded-files th:nth-child(1), #gse-uploaded-files td:nth-child(1) { /* Drag Handle */
	width: 5%;
}

#gse-uploaded-files th:nth-child(2), #gse-uploaded-files td:nth-child(2) { /* Thumbnail */
	width: 15%;
}

#gse-uploaded-files th:nth-child(3), #gse-uploaded-files td:nth-child(3) { /* Uploaded Filename */
	width: 32%;
}

#gse-uploaded-files th:nth-child(4), #gse-uploaded-files td:nth-child(4) { /* Dimensions */
	width: 18%;
}

#gse-uploaded-files th:nth-child(5), #gse-uploaded-files td:nth-child(5) { /* Page Count */
	width: 15%;
}

#gse-uploaded-files th:nth-child(6), #gse-uploaded-files td:nth-child(6) { /* Remove */
	width: 15%;
}

.gse-thumbnail {
	max-width: 80px;
	max-height: 80px;
	/* border: 1px solid #ddd; */
	/* border-radius: 4px; */
	padding: 3px;
}

/* Sortable table styles */
#gse-uploaded-files tbody tr {
	cursor: move; /* Show move cursor */
	transition: background-color 0.2s ease;
}

#gse-uploaded-files tbody tr:hover {
	background-color: #f5f5f5; /* Highlight on hover */
}

/* Style for the drag handle */
.gse-drag-handle {
	display: inline-block;
	font-size: 20px;
	line-height: 1;
	color: #999;
	cursor: move;
	vertical-align: middle;
}

/* Style for the merge PDFs button */
#merge-pdfs-button {
	margin-top: 15px;
	margin-bottom: 15px;
	background-color: #4CAF50;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	display: block;
	width: 100%;
	max-width: 300px;
}

#merge-pdfs-button:hover {
	background-color: #45a049;
}

#merge-pdfs-button:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}

/* PDF Preview Container Styles */
#pdf-preview-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: flex;
	flex-direction: column;
}

#pdf-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background-color: #333;
	color: white;
}

#pdf-preview-title {
	font-size: 18px;
	font-weight: bold;
}

#pdf-preview-close {
	background-color: #f44336;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
}

#pdf-preview-close:hover {
	background-color: #d32f2f;
}

#pdf-preview-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	background-color: #f5f5f5;
}

.pdf-pages {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.pdf-page {
	background-color: white;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	padding: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pdf-page canvas {
	max-width: 100%;
	height: auto;
}

.pdf-page-number {
	margin-top: 10px;
	font-size: 14px;
	color: #666;
}

/* PDF Dimensions Table Styles */
.pdf-dimensions-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 14px;
}

.pdf-dimensions-table th,
.pdf-dimensions-table td {
	padding: 8px;
	border-bottom: 1px solid #ddd;
}

.pdf-dimensions-table thead th {
	background-color: #f5f5f5;
	font-weight: bold;
	text-align: center;
}

.pdf-dimensions-table tbody td {
	text-align: center;
}

.pdf-dimensions-table tfoot th {
	background-color: #f5f5f5;
	font-weight: bold;
	border-top: 2px solid #ddd;
	border-bottom: none;
	text-align: center;
}

/* Horizontal layout class */
.pdf-pages.horizontal {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: max-content;
}

/* Change content overflow based on layout */
#pdf-preview-content.horizontal {
    overflow-x: auto;
    overflow-y: hidden;
}

#pdf-preview-content.vertical {
    overflow-x: hidden;
    overflow-y: auto;
}
