/**
 * DocsWallet attestation preview layout.
 * Matches Digital Attestation Result document style (image).
 */

body.docswallet-preview-page {
	margin: 0;
	padding: 0;
	background: #f5f7fa;
	min-height: 100vh;
	font: 400 14px/20px Roboto, "Helvetica Neue", sans-serif;
}

.docswallet-preview-wrap {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	/* padding: 2rem 1rem; */
	box-sizing: border-box;
}

.docswallet-preview-loading,
.docswallet-error {
	padding: 2rem;
	text-align: center;
	color: #374151;
}

.docswallet-error {
	color: #b91c1c;
}

.docswallet-error a {
	color: #2563eb;
	text-decoration: underline;
}

/* White document container: subtle box-shadow, no outer border */
.docswallet-attestation {
    display: flex;
    max-width: 900px;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    position: relative;
    padding: 35px 40px 35px 0px;
}

/* Vertical black line + sidebar: "Powered by VFS Global" (muted grey, rotated 90° up) */
.docswallet-sidebar {
    width: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    box-sizing: border-box;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(-180deg);
    font-size: 20px;
    font-weight: 500;
    color: #49afcd;
    letter-spacing: 0.02em;
}

/* Main content area */
.docswallet-main {
    flex: 1;
    padding: 10px 0px 10px 10px;
    box-sizing: border-box;
    border: 1px solid #000000;
}

/* Header: two logos left and right */
.docswallet-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.docswallet-logo.docswallet-logo-ministry{
	width: 45%;
	text-align: right;
}
.docswallet-logo.docswallet-logo-oman{
	width: 45%;
}

.docswallet-logo-ar {
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.docswallet-logo-en {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.docswallet-logo-oman .docswallet-logo-img {
	width: 70%;
}

.docswallet-logo-ministry .docswallet-logo-img {
	width: 50%;
}

/* Central title: Arabic and English on separate lines */
.docswallet-title-wrap {
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	text-align: center;
}

.docswallet-title,
.docswallet-title-en {
	font-size: 2rem;
	font-weight: 700;
	color: #49afcd;
	font-family: inherit;
}

.docswallet-title-en {
	margin-bottom: 0;
}

/* Section titles: black, bold */
.docswallet-section {
    margin-bottom: 1.25rem;
    width: 80%;
    padding: 11px 40px;
}

.docswallet-section h2 {
    font-size: 16px;
    font-weight: 700;
    color: #aeaeae;
    margin: 0;
    text-transform: none;
    font-family: inherit;
    border: 1px solid #aeaeae;
    width: 195px;
    padding: 4px 0px 4px 4px;
}

/* Key-value rows with horizontal black lines between rows */
.docswallet-dl {
	display: grid;
	grid-template-columns: 200px 1fr;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.docswallet-dl dt {
	font-weight: 500;
	color: #111;
	margin: 0;
	padding: 0.4rem 0;
	border: 1px solid;
	padding-left: 5px;
	font-size: 16px;
}

.docswallet-dl dd {
	margin: 0;
	padding: 0.4rem 0;
	border: 1px solid #111;
	color: #1b6394;
	padding-left: 5px;
	font-size: 16px;
	font-weight: 500;
}

.docswallet-dl dd a {
	color: #1b6394;
	text-decoration: none;
}

.docswallet-dl dd a:hover {
	text-decoration: none;
}

/* Verification Status "Approved" in green */
.docswallet-status-approved {
	color: #1b6394;
	font-weight: 500;
}

@media (max-width: 640px) {
	.docswallet-dl {
		grid-template-columns: 1fr;
	}
	.docswallet-main {
		padding: 1.25rem 1.5rem;
	}
}

/* Front-end: View Document popup (same page, Close button only) */
.docswallet-doc-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #e8eaed;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: center;
	padding: 0 20px;
	box-sizing: border-box;
}

/* Same width as .docswallet-attestation (900px), full height – no top/bottom space */
.docswallet-doc-popup-inner {
	position: relative;
	width: 100%;
	max-width: 900px;
	height: 100vh;
	max-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
}

/* Close button inside the popup content area (top-right of PDF area) */
.docswallet-doc-popup-close {
    position: absolute;
    top: 10px;
    right: -135px;
    z-index: 10;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #49AFCD;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.docswallet-doc-popup-close:hover {
	background: #3d9bb5;
	color: #fff;
}

.docswallet-doc-popup-content {
	position: relative;
	flex: 1;
	width: 100%;
	min-height: 0;
	overflow: auto;
	text-align: center;
	background: #fff;
	box-sizing: border-box;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.docswallet-doc-popup-content img {
	max-width: 100%;
	height: auto;
	display: block;
}

.docswallet-doc-popup-iframe {
	width: 100%;
	height: 100%;
	min-height: 100%;
	border: 0;
	display: block;
	box-sizing: border-box;
}

.docswallet-doc-popup-loading,
.docswallet-doc-popup-error {
	color: #374151;
	padding: 2rem;
	text-align: center;
}

.docswallet-doc-popup-error a {
	color: #49afcd;
}
