.exam-pass-popup.swal2-popup { border-radius: 12px; padding: 26px 18px 18px; color: #173f42; background: #fff; max-width: 100%; }
.exam-pass-popup .swal2-close { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; font-size: 26px; color: #526e6c; }
.exam-pass-popup .exam-pass-modal-body { margin: 12px 0 0; padding: 0; text-align: left; overflow-x: hidden; }
.exam-pass-workspace { color: #173f42; font-size: 14px; line-height: 1.6; text-align: left; letter-spacing: 0; }
.exam-pass-workspace *, .exam-admission-card * { box-sizing: border-box; }
.exam-pass-workspace h2 { font-size: 22px; font-weight: 700; margin: 0; }
.exam-pass-workspace h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.exam-pass-workspace h4 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.exam-pass-workspace p { margin: 6px 0; }
.exam-pass-workspace button, .exam-pass-workspace input, .exam-pass-workspace select, .exam-pass-workspace textarea { font: inherit; }
.exam-pass-button, .exam-pass-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #c3d8d5; background: #f3f8f7; color: #155456; border-radius: 6px; padding: 9px 12px; min-height: 42px; cursor: pointer; font-weight: 600; }
.exam-pass-icon-button { width: 42px; height: 42px; padding: 0; flex-shrink: 0; }
.exam-pass-button.is-primary { background: #10565a; color: #fff; border-color: #10565a; }
.exam-pass-button:hover, .exam-pass-icon-button:hover { background: #dceee9; color: #123b40; }
.exam-pass-button.is-primary:hover { background: #0b4448; color: #fff; }
.exam-pass-workspace button:disabled { opacity: .55; cursor: not-allowed; }
.exam-pass-workspace button:focus-visible, .exam-pass-workspace summary:focus-visible { outline: 3px solid #4ca4d0; outline-offset: 3px; }
.exam-pass-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-weight: 600; margin-bottom: 12px; }
.exam-pass-field :is(input,select,textarea) { width: 100%; min-width: 0; border: 1px solid #bdceca; border-radius: 6px; padding: 10px; background: #fff; color: #153b40; min-height: 44px; font-size: 16px; font-weight: 400; }
.exam-pass-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 14px; }
.exam-pass-settings-layout { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.4fr); gap: 24px; }
.exam-pass-period-list { border-right: 1px solid #d9e5e2; padding-right: 20px; }
.exam-pass-period-list > header, .exam-pass-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.exam-pass-period-item { padding: 14px 0; border-bottom: 1px solid #dce5e3; }
.exam-pass-period-item.is-editing { border-left: 3px solid #148273; padding-left: 10px; }
.exam-pass-period-item > strong, .exam-pass-period-item > small { display: block; overflow-wrap: anywhere; }
.exam-pass-period-item > small { color: #56726e; margin: 5px 0 10px; }
.exam-pass-period-item > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.exam-pass-form-note { color: #516d69; font-size: 13px; }
.exam-pass-form-note.is-warning { color: #915510; background: #fff4d7; padding: 10px; }
.exam-pass-error { color: #ac3447; }
.exam-pass-empty { padding: 35px 12px; text-align: center; color: #58706f; }
.exam-pass-empty > i { font-size: 28px; color: #30777c; margin-bottom: 10px; }
.exam-pass-muted { color: #58706f; font-size: 13px; }
.exam-pass-toolbar { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(100px,.65fr) minmax(140px,1fr); gap: 12px; }
.exam-pass-manager-summary { display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 12px 0 18px; border-bottom: 1px solid #d9e5e2; color: #536e6a; font-size: 13px; }
.exam-pass-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.exam-pass-table th { color: #3b5b5d; font-size: 12px; padding: 14px 6px; border-bottom: 1px solid #cbdcd8; text-align: center; }
.exam-pass-table th:first-child { width: 29%; text-align: left; }
.exam-pass-table th:last-child { width: 22%; }
.exam-pass-table td { padding: 12px 6px; border-bottom: 1px solid #e0e9e6; text-align: center; overflow-wrap: anywhere; }
.exam-pass-table td:first-child { text-align: left; }
.exam-pass-table td small { display: block; color: #66807c; font-size: 12px; }
.exam-pass-table .exam-pass-button { font-size: 12px; width: 100%; padding: 9px 5px; }
.exam-pass-status { display: inline-flex; align-items: baseline; gap: 7px; font-weight: 600; font-size: 13px; }
.exam-pass-status.is-pass, .exam-pass-roster-status.is-pass { color: #147157; }
.exam-pass-status.is-review, .exam-pass-roster-status.is-review { color: #92560f; }
.exam-pass-roster-status.is-review { background: #fff1d2; border-color: #e9cb8e; }
.exam-pass-status.is-upcoming { color: #526f86; }
.exam-pass-card-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 0 18px; }
.exam-pass-card-popup .exam-pass-card-actions { padding-bottom: 8px; }
.exam-pass-refresh-button { min-width: 152px; }
.exam-pass-freshness { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 12px; color: #376c61; font-size: 12px; line-height: 1.5; }
.exam-pass-freshness > div { display: flex; justify-content: center; gap: 3px 8px; flex-wrap: wrap; min-width: 0; }
.exam-pass-freshness time { color: #173f42; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-pass-freshness.is-error { padding: 8px 10px; border-radius: 6px; color: #a32e42; background: #fff0f2; overflow-wrap: anywhere; }
.exam-pass-freshness.is-error time { color: #743744; }
.exam-admission-card { width: 100%; max-width: 420px; margin: 0 auto; border: 1px solid #d2dfdd; border-radius: 8px; overflow: hidden; background: #fff; color: #163c40; box-shadow: 0 5px 18px #153e4010; }
.exam-card-school { display: flex; gap: 12px; align-items: center; background: #10565a; color: #fff; padding: 20px; }
.exam-card-school img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; flex-shrink: 0; }
.exam-card-school strong { display: block; font-size: 15px; font-weight: 700; }
.exam-card-school small { display: block; font-size: 11px; color: #dfefeb; margin-top: 4px; }
.exam-card-main { position: relative; isolation: isolate; overflow: hidden; padding: 22px; }
.exam-card-watermark { position: absolute; top: 52%; left: 50%; z-index: 1; width: 90%; color: rgba(22,163,74,.2); font-size: 68px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; transform: translate(-50%,-50%) rotate(-16deg); pointer-events: none; user-select: none; }
.exam-card-watermark.is-review { color: rgba(190,90,15,.24); font-size: 48px; }
.exam-card-watermark.is-upcoming { color: rgba(37,99,180,.22); }
.exam-card-main > :is(.exam-card-title,.exam-card-person,.exam-card-range), .exam-card-attendance > * { position: relative; z-index: 2; }
.exam-admission-card[aria-busy="true"] .exam-card-watermark, .exam-admission-card[data-stale="true"] .exam-card-watermark { display: none; }
.exam-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.exam-card-title h2 { font-size: 23px; }
.exam-card-title p { color: #537471; font-size: 12px; }
.exam-card-title > i { padding-top: 9px; color: #477c7a; }
.exam-card-person { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 16px; align-items: center; margin-bottom: 22px; }
.exam-pass-photo { display: block; width: 96px; height: 128px; object-fit: cover; border: 1px solid #d5e1dc; border-radius: 6px; background: #eef5f2; }
.exam-pass-photo-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #728c85; }
.exam-pass-photo-empty > i { font-size: 28px; }
.exam-card-person h3 { font-size: 19px; margin: 4px 0 10px; overflow-wrap: anywhere; }
.exam-card-person small { color: #6b807c; font-size: 12px; }
.exam-card-person p { font-size: 13px; color: #536e6a; }
.exam-card-person b { color: #153e40; font-weight: 600; }
.exam-card-attendance { background: #eaf6ef; padding: 15px; border-left: 3px solid #7fc4a4; }
.exam-card-attendance.is-review { background: #fff5df; border-left-color: #e6b359; }
.exam-card-attendance.is-upcoming { background: #edf3f7; border-left-color: #9ab6c9; }
.exam-card-attendance > p, .exam-card-attendance > small { font-size: 12px; }
.exam-card-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 14px 0 8px; }
.exam-card-counts span { display: block; font-size: 11px; color: #5b726a; }
.exam-card-counts strong { font-size: 25px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-card-advisor-note { padding-top: 8px; border-top: 1px solid #ead8b1; color: #865314; overflow-wrap: anywhere; }
.exam-card-review-reminder { display: none; }
.exam-card-range { font-size: 11px; color: #58706c; padding-top: 12px; }
.exam-card-footer { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 12px; padding: 18px 22px; border-top: 1px dashed #d1dfda; align-items: center; }
.exam-card-footer strong { font-size: 14px; }
.exam-card-footer p { font-size: 11px; color: #4c6964; margin: 6px 0; }
.exam-card-footer small { font-size: 10px; color: #597770; overflow-wrap: anywhere; }
.exam-card-qr img { width: 112px; height: 112px; image-rendering: pixelated; }
.exam-card-qr small { display: block; text-align: center; margin-top: 4px; }
.exam-card-disclaimer { background: #f0f6f3; text-align: center; color: #5e7971; padding: 10px 15px; font-size: 11px; }
.exam-pass-history { margin-top: 20px; border-top: 1px solid #d9e5e1; padding-top: 14px; }
.exam-pass-mobile-details { display: none; }
.exam-pass-history summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exam-pass-history-row { display: flex; gap: 12px; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #dce5e1; overflow-wrap: anywhere; }
.exam-pass-history-row strong { font-size: 13px; }
.exam-pass-history-row p, .exam-pass-history-row small { font-size: 12px; color: #58706c; }
.exam-pass-history-row.is-revoked { background: #f7f7f7; color: #66716c; }
.exam-pass-date-list { font-size: 12px; color: #58706c; }
.exam-pass-confirm { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 13px; }
.exam-pass-confirm input { width: 19px; height: 19px; flex-shrink: 0; accent-color: #167866; }
#student-exam-pass-status { display: block; font-size: 11px; line-height: 1.45; font-weight: 500; margin-top: 4px; white-space: normal; }
#student-exam-pass-button .student-quick-menu-icon { position: relative; overflow: visible; }
#student-exam-pass-check { position: absolute; top: -4px; right: -4px; z-index: 2; display: grid; place-items: center; box-sizing: border-box; width: 19px; height: 19px; border: 2px solid #e4fff2; border-radius: 50%; background: #14804a; color: #fff; font-size: 10px; line-height: 1; pointer-events: none; }
#student-exam-pass-check[hidden] { display: none; }
#student-exam-pass-status[data-status="pass"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
#student-exam-pass-status[data-status="review"] { color: #975708; }
#student-exam-pass-status[data-status="pass"] { color: #15715b; }
body.klassin-ui.klassin-desktop-dashboard #student-exam-pass-status { color: #d3e6e1; }
body.klassin-ui.klassin-desktop-dashboard #student-exam-pass-status[data-status="review"] { color: #ffda92; }
body.klassin-ui.klassin-desktop-dashboard #student-exam-pass-status[data-status="pass"] { color: #a5ecd0; }
@media (min-width: 768px) and (max-width: 1024px) {
    .exam-pass-toolbar { grid-template-columns: minmax(0,1.3fr) minmax(90px,.7fr) minmax(120px,1fr); }
    .exam-pass-table .exam-pass-button { gap: 4px; }
}
@media (max-width: 767px) {
    .exam-pass-settings-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .exam-pass-period-list { border-right: 0; border-bottom: 1px solid #d9e5e2; padding: 0 0 18px; }
    .exam-pass-toolbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .exam-pass-toolbar > :last-child { grid-column: 1/-1; }
    .exam-pass-table, .exam-pass-table tbody { display: block; }
    .exam-pass-table thead { display: none; }
    .exam-pass-table tr { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 14px 0; gap: 8px; border-bottom: 1px solid #d7e4df; }
    .exam-pass-table td { display: block; border: 0; padding: 0; }
    .exam-pass-table td:first-child, .exam-pass-table td:last-child { grid-column: 1/-1; }
    .exam-pass-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: #58736c; }
    .exam-pass-popup.swal2-popup { padding: 28px 12px 16px; }
}
@media (max-width: 390px) {
    .exam-card-main { padding: 16px; }
    .exam-card-school { padding: 16px; gap: 9px; }
    .exam-card-school strong { font-size: 13px; }
    .exam-card-person { grid-template-columns: 76px minmax(0,1fr); gap: 12px; }
    .exam-pass-photo { width: 76px; height: 102px; }
    .exam-card-person h3 { font-size: 17px; }
    .exam-card-footer { padding: 16px; grid-template-columns: minmax(0,1fr) 96px; }
    .exam-card-qr img { width: 96px; height: 96px; }
    .exam-pass-form-grid { grid-template-columns: minmax(0,1fr); }
}
@media screen and (max-width: 767px) {
    .exam-pass-card-container.swal2-container { padding: 8px; }
    .exam-pass-card-popup.swal2-popup { padding: 8px 10px 10px; }
    .exam-pass-card-popup .swal2-close { top: 10px; right: 8px; }
    .exam-pass-card-popup .exam-pass-modal-body { margin: 0; }
    .exam-pass-card-popup .exam-pass-workspace { font-size: 12px; line-height: 1.45; }
    .exam-pass-card-popup .exam-pass-card-actions { justify-content: flex-end; gap: 6px; padding: 0 36px 8px 0; }
    .exam-pass-card-popup .exam-pass-card-actions .exam-pass-button { padding: 7px 10px; }
    .exam-pass-card-popup .exam-pass-refresh-button { min-width: 142px; }
    .exam-pass-card-popup .exam-pass-freshness { margin-bottom: 8px; font-size: 11px; gap: 6px; }
    .exam-pass-card-popup .exam-card-school { padding: 9px 12px; gap: 9px; }
    .exam-pass-card-popup .exam-card-school img { width: 32px; height: 32px; }
    .exam-pass-card-popup .exam-card-school strong { font-size: 13px; }
    .exam-pass-card-popup .exam-card-school small { display: none; }
    .exam-pass-card-popup .exam-card-main { padding: 10px 12px; }
    .exam-pass-card-popup .exam-card-watermark { font-size: 50px; top: 54%; }
    .exam-pass-card-popup .exam-card-title { margin-bottom: 8px; gap: 8px; }
    .exam-pass-card-popup .exam-card-title h2 { font-size: 18px; line-height: 1.4; }
    .exam-pass-card-popup .exam-card-title p { font-size: 11px; margin: 2px 0 0; }
    .exam-pass-card-popup .exam-card-title > i { padding-top: 5px; }
    .exam-pass-card-popup .exam-card-person { grid-template-columns: 64px minmax(0,1fr); gap: 10px; margin-bottom: 8px; }
    .exam-pass-card-popup .exam-pass-photo { width: 64px; height: 86px; }
    .exam-pass-card-popup .exam-card-person h3 { font-size: 15px; line-height: 1.4; margin: 0 0 4px; }
    .exam-pass-card-popup .exam-card-person > div > small { display: none; }
    .exam-pass-card-popup .exam-card-person p { font-size: 12px; margin: 0; }
    .exam-pass-card-popup .exam-card-attendance { padding: 8px 10px; }
    .exam-pass-card-popup .exam-pass-status { font-size: 12px; gap: 5px; }
    .exam-pass-card-popup .exam-card-counts { margin: 6px 0 4px; gap: 6px; }
    .exam-pass-card-popup .exam-card-counts strong { font-size: 21px; line-height: 1.3; }
    .exam-pass-card-popup .exam-card-attendance > p { font-size: 11px; margin: 4px 0 0; }
    .exam-pass-card-popup .exam-card-advisor-note { padding-top: 5px; }
    .exam-pass-card-popup :is(.exam-card-advisor-note,.exam-card-makeup-summary,.exam-card-date-note,.exam-card-disclaimer) { display: none; }
    .exam-pass-card-popup .exam-card-review-reminder { display: block; padding-top: 4px; border-top: 1px solid #ead8b1; color: #865314; }
    .exam-pass-card-popup .exam-card-range { font-size: 10px; padding-top: 0; margin: 6px 0 0; }
    .exam-pass-card-popup .exam-card-footer { grid-template-columns: minmax(0,1fr) 88px; padding: 8px 12px; gap: 8px; }
    .exam-pass-card-popup .exam-card-footer > div > strong { display: none; }
    .exam-pass-card-popup .exam-card-footer p { margin: 0 0 4px; font-size: 10px; }
    .exam-pass-card-popup .exam-card-qr img { display: block; width: 88px; height: 88px; }
    .exam-pass-card-popup .exam-card-qr img[hidden] { display: none; }
    .exam-pass-card-popup .exam-card-qr small { margin-top: 2px; font-size: 9px; }
    .exam-pass-card-popup .exam-pass-history { margin-top: 8px; padding-top: 0; }
    .exam-pass-card-popup .exam-pass-history summary { min-height: 40px; }
    .exam-pass-card-popup .exam-pass-mobile-details { display: block; color: #58706c; font-size: 12px; }
}
@media screen and (max-width: 767px) and (max-height: 640px) {
    .exam-pass-card-popup.swal2-popup { padding-bottom: 8px; }
    .exam-pass-card-popup .exam-pass-card-actions { padding-bottom: 4px; }
    .exam-pass-card-popup .exam-pass-freshness { margin-bottom: 4px; }
    .exam-pass-card-popup .exam-card-school { padding-block: 7px; }
    .exam-pass-card-popup .exam-card-main { padding-block: 8px; }
    .exam-pass-card-popup .exam-card-title { margin-bottom: 6px; }
    .exam-pass-card-popup .exam-card-person { grid-template-columns: 56px minmax(0,1fr); margin-bottom: 6px; }
    .exam-pass-card-popup .exam-pass-photo { width: 56px; height: 74px; }
    .exam-pass-card-popup .exam-card-attendance { padding-block: 6px; }
    .exam-pass-card-popup .exam-card-range { display: none; }
    .exam-pass-card-popup .exam-card-footer { grid-template-columns: minmax(0,1fr) 80px; padding-block: 6px; }
    .exam-pass-card-popup .exam-card-qr img { width: 80px; height: 80px; }
    .exam-pass-card-popup .exam-pass-history { margin-top: 4px; }
}
@media screen and (max-width: 360px) {
    .exam-pass-card-popup .exam-card-watermark { font-size: 42px; }
    .exam-pass-card-popup .exam-pass-card-actions [data-print] { width: 42px; padding: 0; flex-shrink: 0; }
    .exam-pass-card-popup .exam-pass-print-label { display: none; }
}
@media print {
    body.exam-pass-printing > :not(.swal2-container) { display: none !important; }
    body.exam-pass-printing .swal2-container { display: block !important; position: static !important; padding: 0 !important; background: white !important; overflow: visible !important; }
    body.exam-pass-printing .exam-pass-popup { display: block !important; width: 105mm !important; max-width: 100% !important; padding: 0 !important; margin: 0 auto !important; box-shadow: none !important; }
    body.exam-pass-printing :is(.swal2-close,.exam-pass-card-actions,.exam-pass-freshness,.exam-pass-history) { display: none !important; }
    body.exam-pass-printing .exam-pass-modal-body { margin: 0 !important; overflow: visible !important; }
    body.exam-pass-printing .exam-admission-card { break-inside: avoid; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
