/* LC LMS – printable documents (ID card, receipt, admission form). Used on screen and in the print window. */
/* PVC Card: 85.6mm × 54mm = ~323px × 204px at 96dpi, scaled up 1.5x for screen */
.lc-id-card {
    width: 323px; height: 204px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    font-family: 'Segoe UI', sans-serif;
    position: relative;
    flex-shrink: 0;
}
/* FRONT */
.lc-idc-front {
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #1e40af 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.lc-idc-front::before {
    content: '';
    position: absolute;
    width: 180px; height: 180px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    top: -60px; right: -60px;
}
.lc-idc-front::after {
    content: '';
    position: absolute;
    width: 120px; height: 120px;
    background: rgba(6,182,212,.1);
    border-radius: 50%;
    bottom: -30px; left: -30px;
}
.lc-idc-header {
    padding: 7px 10px 5px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    position: relative; z-index: 1;
}
.lc-idc-inst-logo {
    width: 28px; height: 28px;
    background: linear-gradient(135deg,#06b6d4,#3b82f6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.lc-idc-inst-name {
    font-size: 7.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .2px;
}
.lc-idc-inst-sub {
    font-size: 6px;
    color: rgba(255,255,255,.65);
    letter-spacing: .2px;
}
.lc-idc-body {
    flex: 1;
    display: flex;
    gap: 10px;
    padding: 8px 10px;
    position: relative; z-index: 1;
}
.lc-idc-photo-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.lc-idc-photo {
    width: 62px; height: 75px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.4);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    display: block;
}
.lc-idc-photo-placeholder {
    width: 62px; height: 75px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255,255,255,.3);
}
.lc-idc-id-label {
    background: rgba(6,182,212,.3);
    color: #a5f3fc;
    font-size: 6px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: center;
}
.lc-idc-info-col { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.lc-idc-name { font-size: 12px; font-weight: 900; color: #fff; letter-spacing: -.2px; line-height: 1.2; margin-bottom: 2px; }
.lc-idc-enrol { font-size: 7.5px; color: #67e8f9; font-weight: 700; letter-spacing: .3px; margin-bottom: 5px; }
.lc-idc-detail-row { display: flex; gap: 4px; align-items: baseline; }
.lc-idc-dl { font-size: 6.5px; color: rgba(255,255,255,.55); font-weight: 700; text-transform: uppercase; width: 34px; flex-shrink: 0; }
.lc-idc-dv { font-size: 7.5px; color: rgba(255,255,255,.9); font-weight: 600; }
.lc-idc-footer {
    background: linear-gradient(90deg,#06b6d4,#4f46e5);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; z-index: 1;
}
.lc-idc-validity { font-size: 6.5px; color: rgba(255,255,255,.85); font-weight: 700; }
.lc-idc-validity strong { color: #fff; font-size: 7px; }
.lc-idc-valid-chip {
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 6px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
/* BACK */
.lc-idc-back {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.lc-idc-back-header {
    background: linear-gradient(135deg,#1e1b4b,#4f46e5);
    color: #fff;
    padding: 7px 10px;
    text-align: center;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.lc-idc-back-body { flex: 1; padding: 8px 10px; }
.lc-idc-notice-title {
    font-size: 7.5px;
    font-weight: 800;
    color: #1e1b4b;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
    margin-bottom: 5px;
}
.lc-idc-notice-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.lc-idc-notice-list li {
    font-size: 6.5px;
    color: #374151;
    line-height: 1.5;
    display: flex;
    gap: 4px;
}
.lc-idc-notice-list li::before { content: '•'; color: #4f46e5; font-weight: 900; flex-shrink: 0; }
.lc-idc-back-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 6px 10px;
}
.lc-idc-addr { font-size: 6.5px; color: #374151; font-weight: 600; line-height: 1.6; }
.lc-idc-addr strong { color: #1e1b4b; display: block; font-size: 7px; margin-bottom: 2px; }

@media print {
    .lc-id-card { box-shadow: none; }
}

.lc-idc-inst-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.lc-idc-inst-logo.has-img { background: #fff; padding: 1px; }
.lc-idc-back-body { overflow: hidden; }
.lc-doc-print-wrap { padding: 14px; font-family: 'Segoe UI', Arial, sans-serif; color: #1f2937; }
.lc-doc-print-cards { display: flex; flex-wrap: wrap; gap: 14px; }
.lc-doc-print-cards .lc-id-card { box-shadow: none; border: 1px solid #cbd5e1; page-break-inside: avoid; break-inside: avoid; }

/* ── Receipt ───────────────────────────────────────────── */
.lc-rcpt { max-width: 640px; margin: 0 auto; border: 2px solid #1e1b4b; border-radius: 10px; overflow: hidden; background: #fff; font-family: 'Segoe UI', Arial, sans-serif; color: #1f2937; }
.lc-rcpt-head { background: linear-gradient(135deg,#1e1b4b,#4f46e5); color: #fff; padding: 14px 18px; display: flex; gap: 12px; align-items: center; }
.lc-rcpt-logo { width: 46px; height: 46px; border-radius: 10px; background: #fff; color: #1e1b4b; font-weight: 900; font-size: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.lc-rcpt-logo img { width: 100%; height: 100%; object-fit: contain; }
.lc-rcpt-name { font-size: 16px; font-weight: 800; line-height: 1.25; }
.lc-rcpt-sub { font-size: 10.5px; opacity: .8; margin-top: 2px; }
.lc-rcpt-title { background: #eef2ff; color: #3730a3; text-align: center; font-weight: 800; letter-spacing: 1px; font-size: 12px; padding: 6px; text-transform: uppercase; }
.lc-rcpt-body { padding: 16px 18px; }
.lc-rcpt-meta { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.lc-rcpt-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lc-rcpt-tbl td { border: 1px solid #e5e7eb; padding: 7px 10px; vertical-align: top; }
.lc-rcpt-tbl td.k { background: #f8fafc; font-weight: 600; color: #475569; width: 36%; }
.lc-rcpt-amt { margin: 14px 0 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.lc-rcpt-amt div { flex: 1; min-width: 120px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; text-align: center; }
.lc-rcpt-amt small { display: block; font-size: 10px; color: #64748b; text-transform: uppercase; font-weight: 700; letter-spacing: .4px; }
.lc-rcpt-amt b { font-size: 16px; }
.lc-rcpt-amt .paid b { color: #059669; }
.lc-rcpt-amt .due b { color: #dc2626; }
.lc-rcpt-note { font-size: 11px; color: #64748b; margin-top: 8px; }
.lc-rcpt-sign { display: flex; justify-content: space-between; margin-top: 34px; font-size: 11px; color: #475569; }
.lc-rcpt-sign span { border-top: 1px solid #94a3b8; padding-top: 4px; min-width: 130px; text-align: center; }
.lc-rcpt-foot { background: #f8fafc; border-top: 1px solid #e5e7eb; text-align: center; font-size: 10.5px; color: #64748b; padding: 8px 12px; }
.lc-rcpt-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.lc-rcpt-badge.paid { background: #d1fae5; color: #065f46; }
.lc-rcpt-badge.partial { background: #fef3c7; color: #92400e; }
.lc-rcpt-badge.pending { background: #fee2e2; color: #991b1b; }

/* ── Admission form ────────────────────────────────────── */
.lc-adm { max-width: 780px; margin: 0 auto; border: 2px solid #1e1b4b; background: #fff; font-family: 'Segoe UI', Arial, sans-serif; color: #1f2937; }
.lc-adm-head { background: linear-gradient(135deg,#1e1b4b,#4f46e5); color: #fff; padding: 14px 18px; display: flex; gap: 14px; align-items: center; }
.lc-adm-head .lc-rcpt-logo { width: 54px; height: 54px; }
.lc-adm-head h2 { font-size: 17px; margin: 0; font-weight: 800; }
.lc-adm-head p { font-size: 10.5px; margin: 2px 0 0; opacity: .85; }
.lc-adm-bar { background: #eef2ff; text-align: center; font-weight: 800; color: #3730a3; padding: 6px; font-size: 12.5px; letter-spacing: 1px; }
.lc-adm-top { display: flex; gap: 14px; padding: 14px 18px 4px; align-items: flex-start; }
.lc-adm-top .nums { flex: 1; font-size: 12.5px; line-height: 1.9; }
.lc-adm-top .nums b { color: #1e1b4b; }
.lc-adm-photo { width: 96px; height: 116px; border: 1px solid #94a3b8; object-fit: cover; display: block; }
.lc-adm-photo-ph { width: 96px; height: 116px; border: 1px dashed #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #94a3b8; text-align: center; }
.lc-adm-tbl { width: calc(100% - 36px); margin: 8px 18px; border-collapse: collapse; font-size: 12px; }
.lc-adm-tbl td { border: 1px solid #e5e7eb; padding: 6px 10px; vertical-align: top; }
.lc-adm-tbl td.k { background: #f8fafc; font-weight: 600; color: #475569; width: 28%; }
.lc-adm-tbl td.sec { background: #1e1b4b; color: #fff; font-weight: 700; letter-spacing: .5px; font-size: 11.5px; }
.lc-adm-sign { display: flex; justify-content: space-between; padding: 22px 18px 16px; gap: 20px; font-size: 11px; color: #475569; align-items: flex-end; }
.lc-adm-sign .box { text-align: center; min-width: 150px; }
.lc-adm-sign img { max-height: 46px; max-width: 150px; display: block; margin: 0 auto 4px; }
.lc-adm-sign .line { border-top: 1px solid #94a3b8; padding-top: 4px; }
.lc-adm-foot { background: #f8fafc; border-top: 1px solid #e5e7eb; text-align: center; font-size: 10.5px; color: #64748b; padding: 8px; }

@media print {
    .lc-id-card { box-shadow: none; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .lc-rcpt, .lc-adm { page-break-inside: avoid; }
}
