/* =========================================================
   ID Card Pro - Modern Corporate Design (Pixel Perfect Blue Theme)
   Dimensions: Standard CR-80 (340px x 540px)
   ========================================================= */

:root {
    --card-w: 340px;
    --card-h: 540px;
    --corp-blue: #004b93;
    --corp-dark: #002d5c;
    --corp-yellow: #ffc700;
    --corp-red: #dc2626;
}

/* Badge Wrapper */
.id-badge-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px auto;
}

/* Base Card Face */
.id-card-face {
    width: var(--card-w) !important;
    height: var(--card-h) !important;
    min-width: var(--card-w) !important;
    min-height: var(--card-h) !important;
    max-width: var(--card-w) !important;
    max-height: var(--card-h) !important;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 75, 147, 0.22);
    position: relative;
    overflow: hidden !important;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* =========================================================
   FRONT SIDE DESIGN (CENTERED PHOTO & BLUE NAME BADGE)
   ========================================================= */
.corp-front {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    position: relative;
    padding: 0;
}

/* Header Area - Centered Logo Banner */
.corp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 0;
    min-height: 56px;
    z-index: 2;
    position: relative;
}

.corp-logo-banner {
    height: 56px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 285px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

/* Hero Section: Centered Circular Photo overlapping the Blue Name Badge */
.corp-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 2px 18px 4px;
}

.corp-photo-center {
    width: 122px;
    height: 122px;
    border-radius: 50% !important;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden !important;
    z-index: 4;
    background: #ffffff !important;
    margin-bottom: -32px;
}

.corp-photo-center img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block;
}

.corp-name-badge {
    background: var(--card-primary, var(--corp-blue));
    width: 100%;
    border-radius: 16px;
    padding: 38px 12px 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 75, 147, 0.22);
    box-sizing: border-box;
    z-index: 2;
}

.corp-member-name {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 2px;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.03em;
    word-break: break-word;
}

.corp-designation {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffc700;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Details Section with Blue Circle Glyph Icons - Strictly Left Aligned & Perfectly Centered */
.corp-details-list {
    padding: 0 16px;
    margin: 8px 0 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left !important;
}

.corp-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left !important;
}

.corp-detail-row.is-multiline {
    align-items: flex-start;
}

.corp-icon-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--card-primary, var(--corp-blue));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.corp-detail-row.is-multiline .corp-icon-circle {
    margin-top: 1px;
}

.corp-icon-circle svg {
    width: 13px;
    height: 13px;
    fill: #ffffff;
    display: block;
}

.corp-detail-text {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.82rem;
    line-height: 1.34;
    font-weight: 700;
    color: #0f172a;
    text-align: left !important;
    flex: 1;
}

.corp-detail-text strong {
    font-weight: 900;
    color: #000000;
    letter-spacing: 0.01em;
}

/* Dual Signatures - Clean & Prominent */
.corp-signatures-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 6px 18px 8px;
    margin-top: auto;
}

.corp-sign-box {
    text-align: center;
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.corp-sign-box img {
    height: 40px !important;
    max-width: 125px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    margin: 0 auto;
    display: block;
}

.corp-sign-placeholder {
    height: 40px;
    width: 100%;
}

.corp-sign-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0f172a;
    border-top: 1.5px solid #1e293b;
    display: block;
    width: 100%;
    margin-top: 2px;
    padding-top: 2px;
    text-align: center;
    letter-spacing: 0.01em;
}

/* Bottom Footer with Address & Phone/Email (Large Font, No Website) */
.corp-footer {
    background: var(--card-primary, var(--corp-blue));
    color: #ffffff;
    padding: 8px 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    border-radius: 0 0 16px 16px;
}

.corp-footer-address {
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.corp-footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
}

.corp-footer-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.corp-footer-meta-item svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
}



/* =========================================================
   Print Optimization (@media print)
   ========================================================= */
@media print {
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    nav, footer, .no-print, .btn, .alert {
        display: none !important;
    }

    .id-badge-wrapper {
        margin: 0 auto !important;
        gap: 20px !important;
        page-break-inside: avoid;
    }

    .id-card-face {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .print-sheet-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        page-break-after: always;
        padding: 10mm !important;
    }
}
