/* กว้างกว่า .md-page เริ่มต้น (980px) เพื่อให้ hero / ตัวกรอง / ตารางใช้พื้นที่แนวนอนมากขึ้น */
        .registrants-list-page {
            max-width: min(100%, 1400px);
            width: 100%;
        }
        .card { border: none; border-radius: var(--md-radius); box-shadow: var(--md-shadow); }
        .small { color: var(--md-muted); }
        .btn { border-radius: 0.5rem; font-weight: 600; }
        .btn-primary { background: var(--md-blue); border-color: var(--md-blue); }
        .btn-outline-primary { border-color: var(--md-blue); color: var(--md-blue); }
        .btn-outline-primary:hover { background: var(--md-blue); border-color: var(--md-blue); }/* ป้ายประเภท / สถานะชำระ — สไตล์เดียวกัน (กล่องเหมือน secretariat sec-dt-box) */
        .sec-dt-box {
            display: inline-block;
            max-width: 100%;
            padding: 0.35rem 0.65rem;
            font-size: 0.78rem;
            font-weight: 600;
            line-height: 1.3;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
            vertical-align: middle;
        }
        .sec-dt-box--pay {
            white-space: nowrap;
        }
        .sec-dt-box--reg-pre {
            background: #ede9fe;
            border-color: #c4b5fd;
            color: #4c1d95;
        }
        .sec-dt-box--reg-att {
            background: #e0f2fe;
            border-color: #7dd3fc;
            color: #0369a1;
        }
        .sec-dt-box--reg-other {
            background: #f1f5f9;
            border-color: #cbd5e1;
            color: #475569;
        }
        .sec-dt-box--pay-paid {
            background: #ecfdf5;
            border-color: #6ee7b7;
            color: #065f46;
        }
        .sec-dt-box--pay-pending {
            background: #fffbeb;
            border-color: #fcd34d;
            color: #b45309;
        }
        .sec-dt-box--pay-other {
            background: #f1f5f9;
            border-color: #cbd5e1;
            color: #475569;
        }
        .sec-dt-box--pcat-public {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #334155;
        }
        .sec-dt-box--pcat-nu {
            background: #eff6ff;
            border-color: #93c5fd;
            color: #1e40af;
        }
        .sec-dt-box--pcat-student {
            background: #fdf4ff;
            border-color: #e879f9;
            color: #86198f;
        }
        .reg-filter-panel {
            animation: regPanelIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
        }
        .sec-queue-table-wrap {
            animation: regTableWrapIn 0.5s ease 0.08s both;
        }
        @keyframes regPanelIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes regTableWrapIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .sec-queue-table tbody tr {
            animation: regRowIn 0.38s ease backwards;
        }
        .sec-queue-table tbody tr:nth-child(1) { animation-delay: 0.04s; }
        .sec-queue-table tbody tr:nth-child(2) { animation-delay: 0.07s; }
        .sec-queue-table tbody tr:nth-child(3) { animation-delay: 0.1s; }
        .sec-queue-table tbody tr:nth-child(4) { animation-delay: 0.13s; }
        .sec-queue-table tbody tr:nth-child(5) { animation-delay: 0.16s; }
        .sec-queue-table tbody tr:nth-child(6) { animation-delay: 0.19s; }
        .sec-queue-table tbody tr:nth-child(7) { animation-delay: 0.22s; }
        .sec-queue-table tbody tr:nth-child(8) { animation-delay: 0.25s; }
        .sec-queue-table tbody tr:nth-child(n+9) { animation-delay: 0.28s; }
        @keyframes regRowIn {
            from { opacity: 0; transform: translateX(-6px); }
            to { opacity: 1; transform: translateX(0); }
        }
        /* ตารางรายชื่อ — สไตล์เดียวกับ secretariat.php (คิว abstract) */
        .sec-queue-table-wrap {
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            background: #fff;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
            overflow: hidden;
        }
        .sec-dt-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem 1rem;
            padding: 0.85rem 1.1rem;
            background: rgba(232, 234, 237, 1);
            border-bottom: 1px solid #e5e7eb;
            box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
        }
        .sec-dt-summary {
            font-size: 0.875rem;
            color: rgba(71, 85, 105, 1);
        }
        .sec-dt-summary strong {
            color: #111827;
            font-weight: 700;
        }
        .sec-dt-toolbar-actions {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        .sec-dt-icon-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.25rem;
            height: 2.25rem;
            padding: 0;
            border: 1px solid #e5e7eb;
            border-radius: 999px;
            background: #fff;
            color: #4b5563;
            cursor: pointer;
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
        }
        .sec-dt-icon-btn:hover {
            background: #f3f4f6;
            color: #111827;
            border-color: #d1d5db;
        }
        .sec-dt-icon-btn:focus-visible {
            outline: 2px solid #2563eb;
            outline-offset: 2px;
        }
        @media print {
            .sec-dt-toolbar-actions {
                display: none !important;
            }
            .sec-queue-table-wrap {
                box-shadow: none;
                border: 1px solid #ccc;
            }
        }
        .sec-queue-table {
            --sec-queue-row-hover: rgba(243, 244, 246, 0.92);
            margin-bottom: 0 !important;
            width: 100%;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 0;
        }
        /* สัดส่วนคอลัมน์ — คอลัมน์แรก = ไอคอนผู้ลงทะเบียน (แทน #) */
        .sec-queue-table col.sec-col-icon { width: 3.25rem; }
        .sec-queue-table col.sec-col-ref { width: 5.75rem; }
        .sec-queue-table col.sec-col-owner { width: 16%; }
        .sec-queue-table col.sec-col-title { width: 21%; }
        .sec-queue-table col.sec-col-type { width: 11%; }
        .sec-queue-table col.sec-col-pres { width: 12%; }
        .sec-queue-table col.sec-col-pcat { width: 14%; }
        .sec-queue-table col.sec-col-phone { width: 10%; }
        .sec-queue-table col.sec-col-status { width: 12%; }
        .sec-queue-table thead {
            background: #f9fafb;
        }
        .sec-queue-table thead th {
            padding: 0.72rem 0.6rem;
            font-size: 0.6875rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #9ca3af;
            background: transparent !important;
            border: none;
            border-bottom: 1px solid #e5e7eb;
            vertical-align: middle;
        }
        .sec-queue-table thead th .sec-dt-th-inner {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            white-space: nowrap;
            color: rgba(115, 117, 120, 1);
            font-size: 12px;
        }
        .sec-queue-table thead th .sec-dt-sort-ico {
            font-size: 0.65rem;
            opacity: 0.45;
            font-weight: 400;
        }
        .sec-queue-table tbody td {
            padding: 0.85rem 0.6rem;
            border-bottom: 1px solid #f3f4f6;
            vertical-align: middle;
            background: #fff;
            transition: background-color 0.15s ease;
        }
        .sec-queue-table tbody tr:last-child td {
            border-bottom: none;
        }
        .sec-queue-table tbody tr:hover td {
            background-color: var(--sec-queue-row-hover);
        }
        .sec-queue-table thead tr > th.sec-dt-th-icon:first-child {
            padding-left: 0.75rem;
            padding-right: 0.35rem;
        }
        .sec-queue-table tbody tr > td.sec-dt-avatar-cell:first-child {
            padding-left: 0.75rem;
            padding-right: 0.35rem;
        }
        .sec-queue-table .sec-dt-th-ref,
        .sec-queue-table .sec-dt-ref-cell {
            padding-left: 0.35rem;
            padding-right: 0.2rem;
            vertical-align: middle;
        }
        .sec-queue-table .sec-dt-ref-cell {
            font-size: 0.78rem;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
            color: #334155;
            white-space: nowrap;
        }
        .sec-queue-table .sec-dt-th-icon {
            text-align: center;
            padding-left: 0.35rem;
            padding-right: 0.35rem;
        }
        .sec-queue-table .sec-dt-avatar-cell {
            text-align: center;
            vertical-align: middle;
            padding-left: 0.35rem;
            padding-right: 0.35rem;
        }
        .sec-queue-table .sec-dt-avatar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2.35rem;
            height: 2.35rem;
            border-radius: 50%;
            background: #e5e7eb;
            color: #64748b;
            font-size: 1rem;
        }
        .sec-queue-table .sec-dt-th-owner,
        .sec-queue-table .sec-dt-owner-cell {
            padding-left: 0.25rem;
            padding-right: 0.35rem;
        }
        .sec-queue-table .sec-dt-owner-cell .fw-semibold {
            font-size: 0.875rem;
        }
        .sec-queue-table .sec-dt-title-cell {
            padding-left: 0.3rem;
            padding-right: 0.55rem;
            word-break: break-word;
        }
        .sec-queue-table .sec-dt-th-title {
            padding-left: 0.3rem;
            padding-right: 0.55rem;
        }
        .sec-queue-table .sec-dt-type-cell,
        .sec-queue-table .sec-dt-th-type {
            padding-left: 0.55rem;
            padding-right: 0.55rem;
            text-align: center;
            vertical-align: middle;
        }
        .sec-queue-table .sec-dt-type-cell .sec-dt-box--type {
            white-space: normal;
            text-align: center;
            max-width: 100%;
            box-sizing: border-box;
        }
        .sec-queue-table .sec-dt-pres-cell,
        .sec-queue-table .sec-dt-th-pres {
            padding-left: 0.55rem;
            padding-right: 0.95rem;
            text-align: right;
            vertical-align: middle;
        }
        .sec-queue-table .sec-dt-pcat-cell,
        .sec-queue-table .sec-dt-th-pcat {
            padding-left: 0.45rem;
            padding-right: 0.45rem;
            text-align: center;
            vertical-align: middle;
        }
        .sec-queue-table .sec-dt-pcat-cell .sec-dt-box--pcat {
            white-space: normal;
            text-align: center;
            max-width: 100%;
            box-sizing: border-box;
        }
        .sec-queue-table .sec-dt-phone-cell,
        .sec-queue-table .sec-dt-th-phone {
            padding-left: 0.6rem;
            padding-right: 0.6rem;
            text-align: center;
            vertical-align: middle;
        }
        .sec-queue-table .sec-dt-phone-cell {
            font-size: 0.8125rem;
            color: #475569;
        }
        .sec-queue-table .sec-dt-status-cell,
        .sec-queue-table .sec-dt-th-status {
            padding-left: 0.5rem;
            padding-right: 0.75rem;
            text-align: right;
            vertical-align: middle;
        }
        .sec-queue-table .sec-dt-th-status .sec-dt-th-inner {
            justify-content: flex-end;
            width: 100%;
        }
        .sec-queue-table .sec-dt-status-cell .sec-dt-box {
            text-align: right;
        }
        @media (max-width: 767.98px) {
            .sec-dt-toolbar {
                padding: 0.75rem 0.85rem;
            }
        }
        @media (prefers-reduced-motion: reduce) {
            .reg-filter-panel, .sec-queue-table-wrap, .sec-queue-table tbody tr {
                animation: none !important;
            }
        }
        .reg-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.85rem;
            margin-bottom: 1rem;
        }
        @media (max-width: 767.98px) {
            .reg-stats { grid-template-columns: 1fr; }
        }
        a.reg-stat-card {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border-radius: 14px;
            padding: 1.1rem 1.2rem;
            overflow: hidden;
            text-decoration: none;
            color: #fff;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            border: 2px solid transparent;
        }
        a.reg-stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
            color: #fff;
        }
        a.reg-stat-card.is-active {
            border-color: #fff;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.45);
        }
        a.reg-stat-card:focus-visible {
            outline: 2px solid #2563eb;
            outline-offset: 2px;
        }
        .reg-stat-card__icon {
            flex-shrink: 0;
            font-size: 2.1rem;
            line-height: 1;
            color: #fff;
            opacity: 0.92;
        }
        .reg-stat-card__icon i {
            color: #fff;
        }
        .reg-stat-card__label {
            flex: 1;
            min-width: 0;
            font-size: 0.78rem;
            font-weight: 600;
            line-height: 1.35;
            color: #fff;
            opacity: 0.95;
        }
        .reg-stat-card__num {
            flex-shrink: 0;
            margin: 0;
            font-size: 1.8rem;
            font-weight: 800;
            line-height: 1;
            color: #fff;
        }
        .reg-stat--total { background: linear-gradient(135deg, #0f172a, #334155); }
        .reg-stat--presenter { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
        .reg-stat--attendee { background: linear-gradient(135deg, #0369a1, #0ea5e9); }