
.tls-file-app[data-tool="advanced-pdf-workspace"] .tls-file-workspace,
.tls-file-app[data-tool="merge-pdf"] .tls-file-workspace,
.tls-file-app[data-tool="split-pdf"] .tls-file-workspace,
.tls-file-app[data-tool="organize-pdf"] .tls-file-workspace {
	contain: layout paint;
}

html:not(.tls-file-css-ready) .tls-file-app .tls-file-workspace {
	visibility: hidden;
}

html:not(.tls-file-css-ready) .tls-file-app .tls-file-workspace::before {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	border: 1px solid #e4e7ec;
	border-radius: 18px;
	background: #fff;
	color: #475467;
	content: "Loading secure workspace…";
	font-size: 13px;
	font-weight: 600;
	visibility: visible;
}


.tls-pdfws,
.tls-pdfws * {
	box-sizing: border-box;
}

.tls-pdfws {
	--ws-primary: #4f46e5;
	--ws-primary-dark: #4338ca;
	--ws-soft: #eef2ff;
	--ws-border: #e4e7ec;
	--ws-text: #344054;
	--ws-muted: #667085;
}

.tls-pdfws-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 28px;
	border: 1px solid var(--ws-border);
	border-radius: 18px;
	background: #fff;
	color: var(--ws-text);
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 8px 28px rgba(16, 24, 40, .05);
}

.tls-pdfws-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
	padding: 13px 14px;
	border: 1px solid var(--ws-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 7px 22px rgba(16, 24, 40, .035);
}

.tls-pdfws-engine {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.tls-pdfws-engine-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #f79009;
	box-shadow: 0 0 0 4px #fffaeb;
}

.tls-pdfws-engine.is-ready .tls-pdfws-engine-dot {
	background: #12b76a;
	box-shadow: 0 0 0 4px #ecfdf3;
}

.tls-pdfws-engine.is-error .tls-pdfws-engine-dot {
	background: #f04438;
	box-shadow: 0 0 0 4px #fef3f2;
}

.tls-pdfws-engine strong,
.tls-pdfws-engine span {
	display: block;
}

.tls-pdfws-engine strong {
	color: #101828;
	font-size: 11px;
	font-weight: 700;
}

.tls-pdfws-engine span {
	margin-top: 2px;
	overflow: hidden;
	color: var(--ws-muted);
	font-size: 9.5px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tls-pdfws-statbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 7px;
}

.tls-pdfws-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 7px 9px;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	background: #f8fafc;
	color: #475467;
	font-size: 9.5px;
	font-weight: 600;
}

.tls-pdfws-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 15px;
	align-items: start;
}

.tls-pdfws-main,
.tls-pdfws-side {
	min-width: 0;
	border: 1px solid var(--ws-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 9px 28px rgba(16, 24, 40, .045);
}

.tls-pdfws-main {
	overflow: hidden;
}

.tls-pdfws-side {
	position: sticky;
	top: 90px;
	padding: 17px;
}

.tls-pdfws-add {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 15px;
	border-bottom: 1px solid var(--ws-border);
	background: linear-gradient(180deg, #fff, #fafbff);
}

.tls-pdfws-add-copy strong,
.tls-pdfws-add-copy span {
	display: block;
}

.tls-pdfws-add-copy strong {
	color: #101828;
	font-size: 13px;
	font-weight: 700;
}

.tls-pdfws-add-copy span {
	margin-top: 3px;
	color: var(--ws-muted);
	font-size: 10px;
	line-height: 1.45;
}

.tls-pdfws-upload {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 39px;
	padding: 0 12px;
	border: 1px solid var(--ws-primary);
	border-radius: 9px;
	background: var(--ws-primary);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	cursor: pointer;
}

.tls-pdfws-upload:hover {
	background: var(--ws-primary-dark);
}

.tls-pdfws-upload input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.tls-pdfws-upload svg,
.tls-pdfws-button svg,
.tls-pdfws-icon-button svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-pdfws-toolbar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	overflow-x: auto;
	border-bottom: 1px solid var(--ws-border);
	background: #f8fafc;
	scrollbar-width: thin;
}

.tls-pdfws-divider {
	flex: 0 0 auto;
	width: 1px;
	height: 27px;
	margin: 0 2px;
	background: #d0d5dd;
}

.tls-pdfws-button,
.tls-pdfws-icon-button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 9px !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #344054 !important;
	font-family: inherit;
	font-size: 9.5px;
	font-weight: 650;
	cursor: pointer;
}

.tls-pdfws-icon-button {
	width: 34px;
	padding: 0 !important;
}

.tls-pdfws-button:hover,
.tls-pdfws-icon-button:hover {
	border-color: #a4bcfd !important;
	background: var(--ws-soft) !important;
	color: var(--ws-primary-dark) !important;
}

.tls-pdfws-button:disabled,
.tls-pdfws-icon-button:disabled {
	opacity: .38;
	cursor: not-allowed;
}

.tls-pdfws-button.is-danger {
	border-color: #fecdca !important;
	color: #b42318 !important;
}

.tls-pdfws-stage {
	position: relative;
	min-height: 520px;
	padding: 16px;
	background:
		linear-gradient(45deg, rgba(71, 84, 103, .028) 25%, transparent 25%),
		linear-gradient(-45deg, rgba(71, 84, 103, .028) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgba(71, 84, 103, .028) 75%),
		linear-gradient(-45deg, transparent 75%, rgba(71, 84, 103, .028) 75%);
	background-position: 0 0, 0 10px, 10px -10px, -10px 0;
	background-size: 20px 20px;
}

.tls-pdfws-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 485px;
	border: 1.5px dashed #a4bcfd;
	border-radius: 14px;
	background: rgba(238, 242, 255, .7);
	text-align: center;
	cursor: pointer;
}

.tls-pdfws-empty.is-dragging {
	border-color: var(--ws-primary);
	background: #eef2ff;
}

.tls-pdfws-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 13px;
	border: 1px solid #c7d2fe;
	border-radius: 15px;
	background: #fff;
	color: var(--ws-primary);
}

.tls-pdfws-empty-icon svg {
	width: 29px;
	height: 29px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-pdfws-empty strong,
.tls-pdfws-empty span {
	display: block;
}

.tls-pdfws-empty strong {
	color: #101828;
	font-size: 14px;
	font-weight: 700;
}

.tls-pdfws-empty span {
	max-width: 430px;
	margin-top: 6px;
	color: var(--ws-muted);
	font-size: 10.5px;
	line-height: 1.55;
}

.tls-pdfws-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
	gap: 11px;
}

.tls-pdfws-page {
	position: relative;
	min-width: 0;
	padding: 8px;
	border: 1.5px solid #e4e7ec;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(16, 24, 40, .035);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.tls-pdfws-page:hover {
	border-color: #a4bcfd;
	box-shadow: 0 8px 18px rgba(16, 24, 40, .07);
}

.tls-pdfws-page.is-selected {
	border-color: var(--ws-primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

.tls-pdfws-page.is-dragging {
	opacity: .35;
	transform: scale(.97);
}

.tls-pdfws-page.is-drop-target {
	border-color: #12b76a;
	box-shadow: 0 0 0 3px rgba(18, 183, 106, .13);
}

.tls-pdfws-page-preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: .72;
	overflow: hidden;
	border: 1px solid #eaecf0;
	border-radius: 7px;
	background: #f8fafc;
}

.tls-pdfws-page-preview canvas {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

.tls-pdfws-page.is-blank .tls-pdfws-page-preview {
	background: #fff;
}

.tls-pdfws-check {
	position: absolute;
	z-index: 2;
	top: 6px;
	left: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid #d0d5dd;
	border-radius: 7px;
	background: rgba(255, 255, 255, .94);
	color: transparent;
}

.tls-pdfws-page.is-selected .tls-pdfws-check {
	border-color: var(--ws-primary);
	background: var(--ws-primary);
	color: #fff;
}

.tls-pdfws-check svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tls-pdfws-page-number {
	position: absolute;
	z-index: 2;
	right: 6px;
	bottom: 6px;
	display: inline-flex;
	align-items: center;
	min-height: 21px;
	padding: 0 6px;
	border: 1px solid rgba(208, 213, 221, .9);
	border-radius: 6px;
	background: rgba(255, 255, 255, .94);
	color: #344054;
	font-size: 8.5px;
	font-weight: 700;
}

.tls-pdfws-page-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 7px;
	margin-top: 7px;
}

.tls-pdfws-page-meta strong {
	overflow: hidden;
	color: #344054;
	font-size: 9px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tls-pdfws-page-meta span {
	flex: 0 0 auto;
	color: var(--ws-muted);
	font-size: 8px;
	font-weight: 600;
}

.tls-pdfws-side-title {
	margin-bottom: 13px;
}

.tls-pdfws-side-title span,
.tls-pdfws-side-title strong {
	display: block;
}

.tls-pdfws-side-title span {
	color: var(--ws-primary);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.tls-pdfws-side-title strong {
	margin-top: 4px;
	color: #101828;
	font-size: 16px;
	font-weight: 700;
}

.tls-pdfws-side-section {
	padding: 13px 0;
	border-top: 1px solid #eaecf0;
}

.tls-pdfws-side-section:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.tls-pdfws-side-section h3 {
	margin: 0 0 9px;
	color: #344054;
	font-size: 10.5px;
	font-weight: 700;
}

.tls-pdfws-field {
	display: grid;
	gap: 6px;
	margin-top: 9px;
}

.tls-pdfws-field > span {
	color: #475467;
	font-size: 9px;
	font-weight: 650;
}

.tls-pdfws-field input,
.tls-pdfws-field select {
	width: 100%;
	height: 39px;
	padding: 0 10px !important;
	border: 1px solid #d0d5dd !important;
	border-radius: 8px !important;
	outline: 0 !important;
	background: #fff !important;
	color: #101828 !important;
	font-family: inherit;
	font-size: 10.5px !important;
	box-shadow: none !important;
}

.tls-pdfws-field input:focus,
.tls-pdfws-field select:focus {
	border-color: #a4bcfd !important;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .09) !important;
}

.tls-pdfws-side-actions {
	display: grid;
	gap: 7px;
}

.tls-pdfws-side-actions .tls-pdfws-button {
	width: 100%;
	height: 39px;
}

.tls-pdfws-side-actions .is-primary {
	border-color: var(--ws-primary) !important;
	background: var(--ws-primary) !important;
	color: #fff !important;
}

.tls-pdfws-side-actions .is-primary:hover {
	border-color: var(--ws-primary-dark) !important;
	background: var(--ws-primary-dark) !important;
	color: #fff !important;
}

.tls-pdfws-note {
	padding: 10px;
	border-left: 3px solid var(--ws-primary);
	border-radius: 0 8px 8px 0;
	background: #f8fafc;
	color: #475467;
	font-size: 9.5px;
	line-height: 1.55;
}

.tls-pdfws-progress {
	display: none;
	margin-top: 10px;
	padding: 10px;
	border: 1px solid #c7d2fe;
	border-radius: 9px;
	background: #eef2ff;
}

.tls-pdfws-progress.is-active {
	display: block;
}

.tls-pdfws-progress-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
	color: #344054;
	font-size: 9px;
	font-weight: 650;
}

.tls-pdfws-progress-track {
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: #dbeafe;
}

.tls-pdfws-progress-track span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--ws-primary);
	transition: width .18s ease;
}

.tls-pdfws-output {
	display: none;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid #abefc6;
	border-radius: 10px;
	background: #ecfdf3;
}

.tls-pdfws-output.is-visible {
	display: block;
}

.tls-pdfws-output strong,
.tls-pdfws-output span {
	display: block;
}

.tls-pdfws-output strong {
	color: #05603a;
	font-size: 10.5px;
	font-weight: 700;
}

.tls-pdfws-output span {
	margin-top: 4px;
	color: #027a48;
	font-size: 9px;
	line-height: 1.45;
}

.tls-pdfws-output-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 9px;
}

.tls-pdfws-output-actions .tls-pdfws-button {
	height: 36px;
}

.tls-pdfws-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(16, 24, 40, .78);
	backdrop-filter: blur(4px);
}

.tls-pdfws-modal.is-open {
	display: flex;
}

.tls-pdfws-modal-dialog {
	display: flex;
	flex-direction: column;
	width: min(100%, 1050px);
	height: min(92vh, 780px);
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.tls-pdfws-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	border-bottom: 1px solid #e4e7ec;
}

.tls-pdfws-modal-head strong {
	color: #101828;
	font-size: 12px;
	font-weight: 700;
}

.tls-pdfws-modal-body {
	flex: 1;
	min-height: 0;
	padding: 12px;
	background: #f2f4f7;
}

.tls-pdfws-modal-body iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 9px;
	background: #fff;
}

.tls-pdfws-preview-canvas {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: auto;
}

.tls-pdfws-preview-canvas canvas {
	max-width: 100%;
	height: auto;
	background: #fff;
	box-shadow: 0 10px 35px rgba(16, 24, 40, .18);
}

@media (max-width: 980px) {
	.tls-pdfws-layout {
		grid-template-columns: 1fr;
	}

	.tls-pdfws-side {
		position: static;
	}
}

@media (max-width: 700px) {
	.tls-pdfws-topbar,
	.tls-pdfws-add {
		align-items: flex-start;
		flex-direction: column;
	}

	.tls-pdfws-statbar {
		justify-content: flex-start;
	}

	.tls-pdfws-upload {
		width: 100%;
	}

	.tls-pdfws-stage {
		min-height: 430px;
		padding: 10px;
	}

	.tls-pdfws-empty {
		min-height: 405px;
	}

	.tls-pdfws-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.tls-pdfws-toolbar {
		padding: 9px;
	}

	.tls-pdfws-button span {
		display: none;
	}

	.tls-pdfws-side {
		padding: 15px;
	}

	.tls-pdfws-modal {
		padding: 8px;
	}

	.tls-pdfws-modal-dialog {
		height: 94vh;
	}
}


.tls-pdfws-output-actions a.tls-pdfws-button {
	text-decoration: none !important;
	line-height: 1 !important;
}

.tls-pdfws-output-actions a.tls-pdfws-button:visited {
	color: #344054 !important;
}

.tls-pdfws-output-actions a.tls-pdfws-button.is-primary:visited {
	color: #fff !important;
}
