.ms-fqc-qr {
    display: inline-block;
    text-align: center;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}
.ms-fqc-qr img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}
.ms-fqc-body {
    margin: 0;
    padding: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f4f4;
}
.ms-fqc-card {
    max-width: 520px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.ms-fqc-details {
    margin: 20px 0;
}
.ms-fqc-details dt {
    font-weight: 700;
    margin-top: 10px;
}
.ms-fqc-details dd {
    margin: 2px 0 8px;
}
.ms-fqc-button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
}
.ms-fqc-success,
.ms-fqc-warning,
.ms-fqc-error {
    padding: 12px;
    border-radius: 8px;
    margin: 14px 0;
}
.ms-fqc-success { background: #e7f8ed; }
.ms-fqc-warning { background: #fff4d8; }
.ms-fqc-error { background: #fde8e8; }
.ms-fqc-table {
    width: 100%;
    border-collapse: collapse;
}
.ms-fqc-table th,
.ms-fqc-table td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.ms-fqc-dashboard {
    overflow-x: auto;
    color: #134C7A;
    font-size: clamp(16px, 1.2vw, 22px);
    line-height: 1.45;
}
.ms-fqc-dashboard h2 {
    color: #134C7A;
    font-size: clamp(28px, 2.4vw, 44px);
    line-height: 1.15;
}
.ms-fqc-screen-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.ms-fqc-screen-toolbar h2 { margin: 0; }
.ms-fqc-dashboard .ms-fqc-screen-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #134C7A;
    box-shadow: none;
    opacity: .7;
}
.ms-fqc-dashboard .ms-fqc-screen-toggle:hover,
.ms-fqc-dashboard .ms-fqc-screen-toggle:focus-visible { background: #e8f0f6; opacity: 1; }
.ms-fqc-screen-toggle svg { display: block; flex-shrink: 0; }
.ms-fqc-screen-toggle .ms-fqc-screen-icon-exit { display: none; }
.ms-fqc-screen-toggle[aria-pressed="true"] .ms-fqc-screen-icon-enter { display: none; }
.ms-fqc-screen-toggle[aria-pressed="true"] .ms-fqc-screen-icon-exit { display: block; }
.ms-fqc-screen-toggle[hidden] { display: none; }
.ms-fqc-screen-toggle:focus-visible,
.ms-fqc-screen-table-wrap:focus-visible { outline: 3px solid #134C7A; outline-offset: 3px; }
.ms-fqc-screen-message { display: block; font-size: 14px; margin-bottom: 8px; }
.ms-fqc-screen-message:empty { display: none; }
.ms-fqc-screen-table-wrap { overflow-x: auto; }
.ms-fqc-screen-dialog {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: #fff;
}
.ms-fqc-screen-dialog::backdrop { background: #fff; }
.ms-fqc-dashboard.is-event-screen {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: clamp(16px, 2.5vw, 48px);
    background: #fff;
    color: #134C7A;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(18px, 1.8vw, 34px);
    overflow: hidden;
}
.ms-fqc-dashboard.is-event-screen .ms-fqc-screen-toolbar,
.ms-fqc-dashboard.is-event-screen .ms-fqc-dashboard-status { flex-shrink: 0; }
.ms-fqc-dashboard.is-event-screen h2 { font-size: clamp(28px, 2.8vw, 54px); }
.ms-fqc-dashboard.is-event-screen .ms-fqc-screen-table-wrap {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
.ms-fqc-dashboard.is-event-screen .ms-fqc-table th { position: sticky; top: 0; z-index: 1; }
.ms-fqc-dashboard.is-event-screen .ms-fqc-table { margin: 0; }
.ms-fqc-dashboard .ms-fqc-table th,
.ms-fqc-dashboard .ms-fqc-table td {
    color: #134C7A;
    padding: clamp(12px, 1.15vw, 22px) clamp(10px, 1vw, 20px);
}
.ms-fqc-dashboard .ms-fqc-table th {
    background: #e8f0f6;
    border-bottom-color: #b8ccdc;
    font-size: .82em;
    font-weight: 800;
    letter-spacing: .035em;
}
.ms-fqc-dashboard .ms-fqc-table td:first-child {
    font-weight: 650;
}
.ms-fqc-dashboard .ms-fqc-table td:nth-child(2) {
    position: relative;
    font-weight: 750;
}
.ms-fqc-dashboard .ms-fqc-table td:last-child {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ms-fqc-dashboard-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #f3f6f8;
}
.ms-fqc-dashboard-updated {
    color: #134C7A;
    font-size: .75em;
    opacity: .78;
}
.ms-fqc-dashboard-count {
    color: #134C7A;
    font-size: clamp(18px, 1.5vw, 27px);
}
.ms-fqc-table tr.is-checked-in {
    background: #effaf2;
}
.ms-fqc-table tr.is-new-checkin td {
    animation: ms-fqc-new-checkin-glow 2.4s ease-out;
}
.ms-fqc-new-badge {
    display: inline-flex;
    align-items: center;
    margin-left: .7em;
    padding: .18em .55em;
    border-radius: 999px;
    background: #16803c;
    color: #fff;
    font-size: .62em;
    font-weight: 800;
    line-height: 1.35;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(22, 128, 60, .22);
    animation: ms-fqc-new-badge-pop .65s cubic-bezier(.2, 1.5, .45, 1);
}
.ms-fqc-mini-confetti {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.ms-fqc-mini-confetti i {
    position: absolute;
    top: -4px;
    left: -3px;
    width: 6px;
    height: 9px;
    border-radius: 2px;
    opacity: 0;
    animation: ms-fqc-confetti-pop 1.25s ease-out var(--confetti-delay) forwards;
}
@keyframes ms-fqc-new-checkin-glow {
    0% { background: #fff1aa; }
    22% { background: #c7f1d2; }
    58% { background: #def6e5; }
    100% { background: transparent; }
}
@keyframes ms-fqc-new-badge-pop {
    0% { opacity: 0; transform: scale(.35) rotate(-8deg); }
    70% { opacity: 1; transform: scale(1.12) rotate(2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes ms-fqc-confetti-pop {
    0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.4); }
    12% { opacity: 1; }
    78% { opacity: 1; }
    100% { opacity: 0; transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-r)) scale(.9); }
}
.ms-fqc-table tr.is-updated {
    animation: ms-fqc-row-updated 1.5s ease;
}
@keyframes ms-fqc-row-updated {
    0%, 45% { background: #bff0ca; }
    100% { background: #effaf2; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-fqc-table tr.is-new-checkin td,
    .ms-fqc-new-badge,
    .ms-fqc-mini-confetti i {
        animation: none;
    }
    .ms-fqc-mini-confetti {
        display: none;
    }
}

.ms-fqc-scanner {
    max-width: 760px;
    margin: 0 auto;
}
.ms-fqc-muted {
    opacity: .75;
}
.ms-fqc-reader-wrap {
    max-width: 520px;
    margin: 18px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
#ms-fqc-reader {
    width: 100%;
}
.ms-fqc-actions,
.ms-fqc-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0;
}
.ms-fqc-button-secondary {
    background: #555;
}
.ms-fqc-scan-result {
    min-height: 24px;
    margin: 16px 0;
}
.ms-fqc-scan-feedback {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .72);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}
.ms-fqc-scan-feedback.is-visible {
    opacity: 1;
    visibility: visible;
}
.ms-fqc-scan-feedback-card {
    width: min(100%, 420px);
    padding: 30px 24px 24px;
    border-radius: 20px;
    background: #fff;
    color: #172033;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    text-align: center;
    transform: scale(.9);
    transition: transform .18s ease;
}
.ms-fqc-scan-feedback.is-visible .ms-fqc-scan-feedback-card {
    transform: scale(1);
}
.ms-fqc-scan-feedback-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #16803c;
    color: #fff;
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
}
.ms-fqc-scan-feedback-message {
    font-size: 22px;
    line-height: 1.4;
}
.ms-fqc-scan-feedback-message strong {
    display: block;
    margin-bottom: 6px;
    font-size: 28px;
}
.ms-fqc-scan-feedback-hint {
    display: block;
    margin-top: 20px;
    color: #667085;
    font-size: 13px;
}
.ms-fqc-scan-feedback-warning .ms-fqc-scan-feedback-icon {
    background: #b77900;
}
.ms-fqc-scan-feedback-error .ms-fqc-scan-feedback-icon {
    background: #c62828;
}
.ms-fqc-manual {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
}
.ms-fqc-manual-heading,
.ms-fqc-unchecked-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ms-fqc-manual-heading h3 {
    margin: 0 0 12px;
}
.ms-fqc-list-link {
    appearance: none;
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: #134c7a;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.ms-fqc-list-link:hover,
.ms-fqc-list-link:focus-visible {
    color: #0b3556;
}
.ms-fqc-unchecked-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #d8e0e6;
}
.ms-fqc-unchecked-list-heading {
    color: #134c7a;
    margin-bottom: 8px;
}
.ms-fqc-unchecked-list-heading span {
    font-size: 14px;
}
.ms-fqc-search-row input {
    min-width: 260px;
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}
.ms-fqc-search-result {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px 0;
    background: #fff;
}
.ms-fqc-search-result small {
    color: #52606d;
}
.ms-fqc-button-remove {
    border-color: #b42318;
    background: #fff;
    color: #b42318;
}
.ms-fqc-button-remove:hover,
.ms-fqc-button-remove:focus-visible {
    background: #fff1f0;
    color: #8f1c13;
}
@media (max-width: 600px) {
    .ms-fqc-dashboard-status {
        align-items: flex-start;
        flex-direction: column;
    }
    .ms-fqc-search-result {
        align-items: flex-start;
        flex-direction: column;
    }
    .ms-fqc-search-row input,
    .ms-fqc-search-row button,
    .ms-fqc-actions button {
        width: 100%;
    }
}
.ms-fqc-camera-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 12px 0;
    flex-wrap: wrap;
}
.ms-fqc-camera-row label {
    font-weight: 700;
}
.ms-fqc-camera-row select {
    min-width: 260px;
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}
@media (max-width: 600px) {
    .ms-fqc-camera-row select {
        width: 100%;
        min-width: 0;
    }
}

.ms-fqc-qr-list{display:flex;flex-wrap:wrap;gap:18px;margin:18px 0;}

.ms-fqc-qr-title {
    margin: 0 0 6px;
}

.ms-fqc-qr-intro {
    margin: 0 0 18px;
}

.ms-fqc-pass {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 18px;
    background: #fff;
    text-align: center;
    page-break-inside: avoid;
}

.ms-fqc-pass-info {
    margin-bottom: 12px;
}

.ms-fqc-pass-name {
    display: block;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 4px;
}

.ms-fqc-pass-meta,
.ms-fqc-pass-choice {
    font-size: 14px;
    line-height: 1.35;
    color: #4b5563;
}

.ms-fqc-pass-choice {
    font-weight: 600;
}
