/**
 * Owner live preview — mirrors templates/pdf-template.php (Dompdf).
 * Default: white page, #111111 text, gold #D4AF37 borders, light table fills.
 */

.sds-live-preview .sds-kodi-page {
	--sds-page-bg: #ffffff;
	--sds-header-bg: #ffffff;
	--sds-footer-bg: #1a1a1a;
	--sds-accent: #FF6B00;
	--sds-brand-blue: #0056b3;
	--sds-text: #111111;
	--sds-heading: #ffffff;
	--sds-table-header: #f9f9f9;
	--sds-table-cell: #ffffff;
	--sds-table-alt: #f4f4f4;
	background: #ffffff;
	color: #111111;
	border: 1px solid var(--sds-accent);
	box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
	display: flex;
	flex-direction: column;
	min-height: 560px;
	font-family: "DejaVu Serif", Georgia, "Times New Roman", serif;
	font-size: 11pt;
	line-height: 1.45;
}

.sds-live-preview .sds-kodi-page[data-font="dejavu-sans"] {
	font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
}

.sds-live-preview .sds-kodi-page[data-font="dejavu-mono"] {
	font-family: "DejaVu Sans Mono", "Courier New", monospace;
}

.sds-live-preview .sds-kodi-header {
	padding: 6px 18px 4px;
	height: auto;
	background: transparent;
	color: #111111;
	border: none;
	border-bottom: none;
}

.sds-live-preview .sds-kodi-page.has-original-header .sds-kodi-header,
.sds-live-preview .sds-kodi-page.has-tenant-logo .sds-kodi-header {
	background: transparent;
	color: #111111;
	border-bottom: none;
}

.sds-live-preview .sds-kodi-page.is-empty-header .sds-kodi-header {
	display: none !important;
}

.sds-live-preview .sds-kodi-original-header,
.sds-live-preview .kodi-original-header-text {
	color: inherit;
	font-size: 9pt;
	line-height: 1.3;
}

.sds-live-preview .sds-kodi-logo-wrap {
	text-align: right;
	background: transparent;
	border: none;
}

.sds-live-preview .sds-kodi-logo-img,
.sds-live-preview .kodi-header-asset {
	max-height: 50px;
	height: auto;
	width: auto;
	max-width: 240px;
	display: inline-block;
	margin: 0;
	padding: 0;
	vertical-align: top;
	background: transparent;
	border: none;
}

.sds-live-preview .kodi-wave-table,
.sds-live-preview .kodi-wave-table td {
	border: none;
	background: transparent;
	width: auto;
	padding: 0 2px 0 0;
}

.sds-live-preview .sds-kodi-company {
	font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
	font-size: 14pt;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #111111;
	line-height: 1.1;
}

.sds-live-preview .sds-kodi-logo-rule {
	height: 4px;
	background: var(--sds-brand-blue);
	margin-bottom: 6px;
}

.sds-live-preview .sds-kodi-credit {
	font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
	font-size: 8pt;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #111111;
	margin-top: 2px;
}

.sds-live-preview .sds-kodi-tagline {
	font-size: 8pt;
	font-style: italic;
	color: #e8e8e8;
	margin-top: 1px;
}

.sds-live-preview .sds-kodi-un {
	font-style: normal;
	font-weight: 700;
	color: var(--sds-brand-blue);
}

.sds-live-preview .sds-kodi-body {
	padding: 16px 18px 20px;
	flex: 1;
	background: #ffffff;
	color: #111111;
}

.sds-live-preview .sds-preview-title {
	font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
	font-size: 16pt;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--sds-accent);
	color: #111111;
}

.sds-live-preview .sds-preview-clauses,
.sds-live-preview .kodi-clause-body {
	color: #111111;
	background: #ffffff;
}

.sds-live-preview .sds-preview-clauses table,
.sds-live-preview table.kodi-inner,
.sds-live-preview table.kodi-milestone,
.sds-live-preview table.kodi-table,
.sds-live-preview .milestone-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
	background: #ffffff;
	color: #111111;
}

.sds-live-preview .sds-preview-clauses th,
.sds-live-preview .sds-preview-clauses td,
.sds-live-preview table.kodi-inner th,
.sds-live-preview table.kodi-inner td,
.sds-live-preview table.kodi-milestone th,
.sds-live-preview table.kodi-milestone td,
.sds-live-preview table.kodi-table th,
.sds-live-preview table.kodi-table td,
.sds-live-preview .milestone-table th,
.sds-live-preview .milestone-table td {
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
	font-size: 10pt;
	color: #111111;
}

.sds-live-preview .sds-preview-clauses table[style] th,
.sds-live-preview .sds-preview-clauses table[style] td,
.sds-live-preview .sds-preview-clauses td[style],
.sds-live-preview .sds-preview-clauses th[style] {
	background: transparent;
	color: inherit;
}

.sds-live-preview .sds-preview-clauses,
.sds-live-preview .sds-preview-clauses p,
.sds-live-preview .sds-preview-clauses li,
.sds-live-preview .sds-preview-clauses td,
.sds-live-preview .clause-block {
	color: #111111;
	background: #ffffff;
}

.sds-live-preview .sds-preview-clauses strong,
.sds-live-preview .sds-preview-clauses b {
	font-weight: 700;
}

.sds-live-preview .sds-preview-clauses ul,
.sds-live-preview .kodi-bullets {
	margin: 0.35em 0 0.35em 1.2em;
	padding: 0;
	color: #111111;
}

.sds-live-preview .sds-preview-blank,
.sds-live-preview .sds-blank-fill {
	display: inline-block;
	min-width: 6.5em;
	border-bottom: 1px solid var(--sds-accent);
	letter-spacing: 0.12em;
	color: #111111;
	background: transparent;
}

.sds-live-preview .kodi-inline-img,
.sds-live-preview .sds-preview-clauses img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 6px 0;
}

.sds-live-preview .sds-kodi-footer {
	margin-top: auto;
	border-top: 3px solid var(--sds-accent);
	padding: 10px 16px 12px;
	font-family: "DejaVu Sans", Arial, Helvetica, sans-serif;
	font-size: 10px;
	line-height: 1.4;
	color: #f3f3f3;
	text-align: center;
	background: var(--sds-footer-bg);
}

.sds-live-preview .sds-confidential-badge {
	display: inline-block;
	margin: 0 0 6px;
	padding: 2px 8px;
	border: 1px solid var(--sds-accent);
	color: var(--sds-accent);
	background: transparent;
}

.sds-pdf-modal-dialog {
	background: #ffffff;
	border: 1px solid #ff6600;
}

.sds-pdf-modal iframe {
	background: #ffffff;
}

.sds-layout-rtl .sds-live-preview {
	order: -1;
}

.sds-layout-rtl .sds-kodi-header,
.sds-layout-rtl .sds-preview-clauses {
	text-align: right;
}

.sds-rtl .sds-live-preview,
.sds-rtl .sds-kodi-page {
	direction: rtl;
	text-align: right;
	font-family: "DejaVu Sans", Arial, "Noto Sans Hebrew", sans-serif;
}

.sds-rtl .sds-kodi-header,
.sds-rtl .sds-kodi-body,
.sds-rtl .sds-kodi-company,
.sds-rtl .sds-kodi-credit,
.sds-rtl .sds-kodi-tagline,
.sds-rtl .sds-preview-clauses,
.sds-rtl .kodi-clause-body {
	text-align: right;
	direction: rtl;
}

.sds-rtl .sds-kodi-header {
	border-right: 4px solid #d4af37;
}

.sds-rtl .kodi-clause-body {
	border-right: 3px solid #d4af37;
	padding-right: 10px;
}

.sds-rtl .sds-preview-clauses table th,
.sds-rtl .sds-preview-clauses table td {
	text-align: right;
}

.sds-rtl .sds-kodi-logo-img,
.sds-rtl .kodi-header-asset {
	margin: 0 0 4px 8px;
}
