/* Auto-collected dashboard page styles. */

/* Suppress native browser password-reveal icons (e.g. Edge's ::-ms-reveal) so only our custom eye toggle shows. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

/* Source: dashboard/dashboard_admin/acceptance_requests.php */
/* !important on background/color throughout this admin button set guards against
   leaked unscoped ".btn{background:#213b52;color:#fff}" rules from generated
   invoice/receipt templates, and against "body.home-page a{color:...}" — both
   defined elsewhere in this file and both otherwise winning the cascade against
   these single-class selectors. See the "Global guard" comment further down for
   the same fix applied to Bootstrap's .btn-outline-* variants. */
.btn-admin {
        background: #213b52 !important;
        border-color: #213b52;
        color: #fff !important;
        border-radius: 999px;
        padding: 0.35rem 1.1rem;
    }
    .btn-admin:hover,
    .btn-admin:focus {
        background: #1a2f42 !important;
        border-color: #1a2f42;
        color: #fff !important;
    }
    .btn-admin-outline {
        border-radius: 999px;
        border: 1px solid #213b52;
        color: #213b52 !important;
        background: transparent !important;
        padding: 0.35rem 1.1rem;
    }
    .btn-admin-outline:hover,
    .btn-admin-outline:focus {
        background: #213b52 !important;
        color: #fff !important;
    }
    .btn-admin-blue {
        background: #1f6feb !important;
        border: 1px solid #213b52;
        color: #fff !important;
        border-radius: 999px !important;
        padding: 0.35rem 1.1rem !important;
        font-weight: 600;
    }
    .btn-admin-blue:hover,
    .btn-admin-blue:focus {
        background: #0b5ed7 !important;
        border-color: #083a88;
        color: #fff !important;
    }
    /* !important on background/color here guards against the leaked unscoped
       ".btn{background:#213b52;color:#fff}" rules from generated invoice/receipt
       templates elsewhere in this file — see the "Global guard" comment further
       down for the same fix applied to Bootstrap's .btn-outline-* variants. */
    .btn-admin-success {
        background: #1a7f37 !important;
        border-color: #1a7f37;
        color: #fff !important;
        border-radius: 999px;
        padding: 0.35rem 1.1rem;
    }
    .btn-admin-success:hover,
    .btn-admin-success:focus {
        background: #146c2e !important;
        border-color: #146c2e;
        color: #fff !important;
    }
    .btn-admin-warning {
        background: #b7791f !important;
        border-color: #b7791f;
        color: #fff !important;
        border-radius: 999px;
        padding: 0.35rem 1.1rem;
    }
    .btn-admin-warning:hover,
    .btn-admin-warning:focus {
        background: #96620f !important;
        border-color: #96620f;
        color: #fff !important;
    }
    .btn-admin-danger {
        background: #b02a2a !important;
        border-color: #b02a2a;
        color: #fff !important;
        border-radius: 999px;
        padding: 0.35rem 1.1rem;
    }
    .btn-admin-danger:hover,
    .btn-admin-danger:focus {
        background: #8e2121 !important;
        border-color: #8e2121;
        color: #fff !important;
    }
    .btn-admin-secondary {
        background: #5a6b7b !important;
        border-color: #5a6b7b;
        color: #fff !important;
        border-radius: 999px;
        padding: 0.35rem 1.1rem;
    }
    .btn-admin-secondary:hover,
    .btn-admin-secondary:focus {
        background: #46545f !important;
        border-color: #46545f;
        color: #fff !important;
    }
    .btn-admin-success:disabled,
    .btn-admin-warning:disabled,
    .btn-admin-danger:disabled,
    .btn-admin-secondary:disabled,
    .btn-admin:disabled,
    .btn-admin-outline:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }
    .btn-pill-disabled {
        border-radius: 999px;
        padding: 0.35rem 1.1rem;
    }
    .accept-action-row {
        display: flex;
        align-items: flex-end;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
.accept-action-row .btn {
        width: auto !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
.acceptance-requests-page .alert {
        border-radius: 12px;
        border-width: 1px;
    }
.accreq-bulk-card {
        border: 1px solid #d9e3ef;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 10px 28px rgba(25, 52, 84, 0.05);
    }
.accreq-bulk-card > .card-header {
        padding: 1rem 1.25rem;
        background: #f4f8fd;
        color: #17314d;
        font-size: 0.98rem;
        font-weight: 900;
        border-bottom: 1px solid #e2ebf3;
    }
.accreq-bulk-card > .card-body {
        padding: 1.2rem 1.25rem 1.15rem;
        background: #fff;
    }
.accreq-bulk-form {
        display: grid;
        gap: 1rem;
    }
.accreq-toolbar-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
        align-items: center;
    }
.accreq-toolbar-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem;
        align-items: center;
    }
.accreq-toolbar-label {
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #61788e;
        margin-right: 0.1rem;
    }
.accreq-bulk-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) auto;
        gap: 1rem;
        align-items: end;
    }
.accreq-upload-block {
        min-width: 0;
    }
.accreq-bulk-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;
        align-items: center;
        justify-content: flex-start;
    }
.accreq-form-label {
        display: block;
        margin-bottom: 0.2rem;
        font-size: 0.8rem;
        font-weight: 800;
        color: #213b52;
    }
.accreq-form-note {
        margin-bottom: 0.4rem;
        font-size: 0.76rem;
        color: #70849a;
        line-height: 1.35;
    }
.accreq-list {
        display: grid;
        gap: 0.9rem;
    }
.accreq-request-card {
        border: 1px solid #d9e3ef;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 28px rgba(25, 52, 84, 0.05);
    }
.accreq-request-header {
        margin: 0;
    }
.accreq-request-toggle {
        width: 100%;
        border: 0;
        background: linear-gradient(180deg, #f9fbfe 0%, #f2f7fc 100%);
        color: #17314d;
        padding: 1rem 1.1rem;
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        text-align: left;
        font: inherit;
        font-weight: 800;
        box-shadow: none;
    }
.accreq-request-toggle:hover,
.accreq-request-toggle:focus {
        background: linear-gradient(180deg, #f3f8fd 0%, #eaf2fb 100%);
        color: #102c47;
        text-decoration: none;
        outline: 0;
    }
.accreq-request-toggle::after {
        content: "+";
        margin-left: auto;
        flex-shrink: 0;
        color: #698096;
        font-size: 1.2rem;
        font-weight: 900;
        line-height: 1;
    }
.accreq-request-toggle[aria-expanded="true"]::after {
        content: "-";
    }
.accreq-request-id {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 3rem;
        padding: 0.25rem 0.55rem;
        border-radius: 999px;
        background: #e7eff8;
        color: #17314d;
        font-size: 0.8rem;
        line-height: 1;
    }
.accreq-request-title {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 1rem;
        line-height: 1.4;
        white-space: normal;
        word-break: break-word;
    }
.accreq-request-body {
        padding: 1.1rem 1.15rem 1.2rem;
        background: #fff;
        border-top: 1px solid #edf2f7;
    }
.accreq-meta-block p {
        margin-bottom: 0.55rem;
        color: #324a63;
    }
.accreq-meta-chip {
        color: #324a63;
        font-size: 0.9rem;
    }
.acceptance-requests-page .form-control {
        border-radius: 12px;
        min-height: 46px;
        border-color: #c7d6e5;
        background: #fff;
    }
.acceptance-requests-page .form-control:focus {
        border-color: #8fb3d6;
        box-shadow: 0 0 0 0.2rem rgba(29, 79, 145, 0.12);
    }
@media (max-width: 991.98px) {
        .accreq-bulk-grid {
            grid-template-columns: 1fr;
        }
}
@media (max-width: 767.98px) {
        .accreq-bulk-card > .card-body,
        .accreq-request-body {
            padding: 1rem;
        }
        .accreq-request-toggle {
            padding: 0.95rem 1rem;
            gap: 0.7rem;
        }
        .accreq-request-title {
            font-size: 0.94rem;
        }
        .accept-action-row {
            flex-wrap: wrap;
            align-items: stretch;
        }
}

/* Source: dashboard/dashboard_admin/admin_menu.php */
.admin-side-menu {
        border: 1px solid #d5e0e9;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(15, 39, 64, 0.07);
    }

    .admin-menu-group {
        border-bottom: 1px solid #e3ebf2;
    }

    .admin-menu-group:last-child {
        border-bottom: 0;
    }

    .admin-menu-toggle {
        width: 100%;
        border: 0;
        background: linear-gradient(180deg, #f5f9fc 0%, #edf4f9 100%);
        color: #0f2740;
        text-align: left;
        font-weight: 800;
        font-size: 0.95rem;
        padding: 13px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 1.2;
    }

    .admin-menu-toggle-label {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
    }

    .admin-menu-parent-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        background: #d19b3d;
        color: #fff;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1;
        box-shadow: 0 0 0 2px rgba(255,255,255,.65);
    }

    .admin-menu-toggle.has-activity {
        box-shadow: inset 4px 0 0 #d19b3d;
    }

    .admin-menu-toggle:hover,
    .admin-menu-toggle:focus {
        background: linear-gradient(180deg, #edf4f9 0%, #e4eef6 100%);
        color: #102c47;
        text-decoration: none;
        outline: none;
    }

    .admin-menu-toggle:not(.collapsed) {
        background: linear-gradient(135deg, rgba(31, 95, 139, 0.14) 0%, rgba(76, 149, 191, 0.09) 100%);
        color: #0f2740;
    }

    .admin-menu-toggle .fa {
        transition: transform .2s ease;
        font-size: 12px;
    }

    .admin-menu-toggle.collapsed .fa {
        transform: rotate(-90deg);
    }

    .admin-side-menu .list-group-item {
        border: 0;
        border-top: 1px solid #eef3f9;
        border-radius: 0;
        padding: 10px 16px 10px 20px;
        color: #33546f;
        font-weight: 600;
        background: transparent;
        border-left: 4px solid transparent;
    }

    .admin-side-menu .list-group-item:hover {
        background: #f2f7fb;
        color: #0f2740;
    }

    .admin-side-menu .list-group-item.active {
        background: linear-gradient(90deg, rgba(31, 95, 139, 0.16) 0%, rgba(31, 95, 139, 0.05) 100%);
        color: #0f2740;
        border-left-color: #1f5f8b;
    }

    .notif-bell {
        border: 1px solid #d5e0e9;
        border-radius: 14px;
        background: #fff;
        margin-bottom: 12px;
        padding: 10px 12px;
        color: #0f2740;
        box-shadow: 0 8px 18px rgba(15, 39, 64, 0.05);
    }

    .notif-bell-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        font-weight: 800;
        color: #0f2740;
    }

    .notif-bell-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        background: #d19b3d;
        color: #fff;
        font-size: .72rem;
        font-weight: 900;
    }

    .notif-bell-list {
        display: none;
        margin-top: 10px;
        border-top: 1px solid #edf2f7;
        padding-top: 8px;
    }

    .notif-bell.is-open .notif-bell-list {
        display: block;
    }

    .notif-bell-item {
        display: block;
        padding: 7px 0;
        color: #324a63;
        border-bottom: 1px solid #edf2f7;
        text-decoration: none;
    }

    .notif-bell-title {
        font-size: .88rem;
        font-weight: 800;
    }

    .notif-bell-body {
        font-size: .78rem;
        color: #66788b;
    }

    .notif-bell-actions {
        display: none;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .notif-bell.is-open .notif-bell-actions {
        display: flex;
    }

/* Source: dashboard/dashboard_admin/admin_reset_password.php */
body {
            background: radial-gradient(circle at 20% 20%, rgba(88,126,255,0.08), transparent 35%),
                        radial-gradient(circle at 80% 0%, rgba(255,179,71,0.1), transparent 30%),
                        #f7f9fb;
            min-height: 100vh;
        }
        .auth-wrapper { max-width: 520px; margin: 60px auto 40px; }
        .auth-card    { border: none; border-radius: 16px; box-shadow: 0 18px 45px rgba(16,24,40,0.12); background: #fff; overflow: hidden; }
        .auth-header  { background: linear-gradient(135deg, #0f1d2d, #12335b); padding: 22px 24px; }
        .auth-header h1, body.home-page .auth-header h1 { font-size: 1.4rem; margin: 0; font-weight: 600; color: #fff; }
        .auth-body    { padding: 28px 26px 24px; }
        .btn-brand    { background: linear-gradient(135deg, #0f1d2d, #12335b); border: none; color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; }
        .btn-brand:hover { color: #fff; transform: translateY(-1px); }
        .warning-box  { background: #fff8e1; border-left: 4px solid #f59e0b; padding: 10px 14px; border-radius: 6px; font-size: 0.875rem; color: #7c5a00; margin-bottom: 18px; }

/* Source: dashboard/dashboard_admin/admin_users.php */
.role-badge {
            display: inline-block;
            padding: 0.25em 0.65em;
            font-size: 0.78rem;
            font-weight: 600;
            border-radius: 20px;
            margin: 2px 2px;
            white-space: nowrap;
        }
        .role-badge-admin {
            background: #1a4d7a;
            color: #fff;
        }
        .role-badge-program_editor {
            background: #0d6e4f;
            color: #fff;
        }
        .status-badge {
            display: inline-block;
            padding: 0.25em 0.7em;
            font-size: 0.78rem;
            font-weight: 600;
            border-radius: 20px;
        }
        .status-active   { background: #d1fae5; color: #065f46; }
        .status-inactive { background: #fee2e2; color: #991b1b; }

        .btn-action {
            padding: 0.28rem 0.7rem;
            font-size: 0.82rem;
            border-radius: 6px;
        }
        .users-table th { white-space: nowrap; font-size: 0.85rem; }
        .users-table td { vertical-align: middle; font-size: 0.9rem; }

        .filter-bar .form-control,
        .filter-bar .form-select { font-size: 0.88rem; }

        .password-wrap { position: relative; }
        .password-wrap .form-control { padding-right: 2.55rem; }
        .password-toggle {
            position: absolute; right: 0.45rem; top: 50%;
            transform: translateY(-50%);
            width: 34px; height: 34px;
            border: 1px solid #c9d8e8; border-radius: 8px;
            background: #fff; color: #1a4d7a;
            display: inline-flex; align-items: center; justify-content: center;
            padding: 0;
        }
        .password-toggle:hover { background: #eef5fc; border-color: #9fbfe0; }
        .role-check-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

        body.home-page .card-header.card-header-nav {
            background: #dfe7f2 !important;
            border-color: #c8d6e8 !important;
            color: #17314d !important;
        }

/* Source: dashboard/dashboard_admin/badges.php */
@media print {
        .dashboard-sidebar, .dashboard-header, .dashboard-footer { display: none !important; }
        .dashboard-main { padding: 0 !important; }
    }
    .badge-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, 270px);
        gap: 1rem;
    }
    .badge-card {
        border: 2px solid #1a3d5c;
        border-radius: 10px;
        padding: 1.1rem 1rem;
        background: #fff;
        text-align: center;
        page-break-inside: avoid;
    }
    .badge-conf  { font-size: .72rem; color: #5a738b; text-transform: uppercase; letter-spacing: .06em; }
    .badge-name  { font-size: 1.18rem; font-weight: 800; color: #1a3d5c; margin: .45rem 0 .2rem; line-height: 1.2; }
    .badge-affil { font-size: .8rem; color: #4a637a; }
    .badge-type  { display: inline-block; margin-top: .55rem; padding: .2rem .7rem; border-radius: 99px; background: #1a3d5c; color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
    .badge-dates { font-size: .7rem; color: #8a9fb5; margin-top: .5rem; }

/* Source: dashboard/dashboard_admin/conference_badges.php */
/* ── Layout ────────────────────────────────────────── */
        .badges-shell { display:grid; grid-template-columns:380px 1fr; gap:1.5rem; align-items:start; }
        @media(max-width:900px){ .badges-shell{ grid-template-columns:1fr; } }

        /* ── Filters panel ─────────────────────────────────── */
        .badges-filters { background:#f8fbfe; border:1px solid #d8e2ec; border-radius:12px; padding:1rem; margin-bottom:1rem; }
        .badges-filters label { font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#7a93ab; display:block; margin-bottom:3px; }
        .badges-filters select, .badges-filters input[type="search"] {
            width:100%; min-height:36px; padding:.32rem .65rem; border-radius:8px; border:1px solid #c8d9e8;
            background:#fff; font-size:.87rem; color:#1d3f5f; font-weight:500; }
        .badges-filter-grid { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }

        /* ── Person list ────────────────────────────────────── */
        .person-list { max-height:520px; overflow-y:auto; border:1px solid #e0ecf4; border-radius:10px; background:#fff; }
        .person-group-header { padding:.4rem .75rem; background:#eef3f9; font-size:.7rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; color:#5d7a92; sticky:top; position:sticky; top:0; z-index:1; }
        .person-row { display:flex; align-items:center; gap:.6rem; padding:.45rem .75rem; border-bottom:1px solid #f0f4f8; cursor:pointer; }
        .person-row:last-child { border-bottom:none; }
        .person-row:hover { background:#f5f9ff; }
        .person-row input[type="checkbox"] { flex-shrink:0; width:16px; height:16px; cursor:pointer; }
        .person-row-info { flex:1; min-width:0; }
        .person-row-name { font-size:.86rem; font-weight:700; color:#14293e; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .person-row-meta { font-size:.73rem; color:#7a93ab; }
        .person-role-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
        .no-presenter-warn { font-size:.7rem; color:#dc2626; font-weight:700; }

        /* ── Bulk select bar ────────────────────────────────── */
        .bulk-bar { display:flex; align-items:center; gap:.5rem; padding:.4rem .75rem; background:#f0f4f8; border-radius:8px 8px 0 0; border:1px solid #e0ecf4; border-bottom:none; }
        .btn-bulk { font-size:.75rem; font-weight:700; padding:.22rem .65rem; border-radius:6px; border:1px solid #c8d9e8; background:#fff; color:#213b52; cursor:pointer; }
        .btn-bulk:hover { background:#e8f1f9; }
        .selected-count { font-size:.75rem; color:#7a93ab; margin-left:auto; }

        /* ── Right panel ────────────────────────────────────── */
        .badges-right { position:sticky; top:20px; }
        .preview-toolbar { display:flex; align-items:center; gap:.65rem; flex-wrap:wrap; margin-bottom:.75rem; }
        .layout-btn { display:inline-flex; align-items:center; gap:.4rem; padding:.3rem .75rem; border-radius:8px; border:2px solid #c8d9e8; background:#fff; color:#213b52; font-weight:700; font-size:.82rem; cursor:pointer; transition:border-color .14s, background .14s; }
        .layout-btn.active { border-color:#213b52; background:#213b52; color:#fff; }
        .action-btn { padding:.38rem 1rem; border-radius:8px; border:none; font-weight:700; font-size:.85rem; cursor:pointer; display:inline-flex; align-items:center; gap:.4rem; }
        .btn-pdf { background:#213b52; color:#fff; }
        .btn-pdf:hover { background:#1a2f42; }
        .btn-print { background:#166534; color:#fff; }
        .btn-print:hover { background:#14532d; }
        .btn-blank { background:#fff; border:2px solid #c8d9e8 !important; color:#5d7a92; }
        .btn-blank:hover { background:#f0f4f8; }

        /* ── Badge preview grid ─────────────────────────────── */
        .preview-area { min-height:320px; border:2px dashed #d8e2ec; border-radius:12px; padding:1rem; background:#f8fbfe; }
        .preview-empty { text-align:center; padding:3rem 1rem; color:#9ab2c4; font-size:.9rem; }
        .preview-grid { display:flex; flex-wrap:wrap; gap:10px; }
        .preview-grid.per-row-1 .badge-card { width:200px; }
        .preview-grid.per-row-2 .badge-card { width:185px; }
        .preview-grid.per-row-3 .badge-card { width:150px; }

        /* ── Badge card (screen) ────────────────────────────── */
        /* font-size set inline by PHP (10px × fontScale) — all child sizes in em */
        .badge-card { background:#fff; border:1px solid #d8e2ec; border-radius:10px; overflow:hidden;
                      box-shadow:0 2px 8px rgba(20,45,75,.08); flex-shrink:0;
                      font-family:'Segoe UI',Arial,sans-serif;
                      display:flex; flex-direction:column; }
        .badge-top-bar    { height:0.5em; flex-shrink:0; }
        .badge-bottom-bar { height:0.4em; flex-shrink:0; }
        .badge-header { text-align:center; padding:0.7em 0.7em 0.4em; flex-shrink:0; }
        .badge-logo { max-height:2.6em; max-width:80%; object-fit:contain; display:block; margin:0 auto 0.35em; }
        .badge-conf-name { font-size:0.88em; font-weight:800; color:#1a2a3a; line-height:1.2; }
        .badge-conf-meta { font-size:0.76em; color:#666; margin-top:0.1em; }
        .badge-divider { border-top:1px solid #e5eaf0; margin:0 0.7em; flex-shrink:0; }
        .badge-body { text-align:center; padding:0.8em 0.7em;
                      flex:1; display:flex; flex-direction:column;
                      align-items:center; justify-content:center; }
        .badge-name { font-size:1.35em; font-weight:800; color:#0d1f33; line-height:1.25; margin-bottom:0.5em; }
        .badge-role { display:inline-block; padding:0.25em 0.9em; border-radius:4px; font-size:0.78em; font-weight:700; }
        .badge-footer { text-align:center; padding:0.35em 0.5em 0.4em; font-size:0.65em; color:#777;
                        display:flex; justify-content:center; gap:0.5em; flex-wrap:wrap; flex-shrink:0; }

        /* ── Summary ────────────────────────────────────────── */
        .preview-summary { font-size:.78rem; color:#7a93ab; margin-bottom:.5rem; }
        .preview-summary strong { color:#213b52; }

        /* ── PDF progress overlay ───────────────────────────── */
        .pdf-overlay { position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(10,20,40,.78);z-index:9999;display:none;align-items:center;justify-content:center; }
        .pdf-overlay-box { background:#fff;border-radius:14px;padding:2.2rem 3rem;text-align:center;box-shadow:0 8px 40px rgba(0,0,0,.3);min-width:280px; }
        .pdf-overlay-title { font-size:1.05rem;font-weight:800;color:#213b52;margin-bottom:.35rem; }
        .pdf-overlay-sub { font-size:.82rem;color:#7a93ab; }
        .pdf-progress-track { margin-top:1rem;height:5px;background:#e0ecf4;border-radius:3px;overflow:hidden; }
        .pdf-progress-bar { height:100%;background:linear-gradient(90deg,#213b52,#1d6fa8);border-radius:3px;animation:progressPulse 1.4s ease-in-out infinite; }
        @keyframes progressPulse { 0%{opacity:.4} 50%{opacity:1} 100%{opacity:.4} }

/* Source: dashboard/dashboard_admin/documents.php */
.quick-stat {
            border: 1px solid #dde5ef;
            border-radius: 10px;
            padding: 10px 12px;
            background: #fff;
        }

        .tiny {
            font-size: 0.86rem;
            color: #52637a;
        }

        .document-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem;
            align-items: center;
        }

        .documents-page-header {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 1rem;
            align-items: center;
            border: 1px solid #dde5ef;
            border-radius: 8px;
            background: #fff;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .documents-page-header h2 {
            margin: 0;
            color: #17263b;
            font-size: 1.45rem;
        }

        .documents-page-header p {
            margin: .25rem 0 0;
            color: #52637a;
        }

        .document-card .card-header {
            font-weight: 700;
        }

        .documents-table-wrap,
        .participant-certificate-table-wrap {
            border: 1px solid #dde5ef;
            border-radius: 8px;
            overflow: auto;
            background: #fff;
        }

        .documents-table,
        .participant-certificate-table {
            table-layout: fixed;
            width: 100%;
            margin-bottom: 0;
        }

        .documents-table {
            min-width: 920px;
        }

        .documents-table th,
        .participant-certificate-table th {
            background: #f7f9fc;
            color: #31445c;
            font-size: .82rem;
            letter-spacing: 0;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .documents-table td,
        .participant-certificate-table td {
            vertical-align: top;
        }

        .documents-table tbody tr,
        .participant-certificate-table tbody tr {
            min-height: 0;
        }

        .cell-main {
            color: #17263b;
            font-weight: 700;
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        .cell-sub {
            color: #52637a;
            font-size: .84rem;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }

        .file-chip {
            display: inline-block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            vertical-align: bottom;
            white-space: nowrap;
        }

        .inline-upload {
            display: grid;
            grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr) auto auto;
            gap: .45rem;
            align-items: center;
        }

        .certificate-actions {
            display: flex;
            gap: .35rem;
            align-items: center;
        }

        .icon-action-btn {
            display: inline-flex;
            width: 38px;
            height: 34px;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .selected-certificate-note {
            color: #52637a;
            font-size: .84rem;
            margin-top: .45rem;
        }

        .participant-upload-row td {
            background: #fbfcfe;
            border-bottom: 2px solid #c9d5e3;
            padding-top: .75rem;
            padding-bottom: .9rem;
        }

        .participant-info-row td {
            background: #fff;
            border-top: 2px solid #c9d5e3;
            padding-top: .75rem;
            padding-bottom: .65rem;
        }

        .participant-info-row.group-even td {
            background: #ffffff;
        }

        .participant-info-row.group-odd td {
            background: #f3f7fb;
        }

        .participant-info-row:first-child td {
            border-top-width: 0;
        }

        .participant-upload-row.group-even td {
            background: #fbfcfe;
        }

        .participant-upload-row.group-odd td {
            background: #eef4fa;
        }

        .participant-info-row:hover td,
        .participant-info-row:hover + .participant-upload-row td {
            background: #e7f2ff;
        }

        .participant-upload-label {
            color: #31445c;
            font-size: .82rem;
            font-weight: 700;
            margin-bottom: .35rem;
            text-transform: uppercase;
        }

        .participant-certificate-table-wrap {
            overflow-x: visible;
        }

        .participant-certificate-table {
            min-width: 0;
        }

        @media (max-width: 991.98px) {
            .documents-page-header {
                grid-template-columns: 1fr;
            }

            .inline-upload {
                grid-template-columns: 1fr;
            }
        }

/* Source: dashboard/dashboard_admin/email_services.php */
.email-service-workspace { display: flex; flex-direction: column; gap: 1rem; }
        .email-service-subnav { display:flex; flex-wrap:wrap; gap:.55rem; margin:0 0 1rem; }
        .email-service-subnav a { display:inline-flex; align-items:center; gap:.45rem; min-height:40px; padding:.5rem .85rem; border:1px solid #cfdbe7; border-radius:8px; background:#fff; color:#28435e; font-weight:800; text-decoration:none; }
        .email-service-subnav a:hover, .email-service-subnav a:focus { background:#eef6fd; border-color:#8fb8d9; color:#17314d; text-decoration:none; }
        .email-service-card { border: 1px solid #d9e3ef; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(25,52,84,.05); }
        .email-service-card-header { display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; padding: 1rem 1.1rem; border-bottom: 1px solid #e7edf5; background: #f8fbfe; color: #17314d; font-weight: 800; }
        .email-service-card-title { margin:0; color:#17314d; font-size:1.25rem; font-weight:900; line-height:1.25; }
        .email-service-card-subtitle { margin:.25rem 0 0; color:#66788b; font-size:.92rem; font-weight:500; line-height:1.45; }
        .email-service-card-body { padding: 1.25rem; }
        .email-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
        .email-mode-option { position: relative; }
        .email-mode-option input { position: absolute; opacity: 0; pointer-events: none; }
        .email-mode-option span { display: flex; min-height: 48px; padding: .7rem .8rem; border: 1px solid #cfdbe7; border-radius: 10px; background: #fff; color: #324a63; font-size:.96rem; font-weight: 800; line-height:1.2; align-items:center; justify-content:center; text-align: center; cursor: pointer; }
        .email-mode-option input:checked + span { background: #03568a; border-color: #03568a; color: #fff; }
        .email-mode-panel { display: none; }
        .email-mode-panel.is-active { display: block; }
        .email-actions { display:flex; flex-wrap:wrap; gap:.55rem; align-items:center; }
        .email-actions .btn { border-radius:8px; font-weight:800; text-transform:none; padding:.55rem .9rem; }
        .email-form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:1rem; }
        .email-form-grid-full { grid-column:1 / -1; }
        .email-preview-list { max-height: 420px; overflow:auto; border:1px solid #e1e9f2; border-radius:10px; }
        .email-preview-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.65rem; }
        .email-preview-item { padding:.7rem .85rem; border-bottom:1px solid #edf2f7; }
        .email-preview-grid .email-preview-item { border:1px solid #edf2f7; border-radius:10px; background:#fbfdff; }
        .email-preview-item:last-child { border-bottom:0; }
        .email-preview-name { color:#1f2f45; font-weight:800; }
        .email-preview-meta { color:#66788b; font-size:.9rem; }
        .email-rendered-preview { border:1px solid #dbe6f0; border-radius:10px; background:#fbfdff; overflow:hidden; }
        .email-rendered-preview-subject { padding:.75rem .9rem; border-bottom:1px solid #e7edf5; background:#f5f9fd; color:#17314d; font-weight:900; }
        .email-rendered-preview-body { padding:.9rem; color:#26384d; white-space:pre-wrap; line-height:1.55; }
        .email-ajax-notice { display:none; margin-bottom:1rem; }
        .email-ajax-notice.is-visible { display:block; }
        .email-status { display:inline-flex; align-items:center; padding:.2rem .55rem; border-radius:999px; font-size:.78rem; font-weight:800; background:#eef4fb; color:#33516c; }
        .email-status.sent { background:#e8f7ee; color:#17633a; }
        .email-status.failed { background:#fdeced; color:#a42430; }
        .email-status.partial { background:#fff5df; color:#895600; }
        .email-history-table { width:100%; border-collapse:collapse; }
        .email-history-table th, .email-history-table td { padding:.65rem .7rem; border-bottom:1px solid #edf2f7; vertical-align:top; }
        .email-history-table th { color:#53667a; font-size:.78rem; letter-spacing:.04em; text-transform:uppercase; }
        .placeholder-help { display:flex; flex-wrap:wrap; gap:.35rem; }
        .placeholder-help code { padding:.18rem .4rem; border-radius:6px; background:#eef4fb; color:#17314d; }
        @media (max-width: 991.98px) {
            .email-mode-grid { grid-template-columns: 1fr; }
            .email-form-grid, .email-preview-grid { grid-template-columns: 1fr; }
            .email-service-card-header { flex-direction:column; }
        }
        .recipient-search-wrap { position:relative; }
        .recipient-search-input-wrap { position:relative; }
        .recipient-search-input-wrap .form-control { padding-right:2.2rem; }
        .recipient-search-clear { position:absolute; right:.6rem; top:50%; transform:translateY(-50%); background:none; border:none; color:#7a8ea3; padding:.2rem .3rem; cursor:pointer; line-height:1; }
        .recipient-search-clear:hover { color:#1f2f45; }
        .recipient-role-filters { display:flex; flex-wrap:wrap; gap:.35rem; margin:.5rem 0 .3rem; align-items:center; }
        .role-filter-label { font-size:.8rem; color:#66788b; font-weight:700; margin-right:.2rem; }
        .role-filter-btn { padding:.2rem .55rem; border:1px solid #cfdbe7; border-radius:999px; background:#fff; color:#324a63; font-size:.8rem; font-weight:700; cursor:pointer; transition:all .15s; }
        .role-filter-btn.active,.role-filter-btn:hover { background:#03568a; border-color:#03568a; color:#fff; }
        .recipient-search-dropdown { position:absolute; top:calc(100% + 2px); left:0; right:0; z-index:200; background:#fff; border:1px solid #cfdbe7; border-radius:10px; box-shadow:0 8px 24px rgba(25,52,84,.12); max-height:320px; overflow-y:auto; }
        .recipient-search-item { padding:.65rem .85rem; cursor:pointer; border-bottom:1px solid #edf2f7; display:flex; justify-content:space-between; align-items:flex-start; gap:.5rem; }
        .recipient-search-item:last-child { border-bottom:0; }
        .recipient-search-item:hover,.recipient-search-item.is-focused { background:#f0f7fe; }
        .recipient-search-item-name { font-weight:800; color:#1f2f45; }
        .recipient-search-item-email { color:#66788b; font-size:.88rem; }
        .recipient-search-item-role { flex-shrink:0; font-size:.78rem; color:#03568a; font-weight:700; background:#eef4fb; padding:.15rem .4rem; border-radius:999px; white-space:nowrap; }
        .recipient-search-empty,.recipient-search-loading { padding:.75rem .85rem; color:#66788b; font-size:.9rem; }
        .recipient-selected-banner { display:flex; align-items:center; gap:.5rem; padding:.55rem .85rem; border:1px solid #b6d9f7; border-radius:8px; background:#eef6fd; color:#17314d; font-weight:700; margin-bottom:.75rem; }
        .recipient-selected-banner .fa { color:#03568a; }
        .recipient-selected-clear { margin-left:auto; background:none; border:none; color:#03568a; font-weight:700; font-size:.85rem; cursor:pointer; padding:.1rem .3rem; }
        .recipient-selected-clear:hover { text-decoration:underline; }
        .recipient-fields-label { font-size:.8rem; color:#66788b; font-weight:700; margin-bottom:.5rem; }

/* Source: dashboard/dashboard_admin/email_settings.php */
.comm-card{border:1px solid #d9e3ef;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(25,52,84,.05)}.comm-card-header{padding:1rem 1.1rem;border-bottom:1px solid #e7edf5;background:#f8fbfe;font-weight:900;color:#17314d}.comm-card-body{padding:1rem 1.1rem}.smtp-grid{display:grid;grid-template-columns:170px minmax(0,1fr);gap:.4rem .8rem}

/* Source: dashboard/dashboard_admin/email_suppressions.php */
.comm-card{border:1px solid #d9e3ef;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(25,52,84,.05)}.comm-card-header{padding:1rem 1.1rem;border-bottom:1px solid #e7edf5;background:#f8fbfe;font-weight:900;color:#17314d}.comm-card-body{padding:1rem 1.1rem}.comm-table{width:100%;border-collapse:collapse}.comm-table th,.comm-table td{padding:.65rem .7rem;border-bottom:1px solid #edf2f7;vertical-align:top}.comm-table th{font-size:.78rem;text-transform:uppercase;color:#53667a}

/* Source: dashboard/dashboard_admin/import_papers.php */
.import-upload-card {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: var(--dash-shadow-sm);
}
.import-upload-card h3 {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dash-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.import-drop-zone {
    border: 3px dashed #2563eb;
    border-radius: 14px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s, transform .1s;
    position: relative;
    box-shadow: 0 2px 12px rgba(37,99,235,.08);
}
.import-drop-zone:hover,
.import-drop-zone.drag-over {
    border-color: #1d4ed8;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    box-shadow: 0 4px 24px rgba(37,99,235,.18);
    transform: translateY(-2px);
}
.import-drop-zone.drag-over {
    border-style: solid;
}
.import-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.import-drop-icon { font-size: 3.5rem; margin-bottom: 0.75rem; line-height: 1; }
.import-drop-label { font-size: 1.05rem; font-weight: 700; color: #1e40af; margin: 0 0 0.4rem; }
.import-drop-hint  { font-size: 0.82rem; color: #3b82f6; margin: 0; font-weight: 500; }
.import-file-chosen {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--dash-radius-sm);
    padding: 0.6rem 0.9rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #14532d;
}
.import-file-chosen svg { flex-shrink: 0; }
.import-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.import-note { font-size: 0.78rem; color: var(--dash-muted); margin: 0.75rem 0 0; }
.import-format-row {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.9rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--dash-radius-sm);
}
.import-format-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--dash-ink);
    line-height: 1;
}
.import-format-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.import-format-option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
    color: #7c2d12;
}
.import-format-option span {
    display: inline-block;
    line-height: 1.3;
}
.import-format-option input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--dash-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.import-format-desc {
    font-size: 0.78rem;
    color: #92400e;
    line-height: 1.4;
}
.import-overwrite-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: #f8fbfe;
    border: 1px solid #d8e2ec;
    border-radius: var(--dash-radius-sm);
}
.import-overwrite-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--dash-ink);
    white-space: nowrap;
}
.import-overwrite-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--dash-primary);
    flex-shrink: 0;
    margin: 0;
    border-radius: 4px;
    border: 1px solid #8ea4ba;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.import-overwrite-desc {
    font-size: 0.78rem;
    color: var(--dash-muted);
    line-height: 1.4;
}
.import-duplicate-note {
    margin-top: 0.65rem;
    padding: 0.7rem 0.9rem;
    background: #fff1f1;
    border: 1px solid #f1b4b4;
    border-radius: var(--dash-radius-sm);
    color: #9b2c2c;
    font-size: 0.8rem;
    line-height: 1.45;
}
.format-guide-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid var(--dash-border-strong);
    border-radius: var(--dash-radius-sm);
    padding: 0.25rem 0.6rem;
    font: inherit;
    font-size: 0.78rem;
    color: var(--dash-ink-2);
    cursor: pointer;
    margin-left: auto;
    transition: background .15s;
}
.format-guide-toggle:hover { background: #f3f4f6; }
.format-guide-panel { display: none; margin-top: 1rem; border-top: 1px solid var(--dash-border); padding-top: 1rem; }
.format-guide-panel.open { display: block; }
.format-cols { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.format-col-group { flex: 1; min-width: 180px; }
.format-col-group h4 {
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--dash-muted); margin: 0 0 0.5rem;
}
.format-col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.format-col-list li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: var(--dash-ink); }
.format-col-list li code { font-size: 0.78rem; background: #f3f4f6; padding: 0.1rem 0.3rem; border-radius: 3px; }
.format-col-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: var(--dash-primary); color: #fff;
    font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.format-col-num.opt { background: var(--dash-muted); }
.import-preview-wrap { display: none; margin-top: 1rem; border: 1px solid var(--dash-border); border-radius: var(--dash-radius-sm); overflow: hidden; }
.import-preview-wrap.open { display: block; }
.import-preview-header {
    display: flex; align-items: center; justify-content: space-between;
    background: #f9fafb; border-bottom: 1px solid var(--dash-border);
    padding: 0.5rem 0.9rem; font-size: 0.8rem;
}
.import-preview-title { font-weight: 700; color: var(--dash-ink); }
.import-preview-count { color: var(--dash-muted); }
.import-preview-scroll { overflow-x: auto; max-height: 420px; overflow-y: auto; }
.import-preview-scroll table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.import-preview-scroll th {
    background: #f3f4f6; position: sticky; top: 0; z-index: 1;
    text-align: left; padding: 0.45rem 0.65rem;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--dash-ink-2);
    border-bottom: 1px solid var(--dash-border);
    white-space: nowrap;
}
.import-preview-scroll td { padding: 0.4rem 0.65rem; border-bottom: 1px solid var(--dash-border); vertical-align: top; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-preview-scroll tr:last-child td { border-bottom: none; }
.import-preview-scroll tr:hover td { background: #f9fafb; }
.preview-badge-ok {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #f0fdf4; color: #15803d; border: 1px solid #86efac;
    border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.72rem; font-weight: 600;
}
.preview-badge-skip {
    display: inline-flex; align-items: center; gap: 0.25rem;
    background: #fef9c3; color: #854d0e; border: 1px solid #fcd34d;
    border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.72rem; font-weight: 600;
}

/* Source: dashboard/dashboard_admin/inbox.php */
.inbox-card{border:1px solid #d9e3ef;border-radius:8px;background:#fff;box-shadow:0 10px 28px rgba(25,52,84,.05);overflow:hidden;}
        .inbox-row{display:flex;align-items:stretch;border-bottom:1px solid #edf2f7;}
        .inbox-check-cell{display:flex;align-items:center;padding:0 .4rem 0 .9rem;flex:0 0 auto;cursor:pointer;}
        .thread-check{width:16px;height:16px;cursor:pointer;accent-color:#1f3d59;flex:0 0 auto;}
        .inbox-summary{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0;padding:.72rem .9rem .72rem .5rem;border:0;background:#fff;color:#243a51;text-align:left;cursor:pointer;transition:background .12s;}
        .inbox-summary:hover,.inbox-summary[aria-expanded="true"]{background:#f6faff;}
        .inbox-check-cell:hover~.inbox-summary,.inbox-row:has(.thread-check:checked) .inbox-summary{background:#f0f7ff;}
        .inbox-summary:focus{outline:2px solid rgba(15,97,159,.2);outline-offset:-2px;}
        .bulk-bar{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;padding:.55rem .8rem;background:#eef6fd;border:1px solid #b7cada;border-radius:8px;font-size:.84rem;font-weight:700;margin-bottom:.6rem;}
        .bulk-count{color:#1d5378;font-weight:800;min-width:80px;}
        .bulk-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.32rem .72rem;border:1px solid #cfdbe7;border-radius:7px;background:#fff;color:#28435e;font-size:.82rem;font-weight:700;cursor:pointer;transition:background .15s;}
        .bulk-btn:hover{background:#e4f0f9;border-color:#8fb8d9;}
        .bulk-btn.bulk-danger{border-color:#f5c6cb;color:#7b1a21;}
        .bulk-btn.bulk-danger:hover{background:#fde8ea;}
        .inbox-check{width:18px;height:18px;border:1px solid #9aa8b7;border-radius:2px;flex:0 0 auto;background:#fff;}
        .inbox-unread-dot{width:9px;height:9px;border-radius:50%;background:#6f35ff;flex:0 0 auto;box-shadow:0 0 0 3px rgba(111,53,255,.08);}
        .inbox-unread-dot.is-empty{background:transparent;box-shadow:none;}
        .inbox-avatar{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#2f88a9;color:#fff;font-size:.72rem;font-weight:800;flex:0 0 auto;}
        .inbox-sender{min-width:150px;max-width:190px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .inbox-subject-line{display:flex;align-items:center;min-width:0;flex:1 1 auto;gap:.35rem;}
        .inbox-subject{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
        .inbox-preview{color:#66788b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
        .inbox-date{width:96px;text-align:right;font-size:.84rem;font-weight:700;color:#35475b;flex:0 0 auto;}
        .inbox-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#eef4fb;color:#335577;font-size:.72rem;font-weight:800;flex:0 0 auto;}
        .inbox-chevron{color:#7c8da0;font-size:.8rem;transition:transform .16s;flex:0 0 auto;}
        .inbox-summary[aria-expanded="true"] .inbox-chevron{transform:rotate(180deg);}
        .inbox-summary.is-unread .inbox-sender,.inbox-summary.is-unread .inbox-subject,.inbox-summary.is-unread .inbox-date{color:#172b40;font-weight:900;}
        .conversation-panel{border-bottom:1px solid #edf2f7;background:#fbfdff;padding:1rem 1.1rem 1.2rem;}
        .conversation-inner{max-width:900px;margin:0 auto;}
        .conversation-title{font-weight:900;color:#17314d;margin-bottom:.85rem;}
        .unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#dc3545;color:#fff;font-size:.72rem;font-weight:900;}
        .message{max-width:86%;padding:.85rem .95rem;border:1px solid #dbe6f0;border-radius:8px;margin:0 0 .85rem;background:#fff;line-height:1.6;text-align:left;direction:ltr;}
        .message.outbound{margin-left:auto;background:#eef6fd;border-color:#b8d6ee;}
        .message-head{font-size:.82rem;color:#66788b;margin-bottom:.45rem;white-space:normal;text-align:left;}
        .message-head strong{color:#243a51;}
        .message-body{overflow-wrap:anywhere;word-break:break-word;text-align:left;direction:ltr;line-height:1.65;}
        .msg-link{color:#2266b0;text-decoration:underline;}
        .msg-link:hover{color:#144080;}
        .msg-section{color:#17314d;display:block;margin-top:.6em;margin-bottom:.1em;}
        .msg-divider{border:0;border-top:1px solid #dce5ef;margin:.4em 0;}
        .inbox-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem;}
        .inbox-status-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0;}
        .inbox-status-filter{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:.38rem .8rem;border:1px solid #bfd0df;border-radius:999px;color:#1d3f5f;background:#fff;font-size:.83rem;font-weight:700;text-decoration:none;line-height:1.2;}
        .inbox-status-filter:hover,.inbox-status-filter:focus{background:#eef6fb;color:#142e48;text-decoration:none;}
        .inbox-status-filter.active{background:#1f3d59;border-color:#1f3d59;color:#fff;}
        .inbox-status-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:rgba(31,61,89,.12);color:inherit;font-size:.74rem;font-weight:800;}
        .inbox-status-filter.active .inbox-status-filter-count{background:rgba(255,255,255,.18);}
        .toolbar-actions{margin-left:auto;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;}
        .inbox-page-btn{display:inline-flex;align-items:center;justify-content:center;gap:.48rem;min-height:36px;padding:.42rem .85rem;border-radius:10px;font-size:.82rem;font-weight:700;letter-spacing:.01em;text-transform:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;}
        .inbox-page-btn.btn-primary{background:#e9f2f8;border-color:#b7cada;color:#1d5378;}
        .inbox-page-btn.btn-primary:hover,.inbox-page-btn.btn-primary:focus{background:#dcebf5;border-color:#9eb9cd;color:#163249;}
        .inbox-page-btn.btn-outline-primary,.inbox-page-btn.btn-outline-secondary,.inbox-page-btn.btn-outline-success{background:#fff;border-color:#b7cada;color:#1d5378;}
        .inbox-page-btn.btn-outline-primary:hover,.inbox-page-btn.btn-outline-primary:focus,.inbox-page-btn.btn-outline-secondary:hover,.inbox-page-btn.btn-outline-secondary:focus,.inbox-page-btn.btn-outline-success:hover,.inbox-page-btn.btn-outline-success:focus{background:#f1f7fb;border-color:#9eb9cd;color:#163249;}
        .inbox-top-action{min-height:40px;padding:.52rem .95rem;border:1px solid #cfdbe7;border-radius:10px;background:#fff;color:#28435e;font-size:.9rem;font-weight:800;line-height:1.2;text-decoration:none;}
        .inbox-top-action:hover,.inbox-top-action:focus{background:#eef6fd;border-color:#8fb8d9;color:#17314d;text-decoration:none;}
        .inbox-top-action i{color:#17314d;font-size:.95rem;}
        .conversation-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:.85rem;}
        .inbox-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:38px;padding:.46rem .86rem;border:1px solid #cfdbe7;border-radius:10px;background:#fff;color:#28435e;font-size:.84rem;font-weight:800;line-height:1.2;text-transform:none;letter-spacing:.01em;transition:background-color .18s ease,border-color .18s ease,color .18s ease;}
        .inbox-action-btn:hover,.inbox-action-btn:focus{background:#eef6fd;border-color:#8fb8d9;color:#17314d;}
        .inbox-action-btn.action-primary{background:#1f3d59;border-color:#1f3d59;color:#fff;}
        .inbox-action-btn.action-primary:hover,.inbox-action-btn.action-primary:focus{background:#17314d;border-color:#17314d;color:#fff;}
        .inbox-action-btn.action-success{border-color:#b9d8c3;color:#1d6b3c;}
        .inbox-action-btn.action-success:hover,.inbox-action-btn.action-success:focus{background:#edf8f1;border-color:#8fc9a2;color:#185a33;}
        .inbox-action-btn.action-muted{color:#5d6e80;}
        .fetch-notice{padding:.45rem .75rem;border-radius:8px;font-size:.88rem;font-weight:700;display:none;}
        .fetch-notice.ok,.fetch-notice.err{display:inline-flex;}
        .fetch-notice.ok{background:#e8f7ee;color:#17633a;}
        .fetch-notice.err{background:#fdeced;color:#a42430;}
        @media (max-width: 991.98px){
            .inbox-summary{align-items:flex-start;gap:.6rem;}
            .inbox-sender{min-width:110px;max-width:150px;}
            .inbox-date{width:auto;min-width:70px;font-size:.78rem;}
            .message{max-width:100%;}
        }
        @media (max-width: 767.98px){
            .inbox-summary{display:grid;grid-template-columns:18px 28px minmax(0,1fr) auto;gap:.45rem .6rem;}
            .inbox-unread-dot{grid-column:1;width:8px;height:8px;margin-top:5px;}
            .inbox-sender{grid-column:3;min-width:0;max-width:none;}
            .inbox-subject-line{grid-column:2 / 5;}
            .inbox-date{grid-column:4;grid-row:1;text-align:right;}
            .inbox-count,.inbox-chevron{grid-row:1;}
            .toolbar-actions{margin-left:0;width:100%;}
            .inbox-status-filters{width:100%;}
        }

/* Source: dashboard/dashboard_admin/invitations.php */
.invitation-page-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .participant-page-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 36px;
            padding: 0.42rem 0.85rem;
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            text-transform: none;
        }

        .participant-page-btn.btn-primary {
            background: #e9f2f8;
            border-color: #b7cada;
            color: #1d5378;
        }

        .participant-page-btn.btn-primary:hover,
        .participant-page-btn.btn-primary:focus,
        .participant-page-btn.btn-outline-primary:hover,
        .participant-page-btn.btn-outline-primary:focus,
        .participant-page-btn.btn-outline-secondary:hover,
        .participant-page-btn.btn-outline-secondary:focus {
            background: #f1f7fb;
            border-color: #9eb9cd;
            color: #163249;
        }

        .participant-page-btn.btn-outline-primary,
        .participant-page-btn.btn-outline-secondary {
            background: #fff;
            border-color: #b7cada;
            color: #1d5378;
        }

        .invitation-shell {
            background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
            border: 1px solid #d9e7f2;
            border-radius: 24px;
            padding: 24px;
            box-shadow: 0 18px 48px rgba(24, 54, 84, 0.08);
        }

        .invitation-toolbar,
        .invitation-filters {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 10px;
        }

        .invitation-toolbar {
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .invitation-search {
            position: relative;
            flex: 1 1 320px;
            max-width: 440px;
        }

        .invitation-search i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #5d7690;
        }

        .invitation-search .form-control {
            min-height: 40px;
            padding-left: 2.45rem;
            border-radius: 12px;
            border-color: #cbdceb;
        }

        .invitation-status-filter {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 34px;
            padding: 0.38rem 0.8rem;
            border: 1px solid #bfd0df;
            border-radius: 999px;
            color: #1d3f5f;
            background: #fff;
            font-size: 0.83rem;
            font-weight: 700;
            text-decoration: none;
        }

        .invitation-status-filter:hover,
        .invitation-status-filter:focus {
            background: #eef6fb;
            color: #142e48;
            text-decoration: none;
        }

        .invitation-status-filter.active {
            background: #1f3d59;
            border-color: #1f3d59;
            color: #fff;
        }

        .invitation-status-filter-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 22px;
            height: 22px;
            padding: 0 7px;
            border-radius: 999px;
            background: rgba(31, 61, 89, 0.12);
            color: inherit;
            font-size: 0.74rem;
            font-weight: 800;
        }

        .invitation-status-filter.active .invitation-status-filter-count {
            background: rgba(255, 255, 255, 0.18);
        }

        .invitation-list {
            display: grid;
            gap: 14px;
        }

        .invitation-card {
            display: grid;
            gap: 12px;
            padding: 18px 16px;
            border: 1px solid #e2ecf4;
            border-radius: 20px;
            background: #fff;
            box-shadow: 0 10px 30px rgba(30, 58, 90, 0.06);
        }

        .invitation-card-content {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.3fr);
            gap: 18px;
            align-items: start;
        }

        .invitation-card-content>div {
            min-width: 0;
            font-size: 0.92rem;
            color: #22384d;
            line-height: 1.45;
        }

        .invitation-label {
            color: #6d8296;
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 5px;
        }

        .invitation-title {
            font-weight: 700;
            color: #10233f;
        }

        .invitation-muted {
            color: #61778d;
            font-size: 0.88rem;
        }

        .invitation-status {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0.25rem 0.65rem;
            border-radius: 999px;
            background: #eef6fb;
            color: #1d5378;
            font-size: 0.82rem;
            font-weight: 700;
        }

        .invitation-status.accepted {
            background: #e8f6ee;
            color: #237244;
        }

        .invitation-status.expired {
            background: #fff1dc;
            color: #90620f;
        }

        .invitation-actions-row {
            padding-top: 10px;
            border-top: 1px solid #ecf2f7;
        }

        .participant-action-list {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .participant-action-list form {
            margin: 0;
        }

        .participant-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #1d5378;
            font-size: 0.9rem;
            font-weight: 400;
            text-decoration: none;
            cursor: pointer;
        }

        .participant-action-btn span {
            text-decoration: underline;
            text-decoration-thickness: 0.08em;
            text-underline-offset: 0.16em;
            text-decoration-color: currentColor;
        }

        .participant-action-btn:hover,
        .participant-action-btn:focus {
            color: #163249;
            text-decoration: none;
        }

        .participant-action-btn.action-danger {
            color: #963737;
        }

        .participant-action-btn.action-danger:hover,
        .participant-action-btn.action-danger:focus {
            color: #7f2525;
        }

        .invitation-empty {
            display: none;
            margin-top: 16px;
            padding: 18px 20px;
            border-radius: 16px;
            background: #f5f8fb;
            color: #60778c;
            text-align: center;
        }

        @media (max-width: 991.98px) {
            .invitation-shell {
                padding: 18px;
            }

            .invitation-card-content {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }

/* Source: dashboard/dashboard_admin/invoice_requests.php */
html,body{-webkit-print-color-adjust:exact;print-color-adjust:exact}
    body{font-family:Arial,Helvetica,sans-serif;color:#222;margin:0;background:#f5f6f8}
    .wrap{max-width:860px;margin:20px auto;background:#fff;border:1px solid #ddd;padding:24px}
    .conference{text-align:center;margin-bottom:14px;background:#1f4f96;color:#fff;border-radius:12px;padding:16px 18px;box-shadow:0 4px 14px rgba(0,0,0,.08)}
    .conference-name{font-size:20px;font-weight:700;margin:0 0 6px}
    .conference-meta{color:#e8f2ff;font-size:14px}
    .conference-divider{border:none;border-top:2px solid #cfdff5;margin:14px 0 18px}
    .head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;border:2px solid #cfdff5;background:#f5f9ff;border-radius:10px;padding:14px 16px}
    .invoice-box{min-width:320px;flex:1}
    .title{font-size:24px;font-weight:700;margin:0 0 6px}
    .muted{color:#666;font-size:13px}
    .details-divider{border:none;border-top:2px solid #e6e6e6;margin:14px 0 14px}
    .meta td{padding:4px 0;vertical-align:top}
    .meta td:first-child{width:170px;color:#666}
    .waiver-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:700;border:1px solid}
    .waiver-yes{background:#e7f8ec;color:#1d6f42;border-color:#8dd7a6}
    .waiver-no{background:#fdeaea;color:#9d2f2f;border-color:#f1b0b7}
    .amount-box{min-width:220px;text-align:right;padding-left:16px;border-left:2px solid #d6e4fb}
    .amount-box .num{font-size:26px;font-weight:700}
    .section{margin-top:20px}
    .label{font-size:13px;color:#666;margin-bottom:6px}
    table.line{width:100%;border-collapse:collapse;margin-top:8px}
    table.line th,table.line td{border:1px solid #ddd;padding:10px;text-align:left;font-size:14px}
    table.line th{background:#e7f1ff;color:#1f4f96}
    .stamp-wrap{margin-top:26px;text-align:right}
    .paid-stamp{display:inline-block;border:3px solid #c32626;color:#c32626;font-weight:700;font-size:30px;padding:10px 18px;border-radius:10px;transform:rotate(-10deg);letter-spacing:1px}
    .stamp-image{max-height:90px;max-width:220px;display:inline-block}
    .stamp-caption{font-size:12px;color:#666;margin-top:4px}
    .footer{margin-top:20px;font-size:12px;color:#334;background:#f2f7ff;border-top:2px solid #d3e3fb;padding:12px 14px;border-radius:8px}
    .footer-row{margin:2px 0}
    .footer a{color:#1f4f96;text-decoration:none;font-weight:600}
    .no-print{margin:0 auto 10px;max-width:860px}
    .btn{display:inline-block;padding:8px 12px;background:#213b52;color:#fff;border-radius:6px;text-decoration:none;border:none;cursor:pointer}
    @media print{
      *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
      body{background:#fff}
      .no-print{display:none!important}
      .wrap{margin:0;max-width:none;border:none}
    }

/* Source: dashboard/dashboard_admin/invoice_requests.php */
.btn-inline-compact {
            width: auto !important;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            line-height: 1.1;
            font-size: 0.8rem !important;
            font-weight: 600;
            padding: 0.22rem 0.62rem !important;
            border-radius: 999px !important;
            min-height: 0 !important;
            white-space: nowrap;
            position: static !important;
            text-decoration: none !important;
        }
        #invoiceAccordion .btn-inline-compact::after {
            content: none !important;
            display: none !important;
        }
        #invoiceAccordion .accordion-body a.btn-payment-link {
            background-color: #1a76d1 !important;
            border-color: #1a76d1 !important;
            color: #fff !important;
        }
        #invoiceAccordion .accordion-body a.btn-payment-link:hover,
        #invoiceAccordion .accordion-body a.btn-payment-link:focus {
            background-color: #0f5fae !important;
            border-color: #0f5fae !important;
            color: #fff !important;
        }

/* Source: dashboard/dashboard_admin/listener_registrations.php */
body{font-family:Arial,Helvetica,sans-serif;color:#222;margin:0;background:#f5f6f8}.wrap{max-width:860px;margin:20px auto;background:#fff;border:1px solid #ddd;padding:24px}.head{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}.title{font-size:24px;font-weight:700;margin:0 0 6px}.muted{color:#666;font-size:13px}.num{font-size:26px;font-weight:700}table{width:100%;border-collapse:collapse;margin-top:10px}td,th{border:1px solid #ddd;padding:9px;vertical-align:top}th{background:#ecf4ff;color:#1f4f96;text-align:left}.footer{margin-top:18px;font-size:12px;color:#334;background:#f2f7ff;border-top:2px solid #d3e3fb;padding:12px}@media print{body{background:#fff}.wrap{margin:0;max-width:none;border:none}}

/* Source: dashboard/dashboard_admin/listener_registrations.php */
.admin-directory-shell{background:linear-gradient(180deg,#f6fbff 0%,#fff 100%);border:1px solid #d9e7f2;border-radius:24px;padding:24px;box-shadow:0 18px 48px rgba(24,54,84,.08)}
        .admin-directory-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
        .participant-status-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
        .participant-status-filter{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:.38rem .8rem;border:1px solid #bfd0df;border-radius:999px;color:#1d3f5f;background:#fff;font-size:.83rem;font-weight:700;text-decoration:none}
        .participant-status-filter:hover,.participant-status-filter:focus{background:#eef6fb;color:#142e48;text-decoration:none}
        .participant-status-filter.active{background:#1f3d59;border-color:#1f3d59;color:#fff}
        .participant-status-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:999px;background:rgba(31,61,89,.12);color:inherit;font-size:.74rem;font-weight:800}
        .participant-status-filter.active .participant-status-filter-count{background:rgba(255,255,255,.18)}
        .listener-search-row { margin-bottom:14px; }
        .listener-search-row .input-group .form-control{border-radius:12px 0 0 12px!important;min-height:46px;font-size:.97rem;border-color:#cbdceb;background:#fff}
        .listener-search-row .input-group .btn{border-radius:0 12px 12px 0!important;padding:.55rem 1.3rem;font-size:.95rem}
        .listener-count-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:.82rem;color:#577086}
        .participant-page-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:.42rem .85rem;border-radius:10px;font-size:.82rem;font-weight:600;letter-spacing:.01em;text-transform:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
        .participant-page-btn.btn-primary{background:#e9f2f8;border-color:#b7cada;color:#1d5378}
        .participant-page-btn.btn-primary:hover,.participant-page-btn.btn-primary:focus{background:#dcebf5;border-color:#9eb9cd;color:#163249}
        .participant-page-btn.btn-outline-primary,.participant-page-btn.btn-outline-secondary{background:#fff;border-color:#b7cada;color:#1d5378}
        .participant-page-btn.btn-outline-primary:hover,.participant-page-btn.btn-outline-primary:focus,.participant-page-btn.btn-outline-secondary:hover,.participant-page-btn.btn-outline-secondary:focus{background:#f1f7fb;border-color:#9eb9cd;color:#163249}
        .participant-action-list{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;justify-content:center}
        .participant-action-list form{margin:0}
        .participant-action-btn{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:transparent;color:#1d5378;font-size:.9rem;font-weight:400;text-decoration:none;cursor:pointer;transition:color .18s ease}
        .participant-action-btn span{display:inline;text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.16em;text-decoration-color:currentColor}
        .participant-action-btn.action-danger{color:#963737}
        .participant-action-btn.action-primary{color:#1d5378}
        .participant-action-btn.action-primary:hover,.participant-action-btn.action-primary:focus{color:#163249}
        .participant-action-btn:not(.action-primary):hover,.participant-action-btn:not(.action-primary):focus{color:#163249;text-decoration:none}
        .participant-action-btn.action-danger:hover,.participant-action-btn.action-danger:focus{color:#7f2525}
        .tiny{font-size:.84rem;color:#52637a;line-height:1.35}
        .listener-name{font-weight:600;color:#2f3548}
        .listener-email{word-break:break-word}
        .listener-status{display:inline-block;font-size:.78rem;font-weight:700;border:1px solid #d5deea;border-radius:999px;padding:2px 8px;background:#f8fafc;color:#3f516b}
        .listener-status-paid{border-color:#a7d7b5;background:#edf9f1;color:#1f7a3a}
        .listener-total{font-weight:700;color:#2f3548}
        .listener-icon-actions{display:inline-flex;align-items:center;justify-content:center;gap:.45rem}
        .listener-icon-actions form{display:inline-flex;margin:0}
        .listener-icon-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;padding:0}
        .listener-icon-btn[disabled]{opacity:.45;cursor:not-allowed}
        .listener-summary-layout{display:flex;flex-direction:column;gap:.4rem}
        .listener-summary-row{display:flex;flex-wrap:wrap;gap:.45rem 1.2rem;align-items:center}
        .listener-summary-item{display:inline-flex;align-items:center;gap:.25rem}
        .listener-summary-actions{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;padding-top:.35rem;border-top:1px solid #e8edf3}
        .listener-summary-actions .btn{line-height:1.1}
        .listener-summary-actions form{margin:0}
        .table-responsive{border-radius:.5rem;overflow:hidden}
        #listenerTable thead th{border-top:0}
        #listenerTable tbody tr.listener-row-main td,
        #listenerTable tbody tr.listener-row-main+tr.listener-row-sub td{background:#fff}
        #listenerTable tbody tr.listener-row-main:nth-of-type(4n+3) td,
        #listenerTable tbody tr.listener-row-main:nth-of-type(4n+3)+tr.listener-row-sub td{background:#f6f9ff}
        #listenerTable tbody tr.listener-row-main td{padding-top:.9rem}
        #listenerTable tbody tr.listener-row-main+tr.listener-row-sub td{padding-bottom:1rem}
        @media (max-width: 991.98px){
            .admin-directory-shell{padding:18px}
            .admin-search-field{max-width:none}
            #listenerTable{min-width:760px}
        }

/* Source: dashboard/dashboard_admin/login.php */
body {
            background: radial-gradient(circle at 20% 20%, rgba(88, 126, 255, 0.08), transparent 35%),
                        radial-gradient(circle at 80% 0%, rgba(255, 179, 71, 0.1), transparent 30%),
                        #f7f9fb;
            min-height: 100vh;
        }
        .auth-wrapper {
            max-width: 540px;
            margin: 60px auto 40px;
        }
        .auth-card {
            border: none;
            border-radius: 16px;
            box-shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
            overflow: hidden;
            background: #fff;
        }
        .auth-header {
            background: linear-gradient(135deg, #0f1d2d, #12335b);
            padding: 22px 24px;
        }
        .auth-header h1,
        body.home-page .auth-header h1 {
            font-size: 1.5rem;
            margin: 0;
            font-weight: 600;
            color: #fff;
        }
        .auth-body {
            padding: 28px 26px 24px;
        }
        .auth-body .form-control {
            border-radius: 10px;
            padding: 12px 14px;
        }
        .auth-actions {
            display: flex;
            justify-content: flex-start;
            gap: 12px;
            margin-top: 10px;
        }
        .btn-brand {
            background: linear-gradient(135deg, #0f1d2d, #12335b);
            border: none;
            color: #fff;
            padding: 10px 18px;
            border-radius: 10px;
            font-weight: 600;
            box-shadow: 0 10px 25px rgba(18, 51, 91, 0.25);
        }
        .btn-brand:hover {
            color: #fff;
            transform: translateY(-1px);
        }
        .auth-note {
            font-size: 0.9rem;
            color: #6c757d;
            margin-bottom: 12px;
        }
        @media (max-width: 576px) {
            .auth-wrapper {
                margin: 32px 12px;
            }
        }

/* Source: dashboard/dashboard_admin/manage_papers.php */
html,body{-webkit-print-color-adjust:exact;print-color-adjust:exact}
    body{font-family:"DejaVu Sans",Arial,Helvetica,sans-serif;color:#222;margin:0;background:#f5f6f8}
    .wrap{position:relative;overflow:hidden;max-width:860px;margin:20px auto;background:#fff;border:1px solid #ddd;padding:24px}
    .watermark{position:absolute;top:54%;left:50%;transform:translate(-50%,-50%) rotate(-28deg);font-size:82px;font-weight:900;letter-spacing:4px;white-space:nowrap;opacity:.15;z-index:2;pointer-events:none;line-height:1;text-align:center}
    .watermark .wm-line{display:block}
    .watermark .wm-line-bottom{margin-top:8px}
    .watermark-unpaid{color:#c32626}
    .watermark-paid{color:#1d6f42}
    .conference{text-align:center;margin-bottom:14px;background:#1f4f96;color:#fff;border-radius:12px;padding:16px 18px;box-shadow:0 4px 14px rgba(0,0,0,.08)}
    .conference-name{font-size:20px;font-weight:700;margin:0 0 6px}
    .conference-meta{color:#e8f2ff;font-size:14px}
    .conference-divider{border:none;border-top:2px solid #cfdff5;margin:14px 0 18px}
    .head{display:table;width:100%;table-layout:fixed;box-sizing:border-box;margin-bottom:16px;border:2px solid #cfdff5;background:#f5f9ff;border-radius:10px;padding:12px 14px}
    .invoice-box{display:table-cell;vertical-align:top;width:62%;box-sizing:border-box;padding-right:12px;min-width:0}
    .title{font-size:24px;font-weight:700;margin:0 0 6px}
    .muted{color:#666;font-size:13px}
    .details-divider{border:none;border-top:2px solid #e6e6e6;margin:14px 0 14px}
    .meta td{padding:4px 0;vertical-align:top}
    .meta td:first-child{width:170px;color:#666}
    .waiver-badge{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:700;border:1px solid}
    .waiver-yes{background:#e7f8ec;color:#1d6f42;border-color:#8dd7a6}
    .waiver-no{background:#fdeaea;color:#9d2f2f;border-color:#f1b0b7}
    .amount-box{display:table-cell;vertical-align:top;width:38%;text-align:right;padding-left:12px;border-left:2px solid #d6e4fb;box-sizing:border-box;min-width:0;overflow:hidden}
    .amount-box .num{font-size:24px;font-weight:700;line-height:1.05;word-break:break-word}
    .section{margin-top:20px}
    .label{font-size:13px;color:#666;margin-bottom:6px}
    .notes-box{border:1px solid #ddd;background:#fbfcff;border-radius:8px;padding:10px 12px;font-size:14px;line-height:1.5;white-space:normal}
    .details-section{border:1px solid #d7e5fb;background:#f7fbff;border-radius:10px;padding:12px 14px}
    .details-table{width:100%;border-collapse:collapse}
    .details-table td{border:1px solid #dbe6f5;padding:8px 10px;font-size:13px;vertical-align:top}
    .details-table td:first-child{width:190px;background:#f2f7ff;font-weight:700;color:#415a7b}
    .bank-section{border:1px solid #d7e5fb;background:#f7fbff;border-radius:10px;padding:12px 14px}
    .bank-note{font-size:12px;color:#5f6e82;margin-bottom:8px}
    .bank-method{font-size:14px;font-weight:700;color:#1f4f96;margin-bottom:8px}
    .bank-table{width:100%;border-collapse:collapse}
    .bank-table td{border:1px solid #dbe6f5;padding:8px 10px;font-size:13px;vertical-align:top}
    .bank-table td:first-child{width:190px;background:#f2f7ff;font-weight:700;color:#415a7b}
    table.line{width:100%;border-collapse:collapse;margin-top:8px}
    table.line th,table.line td{border:1px solid #ddd;padding:10px;text-align:left;font-size:14px}
    table.line th{background:#e7f1ff;color:#1f4f96}
    .footer{margin-top:20px;font-size:12px;color:#334;background:#f2f7ff;border-top:2px solid #d3e3fb;padding:12px 14px;border-radius:8px}
    .footer-row{margin:2px 0}
    .footer a{color:#1f4f96;text-decoration:none;font-weight:600}
    .no-print{margin:0 auto 10px;max-width:860px}
    .btn{display:inline-block;padding:8px 12px;background:#213b52;color:#fff;border-radius:6px;text-decoration:none;border:none;cursor:pointer}
    .conference,.conference-divider,.head,.details-divider,.section,.footer{position:relative;z-index:1}
    @media print{
      @page{size:A4 portrait;margin:7mm}
      *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
      body{background:#fff;font-size:12px;line-height:1.25}
      .watermark{top:50%;font-size:36px;letter-spacing:1px;opacity:.10}
      .watermark .wm-line-bottom{margin-top:4px}
      .no-print{display:none!important}
      .wrap{margin:0;max-width:none;border:none;padding:10px}
      .conference{margin-bottom:8px;padding:10px 12px}
      .conference-name{font-size:16px;margin:0 0 4px}
      .conference-meta{font-size:12px}
      .conference-divider{margin:8px 0 10px}
      .head{margin-bottom:10px;padding:8px 10px}
      .title{font-size:20px;margin:0 0 4px}
      .muted{font-size:12px}
      .amount-box .num{font-size:22px}
      .details-divider{margin:8px 0 8px}
      .section{margin-top:10px}
      .label{font-size:12px;margin-bottom:4px}
      .details-section,.bank-section{padding:6px 8px}
      .details-table td,.bank-table td{padding:4px 6px;font-size:11.5px;line-height:1.15}
      .details-table td:first-child,.bank-table td:first-child{width:170px}
      table.line{margin-top:6px}
      table.line th,table.line td{padding:5px 6px;font-size:11.5px;line-height:1.15}
      .footer{margin-top:10px;padding:8px 10px;font-size:11px}
    }

/* Source: dashboard/dashboard_admin/manage_papers.php */
.btn-admin {
            background: #213b52;
            border-color: #213b52;
            color: #fff;
            border-radius: 8px;
            padding: 0.42rem 0.85rem;
            font-weight: 700;
        }

        .btn-admin:hover,
        .btn-admin:focus {
            background: #1a2f42;
            border-color: #1a2f42;
            color: #fff;
        }

        .btn-admin-outline {
            border-radius: 8px;
            border: 1px solid #c7d4e1;
            color: #213b52;
            background: #fff;
            padding: 0.42rem 0.85rem;
            font-weight: 700;
        }

        .btn-admin-outline:hover,
        .btn-admin-outline:focus {
            background: #edf4fb;
            border-color: #9fb4c8;
            color: #213b52;
        }

        .bulk-invoice-btn {
            min-width: 170px;
        }

        .waiver-percent-input {
            width: 110px;
        }

        .paper-summary-layout {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .paper-summary-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem 1.2rem;
            align-items: center;
        }

        .paper-summary-item {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }

        .acceptance-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 104px;
            padding: 0.28rem 0.75rem;
            border-radius: 999px;
            font-weight: 800;
            font-size: 0.8rem;
            line-height: 1;
            text-transform: uppercase;
            letter-spacing: 0.02em;
            border: 1px solid transparent;
        }

        .acceptance-badge.acceptance-accepted {
            background: #e7f8ec;
            color: #13653a;
            border-color: #8fd3a6;
        }

        .acceptance-badge.acceptance-rejected {
            background: #fdeaea;
            color: #a12626;
            border-color: #efb0b0;
        }

        .acceptance-badge.acceptance-other {
            background: #eef2f7;
            color: #4f6478;
            border-color: #cfd9e4;
        }

        .paper-summary-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            align-items: center;
            padding-top: 0.35rem;
            border-top: 1px solid #e8edf3;
        }

        .paper-summary-actions .btn {
            line-height: 1.1;
        }

        .table-responsive {
            border-radius: 0.5rem;
            overflow: hidden;
        }

        #papersTable thead th {
            border-top: 0;
        }

        #papersTable tbody tr.paper-row-main td,
        #papersTable tbody tr.paper-row-main+tr.paper-row-sub td {
            background: #ffffff;
        }

        #papersTable tbody tr.paper-row-main:nth-of-type(4n+3) td,
        #papersTable tbody tr.paper-row-main:nth-of-type(4n+3)+tr.paper-row-sub td {
            background: #f6f9ff;
        }

        #papersTable tbody tr.paper-row-main td {
            padding-top: 0.9rem;
        }

        #papersTable tbody tr.paper-row-main+tr.paper-row-sub td {
            padding-bottom: 1rem;
        }

        .offcanvas-advanced {
            width: min(560px, 100vw);
        }

        .advanced-actions-btn {
            white-space: nowrap;
        }

        .filters-btn {
            white-space: nowrap;
        }

        .offcanvas-filters {
            width: min(420px, 100vw);
            max-width: 100vw;
        }

        #filtersPanel.offcanvas,
        #advancedActionsPanel.offcanvas {
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            left: auto !important;
            z-index: 1050;
            width: min(420px, 100vw) !important;
            max-width: 100vw !important;
            display: block;
        }

        #advancedActionsPanel.offcanvas {
            width: min(560px, 100vw) !important;
        }

        .toolbar-actions .btn,
        .toolbar-actions .btn-sm {
            font-size: 0.86rem;
            line-height: 1.25;
            min-height: 36px;
            padding: 0.42rem 0.85rem;
            border-radius: 0.55rem;
        }

        .toolbar-actions .btn i {
            font-size: 0.8rem;
        }

        .offcanvas {
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            left: auto !important;
            z-index: 1050;
            width: min(420px, 100vw) !important;
            max-width: 100% !important;
            background: #fff;
            box-shadow: -20px 0 40px rgba(16, 24, 40, 0.18);
            transform: translateX(100%);
            transition: transform 0.25s ease;
            overflow-y: auto;
            visibility: hidden;
            display: block;
        }

        .offcanvas.show {
            transform: translateX(0);
            visibility: visible;
        }

        .offcanvas-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1rem 0.75rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .offcanvas-title {
            margin: 0;
        }

        .offcanvas-body {
            padding: 1rem;
        }

        .offcanvas-advanced .accordion {
            display: grid;
            gap: 0.85rem;
        }

        .offcanvas-advanced .accordion-item {
            border: 1px solid #d8e2ec;
            border-radius: 0.75rem;
            background: #fff;
            overflow: hidden;
        }

        .offcanvas-advanced .accordion-header {
            margin: 0;
        }

        .offcanvas-advanced .accordion-button {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 0.85rem 1rem;
            border: 0;
            background: #f7f9fb;
            color: #213b52;
            font-size: 0.95rem;
            font-weight: 800;
            line-height: 1.25;
            text-align: left;
        }

        .offcanvas-advanced .accordion-button:hover,
        .offcanvas-advanced .accordion-button:focus {
            background: #eef3f7;
            color: #213b52;
            outline: 0;
        }

        .offcanvas-advanced .accordion-button::after {
            content: "+";
            font-size: 1.1rem;
            font-weight: 900;
            line-height: 1;
            color: #607487;
        }

        .offcanvas-advanced .accordion-button:not(.collapsed)::after {
            content: "-";
        }

        .offcanvas-advanced .accordion-body {
            padding: 1rem;
            border-top: 1px solid #e4ebf2;
        }

        .offcanvas-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.35);
            z-index: 1040;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease;
        }

        .offcanvas-backdrop.show {
            opacity: 1;
            visibility: visible;
        }

        body.offcanvas-open {
            overflow: hidden;
        }

        .close-panel-btn {
            background: transparent;
            border: 0;
            font-size: 1.6rem;
            line-height: 1;
            color: #6b7280;
            cursor: pointer;
            padding: 0;
        }

        .close-panel-btn:hover {
            color: #111827;
        }

        .manage-papers-edit-modal .modal-content {
            overflow: hidden;
        }

        .manage-papers-edit-modal .modal-dialog {
            max-width: 1180px;
        }

        .manage-papers-edit-modal .modal-body {
            padding: 1rem 1.25rem;
        }

        .manage-papers-edit-modal .form-label {
            display: block;
            font-size: 0.78rem;
            font-weight: 600;
            color: #555;
            margin-bottom: 2px;
        }

        .manage-papers-edit-modal .form-control,
        .manage-papers-edit-modal .form-select {
            font-size: 0.82rem;
            padding: 0.28rem 0.55rem;
            height: auto;
            background-color: #ffffff;
        }

        .manage-papers-edit-modal .mb-2 {
            margin-bottom: 0.4rem !important;
        }

        .manage-papers-edit-modal .field-group {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 0.6rem 0.75rem 0.4rem;
            margin-bottom: 0.6rem;
        }

        .manage-papers-edit-modal .field-group-title {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #888;
            margin-bottom: 0.45rem;
        }

        .manage-papers-edit-modal .paper-id-label {
            font-size: 1rem;
            font-weight: 700;
            color: #1a56db;
        }

        .manage-papers-edit-modal .modal-footer {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.55rem;
            padding: 0.7rem 1rem 0.85rem;
            background: #f7fafc;
            border-top: 1px solid #d9e4ee;
        }

        .manage-papers-edit-modal .modal-footer form {
            margin: 0;
        }

        .manage-papers-edit-modal .modal-footer .btn {
            max-width: 100%;
            white-space: nowrap;
            font-size: 0.78rem;
            padding: 0.3rem 0.72rem;
        }

        .manage-papers-edit-modal .dialog-action-groups {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            align-items: flex-end;
        }

        .manage-papers-edit-modal .dialog-action-group {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            padding: 0.45rem 0.55rem 0.5rem;
            min-width: 0;
            background: #ffffff;
            border: 1px solid #d9e4ee;
            border-radius: 10px;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
        }

        .manage-papers-edit-modal .dialog-action-group-title {
            margin: 0;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #516579;
        }

        .manage-papers-edit-modal .dialog-action-strip {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .manage-papers-edit-modal .dialog-action-strip .btn {
            border-radius: 8px;
        }

        .manage-papers-edit-modal .dialog-action-strip .btn-admin-outline {
            background: #eef4f8;
            border-color: #c9d8e4;
            color: #26415a;
        }

        .manage-papers-edit-modal .dialog-action-strip .btn-admin-outline:hover,
        .manage-papers-edit-modal .dialog-action-strip .btn-admin-outline:focus {
            background: #e4edf5;
            border-color: #b7c9d8;
            color: #1f374c;
        }

        .manage-papers-edit-modal .dialog-action-strip .btn-outline-danger {
            background: #fff4f4;
            border-color: #efc1c1;
            color: #a63d3d;
        }

        .manage-papers-edit-modal .dialog-action-strip .btn-outline-danger:hover,
        .manage-papers-edit-modal .dialog-action-strip .btn-outline-danger:focus {
            background: #fdeaea;
            border-color: #e4a5a5;
            color: #8e2e2e;
        }

        .manage-papers-edit-modal .dialog-footer-primary {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 0.65rem;
            padding-top: 0.45rem;
            border-top: 1px solid #e1eaf2;
        }

        @media (max-width: 767px) {
            .manage-papers-edit-modal .dialog-footer-primary {
                flex-direction: column-reverse;
                align-items: stretch;
            }

            .manage-papers-edit-modal .dialog-footer-primary .btn {
                width: 100%;
            }
        }

        .manage-papers-edit-modal .waiver-row {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: nowrap;
        }

        .manage-papers-edit-modal .waiver-percent-input {
            width: 80px;
            flex-shrink: 0;
        }

        .manage-papers-search-row {
            display: flex;
            align-items: stretch;
            flex-wrap: nowrap;
            width: 100%;
            gap: 0;
            padding: 0.75rem;
            background: #f8fbfe;
            border: 1px solid #d8e2ec;
            border-radius: 10px;
        }

        .manage-papers-search-row .form-control {
            min-height: 42px;
            border-radius: 10px 0 0 10px;
            border-right: 0;
        }

        .manage-papers-search-row .btn {
            border-radius: 0 10px 10px 0;
            white-space: nowrap;
            min-width: 104px;
        }

        .manage-papers-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            align-items: center;
            margin-bottom: 1rem;
            padding: 0.55rem;
            background: #f8fbfe;
            border: 1px solid #d8e2ec;
            border-radius: 10px;
        }

        .manage-papers-toolbar-divider {
            width: 1px;
            align-self: stretch;
            background: #d8e2ec;
            margin: 0 0.15rem;
        }

/* Source: dashboard/dashboard_admin/participant_certificates.php */
/* ── consistent admin buttons ── */
        .btn-admin-outline {
            border-radius: 6px;
            border: 1px solid #c7d4e1;
            color: #213b52;
            background: #fff;
            font-weight: 600;
        }
        .btn-admin-outline:hover,
        .btn-admin-outline:focus {
            background: #edf4fb;
            border-color: #9fb4c8;
            color: #213b52;
        }

        /* ── filter bar ── */
        .pcert-filter-bar {
            background: #f4f8fd;
            border: 1px solid #d9e3ef;
            border-radius: 8px;
            padding: 14px 18px;
            margin-bottom: 18px;
        }
        .pcert-filter-bar .form-group { margin-bottom: 0; }
        .pcert-filter-bar .form-control { background-color: #fff; }

        /* ── bulk action bar ── */
        .pcert-bulk-bar {
            background: #fff;
            border: 1px solid #d9e3ef;
            border-bottom: 0;
            border-radius: 8px 8px 0 0;
            padding: 10px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        /* ── table ── */
        #pcertTable { margin-bottom: 0; }
        #pcertTable thead th { border-top: 0; background: #f0f4fa; }

        #pcertTable tbody tr.pcert-row-main td,
        #pcertTable tbody tr.pcert-row-main + tr.pcert-row-sub td {
            background: #ffffff;
        }
        #pcertTable tbody tr.pcert-row-main:nth-of-type(4n+3) td,
        #pcertTable tbody tr.pcert-row-main:nth-of-type(4n+3) + tr.pcert-row-sub td {
            background: #f6f9ff;
        }
        #pcertTable tbody tr.pcert-row-main td { padding-top: 0.9rem; }
        #pcertTable tbody tr.pcert-row-sub td  { padding-top: 0; border-top: 0; }

        /* ── summary strip ── */
        .pcert-summary-layout {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            padding-bottom: 0.6rem;
        }
        .pcert-summary-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem 1.2rem;
            align-items: center;
        }
        .pcert-summary-item {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
        }
        .pcert-summary-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            align-items: center;
            padding-top: 0.35rem;
            border-top: 1px solid #e8edf3;
        }
        .pcert-summary-actions .btn { line-height: 1.1; }

        /* ── status badges ── */
        .pcert-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.22rem 0.65rem;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.75rem;
            line-height: 1;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            border: 1px solid transparent;
        }
        .pcert-status-active   { background: #e7f8ec; color: #13653a; border-color: #8fd3a6; }
        .pcert-status-pending  { background: #fff8e1; color: #7a5a00; border-color: #ffe082; }
        .pcert-status-other    { background: #eef2f7; color: #4f6478; border-color: #cfd9e4; }
        .pcert-cert-generated  { background: #e3f0ff; color: #0b4da1; border-color: #90b8ef; }
        .pcert-cert-pending    { background: #f3f3f3; color: #777;    border-color: #ccc; }

        /* ── role pills ── */
        .pcert-role-pill {
            font-size: .72rem;
            background: #e8f0fe;
            color: #174ea6;
            border-radius: 4px;
            padding: 1px 7px;
            display: inline-block;
        }

        /* ── result list ── */
        .pcert-result-list { max-height: 220px; overflow-y: auto; }

        .table-responsive { border-radius: 0 0 0.5rem 0.5rem; overflow: hidden; }

/* Source: dashboard/dashboard_admin/participants.php */
.admin-directory-shell {
            background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
            border: 1px solid #d9e7f2;
            border-radius: 24px;
            padding: 24px;
            box-shadow: 0 18px 48px rgba(24, 54, 84, 0.08);
        }

        .admin-directory-toolbar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
        }

        .participant-status-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 0 0 18px;
        }

        .participant-status-filter {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 34px;
            padding: 0.38rem 0.8rem;
            border: 1px solid #bfd0df;
            border-radius: 999px;
            color: #1d3f5f;
            background: #fff;
            font-size: 0.83rem;
            font-weight: 700;
            text-decoration: none;
        }

        .participant-status-filter:hover,
        .participant-status-filter:focus {
            background: #eef6fb;
            color: #142e48;
            text-decoration: none;
        }

        .participant-status-filter.active {
            background: #1f3d59;
            border-color: #1f3d59;
            color: #fff;
        }

        .participant-status-filter-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 22px;
            height: 22px;
            padding: 0 7px;
            border-radius: 999px;
            background: rgba(31, 61, 89, 0.12);
            color: inherit;
            font-size: 0.74rem;
            font-weight: 800;
        }

        .participant-status-filter.active .participant-status-filter-count {
            background: rgba(255, 255, 255, 0.18);
        }

        .admin-search-field {
            position: relative;
            flex: 1 1 340px;
            max-width: 420px;
        }

        .admin-filter-field {
            flex: 0 0 220px;
        }

        .admin-filter-field .form-control,
        .admin-filter-field .form-select {
            min-height: 40px;
            border-radius: 12px;
            border-color: #cbdceb;
            background: #fff;
            font-size: 0.9rem;
            padding-top: 0.42rem;
            padding-bottom: 0.42rem;
        }

        .admin-search-field i {
            position: absolute;
            top: 50%;
            left: 18px;
            transform: translateY(-50%);
            color: #5d7690;
            font-size: 0.95rem;
        }

        .admin-search-field .form-control {
            min-height: 40px;
            padding: 0.55rem 0.9rem 0.55rem 2.55rem;
            border-radius: 12px;
            border-color: #cbdceb;
            background: #fff;
            font-size: 0.9rem;
        }

        .admin-directory-summary {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #577086;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .participant-page-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 36px;
            padding: 0.42rem 0.85rem;
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            text-transform: none;
            transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
        }

        .participant-page-btn.btn-primary {
            background: #e9f2f8;
            border-color: #b7cada;
            color: #1d5378;
        }

        .participant-page-btn.btn-primary:hover,
        .participant-page-btn.btn-primary:focus {
            background: #dcebf5;
            border-color: #9eb9cd;
            color: #163249;
        }

        .participant-page-btn.btn-outline-primary,
        .participant-page-btn.btn-outline-secondary {
            background: #fff;
            border-color: #b7cada;
            color: #1d5378;
        }

        .participant-page-btn.btn-outline-primary:hover,
        .participant-page-btn.btn-outline-primary:focus,
        .participant-page-btn.btn-outline-secondary:hover,
        .participant-page-btn.btn-outline-secondary:focus {
            background: #f1f7fb;
            border-color: #9eb9cd;
            color: #163249;
        }

        .participant-page-actions {
            flex-wrap: wrap;
        }

        .participant-top-action {
            min-height: 34px;
            padding: 0.32rem 0.75rem;
            border: 1px solid #cfdbe7;
            border-radius: 8px;
            background: #fff;
            color: #28435e;
            font-size: 0.82rem;
            font-weight: 600;
            line-height: 1.2;
            text-decoration: none;
            gap: 0.4rem;
        }

        .participant-top-action:hover,
        .participant-top-action:focus {
            background: #eef6fd;
            border-color: #8fb8d9;
            color: #17314d;
            text-decoration: none;
        }

        .participant-top-action i {
            color: #17314d;
            font-size: 0.88rem;
        }

        .participant-bulk-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px;
            background: #edf4fb;
            border: 1px solid #c8dcea;
            border-radius: 8px;
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .participant-bulk-bar label { margin: 0; font-size: 0.82rem; color: #2a4a62; cursor: pointer; }
        .participant-card-checkbox { width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; margin-top: 3px; }

        .participant-directory-head {
            display: grid;
            grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(160px, 0.9fr);
            gap: 18px;
            padding: 0 18px 12px;
            font-size: 0.76rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #6d8296;
        }

        .participant-directory-list {
            display: grid;
            gap: 14px;
        }

        .participant-directory-card {
            display: grid;
            gap: 12px;
            padding: 18px 16px;
            border: 1px solid #e2ecf4;
            border-radius: 20px;
            background: #fff;
            box-shadow: 0 10px 30px rgba(30, 58, 90, 0.06);
        }

        .participant-card-content {
            display: grid;
            grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr);
            gap: 18px;
            align-items: start;
        }

        .participant-card-content>div {
            min-width: 0;
            font-size: 0.92rem;
            font-weight: 400;
            color: #22384d;
            line-height: 1.45;
        }

        .participant-card-content .participant-title {
            margin-bottom: 4px;
        }

        .participant-card-content .participant-detail-line+.participant-detail-line {
            margin-top: 4px;
        }

        .participant-actions-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-top: 10px;
            border-top: 1px solid #ecf2f7;
        }

        .participant-action-list {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            min-width: 0;
        }

        .participant-action-list form {
            margin: 0;
        }

        .participant-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 0;
            border: 0;
            background: transparent;
            color: #1d5378;
            font-size: 0.9rem;
            font-weight: 400;
            text-decoration: none;
            cursor: pointer;
            transition: color 0.18s ease;
        }

        .participant-action-btn span {
            display: inline;
            text-decoration: underline;
            text-decoration-thickness: 0.08em;
            text-underline-offset: 0.16em;
            text-decoration-color: currentColor;
        }

        .participant-action-btn.action-danger {
            color: #963737;
        }

        .participant-action-btn.action-primary {
            color: #1d5378;
        }

        .participant-action-btn.action-primary:hover,
        .participant-action-btn.action-primary:focus {
            color: #163249;
        }

        .participant-action-btn:not(.action-primary):hover,
        .participant-action-btn:not(.action-primary):focus {
            color: #163249;
            text-decoration: none;
        }

        .participant-action-btn.action-danger:hover,
        .participant-action-btn.action-danger:focus {
            color: #7f2525;
        }

        .participant-edit-dialog {
            width: min(96vw, 1380px);
            max-width: min(96vw, 1380px);
            margin: 1.5rem auto;
        }

        .participant-edit-dialog .modal-content {
            border: 0;
            border-radius: 18px;
            box-shadow: 0 24px 60px rgba(15, 34, 56, 0.2);
        }

        .participant-edit-dialog .modal-header,
        .participant-edit-dialog .modal-footer {
            padding: 0.9rem 1.15rem;
        }

        .participant-edit-dialog .modal-body {
            padding: 1rem 1.25rem 1.2rem;
        }

        .participant-edit-dialog .card-body {
            padding: 1rem 1.05rem;
        }

        .participant-edit-dialog .form-control,
        .participant-edit-dialog .form-select {
            min-height: 36px;
            padding-top: 0.32rem;
            padding-bottom: 0.32rem;
            padding-left: 0.7rem;
            padding-right: 0.7rem;
            font-size: 0.88rem;
            border-radius: 10px;
        }

        .participant-edit-dialog .form-label {
            margin-bottom: 0.32rem;
            font-size: 0.8rem;
            font-weight: 700;
            color: #3a4e61;
        }

        .participant-edit-dialog .form-text {
            margin-top: 0.28rem;
            font-size: 0.76rem;
            line-height: 1.35;
        }

        .participant-edit-dialog .card {
            margin-bottom: 0.9rem;
        }

        .participant-edit-dialog .card-header {
            padding: 0.7rem 0.95rem;
            font-size: 0.9rem;
            font-weight: 700;
        }

        .participant-edit-dialog .alert {
            margin-bottom: 0.85rem;
            padding: 0.8rem 0.95rem;
            font-size: 0.92rem;
        }

        .participant-edit-dialog .modal-title {
            font-size: 0.98rem;
            font-weight: 700;
        }

        .participant-edit-dialog .close {
            font-size: 1.8rem;
        }

        .participant-edit-dialog .compact-checklist label {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            margin: 0;
            font-size: 0.88rem;
            white-space: nowrap;
        }

        .participant-edit-dialog .compact-checklist {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem 1rem;
            min-height: 36px;
        }

        .participant-edit-dialog .participant-photo-preview {
            margin-bottom: 0.9rem;
            text-align: center;
        }

        .participant-edit-dialog .participant-photo-preview img {
            display: block;
            width: auto;
            max-width: 100%;
            max-height: 220px;
            margin: 0 auto;
            border-radius: 14px;
            border: 1px solid #d6e3ee;
            object-fit: cover;
            background: #f7fbfe;
        }

        .participant-edit-dialog .participant-photo-preview a {
            display: inline-block;
            margin-top: 0.45rem;
            font-size: 0.82rem;
        }

        .participant-edit-dialog .form-check {
            margin-bottom: 0.2rem;
        }

        .participant-edit-dialog textarea.form-control {
            min-height: 92px;
        }

        .participant-setup-link-box {
            display: block;
            width: 100%;
            padding: 0.8rem 0.95rem;
            border: 1px solid #9ed3e0;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.5);
            color: #0b63ce;
            line-height: 1.45;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .participant-setup-link-label {
            color: #234158;
            font-weight: 700;
        }

        .participant-empty-state {
            display: none;
            margin-top: 16px;
            padding: 18px 20px;
            border-radius: 16px;
            background: #f5f8fb;
            color: #60778c;
            text-align: center;
        }

        .participant-empty-state.is-visible {
            display: block;
        }

        .participant-hidden-form {
            display: none;
        }

        .participant-bulk-send-btn {
            border-color: #b7cada;
            background: #fff;
            color: #1d5378;
        }

        .participant-card-header {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .participant-card-main {
            flex: 1;
            min-width: 0;
        }

        .participant-directory-card.is-hidden {
            display: none !important;
        }

        @media (max-width: 991.98px) {
            .admin-directory-shell {
                padding: 18px;
            }

            .participant-directory-head {
                display: none;
            }

            .participant-directory-card {
                gap: 14px;
                padding: 16px;
                box-shadow: none;
            }

            .participant-card-content {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .participant-actions-row {
                padding-top: 8px;
            }

            .admin-filter-field {
                flex: 1 1 220px;
            }

            .participant-edit-dialog {
                width: calc(100vw - 20px);
                max-width: calc(100vw - 20px);
                margin: 0.5rem auto;
            }

            .participant-edit-dialog .modal-body,
            .participant-edit-dialog .modal-header,
            .participant-edit-dialog .modal-footer {
                padding-left: 1rem;
                padding-right: 1rem;
            }
        }

/* Source: dashboard/dashboard_admin/payment_methods.php */
.payment-method-card {
            border: 1px solid #dde5ef;
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 12px;
        }

        .tiny-label {
            font-size: 0.86rem;
            color: #4b5b6f;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #213b52;
            margin-bottom: 12px;
        }

        .paper-picker-table-wrap {
            max-height: 360px;
            overflow: auto;
            border: 1px solid #dde5ef;
            border-radius: 8px;
        }

        .paper-picker-table td,
        .paper-picker-table th {
            vertical-align: middle;
        }

        .paper-picker-table td:nth-child(2) {
            width: 140px;
            white-space: nowrap;
        }

        .methods-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .method-table {
            table-layout: fixed;
        }

        .method-table th,
        .method-table td {
            vertical-align: top;
            white-space: normal;
            word-break: break-word;
        }

        .method-table th:nth-child(1) { width: 14%; }
        .method-table th:nth-child(2) { width: 23%; }
        .method-table th:nth-child(3) { width: 40%; }
        .method-table th:nth-child(4) { width: 11%; }
        .method-table th:nth-child(5) { width: 12%; }

        .badge-soft-success {
            background: #e7f8ec;
            color: #1d6f42;
            border: 1px solid #8dd7a6;
        }

        .badge-soft-primary {
            background: #e8f1ff;
            color: #1f4f96;
            border: 1px solid #b8cef5;
        }

        .badge-soft-muted {
            background: #f1f3f5;
            color: #5b6775;
            border: 1px solid #d8dde3;
        }

        .method-action-btn {
            width: 36px;
            height: 36px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
        }

        .modal-form-grid .form-label {
            font-weight: 600;
            color: #213b52;
        }

        .modal-alert {
            display: none;
            margin-bottom: 1rem;
        }

        .methods-panel-body {
            padding-top: 1rem;
        }

        .methods-toolbar-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .methods-search-group {
            min-width: min(100%, 540px);
            max-width: 100%;
        }

        .methods-search-group .form-control {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }

        .methods-search-group .btn {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
            min-width: 54px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .payment-method-modal-actions {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
        }

        .payment-method-modal-actions .btn {
            min-width: 138px;
            border-radius: 18px;
            padding: 0.85rem 1.2rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
            border-width: 1px;
        }

        .payment-method-modal-actions .btn i {
            width: 1.05rem;
            text-align: center;
        }

        .payment-method-modal-actions .btn-outline-primary,
        .payment-method-modal-actions .btn-outline-secondary,
        .payment-method-modal-actions .btn-outline-danger {
            background: #fff;
        }

        .payment-method-modal-actions .btn-outline-primary {
            color: #17314d;
            border-color: #c8d8ea;
        }

        .payment-method-modal-actions .btn-outline-primary:hover,
        .payment-method-modal-actions .btn-outline-primary:focus {
            background: #f7fbff;
            border-color: #9fc0df;
            color: #17314d;
        }

        .payment-method-modal-actions .btn-outline-secondary {
            color: #5b6775;
            border-color: #c8d8ea;
        }

        .payment-method-modal-actions .btn-outline-secondary:hover,
        .payment-method-modal-actions .btn-outline-secondary:focus {
            background: #f7fbff;
            border-color: #9fc0df;
            color: #17314d;
        }

        .payment-method-modal-actions .btn-outline-danger {
            color: #d33b3b;
            border-color: #f0b9bf;
        }

        .payment-method-modal-actions .btn-outline-danger:hover,
        .payment-method-modal-actions .btn-outline-danger:focus {
            background: #fff6f7;
            border-color: #e3959f;
            color: #bd2026;
        }

        .payment-method-modal-actions .btn-primary {
            background: #0f5fae;
            border-color: #0f5fae;
            color: #fff;
        }

        .payment-method-modal-actions .btn-primary:hover,
        .payment-method-modal-actions .btn-primary:focus {
            background: #0d5398;
            border-color: #0d5398;
            color: #fff;
        }

        .payment-method-modal-header {
            background: #0f5fae;
            color: #fff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        }

        .payment-method-modal-header .modal-title {
            color: #fff;
            font-weight: 800;
        }

        .payment-method-modal-header .close {
            color: #fff;
            opacity: .9;
            text-shadow: none;
        }

        .payment-method-modal-header .close:hover,
        .payment-method-modal-header .close:focus {
            color: #fff;
            opacity: 1;
        }

        #paymentMethodModal,
        #paymentMethodModal.show {
            z-index: 1085 !important;
        }

        #paymentMethodModal .modal-dialog {
            pointer-events: none;
            position: relative;
            z-index: 1086;
        }

        #paymentMethodModal .modal-content,
        #paymentMethodModal .modal-header,
        #paymentMethodModal .modal-body,
        #paymentMethodModal .modal-footer,
        #paymentMethodModal input,
        #paymentMethodModal select,
        #paymentMethodModal textarea,
        #paymentMethodModal button,
        #paymentMethodModal label {
            pointer-events: auto;
        }

        #paymentMethodModal .modal-content {
            position: relative;
            z-index: 1087;
        }

        body.payment-method-modal-open .dashboard-shell-header {
            z-index: 1000 !important;
        }

        .modal-backdrop.payment-method-backdrop,
        .modal-backdrop.payment-method-backdrop.show {
            z-index: 1080 !important;
        }

        .payment-methods-section {
            border: 1px solid #d9e5f1;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 26px rgba(0, 43, 108, 0.06);
        }

        .payment-methods-section .card-header {
            background: var(--ccidsa-navy, #002b6c);
            color: #fff;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .payment-methods-section .card-header.card-header-nav {
            background: #dfe7f2 !important;
            border-color: #c8d6e8 !important;
            color: #17314d !important;
        }

        .payment-methods-section .card-body {
            background: #fff;
        }

/* Source: dashboard/dashboard_admin/payments.php */
body{font-family:Arial,Helvetica,sans-serif;color:#222;margin:0;background:#f5f6f8}.no-print{margin:0 auto 10px;max-width:860px}.btn{display:inline-block;padding:8px 12px;background:#213b52;color:#fff;border-radius:6px;text-decoration:none;border:none;cursor:pointer}.wrap{max-width:860px;margin:20px auto;background:#fff;border:1px solid #ddd;padding:24px}.head{display:flex;justify-content:space-between;gap:16px;margin-bottom:14px}.title{font-size:24px;font-weight:700;margin:0 0 6px}.muted{color:#666;font-size:13px}.num{font-size:26px;font-weight:700}table{width:100%;border-collapse:collapse;margin-top:8px}table td,table th{border:1px solid #ddd;padding:9px;vertical-align:top}table th{background:#ecf4ff;color:#1f4f96;text-align:left}.footer{margin-top:18px;font-size:12px;color:#334;background:#f2f7ff;border-top:2px solid #d3e3fb;padding:12px}@media print{body{background:#fff}.no-print{display:none!important}.wrap{margin:0;max-width:none;border:none}}

/* Source: dashboard/dashboard_admin/payments.php */
.btn-admin{background:#213b52;border-color:#213b52;color:#fff;border-radius:8px;padding:.42rem .85rem;font-weight:700}
        .btn-admin:hover,.btn-admin:focus{background:#1a2f42;border-color:#1a2f42;color:#fff}
        .btn-admin-outline{border-radius:8px;border:1px solid #c7d4e1;color:#213b52;background:#fff;padding:.42rem .85rem;font-weight:700}
        .btn-admin-outline:hover,.btn-admin-outline:focus{background:#edf4fb;border-color:#9fb4c8;color:#213b52}

        /* Order cards */
        .order-card{border-radius:14px;overflow:hidden;margin-bottom:1rem;box-shadow:0 2px 10px rgba(20,45,72,.07)}
        .order-card .card-header{padding:0;border-bottom:none}
        .order-toggle{display:flex;align-items:center;gap:.75rem;width:100%;background:none;border:none;text-align:left;padding:.85rem 1.1rem;cursor:pointer;transition:background .15s}
        .order-toggle:focus{outline:2px solid #4d9fec;outline-offset:-2px}

        /* Status colours */
        .order-submitted .order-toggle{background:#fffbec}
        .order-submitted .order-toggle:hover{background:#fff3c4}
        .order-submitted .card-body{background:#fffdf5;border-top:1px solid #f5e8a0}
        .order-paid .order-toggle{background:#edfbf3}
        .order-paid .order-toggle:hover{background:#d8f5e8}
        .order-paid .card-body{background:#f5fdf8;border-top:1px solid #a8e4c3}
        .order-rejected .order-toggle{background:#fef2f2}
        .order-rejected .order-toggle:hover{background:#fde5e5}
        .order-rejected .card-body{background:#fff8f8;border-top:1px solid #f5c6c6}
        .order-pending .order-toggle{background:#eff6ff}
        .order-pending .order-toggle:hover{background:#dbeafe}
        .order-pending .card-body{background:#f8faff;border-top:1px solid #bfdbfe}

        /* Header layout */
        .order-toggle-chevron{font-size:.75rem;color:#8a9bb0;transition:transform .2s;flex-shrink:0}
        .order-toggle[aria-expanded="true"] .order-toggle-chevron{transform:rotate(180deg)}
        .order-meta-grid{display:flex;flex-wrap:wrap;gap:.3rem .9rem;align-items:center;flex:1;min-width:0}
        .order-number{font-family:monospace;font-size:.82rem;font-weight:700;color:#213b52;white-space:nowrap}
        .order-meta-pill{font-size:.78rem;color:#556;white-space:nowrap}
        .order-meta-pill strong{color:#1a2a3a}
        .order-total-badge{font-size:.85rem;font-weight:800;color:#213b52;white-space:nowrap;margin-left:auto;padding-left:.5rem}
        .status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex-shrink:0}
        .status-dot-submitted{background:#f59e0b}
        .status-dot-paid{background:#22c55e}
        .status-dot-rejected{background:#ef4444}
        .status-dot-pending{background:#3b82f6}

        /* Body */
        .order-section-label{font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#8a9bb0;margin-bottom:.3rem}
        .order-body-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.6rem 1.2rem;margin-bottom:.9rem}
        .order-body-cell{font-size:.85rem;color:#344}
        .order-body-cell strong{display:block;font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#8a9bb0;margin-bottom:.15rem}
        .line-items-table{font-size:.82rem}
        .line-items-table td,.line-items-table th{vertical-align:middle;padding:.45rem .6rem}
        .line-items-table thead th{background:#f0f4f8;color:#334;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
        .money{font-variant-numeric:tabular-nums;white-space:nowrap}
        .order-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding-top:.75rem;border-top:1px solid rgba(0,0,0,.07);margin-top:.5rem}
        .payment-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin:.85rem 0 1rem}
        .payment-summary-cell{border:1px solid #d8e2ec;border-radius:8px;background:#f8fbfe;padding:.6rem .75rem}
        .payment-summary-cell strong{display:block;font-size:.72rem;letter-spacing:.05em;text-transform:uppercase;color:#71859d;margin-bottom:.2rem}
        .payment-summary-cell span{font-size:1rem;font-weight:800;color:#213b52}
        .payment-panel-title{font-size:.72rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#71859d;margin:.7rem 0 -.35rem}
        .payment-export-group{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;padding:.65rem;background:#f8fbfe;border:1px solid #d8e2ec;border-radius:8px}
        .payment-export-group-label{font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#71859d;margin-right:.25rem}
        .payment-search-panel{padding:.75rem;background:#f8fbfe;border:1px solid #d8e2ec;border-radius:10px;margin-bottom:1rem}
        .payment-search-field{width:100%}
        .payment-search-field label{display:block;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#71859d;margin-bottom:.28rem}
        .payment-search-group{display:flex;width:100%;align-items:stretch}
        .payment-search-group .form-control{min-height:42px;border-radius:10px 0 0 10px;border-right:0}
        .payment-search-group .btn-admin{border-radius:0 10px 10px 0;min-width:104px}
        .payment-search-clear{margin-top:.5rem}
        .payment-toolbar{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-bottom:1rem;padding:.55rem;background:#f8fbfe;border:1px solid #d8e2ec;border-radius:10px}
        .payment-toolbar-divider{width:1px;align-self:stretch;background:#d8e2ec;margin:0 .15rem}
        .payment-filter-button{display:inline-flex;align-items:center;gap:.45rem;min-height:36px}
        .payment-filter-button .badge{border-radius:999px;padding:.25rem .45rem;font-size:.72rem}
        .payment-filter-button.btn-admin .badge{background:#fff;color:#213b52}
        .payment-filter-button.btn-admin-outline .badge{background:#eef3f8;color:#213b52}
        .payment-live-empty{display:none}
        .payment-live-empty.is-visible{display:block}
        .payment-review-alert{display:inline-flex;align-items:center;gap:.35rem;border-radius:999px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;padding:.18rem .48rem;font-size:.72rem;font-weight:800}
        .refund-badge{display:inline-flex;align-items:center;gap:.3rem;border-radius:999px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;padding:.18rem .55rem;font-size:.72rem;font-weight:800}
        .refund-history{margin-top:.5rem;padding:.5rem .65rem;background:#fff8f8;border-radius:8px;border:1px solid #fecaca;font-size:.78rem;color:#7f1d1d}
        .refund-history-row{display:flex;justify-content:space-between;gap:1rem;padding:.15rem 0;border-bottom:1px solid #fee2e2}
        .refund-history-row:last-child{border-bottom:none}
        .refund-form{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-end;padding-top:.6rem;border-top:1px solid rgba(0,0,0,.07);margin-top:.5rem}
        .refund-form label{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#7a93ab;display:block;margin-bottom:2px}
        .refund-form input[type="number"],.refund-form input[type="text"]{min-height:36px;border-radius:8px;border:1px solid #c8d9e8;padding:.3rem .6rem;font-size:.85rem}
        .btn-refund{background:#fff;border:2px solid #dc2626;color:#dc2626;border-radius:8px;padding:.3rem .85rem;font-weight:700;font-size:.82rem;cursor:pointer;transition:background .14s}
        .btn-refund:hover{background:#fef2f2}

/* Source: dashboard/dashboard_admin/program_auto_generator.php */
body.home-page .card-header {
            background: #dfe7f2 !important;
            border-color: #c8d6e8 !important;
            color: #17314d !important;
        }

        .auto-page-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .auto-page-head-actions {
            flex-shrink: 0;
        }

        .auto-page-head-actions .btn {
            white-space: nowrap;
        }

        .auto-page-title {
            margin: 0;
            font-size: 2.55rem;
            font-weight: 900;
            line-height: 1.05;
            color: #1d2736;
        }

        .auto-page-subtitle {
            margin: 0.35rem 0 0;
            color: #607089;
            max-width: 760px;
        }

        .auto-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            align-items: center;
            margin-bottom: 1rem;
        }

        .auto-day-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.65rem 0.9rem;
            border: 1px solid #d8e4f2;
            border-radius: 999px;
            background: #f8fbff;
            color: #20405e;
            font-weight: 600;
        }

        .auto-run-card {
            border: 1px solid #d8e2ef;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 8px 20px rgba(24, 55, 92, 0.05);
            margin-bottom: 1rem;
        }

        .auto-run-card .card-body {
            padding: 1.1rem 1.15rem 1rem;
        }

        .auto-run-grid {
            display: grid;
            grid-template-columns: repeat(12, minmax(0, 1fr));
            gap: 1rem 1rem;
            align-items: start;
        }

        .auto-field {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0.38rem;
            min-width: 0;
        }

        .auto-field label,
        .auto-toggle-label {
            margin: 0;
            color: #35506f;
            font-size: 0.98rem;
            font-weight: 700;
            line-height: 1.2;
            white-space: nowrap;
            flex: 0 0 auto;
        }

        .home-page .auto-run-card .form-control.auto-control,
        .home-page .auto-run-card .form-select.auto-control,
        .auto-control {
            height: 2.95rem;
            min-height: 2.95rem;
            padding: 0.55rem 0.8rem;
            border-radius: 10px;
            border: 1px solid #c8d7ea;
            box-shadow: none;
            font-size: 1rem;
            line-height: 1.2;
            width: 100%;
            background: #fff !important;
        }

        .home-page .auto-run-card input.form-control,
        .home-page .auto-run-card select.form-select,
        .home-page .auto-run-card textarea.form-control {
            background: #fff !important;
        }

        .home-page .auto-run-card .form-control.auto-control-compact,
        .auto-control.auto-control-compact {
            min-width: 0;
            max-width: none;
        }

        .home-page .auto-run-card .form-select.auto-control-select,
        .auto-control.auto-control-select {
            min-width: 0;
            max-width: none;
            padding-right: 2.35rem;
        }

        .home-page .auto-run-card .form-control.auto-control-text,
        .auto-control.auto-control-text {
            width: 14rem;
            min-width: 14rem;
            max-width: 14rem;
        }

        .home-page .auto-run-card .form-control.auto-control-text-wide,
        .auto-control.auto-control-text-wide {
            width: 18rem;
            min-width: 18rem;
            max-width: 18rem;
        }

        .form-select.auto-control {
            background-position: right 0.8rem center;
        }

        .auto-control.auto-control-time {
            min-width: 8.5rem;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.02em;
        }

        .auto-control.auto-control-time::-webkit-calendar-picker-indicator {
            cursor: pointer;
            opacity: 1;
        }

        .auto-run-button,
        .auto-ghost-button {
            height: 2.95rem;
            min-height: 2.95rem;
            padding: 0 1rem;
            border-radius: 10px;
            font-weight: 700;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .auto-run-button {
            width: auto;
            white-space: nowrap;
            background: #184e77;
            border-color: #184e77;
            color: #fff;
        }

        .auto-run-button:hover,
        .auto-run-button:focus {
            background: #123b5c;
            border-color: #123b5c;
            color: #fff;
        }

        .auto-ghost-button {
            background: #f5f8fc;
            border: 1px solid #c7d4e4;
            color: #29496b;
        }

        .auto-ghost-button:hover,
        .auto-ghost-button:focus {
            background: #eaf1f8;
            border-color: #b7c7d9;
            color: #1f3d5b;
        }

        .auto-action-button {
            min-height: 2.95rem;
            padding: 0.65rem 1rem;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            white-space: nowrap;
        }

        .auto-action-button.is-primary {
            background: #184e77;
            border: 1px solid #184e77;
            color: #fff;
        }

        .auto-action-button.is-primary:hover,
        .auto-action-button.is-primary:focus {
            background: #123b5c;
            border-color: #123b5c;
            color: #fff;
        }

        .auto-action-button.is-danger {
            background: #fff5f5;
            border: 1px solid #e7b7b7;
            color: #8f2d2d;
        }

        .auto-action-button.is-danger:hover,
        .auto-action-button.is-danger:focus {
            background: #fdeaea;
            border-color: #dca1a1;
            color: #7b2323;
        }

        .auto-action-button.is-warning {
            background: #fff8ea;
            border: 1px solid #e4cf99;
            color: #815d09;
        }

        .auto-action-button.is-warning:hover,
        .auto-action-button.is-warning:focus {
            background: #fff2d8;
            border-color: #d9c17f;
            color: #694b07;
        }

        .auto-action-button.is-neutral {
            background: #f5f8fc;
            border: 1px solid #c7d4e4;
            color: #29496b;
        }

        .auto-action-button.is-neutral:hover,
        .auto-action-button.is-neutral:focus {
            background: #eaf1f8;
            border-color: #b7c7d9;
            color: #1f3d5b;
        }

        .auto-action-button.is-preview {
            background: #eef6ff;
            border: 1px solid #b9d0ea;
            color: #1e5a8f;
        }

        .auto-action-button.is-preview:hover,
        .auto-action-button.is-preview:focus {
            background: #e2eefb;
            border-color: #a9c4e3;
            color: #174a76;
        }

        .auto-toggle {
            min-height: 2.95rem;
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.65rem 0.9rem;
            border: 1px solid #d8e4f2;
            border-radius: 10px;
            background: #f8fbff;
            margin: 0;
        }

        .auto-toggle .form-check-input {
            margin: 0;
            margin-top: 0;
            float: none;
            position: static;
            flex: 0 0 auto;
        }

        .auto-toggle span {
            display: block;
            color: #24415f;
            font-size: 0.98rem;
            font-weight: 600;
            line-height: 1.2;
        }

        .auto-toggle-help {
            margin-top: 0.24rem;
            padding-left: 1.7rem;
            color: #678099;
            font-size: 0.76rem;
            line-height: 1.45;
        }

        .auto-slot-field {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(88px, 110px);
            gap: 0.55rem;
            align-items: center;
        }

        .auto-slot-field .auto-inline-mini {
            margin: 0 0 0 0.2rem;
            color: #35506f;
            font-size: 0.95rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .auto-divider {
            flex-basis: 100%;
            height: 1px;
            background: #e4edf7;
            margin: 0.1rem 0;
        }

        .auto-field.is-strategy {
            grid-column: span 6;
        }

        .auto-field.is-default-capacity {
            grid-column: span 6;
        }

        .auto-field.is-duration {
            grid-column: span 6;
        }

        .auto-field.is-planning-days {
            grid-column: span 6;
        }

        .auto-field.is-compact label {
            white-space: normal;
            overflow-wrap: break-word;
        }

        .auto-day-starts,
        .auto-form-actions {
            grid-column: 1 / -1;
        }

        .auto-field.is-toggle {
            grid-column: span 6;
        }

        .auto-slot-field {
            grid-column: span 3;
        }

        .auto-day-starts {
            display: grid;
            gap: 0.8rem;
            padding: 1rem;
            border: 1px solid #e1ebf5;
            border-radius: 14px;
            background: #fbfdff;
        }

        .auto-day-starts-title {
            color: #284765;
            font-size: 1.08rem;
            font-weight: 800;
        }

        .auto-day-starts-note {
            color: #5f7387;
            font-size: 0.92rem;
            line-height: 1.55;
        }

        .auto-day-start-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 0.85rem;
        }

        .auto-day-start-card {
            display: grid;
            gap: 0.45rem;
            padding: 0.9rem 0.95rem;
            border: 1px solid #dce8f4;
            border-radius: 12px;
            background: #fff;
        }

        .auto-day-start-card label {
            color: #2b4764;
            font-size: 0.98rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .auto-day-start-card small {
            color: #647b92;
            font-size: 0.82rem;
            line-height: 1.45;
        }

        .auto-form-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            gap: 0.75rem;
            padding-top: 0.15rem;
        }

        .auto-form-actions .auto-action-button {
            justify-content: center;
        }

        .auto-action-cluster {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .auto-action-cluster form {
            margin: 0;
        }

        .auto-preview-shell.is-hidden {
            display: none;
        }

        .auto-program-session-band {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 0;
            border-top: 1px solid #e4edf7;
        }

        .auto-program-session-band:first-child {
            border-top: 0;
        }

        .auto-program-session-band-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 0;
        }

        font-size: 0.76rem;
        font-weight: 700;
        vertical-align: middle;
        }

        .auto-program-empty {
            color: #334e68;
            font-size: 0.88rem;
            font-weight: 600;
        }

        .auto-program-session-edit {
            margin-bottom: 0.55rem;
            padding: 0;
            border: 0;
            border-radius: 0;
            background: transparent;
        }

        .auto-program-session-edit-grid {
            display: grid;
            grid-template-columns: auto minmax(150px, 170px) minmax(0, 1fr) auto;
            gap: 0.55rem;
            align-items: center;
        }

        .auto-program-inline-label {
            margin: 0;
            color: #21405d;
            font-size: 0.78rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .auto-program-inline-help,
        .auto-program-inline-stat {
            color: #5f7387;
            font-size: 0.78rem;
            font-weight: 600;
            white-space: nowrap;
        }

        .auto-program-inline-stat strong {
            color: #1d3b57;
            font-weight: 700;
        }

        .auto-program-session-edit-note {
            font-size: 0.76rem;
            line-height: 1.45;
            margin-bottom: 0.65rem;
        }

        .auto-program-session-edit-grid .auto-control.auto-control-compact {
            min-height: 34px;
            height: 34px;
            padding: 0.24rem 0.5rem;
        }

        .auto-program-session-edit-grid input[type="time"].auto-control.auto-control-compact {
            min-width: 150px;
            width: 100%;
        }

        .auto-program-session-edit-grid .auto-action-button {
            min-height: 34px;
            padding: 0.28rem 0.75rem;
            white-space: nowrap;
        }

        .auto-program-session-chip,
        .auto-program-agenda-chip {
            display: inline-flex;
            align-items: center;
            padding: 0.22rem 0.55rem;
            border-radius: 999px;
            background: #edf5fd;
            color: #245b8a;
            font-size: 0.74rem;
            font-weight: 700;
        }

        .auto-program-agenda {
            display: grid;
            gap: 0.55rem;
        }

        .auto-program-agenda-item {
            display: grid;
            grid-template-columns: 112px minmax(0, 1fr);
            gap: 0.75rem;
            align-items: center;
            padding: 0.75rem 0.85rem;
            border: 1px solid #e5eef8;
            border-radius: 14px;
            background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
        }

        .auto-program-agenda-time {
            color: #3d5d7d;
            font-size: 0.92rem;
            font-weight: 800;
            line-height: 1.45;
        }

        .auto-program-agenda-title {
            color: #1d334c;
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.45;
            margin-bottom: 0.25rem;
        }

        .auto-program-agenda-authors,
        .auto-program-agenda-mode,
        .auto-program-agenda-meta,
        .auto-program-summary-line {
            text-align: justify;
        }

        .auto-program-agenda-paper-id {
            color: #35597d;
            font-size: 0.75rem;
            font-weight: 700;
            margin-bottom: 0.18rem;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .auto-program-agenda-meta {
            color: #60758a;
            font-size: 0.8rem;
            line-height: 1.5;
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            align-items: center;
        }

        .auto-program-agenda-authors,
        .auto-program-agenda-mode {
            color: #60758a;
            font-size: 0.8rem;
            line-height: 1.5;
        }

        .auto-program-empty {
            color: #667d94;
            font-size: 0.84rem;
        }

        .auto-conflict-inspector {
            border: 1px solid #d7e3ef;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 10px 28px rgba(25, 55, 85, 0.06);
        }

        .auto-conflict-inspector .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1rem 1.25rem;
            background: #dfe7f2 !important;
            border-bottom: 1px solid #c8d6e8 !important;
            color: #17314d !important;
        }

        .auto-conflict-title {
            color: #1d334c;
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: 0;
        }

        .auto-conflict-inspector .card-body {
            padding: 1.15rem 1.25rem 1.35rem;
        }

        .auto-conflict-summary {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            margin-bottom: 1.25rem;
        }

        .auto-conflict-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.38rem;
            min-height: 2rem;
            padding: 0.34rem 0.62rem;
            border-radius: 999px;
            border: 1px solid transparent;
            color: #263b52;
            background: #f3f7fb;
            font-size: 0.82rem;
            font-weight: 800;
            line-height: 1.1;
            white-space: nowrap;
        }

        .auto-conflict-chip-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.35rem;
            height: 1.35rem;
            padding: 0 0.35rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.76);
            color: inherit;
            font-size: 0.78rem;
            font-weight: 900;
        }

        .auto-conflict-chip.is-danger {
            background: #f7f9fb;
            border-color: #d8e1ea;
            color: #29445f;
        }

        .auto-conflict-chip.is-warning {
            background: #f7f9fb;
            border-color: #d8e1ea;
            color: #29445f;
        }

        .auto-conflict-chip.is-muted {
            background: #eef4f8;
            border-color: #d4e1ea;
            color: #29445f;
        }

        .auto-conflict-inspector h6 {
            margin: 1.15rem 0 0.55rem;
            color: #1f2937;
            font-size: 0.98rem;
            font-weight: 800;
        }

        .auto-conflict-inspector h6:first-of-type {
            margin-top: 0;
        }

        .auto-conflict-inspector .small {
            font-size: 0.88rem;
            line-height: 1.55;
            font-weight: 600;
        }

        .auto-conflict-inspector .text-success {
            color: #137333 !important;
        }

        .auto-conflict-inspector .text-warning {
            color: #8a4b00 !important;
        }

        .auto-conflict-inspector .text-danger {
            color: #b42318 !important;
        }

        .auto-assignment-manager {
            border: 1px solid #d7e3ef;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 10px 28px rgba(25, 55, 85, 0.05);
        }

        .auto-assignment-manager .card-header {
            padding: 1rem 1.25rem;
            background: #dfe7f2 !important;
            border-bottom: 1px solid #c8d6e8 !important;
            color: #17314d !important;
        }

        .auto-assignment-manager-title {
            color: #1d334c;
            font-size: 1.05rem;
            font-weight: 800;
        }

        .auto-assignment-manager-note {
            margin-top: 0.25rem;
            color: #637b92;
            font-size: 0.86rem;
            line-height: 1.45;
        }

        .auto-assignment-session {
            display: grid;
            gap: 0.75rem;
            padding: 1rem 0;
            border-top: 1px solid #edf2f7;
        }

        .auto-assignment-session:first-child {
            border-top: 0;
            padding-top: 0;
        }

        .auto-assignment-session:last-child {
            padding-bottom: 0;
        }

        .auto-assignment-session-head {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }

        .auto-assignment-session-title {
            color: #1f3348;
            font-size: 0.98rem;
            font-weight: 800;
            line-height: 1.35;
        }

        .auto-assignment-session-meta {
            color: #5f7489;
            font-size: 0.82rem;
            font-weight: 700;
        }

        .auto-assignment-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.9rem;
        }

        .auto-assignment-panel {
            display: grid;
            gap: 0.65rem;
            padding: 0.85rem;
            border: 1px solid #e0eaf4;
            border-radius: 12px;
            background: #fbfdff;
        }

        .auto-assignment-panel-title {
            color: #294765;
            font-size: 0.86rem;
            font-weight: 850;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .auto-assignment-form {
            display: grid;
            grid-template-columns: minmax(180px, 1fr) minmax(120px, 150px) auto;
            gap: 0.55rem;
            align-items: center;
        }

        .auto-assignment-form.is-speaker {
            grid-template-columns: minmax(180px, 1fr) auto;
        }

        .auto-assignment-form .form-select,
        .auto-assignment-form .form-control {
            min-height: 2.45rem;
            border-radius: 9px;
            border-color: #cbd9e8;
            font-size: 0.9rem;
        }

        .auto-assignment-list {
            display: grid;
            gap: 0.45rem;
        }

        .auto-assignment-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.52rem 0.65rem;
            border: 1px solid #e5edf5;
            border-radius: 10px;
            background: #fff;
        }

        .auto-assignment-name {
            color: #263b52;
            font-size: 0.88rem;
            font-weight: 750;
            line-height: 1.35;
        }

        .auto-assignment-sub {
            color: #667b90;
            font-size: 0.78rem;
            line-height: 1.35;
        }

        .auto-assignment-remove {
            min-height: 2rem;
            padding: 0.28rem 0.55rem;
            border-radius: 8px;
            border: 1px solid #f1b8b8;
            background: #fff5f5;
            color: #9b1c1c;
            font-size: 0.8rem;
            font-weight: 800;
        }

        @media (max-width: 1199.98px) {
            .auto-run-grid {
                grid-template-columns: repeat(8, minmax(0, 1fr));
            }

            .auto-field.is-strategy {
                grid-column: span 4;
            }

            .auto-field.is-default-capacity,
            .auto-field.is-duration,
            .auto-field.is-planning-days {
                grid-column: span 4;
            }

            .auto-field.is-toggle {
                grid-column: span 4;
            }

            .auto-slot-field {
                grid-column: span 4;
            }

            .auto-slot-field {
                flex-wrap: wrap;
            }

            .auto-program-agenda-item {
                grid-template-columns: 1fr;
            }

            .auto-program-session-band-grid {
                grid-template-columns: 1fr;
            }

            .auto-program-session-edit-grid {
                grid-template-columns: 1fr;
                align-items: stretch;
            }

            .auto-program-inline-label,
            .auto-program-inline-help,
            .auto-program-inline-stat {
                white-space: normal;
            }

            .auto-program-session-edit-grid {
                grid-template-columns: 1fr;
                align-items: stretch;
            }

            .auto-program-session {
                border-left: 0;
                border-top: 1px solid #e4edf7;
            }

            .auto-program-session:first-child {
                border-top: 0;
            }
        }

        @media (max-width: 767.98px) {
            .auto-page-head {
                flex-direction: column;
                align-items: stretch;
            }

            .auto-run-grid,
            .auto-day-start-grid {
                grid-template-columns: 1fr;
            }

            .auto-field.is-strategy,
            .auto-field.is-default-capacity,
            .auto-field.is-duration,
            .auto-field.is-planning-days,
            .auto-field.is-toggle,
            .auto-slot-field {
                grid-column: span 1;
            }

            .auto-slot-field {
                grid-template-columns: 1fr;
            }

            .auto-form-actions,
            .auto-action-cluster {
                justify-content: stretch;
            }

            .auto-form-actions .auto-action-button,
            .auto-action-cluster .auto-action-button {
                width: 100%;
            }

            .auto-conflict-inspector .card-header {
                align-items: stretch;
                flex-direction: column;
            }

            .auto-conflict-inspector .card-header .auto-action-button {
                width: 100%;
            }

            .auto-assignment-grid,
            .auto-assignment-form,
            .auto-assignment-form.is-speaker {
                grid-template-columns: 1fr;
            }
        }

        /* ── Session Builder ───────────────────────────────────────────── */
        .sb-section {
            border: 1px solid #d0def0;
            border-radius: 14px;
            background: #f8fbff;
            padding: 1rem 1.1rem 1.2rem;
            margin-top: 0.25rem;
        }
        .sb-section-title {
            font-size: 1.08rem;
            font-weight: 800;
            color: #1e3f5f;
            margin-bottom: 0.2rem;
        }
        .sb-section-note {
            font-size: 0.87rem;
            color: #5a7190;
            margin-bottom: 1rem;
            line-height: 1.55;
        }
        .sb-day-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.6rem;
            margin-bottom: 0.75rem;
        }
        .sb-day-name {
            font-weight: 700;
            color: #1c3a57;
            font-size: 0.96rem;
        }
        .sb-day-start-row {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }
        .sb-day-start-row label {
            margin: 0;
            font-weight: 600;
            color: #3a5770;
            font-size: 0.89rem;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .sb-day-summary {
            font-size: 0.82rem;
            color: #607080;
            font-weight: 600;
        }
        .sb-validation-issues {
            margin-bottom: 0.5rem;
        }
        .sb-overlap-warning {
            background: #fff8e6;
            border: 1px solid #e4c87a;
            border-radius: 8px;
            padding: 0.5rem 0.8rem;
            font-size: 0.83rem;
            color: #7a5500;
        }
        .sb-overlap-warning ul {
            margin: 0.3rem 0 0;
            padding-left: 1.2rem;
        }

        /* Session card-row list */
        .sb-sessions-list {
            border: 1px solid #e4eef8;
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 0.75rem;
            background: #fff;
        }
        .sb-slot-row {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.6rem 0.85rem;
            border-bottom: 1px solid #eaf0f8;
            flex-wrap: wrap;
        }
        .sb-slot-row:last-child { border-bottom: none; }
        .sb-slot-row:hover { background: #f7fbff; }
        .sb-slot-time {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            min-width: 150px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .sb-time-start {
            font-weight: 700;
            color: #1c3d60;
            font-size: 0.88rem;
        }
        .sb-time-sep {
            color: #9aabbc;
            font-size: 0.78rem;
        }
        .sb-time-end {
            color: #5a7a96;
            font-size: 0.82rem;
        }
        .sb-pin-badge {
            display: inline-block;
            padding: 0.08rem 0.3rem;
            background: #e8f0fa;
            color: #3b6fa0;
            border-radius: 4px;
            font-size: 0.68rem;
            font-weight: 700;
            margin-left: 0.25rem;
        }
        .sb-slot-main {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            min-width: 0;
        }
        .sb-slot-meta {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            flex-wrap: wrap;
        }
        .sb-meta-pill {
            display: inline-block;
            background: #f0f4f8;
            border-radius: 4px;
            padding: 0.1rem 0.4rem;
            color: #3a5a7a;
            font-weight: 600;
            font-size: 0.76rem;
            white-space: nowrap;
        }
        .sb-slot-actions {
            display: flex;
            align-items: center;
            gap: 0.2rem;
            margin-left: auto;
            flex-shrink: 0;
        }
        .sb-empty-row {
            color: #7a8fa3;
            font-style: italic;
            text-align: center;
            padding: 1.4rem 1rem;
            font-size: 0.88rem;
        }

        /* Type badges */
        .sb-type-badge {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            border-radius: 6px;
            font-size: 0.78rem;
            font-weight: 700;
        }
        .sb-type-opening,
        .sb-type-closing,
        .sb-type-keynote,
        .sb-type-technical,
        .sb-type-panel {
            background: #eef3f7;
            color: #29445f;
        }
        .sb-type-break_,
        .sb-type-break,
        .sb-type-lunch,
        .sb-type-breakfast,
        .sb-type-registration,
        .sb-type-custom {
            background: #f5f8fb;
            color: #3a5570;
        }
        .sb-type-poster,
        .sb-type-hackathon,
        .sb-type-tutorial {
            background: #eef7f0;
            color: #1f6b3a;
        }

        /* Mode badges */
        .sb-mode-badge {
            display: inline-block;
            padding: 0.18rem 0.48rem;
            border-radius: 999px;
            font-size: 0.76rem;
            font-weight: 700;
        }
        .sb-mode-in-person,
        .sb-mode-online,
        .sb-mode-hybrid {
            background: #f5f8fb;
            color: #3a5570;
        }

        /* Row action buttons */
        .sb-btn {
            border: none;
            cursor: pointer;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            padding: 0.2rem 0.45rem;
            margin-right: 0.2rem;
            transition: background 0.15s;
        }
        .sb-btn:disabled {
            opacity: 0.35;
            cursor: default;
        }
        .sb-btn-icon {
            background: #edf2f8;
            color: #2d5070;
        }
        .sb-btn-icon:hover:not(:disabled) { background: #d8e5f2; }
        .sb-btn-edit {
            background: #fff;
            border: 2px solid #2563eb;
            color: #2563eb;
        }
        .sb-btn-edit:hover {
            background: #eff6ff;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
        }
        .sb-btn-remove {
            background: #fff;
            border: 2px solid #dc2626;
            color: #dc2626;
            font-size: 1.05rem;
            font-weight: 800;
            line-height: 1;
        }
        .sb-btn-remove:hover {
            background: #fef2f2;
            box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
        }

        .sb-btn-icon,
        .sb-btn-edit,
        .sb-btn-remove {
            width: 36px;
            min-width: 36px;
            height: 36px;
            min-height: 36px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            cursor: pointer;
            transition: background 0.14s, box-shadow 0.14s;
        }

        .sb-btn-edit i {
            font-size: 0.9rem;
            line-height: 1;
        }

        .sb-day-footer {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

        /* Modal */
        .sb-modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(10, 30, 55, 0.45);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }
        .sb-modal {
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(10, 30, 55, 0.22);
            width: 100%;
            max-width: 620px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .sb-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.25rem 0.85rem;
            border-bottom: 1px solid #e4eef8;
        }
        .sb-modal-header h5 {
            margin: 0;
            font-size: 1.05rem;
            font-weight: 800;
            color: #1a3550;
        }
        .sb-modal-close {
            background: none;
            border: none;
            font-size: 1.4rem;
            line-height: 1;
            color: #6a8099;
            cursor: pointer;
            padding: 0 0.3rem;
        }
        .sb-modal-close:hover { color: #1a3550; }
        .sb-modal-body {
            padding: 1rem 1.25rem 1.2rem;
            overflow-y: auto;
            flex: 1;
        }
        .sb-modal-day-name {
            margin: 0 0 0.85rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: #5a7a96;
        }
        .sb-modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 0.6rem;
            padding: 0.8rem 1.25rem;
            border-top: 1px solid #e4eef8;
        }
        .sb-mode-notice {
            background: #eef6ff;
            border: 1px solid #b8d4f0;
            border-radius: 8px;
            padding: 0.5rem 0.75rem;
            font-size: 0.82rem;
            color: #1a4a7a;
            margin-bottom: 0;
        }
        .sb-legacy-toggle {
            background: #f5f8fc;
            border: 1px solid #d0dce8;
            border-radius: 10px;
            padding: 0.65rem 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            font-size: 0.88rem;
            color: #3a5570;
            font-weight: 600;
        }

/* Source: dashboard/dashboard_admin/program_days.php */
.btn-admin {
            background: #213b52;
            border-color: #213b52;
            color: #fff;
            border-radius: 8px;
            padding: 0.42rem 0.85rem;
            font-weight: 700;
        }

        .btn-admin:hover,
        .btn-admin:focus {
            background: #1a2f42;
            border-color: #1a2f42;
            color: #fff;
        }

        .btn-admin-outline {
            border-radius: 8px;
            border: 1px solid #c7d4e1;
            color: #213b52;
            background: #fff;
            padding: 0.42rem 0.85rem;
            font-weight: 700;
        }

        .btn-admin-outline:hover,
        .btn-admin-outline:focus {
            background: #edf4fb;
            border-color: #9fb4c8;
            color: #213b52;
        }

        .quick-stat {
            border: 1px solid #dde5ef;
            border-radius: 10px;
            padding: 10px 12px;
            background: #fff;
        }

        .tiny {
            font-size: 0.86rem;
            color: #52637a;
        }

        .program-days-card {
            border: 1px solid #d8e2ec;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(20, 45, 72, 0.05);
        }

        .program-days-card .card-header {
            background: #dfe7f2 !important;
            border-bottom: 1px solid #c8d6e8 !important;
            color: #17314d !important;
            font-weight: 800;
        }

        .program-days-form-grid {
            display: grid;
            grid-template-columns: minmax(150px, 0.9fr) minmax(220px, 1.5fr) minmax(100px, 0.55fr) auto;
            gap: 0.75rem;
            align-items: end;
        }

        .program-days-form-grid .form-control {
            min-height: 40px;
            border-radius: 8px;
        }

        .program-days-table {
            margin-bottom: 0;
        }

        .program-days-table thead th {
            background: #f5f9fd;
            border-top: 0;
            color: #49627a;
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .program-days-table td,
        .program-days-table th {
            vertical-align: middle;
        }

        .program-days-table-title {
            color: #1f3145;
            font-weight: 800;
        }

        .program-days-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.35rem;
            align-items: center;
        }

        .program-days-icon-button {
            width: 36px;
            min-width: 36px;
            height: 36px;
            min-height: 36px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            background: #fff;
            font-size: 0.95rem;
            line-height: 1;
            cursor: pointer;
            transition: background 0.14s, box-shadow 0.14s;
        }

        .program-days-icon-button.program-days-edit {
            border: 2px solid #2563eb;
            color: #2563eb;
        }

        .program-days-icon-button.program-days-delete {
            border: 2px solid #dc2626;
            color: #dc2626;
        }

        .program-days-icon-button i,
        .program-days-icon-button .program-days-glyph {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            line-height: 1;
            color: currentColor;
        }

        .program-days-icon-button .program-days-glyph {
            font-size: 1.1rem;
            font-weight: 700;
        }

        .program-days-icon-button:hover,
        .program-days-icon-button:focus {
            outline: none;
        }

        .program-days-icon-button.program-days-edit:hover {
            background: #eff6ff;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
        }

        .program-days-icon-button.program-days-delete:hover {
            background: #fef2f2;
            box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
        }

        .program-days-status {
            display: inline-flex;
            align-items: center;
            padding: 0.24rem 0.58rem;
            border-radius: 999px;
            background: #e7f8ec;
            color: #13653a;
            font-size: 0.78rem;
            font-weight: 800;
        }

        .program-days-status.is-inactive {
            background: #eef2f7;
            color: #607487;
        }

        .program-days-modal .modal-header {
            background: #f8fbfe;
            border-bottom-color: #d8e2ec;
        }

        .program-days-modal-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.85rem;
        }

        .program-days-modal-grid .is-full {
            grid-column: 1 / -1;
        }

        .program-days-modal-grid .form-control {
            min-height: 40px;
            border-radius: 8px;
        }

        @media (max-width: 767.98px) {
            .program-days-form-grid,
            .program-days-modal-grid {
                grid-template-columns: 1fr;
            }

            .program-days-actions {
                justify-content: flex-start;
            }
        }

/* Source: dashboard/dashboard_admin/program_locks.php */
.lock-card {
            background: #fff;
            border: 1px solid #d8e6f0;
            border-radius: 14px;
            padding: 1.4rem 1.6rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: flex-start;
            gap: 1.2rem;
        }
        .lock-icon {
            width: 44px;
            height: 44px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
            margin-top: 2px;
        }
        .lock-icon-program  { background: #e0f0fb; color: #1a5f91; }
        .lock-icon-author   { background: #fef3e0; color: #a05c00; }
        .lock-icon-publish  { background: #e7f8ec; color: #1d6f42; }
        .lock-body { flex: 1; min-width: 0; }
        .lock-title {
            font-size: 1rem;
            font-weight: 700;
            color: #14293e;
            margin-bottom: 3px;
        }
        .lock-desc {
            font-size: .85rem;
            color: #5d7a92;
            margin-bottom: .9rem;
            line-height: 1.5;
        }
        .lock-toggle-row {
            display: flex;
            align-items: center;
            gap: .75rem;
        }
        /* Toggle switch */
        .lock-switch { position: relative; display: inline-block; width: 52px; height: 28px; }
        .lock-switch input { opacity: 0; width: 0; height: 0; }
        .lock-slider {
            position: absolute;
            inset: 0;
            background: #c8d8e6;
            border-radius: 999px;
            cursor: pointer;
            transition: background .2s;
        }
        .lock-slider::before {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            left: 3px;
            top: 3px;
            background: #fff;
            border-radius: 50%;
            transition: transform .2s;
            box-shadow: 0 1px 4px rgba(0,0,0,.18);
        }
        .lock-switch input:checked + .lock-slider { background: #dc2626; }
        .lock-switch input:checked + .lock-slider::before { transform: translateX(24px); }
        .publish-switch input:checked + .lock-slider { background: #16a34a; }
        .lock-toggle-label {
            font-size: .88rem;
            font-weight: 700;
        }
        .lock-status-open   { color: #16a34a; }
        .lock-status-locked { color: #dc2626; }
        .lock-bullet-list {
            margin: .5rem 0 0 0;
            padding-left: 1.1rem;
            font-size: .82rem;
            color: #5d7a92;
        }
        .lock-bullet-list li { margin-bottom: 2px; }
        .btn-save-locks {
            background: #213b52;
            border-color: #213b52;
            color: #fff;
            border-radius: 10px;
            padding: .55rem 1.6rem;
            font-weight: 700;
            font-size: .95rem;
        }
        .btn-save-locks:hover { background: #1a2f42; color: #fff; }

/* Source: dashboard/dashboard_admin/program_papers.php */
/* ── Tabs ─────────────────────────────────────────────────── */
        .pp-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 22px;
            border-bottom: 2px solid #e0ecf4;
            padding-bottom: 0;
        }
        .pp-tab {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: .55rem 1.1rem;
            border-radius: 10px 10px 0 0;
            font-size: .88rem;
            font-weight: 700;
            color: #5d7a92;
            text-decoration: none;
            border: 2px solid transparent;
            border-bottom: none;
            margin-bottom: -2px;
            transition: background .13s, color .13s;
        }
        .pp-tab:hover { background: #f0f7fc; color: #213b52; text-decoration: none; }
        .pp-tab.active {
            background: #fff;
            color: #213b52;
            border-color: #e0ecf4;
            border-bottom-color: #fff;
        }
        .pp-tab-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 22px;
            height: 22px;
            padding: 0 6px;
            border-radius: 999px;
            background: #e8f1f9;
            color: #213b52;
            font-size: .72rem;
            font-weight: 800;
        }
        .pp-tab.active .pp-tab-count { background: #213b52; color: #fff; }

        /* ── Filter row ───────────────────────────────────────────── */
        .pp-filter-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            margin-bottom: 14px;
        }
        .pp-filter-group {
            display: flex;
            flex-direction: column;
            gap: 3px;
            flex: 1 1 160px;
        }
        .pp-filter-group label {
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .07em;
            text-transform: uppercase;
            color: #7a93ab;
            margin: 0;
        }
        .pp-filter-group select {
            min-height: 38px;
            padding: .38rem .75rem;
            border-radius: 10px;
            border: 1px solid #c8d9e8;
            background: #fff;
            font-size: .87rem;
            color: #1d3f5f;
            font-weight: 600;
            cursor: pointer;
            outline: none;
            transition: border-color .15s, box-shadow .15s;
            appearance: auto;
        }
        .pp-filter-group select:focus {
            border-color: #7aaed6;
            box-shadow: 0 0 0 3px rgba(100,168,220,.18);
        }

        /* ── Search bar ───────────────────────────────────────────── */
        .pp-search-row {
            display: flex;
            width: 100%;
            margin-bottom: 18px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid #c8d9e8;
            box-shadow: 0 1px 4px rgba(20,45,75,.06);
        }
        .pp-search-input-wrap { position: relative; flex: 1; }
        .pp-search-input-wrap .fa-search {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #7a93ab;
            font-size: .95rem;
            pointer-events: none;
        }
        .pp-search-input-wrap input[type="search"] {
            width: 100%;
            min-height: 48px;
            padding: .55rem 1rem .55rem 2.5rem;
            border: none;
            background: #fff;
            font-size: .93rem;
            color: #1a2f42;
            outline: none;
        }
        .pp-search-input-wrap input[type="search"]::placeholder { color: #9ab0c2; }
        .pp-search-btn {
            min-height: 48px;
            padding: 0 1.4rem;
            background: #213b52;
            color: #fff;
            border: none;
            font-size: .88rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: background .15s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .pp-search-btn:hover { background: #1a2f42; }

        /* ── Cards ────────────────────────────────────────────────── */
        .pp-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .pp-card {
            background: #fff;
            border: 1px solid #e0ecf4;
            border-radius: 14px;
            padding: 14px 16px 12px;
            box-shadow: 0 2px 8px rgba(20,45,75,.05);
        }
        .pp-card-main { min-width: 0; }
        .pp-title {
            font-size: .95rem;
            font-weight: 700;
            color: #14293e;
            line-height: 1.4;
            margin-bottom: 4px;
        }
        .pp-meta-line {
            font-size: .8rem;
            color: #5d7a92;
            display: flex;
            flex-wrap: wrap;
            gap: 4px 14px;
            margin-bottom: 2px;
        }
        .pp-meta-line .fa { color: #9ab2c4; margin-right: 3px; }
        .pp-card-footer {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 10px;
            padding-top: 9px;
            border-top: 1px solid #edf2f7;
            align-items: center;
        }
        /* ── Tags ─────────────────────────────────────────────────── */
        .pp-tag {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            font-size: .72rem;
            font-weight: 700;
            padding: .18rem .55rem;
            border-radius: 999px;
            white-space: nowrap;
        }
        .pp-tag-mode-online   { background:#e0f2fe; color:#0369a1; }
        .pp-tag-mode-inperson { background:#ede9fe; color:#5b21b6; }
        .pp-tag-mode-virtual  { background:#e0f2fe; color:#0369a1; }
        .pp-tag-mode-hybrid   { background:#fef9c3; color:#854d0e; }
        .pp-tag-mode-other    { background:#f1f5f9; color:#475569; }
        .pp-tag-reg           { background:#f0fdf4; color:#166534; }
        .pp-tag-accept-accept   { background:#dcfce7; color:#166534; }
        .pp-tag-accept-pending  { background:#fef9c3; color:#92400e; }
        .pp-tag-accept-rejected { background:#fee2e2; color:#991b1b; }
        .pp-tag-accept-other    { background:#f1f5f9; color:#475569; }
        .pp-tag-registered {background:#d1fae5;color:#065f46;}
        .pp-tag-registered::before {
            content:''; display:inline-block;
            width:6px; height:6px; border-radius:50%; background:#10b981;
        }
        .pp-tag-presenter  { background:#f0f9ff; color:#075985; }
        .pp-tag-attendee   { background:#fdf4ff; color:#7e22ce; }

        /* ── Empty / summary ──────────────────────────────────────── */
        .pp-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: #8aacbf;
        }
        .pp-empty .fa { font-size: 2.2rem; margin-bottom: .75rem; opacity: .45; }
        .pp-summary-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: .85rem;
            color: #7a93ab;
            margin-bottom: 18px;
        }
        .pp-summary-bar strong { color: #213b52; }

        /* ── Attendee paper context ───────────────────────────────── */
        .pp-paper-ref {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: .78rem;
            color: #5d7a92;
            background: #f4f8fb;
            border-radius: 8px;
            padding: .28rem .65rem;
            margin-top: 5px;
        }
        .pp-paper-ref strong { color: #213b52; }

/* Source: dashboard/dashboard_admin/program_planner.php */
.planner-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 1.1rem;
            align-items: start;
        }

        .planner-nav-target {
            scroll-margin-top: 1rem;
        }

        .planner-nav-target.is-nav-focused {
            box-shadow: 0 0 0 3px rgba(35, 104, 176, 0.14), 0 12px 28px rgba(23, 49, 79, 0.08);
            transition: box-shadow 0.25s ease;
        }

        .planner-sidebar-nav-card {
            margin-top: 1rem;
            position: sticky;
            top: 1rem;
            max-height: calc(100vh - 2rem);
            overflow: hidden;
        }

        .planner-sidebar-nav-card .card-body {
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            gap: 0.85rem;
            max-height: calc(100vh - 6.6rem);
            overflow: hidden;
        }

        .planner-sidebar-nav-search {
            min-height: 52px;
            border-radius: 16px;
            border: 2px solid #b7c9de;
            background: #f5f8fc;
            color: #233c56;
            font-size: 1rem;
            padding-left: 0.9rem;
        }

        .planner-sidebar-nav-search:focus {
            border-color: #1f6fb2;
            background: #fff;
            box-shadow: 0 0 0 0.16rem rgba(31, 111, 178, 0.12);
        }

        .planner-sidebar-nav-section {
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
            min-height: 0;
        }

        .planner-sidebar-nav-scroll {
            overflow: auto;
            min-height: 0;
            padding-right: 0.2rem;
            padding-bottom: 0.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        .planner-sidebar-nav-label {
            display: block;
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #60758b;
            line-height: 1.2;
            padding: 0.08rem 0.1rem;
            background: #f8fbff;
            border-radius: 8px;
        }

        .planner-sidebar-nav-list,
        .planner-sidebar-session-groups,
        .planner-sidebar-session-group,
        .planner-sidebar-session-list {
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
            min-height: 0;
        }

        .planner-sidebar-nav-link {
            display: block;
            padding: 0.55rem 0.7rem;
            border: 1px solid #d9e4ef;
            border-radius: 12px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
            color: #1f3855;
            text-decoration: none;
            transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }

        .planner-sidebar-nav-link:hover,
        .planner-sidebar-nav-link:focus {
            text-decoration: none;
            color: #12304c;
            border-color: #9ec0e6;
            box-shadow: 0 8px 18px rgba(23, 49, 79, 0.08);
            transform: translateY(-1px);
        }

        .planner-sidebar-nav-link.is-active {
            border-color: #4b8fda;
            background: linear-gradient(180deg, #eff7ff 0%, #dfeeff 100%);
            box-shadow: 0 8px 20px rgba(49, 110, 183, 0.14);
        }

        .planner-sidebar-nav-link-main {
            display: block;
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1.32;
            overflow-wrap: anywhere;
        }

        .planner-sidebar-nav-link-meta {
            display: block;
            margin-top: 0.16rem;
            font-size: 0.78rem;
            color: #698096;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }

        .planner-sidebar-session-group-title {
            display: block;
            width: 100%;
            font-size: 0.82rem;
            font-weight: 700;
            color: #304960;
            padding: 0.2rem 0.45rem;
            background: #eef5fc;
            border: 1px solid #d9e5f2;
            border-radius: 10px;
            margin: 0.05rem 0 0.1rem;
        }

        .planner-sidebar-nav-empty {
            display: none;
            padding: 0.7rem 0.75rem;
            border: 1px dashed #c7d6e5;
            border-radius: 12px;
            color: #6a8095;
            font-size: 0.83rem;
        }

        .planner-sidebar-nav-empty.is-visible {
            display: block;
        }

        /* Navigator hardening: force strict block flow to prevent any overlap artifacts */
        #plannerSidebarNavigator .planner-sidebar-nav-scroll {
            display: block;
            overflow-y: auto;
            overflow-x: hidden;
        }

        #plannerSidebarNavigator .planner-sidebar-nav-section,
        #plannerSidebarNavigator .planner-sidebar-nav-list,
        #plannerSidebarNavigator .planner-sidebar-session-groups,
        #plannerSidebarNavigator .planner-sidebar-session-group,
        #plannerSidebarNavigator .planner-sidebar-session-list {
            display: block;
            min-height: auto;
        }

        #plannerSidebarNavigator .planner-sidebar-nav-section {
            margin-bottom: 0.8rem;
        }

        #plannerSidebarNavigator .planner-sidebar-nav-label {
            margin: 0 0 0.4rem;
        }

        #plannerSidebarNavigator .planner-sidebar-session-group-title {
            margin: 0 0 0.45rem;
        }

        #plannerSidebarNavigator .planner-sidebar-session-group {
            margin-bottom: 0.8rem;
        }

        #plannerSidebarNavigator .planner-sidebar-session-group:last-child {
            margin-bottom: 0;
        }

        #plannerSidebarNavigator .planner-sidebar-nav-link {
            display: block;
            width: 100%;
            margin: 0 0 0.45rem;
            transform: none !important;
        }

        #plannerSidebarNavigator .planner-sidebar-nav-link:last-child {
            margin-bottom: 0;
        }

        .planner-shell-frame {
            position: relative;
        }

        .planner-shell-frame.is-loading {
            pointer-events: none;
            opacity: 0.66;
            transition: opacity 0.2s ease;
        }

        .planner-shell-loader {
            position: sticky;
            top: 1rem;
            z-index: 4;
            display: none;
            justify-content: center;
            margin-bottom: 0.9rem;
        }

        .planner-shell-frame.is-loading .planner-shell-loader {
            display: flex;
        }

        .planner-shell-loader-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.5rem 0.85rem;
            border-radius: 999px;
            background: rgba(17, 59, 92, 0.94);
            color: #fff;
            font-size: 0.9rem;
            font-weight: 700;
            box-shadow: 0 12px 28px rgba(17, 59, 92, 0.2);
        }

        .admin-surface-card>.card-header {
            background: #dfe7f2 !important;
            color: #17314d !important;
            border-bottom: 1px solid #c8d6e8 !important;
            padding: 1rem 1.15rem;
        }

        .admin-surface-card>.card-header .admin-muted,
        .admin-surface-card>.card-header .planner-preview-note {
            color: #607083 !important;
        }

        .planner-preview-card .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .planner-preview-tools {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            align-items: center;
        }

        .planner-preview-note {
            color: #617487;
            font-size: 0.9rem;
            line-height: 1.55;
        }

        .planner-head-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            justify-content: flex-end;
            align-items: center;
        }

        .planner-head-actions .admin-action-button {
            min-height: 54px;
            padding: 0.6rem 1.25rem;
            border-radius: 18px;
            font-size: 1rem;
            font-weight: 800;
            gap: 0.5rem;
            border-width: 2px;
        }

        .planner-head-actions form {
            margin: 0;
        }

        .planner-live-status {
            display: inline-flex;
            align-items: center;
            min-height: 34px;
            padding: 0.42rem 0.78rem;
            border: 1px solid #cfd9e3;
            border-radius: 999px;
            background: #f7f9fb;
            color: #29445f;
            font-size: 0.82rem;
            font-weight: 800;
        }

        .planner-live-status.is-live {
            border-color: #b7d7c4;
            background: #eef8f1;
            color: #23583a;
        }

        .planner-live-status.is-off {
            border-color: #e2c4c4;
            background: #fff6f6;
            color: #7c3030;
        }

        .planner-publication-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            margin-bottom: 1rem;
        }

        .planner-publication-history {
            max-height: 320px;
            overflow: auto;
        }

        .planner-publication-note {
            color: #617487;
            font-size: 0.84rem;
            line-height: 1.55;
        }

        .planner-export-button {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
        }

        .planner-note {
            color: #617487;
            font-size: 0.92rem;
            line-height: 1.65;
        }

        .planner-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            max-height: 880px;
            overflow: auto;
            padding-right: 0.15rem;
            align-content: flex-start;
        }

        .planner-paper-card,
        .planner-template-card,
        .planner-assignment-card,
        .planner-session-card {
            border: 1px solid #d9e4ef;
            border-radius: 18px;
            background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
            box-shadow: 0 10px 28px rgba(23, 49, 79, 0.05);
        }

        .planner-paper-card,
        .planner-template-card,
        .planner-assignment-card {
            padding: 0.95rem 1rem;
        }

        .planner-paper-card.is-compact,
        .planner-assignment-card.is-compact {
            padding: 0.22rem 0.3rem;
            border-radius: 999px;
            box-shadow: 0 4px 14px rgba(23, 49, 79, 0.04);
        }

        .planner-assignment-card.is-just-added {
            border-color: #66a6e8;
            background: linear-gradient(180deg, #f7fbff 0%, #e8f3ff 100%);
            box-shadow: 0 0 0 3px rgba(80, 149, 225, 0.18), 0 12px 24px rgba(53, 102, 157, 0.12);
            animation: plannerAssignmentPulse 1.4s ease-out 1;
        }

        .planner-session-card.is-recently-updated {
            border-color: #69b587;
            background: linear-gradient(180deg, #f9fffb 0%, #eefaf2 100%);
            box-shadow: 0 0 0 3px rgba(76, 175, 120, 0.16), 0 14px 28px rgba(38, 97, 61, 0.10);
            animation: plannerSessionPulse 1.4s ease-out 1;
        }

        @keyframes plannerAssignmentPulse {
            0% {
                transform: scale(0.96);
                box-shadow: 0 0 0 0 rgba(80, 149, 225, 0.28), 0 8px 16px rgba(53, 102, 157, 0.08);
            }

            45% {
                transform: scale(1.03);
                box-shadow: 0 0 0 8px rgba(80, 149, 225, 0.08), 0 14px 24px rgba(53, 102, 157, 0.12);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 3px rgba(80, 149, 225, 0.18), 0 12px 24px rgba(53, 102, 157, 0.12);
            }
        }

        @keyframes plannerSessionPulse {
            0% {
                transform: scale(0.985);
                box-shadow: 0 0 0 0 rgba(76, 175, 120, 0.24), 0 10px 18px rgba(38, 97, 61, 0.08);
            }

            45% {
                transform: scale(1.01);
                box-shadow: 0 0 0 4px rgba(76, 175, 120, 0.18), 0 16px 28px rgba(38, 97, 61, 0.12);
            }

            100% {
                transform: scale(1);
                box-shadow: 0 0 0 3px rgba(76, 175, 120, 0.16), 0 14px 28px rgba(38, 97, 61, 0.10);
            }
        }

        .planner-paper-title,
        .planner-session-title {
            font-size: 1rem;
            line-height: 1.55;
            font-weight: 700;
            color: #203246;
            margin-bottom: 0.55rem;
        }

        .planner-paper-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.7rem;
            margin-bottom: 0.65rem;
        }

        .planner-paper-row,
        .planner-assignment-row {
            display: grid;
            gap: 0.35rem;
            align-items: center;
        }

        .planner-paper-row {
            grid-template-columns: auto auto auto;
        }

        .planner-assignment-row {
            grid-template-columns: auto minmax(0, 1fr) auto auto auto;
        }

        /* BS4 shim: gap-1 inside the up/down button wrapper */
        .planner-assignment-row .d-flex.gap-1 {
            gap: 0.25rem;
        }

        .planner-assignment-title-inline {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 0.875rem;
            font-weight: 600;
            color: #1d3550;
        }

        .planner-paper-head-main {
            min-width: 0;
            display: flex;
            align-items: flex-start;
            gap: 0.6rem;
        }

        .planner-paper-title {
            margin-bottom: 0;
            font-size: 0.95rem;
            line-height: 1.45;
            padding-top: 0.08rem;
        }

        .planner-info-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border: 1px solid #cad8e6;
            border-radius: 999px;
            background: #f7fbff;
            color: #255d8d;
            font-size: 0.95rem;
            font-weight: 700;
            flex: 0 0 auto;
            cursor: pointer;
            transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
        }

        .planner-info-button:hover,
        .planner-info-button:focus {
            border-color: #3b7dbd;
            background: #eef5fd;
            box-shadow: 0 0 0 0.18rem rgba(59, 125, 189, 0.12);
            outline: 0;
        }

        .planner-info-button.is-compact,
        .planner-icon-button {
            width: 28px;
            height: 28px;
            font-size: 0.78rem;
            border-radius: 8px;
        }

        .planner-icon-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        /* Bootstrap 4's default ".btn:disabled{opacity:.65}" on top of an already
           light outline-secondary made these move-up/move-down icon buttons nearly
           invisible when disabled (e.g. the first item's "move up" or the last
           item's "move down"), making it unclear the control is even there. Keep
           disabled buttons clearly visible as muted, not near-invisible. */
        .planner-icon-button:disabled,
        .planner-icon-button.disabled {
            opacity: 1;
            color: #adb5bd;
            border-color: #dee2e6;
            background-color: #f8f9fa;
            cursor: not-allowed;
        }

        .planner-paper-id,
        .planner-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.18rem 0.52rem;
            border-radius: 999px;
            background: #e9f2fc;
            color: #245b8a;
            font-size: 0.74rem;
            font-weight: 700;
        }

        .planner-paper-id {
            width: auto;
            max-width: max-content;
            flex: 0 0 auto;
        }

        .planner-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            margin-bottom: 0.75rem;
        }

        .planner-meta .admin-chip {
            background: #f1f6fb;
        }

        .planner-paper-actions {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 0.55rem;
            align-items: end;
        }

        .planner-paper-assign-inline {
            display: flex;
            align-items: center;
            gap: 0.22rem;
            min-width: 0;
        }

        .planner-paper-assign-inline .btn {
            width: 24px;
            height: 24px;
            padding: 0;
        }

        .planner-active-session {
            display: grid;
            gap: 0.35rem;
            margin-bottom: 0.8rem;
            padding: 0.7rem 0.8rem;
            border: 1px solid #d9e7f5;
            border-radius: 14px;
            background: #f7fbff;
        }

        .planner-active-session-label {
            color: #60758a;
            font-size: 0.76rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .planner-active-session-title {
            color: #1f3145;
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .planner-active-session-meta {
            color: #62778c;
            font-size: 0.8rem;
        }

        .planner-active-session-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .planner-inline-warning {
            display: none;
            margin-top: 0.35rem;
            color: #8a4d18;
            background: #fff4e8;
            border: 1px solid #f0d1b0;
            border-radius: 12px;
            padding: 0.45rem 0.6rem;
            font-size: 0.8rem;
            line-height: 1.45;
        }

        .planner-inline-warning.is-visible {
            display: block;
        }

        .planner-template-grid {
            display: grid;
            gap: 0.75rem;
        }

        .planner-template-card {
            display: grid;
            gap: 0.45rem;
        }

        .planner-template-card strong {
            color: #203246;
        }

        .planner-board {
            display: grid;
            gap: 1rem;
        }

        .planner-board-monitor {
            display: grid;
            gap: 0.35rem;
            margin-bottom: 0.9rem;
            padding: 0.8rem 0.9rem;
            border: 1px solid #d6e4f2;
            border-radius: 16px;
            background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
            box-shadow: 0 10px 28px rgba(23, 49, 79, 0.06);
        }

        .planner-board-monitor-title {
            color: #1f3145;
            font-size: 0.95rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .planner-board-monitor-meta {
            color: #60758a;
            font-size: 0.82rem;
        }

        .planner-insert-assistant {
            display: grid;
            gap: 0.7rem;
            margin-top: 0.55rem;
            padding-top: 0.75rem;
            border-top: 1px dashed #d7e3ef;
        }

        .planner-insert-assistant-head {
            display: grid;
            gap: 0.25rem;
        }

        .planner-insert-assistant-meta,
        .planner-insert-assistant-hint {
            color: #60758a;
            font-size: 0.82rem;
            line-height: 1.45;
        }

        .planner-inline-feedback {
            display: none;
            padding: 0.65rem 0.8rem;
            border-radius: 10px;
            border: 1px solid transparent;
            font-size: 0.86rem;
            line-height: 1.5;
        }

        .planner-inline-feedback.is-visible {
            display: block;
        }

        .planner-inline-feedback.is-error {
            background: #fff4f4;
            border-color: #efcaca;
            color: #8a2c2c;
        }

        .planner-inline-feedback.is-success {
            background: #f1fbf5;
            border-color: #c8e8d3;
            color: #256b44;
        }

        .planner-insert-preset-buttons {
            margin-bottom: 0;
        }

        .planner-insert-preset-buttons .btn.is-selected {
            background: #1f6fb2;
            border-color: #1f6fb2;
            color: #fff;
            box-shadow: 0 8px 18px rgba(31, 111, 178, 0.16);
        }

        .planner-paper-picker-list {
            display: grid;
            gap: 0.7rem;
            max-height: 58vh;
            overflow: auto;
            padding-right: 0.2rem;
        }

        .planner-paper-picker-item {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 0.75rem;
            align-items: start;
            padding: 0.75rem 0.85rem;
            border: 1px solid #d9e4ef;
            border-radius: 10px;
            background: #fbfdff;
        }

        .planner-paper-picker-item input[type="checkbox"] {
            margin-top: 0.25rem;
        }

        .planner-paper-picker-title {
            color: #1f3145;
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.45;
            margin-bottom: 0.25rem;
        }

        .planner-paper-picker-authors {
            font-size: 0.8rem;
            color: #4a6278;
            line-height: 1.45;
            margin-bottom: 0.25rem;
        }

        .planner-paper-picker-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem 0.45rem;
            color: #60758a;
            font-size: 0.8rem;
        }

        .planner-paper-picker-meta span {
            background: #f0f4f8;
            border-radius: 4px;
            padding: 0.1rem 0.45rem;
        }

        .planner-paper-picker-toolbar {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 0.7rem;
            margin-bottom: 0.85rem;
        }

        .planner-chair-search-wrap {
            display: grid;
            gap: 0.4rem;
        }

        .planner-search-select-wrap {
            position: relative;
        }

        .planner-search-select-shell {
            display: flex;
            align-items: stretch;
            border: 1px solid #c9d8e6;
            border-radius: 10px;
            background: #fff;
            overflow: hidden;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .planner-search-select-wrap.is-open .planner-search-select-shell,
        .planner-search-select-shell:focus-within {
            border-color: #3b7dbd;
            box-shadow: 0 0 0 0.18rem rgba(59, 125, 189, 0.12);
        }

        .planner-search-select-shell .form-control {
            border: 0;
            border-radius: 0;
            box-shadow: none;
            min-width: 0;
        }

        .planner-search-select-shell .form-control:focus {
            box-shadow: none;
        }

        .planner-search-select-toggle {
            width: 38px;
            min-width: 38px;
            border: 0;
            border-left: 1px solid #d6e2ee;
            background: #f8fbff;
            color: #5d7389;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background-color 0.18s ease, color 0.18s ease;
        }

        .planner-search-select-toggle:hover,
        .planner-search-select-toggle:focus {
            background: #eef5fd;
            color: #2f648f;
            outline: 0;
        }

        .planner-search-select-toggle i {
            font-size: 0.78rem;
        }

        .planner-search-select-wrap.is-open .planner-search-select-toggle i {
            transform: rotate(180deg);
        }

        .planner-search-select-menu {
            position: absolute;
            top: calc(100% + 0.3rem);
            left: 0;
            right: 0;
            z-index: 40;
            padding: 0.3rem;
            border: 1px solid #d9e4ef;
            border-radius: 10px;
            background: #fff;
            box-shadow: 0 18px 36px rgba(23, 49, 79, 0.14);
            max-height: 220px;
            overflow: auto;
        }

        .planner-search-select-menu[hidden] {
            display: none;
        }

        .planner-search-select-option,
        .planner-search-select-empty {
            width: 100%;
            border: 0;
            background: transparent;
            border-radius: 8px;
            text-align: left;
            padding: 0.55rem 0.65rem;
            font-size: 0.84rem;
            line-height: 1.45;
            color: #22364a;
        }

        .planner-search-select-option {
            cursor: pointer;
        }

        .planner-search-select-option:hover,
        .planner-search-select-option:focus,
        .planner-search-select-option.is-active {
            background: #eef5fd;
            color: #123f65;
            outline: 0;
        }

        .planner-search-select-empty {
            color: #64798e;
        }

        .planner-chair-search-help {
            font-size: 0.82rem;
            color: #617487;
            line-height: 1.5;
        }

        .planner-room-inline-head {
            margin-bottom: 0;
        }

        .planner-room-stack {
            display: grid;
            gap: 0.35rem;
            align-content: start;
        }

        .planner-insert-assistant-grid {
            align-items: start;
        }

        .planner-insert-assistant-grid .planner-insert-field-title {
            grid-column: span 6;
        }

        .planner-insert-assistant-grid .planner-insert-field-duration,
        .planner-insert-assistant-grid .planner-insert-field-slot {
            grid-column: span 3;
        }

        .planner-insert-assistant-grid .planner-insert-field-mode {
            grid-column: span 3;
        }

        .planner-insert-assistant-grid .planner-insert-field-room {
            grid-column: span 5;
        }

        .planner-insert-assistant-grid .planner-insert-field-placement {
            grid-column: span 4;
        }

        .planner-insert-assistant-grid .planner-insert-field-room .form-select,
        .planner-insert-assistant-grid .planner-insert-field-placement .form-select {
            min-height: 44px;
            border-radius: 10px;
        }

        .planner-shell-frame .form-control:disabled,
        .planner-shell-frame .form-select:disabled {
            background: #ffffff !important;
            color: #5d6b7a;
            opacity: 1;
        }

        .planner-shell-frame .btn.btn-primary,
        .planner-shell-frame .btn.btn-success,
        .planner-shell-frame .btn.btn-danger,
        .planner-shell-frame .btn.btn-dark,
        .planner-shell-frame .btn.btn-secondary,
        .planner-shell-frame .btn.btn-info {
            color: #fff !important;
        }

        .planner-shell-frame .btn.btn-primary i,
        .planner-shell-frame .btn.btn-success i,
        .planner-shell-frame .btn.btn-danger i,
        .planner-shell-frame .btn.btn-dark i,
        .planner-shell-frame .btn.btn-secondary i,
        .planner-shell-frame .btn.btn-info i {
            color: #fff !important;
        }

        .planner-room-inline-head .form-label {
            margin-bottom: 0;
        }

        .planner-room-actions {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            flex-wrap: wrap;
        }

        .planner-room-inline-actions-row {
            display: flex;
            justify-content: flex-start;
            margin-top: 0.35rem;
        }

        .planner-room-action {
            padding: 0.1rem 0.45rem;
            font-size: 0.84rem;
            font-weight: 600;
            line-height: 1.2;
            border: 1px solid #d3dfeb;
            border-radius: 8px;
            background: #f8fbff;
            color: #1f6fb2;
            text-decoration: none;
        }

        .planner-room-action:hover,
        .planner-room-action:focus {
            background: #eef5fd;
            color: #175a93;
            text-decoration: none;
        }

        .planner-room-action.is-disabled {
            opacity: 0.45;
            pointer-events: none;
            text-decoration: none;
        }

        .planner-room-modal-form {
            display: grid;
            gap: 1rem;
        }

        .planner-room-modal-grid {
            display: grid;
            grid-template-columns: repeat(12, minmax(0, 1fr));
            gap: 0.9rem 1rem;
        }

        .planner-room-modal-field {
            display: grid;
            gap: 0.35rem;
            grid-column: span 12;
        }

        .planner-room-modal-field.room-span-3 {
            grid-column: span 3;
        }

        .planner-room-modal-field.room-span-4 {
            grid-column: span 4;
        }

        .planner-room-modal-field.room-span-6 {
            grid-column: span 6;
        }

        .planner-room-modal-field.room-span-8 {
            grid-column: span 8;
        }

        .planner-room-modal-field.room-span-12 {
            grid-column: span 12;
        }

        .planner-room-modal-form .form-control,
        .planner-room-modal-form .form-select {
            min-height: 40px;
            padding: 0.5rem 0.75rem;
            border-radius: 10px;
            background: #ffffff;
            box-shadow: none;
        }

        .planner-room-modal-form textarea.form-control {
            min-height: 96px;
            resize: vertical;
        }

        .planner-room-modal-feedback {
            margin: 0;
        }

        .planner-session-table-wrap {
            overflow-x: auto;
            border: 1px solid #dbe6f2;
            border-radius: 16px;
            background: #fff;
        }

        .planner-session-table {
            width: 100%;
            min-width: 880px;
            border-collapse: separate;
            border-spacing: 0;
        }

        .planner-session-table thead th {
            padding: 0.85rem 0.9rem;
            border-bottom: 1px solid #dbe6f2;
            background: #f5f9fd;
            color: #49627a;
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .planner-session-table tbody td {
            padding: 0.9rem;
            border-bottom: 1px solid #ebf1f7;
            vertical-align: top;
            color: #24384e;
        }

        .planner-session-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .planner-session-row {
            cursor: pointer;
            transition: background-color 0.18s ease, box-shadow 0.18s ease;
        }

        .planner-session-row:hover {
            background: #f9fbfe;
        }

        .planner-session-row.is-selected {
            background: #edf5ff;
            box-shadow: inset 4px 0 0 #3b7dbd;
        }

        .planner-session-row:focus {
            outline: 0;
            box-shadow: inset 0 0 0 2px rgba(59, 125, 189, 0.22);
        }

        .planner-session-table-title {
            color: #1f3145;
            font-size: 0.96rem;
            font-weight: 800;
            line-height: 1.4;
            margin-bottom: 0.3rem;
        }

        .planner-session-table-subtitle {
            color: #62778c;
            font-size: 0.8rem;
            line-height: 1.45;
        }

        .planner-session-table-stack {
            display: grid;
            gap: 0.35rem;
        }

        .planner-session-table-stack .admin-chip {
            justify-self: start;
        }

        .planner-session-row-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            justify-content: flex-end;
            align-items: center;
        }

        .planner-session-row-actions form {
            margin: 0;
        }

        .planner-session-workspace-shell {
            border: 1px solid #d6e4f2;
            border-radius: 16px;
            background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
            padding: 1rem;
            box-shadow: 0 12px 28px rgba(23, 49, 79, 0.05);
        }

        .planner-session-workspace {
            display: none;
            gap: 0.8rem;
        }

        .planner-session-workspace.is-active {
            display: grid;
        }

        .planner-session-workspace-head {
            display: flex;
            flex-wrap: wrap;
            gap: 0.9rem;
            justify-content: space-between;
            align-items: flex-start;
        }

        .planner-session-workspace-title {
            color: #1f3145;
            font-size: 1rem;
            font-weight: 800;
            line-height: 1.4;
        }

        .planner-session-workspace-meta {
            color: #62778c;
            font-size: 0.84rem;
        }

        .planner-session-modal .modal-header {
            border-bottom-color: #e7eef6;
            background: #f7fbff;
        }

        .planner-session-modal .modal-footer {
            border-top-color: #e7eef6;
            background: #fbfdff;
        }

        .planner-shell-frame .btn:not(.btn-link):not(.planner-icon-button),
        .planner-session-modal .btn:not(.btn-link):not(.planner-icon-button) {
            min-height: 34px;
            padding: 0.42rem 0.82rem;
            border-radius: 10px;
            font-size: 0.84rem;
            font-weight: 700;
        }

        .planner-modal-feedback {
            margin-bottom: 0.85rem;
        }

        .planner-session-card {
            overflow: hidden;
        }

        .planner-session-card.is-dragging-session {
            opacity: 0.62;
            box-shadow: 0 18px 34px rgba(31, 85, 137, 0.16);
        }

        .planner-session-card.is-drop-before {
            box-shadow: inset 0 4px 0 #3b7dbd;
        }

        .planner-session-card.is-drop-after {
            box-shadow: inset 0 -4px 0 #3b7dbd;
        }

        .planner-quick-add {
            margin-bottom: 1rem;
        }

        .planner-quick-add-grid {
            display: grid;
            grid-template-columns: repeat(12, minmax(0, 1fr));
            gap: 0.75rem;
            align-items: end;
        }

        .planner-quick-add-grid>div {
            grid-column: span 3;
        }

        .planner-quick-add-grid>.is-wide {
            grid-column: span 4;
        }

        .planner-quick-add-grid>.is-actions {
            grid-column: span 12;
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
        }

        .planner-preset-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            margin-bottom: 0.8rem;
        }

        .planner-session-edit {
            border-top: 1px solid #e4edf6;
            padding-top: 1.1rem;
            margin-top: 0.9rem;
        }

        /* 4-column grid — each row sums to 4 */
        .planner-session-edit-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 1rem 0.9rem;
            align-items: start;
        }

        /* Row 1: Title(2) Code(1) Type(1) = 4 */
        .planner-session-edit-grid > div          { grid-column: span 1; }
        .planner-session-edit-grid > .is-wide     { grid-column: span 2; }
        .planner-session-edit-grid > .is-span-2   { grid-column: span 2; }
        .planner-session-edit-grid > .is-span-3   { grid-column: span 3; }
        .planner-session-edit-grid > .is-span-5   { grid-column: span 4; }
        .planner-session-edit-grid > .is-span-6   { grid-column: span 4; }
        .planner-session-edit-grid > .is-full     { grid-column: span 4; }

        /* Premium form control look inside the edit grid */
        .planner-session-edit-grid .form-label {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #5a7490;
            margin-bottom: 0.35rem;
        }

        .planner-session-edit-grid .form-control,
        .planner-session-edit-grid .form-select,
        .planner-session-edit-grid select {
            border: 1px solid #cad8e8;
            border-radius: 8px;
            padding: 0.42rem 0.7rem;
            font-size: 0.875rem;
            color: #1d3348;
            background-color: #f8fbff;
            background-image: none;
            background-repeat: no-repeat;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
            width: 100%;
            height: auto;
            min-height: 38px;
            -webkit-appearance: none;
            appearance: none;
        }

        .planner-session-edit-grid .form-select,
        .planner-session-edit-grid select {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235a7490' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
            background-position: right 0.65rem center;
            background-size: 12px 9px;
            padding-right: 2rem;
        }

        .planner-session-edit-grid .form-control:focus,
        .planner-session-edit-grid .form-select:focus,
        .planner-session-edit-grid select:focus {
            border-color: #6aabe0;
            box-shadow: 0 0 0 3px rgba(106, 171, 224, 0.18);
            outline: none;
            background-color: #fff;
        }

        .planner-session-edit-grid .form-control:disabled,
        .planner-session-edit-grid .form-select:disabled,
        .planner-session-edit-grid select:disabled {
            background-color: #f0f4f8;
            color: #8098b0;
            cursor: not-allowed;
        }

        .planner-session-edit-grid textarea.form-control {
            resize: vertical;
            min-height: 72px;
        }

        /* Keep insert-assistant fields in stable rows inside the session board.
           Override to a 12-column grid so span-6 / span-3 spans work as intended. */
        .planner-session-edit-grid.planner-insert-assistant-grid {
            grid-template-columns: repeat(12, minmax(0, 1fr));
        }

        /* is-full / is-wide base rules are sized for 4 cols — override for 12-col grid */
        .planner-session-edit-grid.planner-insert-assistant-grid > .is-full {
            grid-column: 1 / -1;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-title {
            grid-column: span 6;
            grid-row: 1;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-duration {
            grid-column: span 3;
            grid-row: 1;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-slot {
            grid-column: span 3;
            grid-row: 1;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-room {
            grid-column: 1 / span 6 !important;
            grid-row: 2 !important;
            min-width: 0;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-mode {
            grid-column: 1 / span 6 !important;
            grid-row: 3 !important;
            min-width: 0;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-placement {
            grid-column: 7 / span 6 !important;
            grid-row: 3 !important;
            min-width: 0;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-room .form-select,
        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-placement .form-select,
        .planner-session-edit-grid.planner-insert-assistant-grid .form-control,
        .planner-session-edit-grid.planner-insert-assistant-grid .form-select {
            background: #fff !important;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-room .form-select,
        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-placement .form-select,
        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-mode .form-select {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .planner-insert-field-mode .form-select {
            min-height: 44px;
            border-radius: 10px;
            border: 1px solid #b7c9de;
            background: #fff;
            color: #26394d;
            font-size: 1rem;
            padding-left: 0.75rem;
        }

        .planner-session-edit-grid.planner-insert-assistant-grid .form-control:disabled,
        .planner-session-edit-grid.planner-insert-assistant-grid .form-select:disabled {
            background: #fff !important;
            opacity: 1;
            color: #687787;
        }

        .planner-session-edit-grid>.is-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
            justify-content: flex-end;
        }

        .planner-session-card.is-selected {
            border-color: #88afd5;
            box-shadow: 0 16px 36px rgba(31, 85, 137, 0.12);
        }

        .planner-session-head {
            padding: 0.85rem 1rem;
            border-bottom: 1px solid #e8eef5;
            background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            cursor: grab;
        }

        .planner-session-head:active {
            cursor: grabbing;
        }

        .planner-session-head-main {
            min-width: 0;
            flex: 1 1 auto;
        }

        .planner-session-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border: 1px solid #cedbeb;
            border-radius: 999px;
            background: #fff;
            color: #35597c;
            flex: 0 0 auto;
            transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
        }

        .planner-session-card.is-open .planner-session-toggle {
            transform: rotate(180deg);
            background: #edf5ff;
            border-color: #9fc0df;
        }

        .planner-session-card.is-selected .planner-session-head {
            background: linear-gradient(180deg, #f4f9ff 0%, #ebf4fd 100%);
        }

        .planner-session-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem 0.55rem;
            margin-top: 0.45rem;
            color: #627588;
            font-size: 0.84rem;
        }

        .planner-session-body {
            padding: 0.8rem 1rem 1rem;
            display: grid;
            gap: 0.7rem;
        }

        .planner-day-actions,
        .planner-session-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            align-items: center;
        }

        .planner-day-actions {
            margin-top: 0.85rem;
        }

        .planner-day-selector-wrap {
            display: grid;
            gap: 0.75rem;
        }

        .planner-day-select {
            max-width: 420px;
            min-height: 44px;
        }

        .planner-day-overview-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
        }

        .planner-day-overview-note {
            color: #60758a;
            font-size: 0.84rem;
            line-height: 1.55;
        }

        .planner-session-summary-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.7rem;
        }

        .planner-summary-filter {
            color: #145a9b !important;
        }

        .planner-summary-filter.is-active {
            background: #24486d;
            border-color: #24486d;
            color: #fff !important;
            box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
        }

        .planner-summary-filter.is-active:hover,
        .planner-summary-filter.is-active:focus {
            color: #fff !important;
            background: #24486d;
            border-color: #24486d;
        }

        .planner-session-summary-empty {
            display: none;
            margin-top: 0.55rem;
        }

        .planner-session-summary-empty.is-visible {
            display: block;
        }

        .planner-session-filter-summary {
            margin-top: 0.45rem;
            color: #5a6f86;
            font-size: 0.84rem;
            line-height: 1.5;
        }

        .planner-session-filter-summary a {
            color: #1f4f96;
            font-weight: 700;
            text-decoration: none;
            border-bottom: 1px dashed #98b6dc;
            margin-right: 0.35rem;
        }

        .planner-session-filter-summary a:hover,
        .planner-session-filter-summary a:focus {
            color: #163b70;
            border-bottom-color: #163b70;
            text-decoration: none;
        }

        .planner-session-actions {
            justify-content: flex-end;
        }

        .planner-day-actions .btn,
        .planner-session-actions .btn {
            min-height: 54px;
            padding: 0.6rem 1.45rem;
            border-radius: 18px;
            font-size: 1.02rem;
            font-weight: 800;
        }

        .planner-day-actions .admin-action-button {
            justify-content: center;
            min-width: 250px;
            gap: 0.55rem;
            border: 2px solid #b7c9de;
            background: #f5f8fc;
            color: #1b5f9a;
        }

        .planner-day-actions .admin-action-button:hover,
        .planner-day-actions .admin-action-button:focus {
            border-color: #1f6fb2;
            background: #eef5fd;
            color: #184f83;
        }

        .planner-session-actions .planner-icon-button {
            width: 34px;
            height: 34px;
            min-height: 34px;
            padding: 0;
            border-radius: 8px;
        }

        .planner-assignment-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            align-items: flex-start;
        }

        .planner-assignment-title {
            color: #203246;
            font-size: 0.95rem;
            line-height: 1.55;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .planner-assignment-tools {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 0.7rem;
        }

        .planner-assignment-time {
            color: #5f7387;
            font-size: 0.72rem;
            white-space: nowrap;
        }

        .planner-assignment-row .planner-badge {
            margin: 0;
        }

        .planner-assignment-title-inline {
            min-width: 0;
            color: #213448;
            font-size: 0.84rem;
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* ---- expanded assignment card (non-compact) ---- */

        /* Each expanded card takes full width of the list */
        .planner-assignment-list .planner-assignment-card {
            flex: 0 0 100%;
            width: 100%;
        }

        .planner-assignment-meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin-bottom: 0.35rem;
        }

        .planner-paper-id-prefix {
            font-weight: 400;
            opacity: 0.75;
        }

        .planner-assignment-authors {
            font-size: 0.78rem;
            color: #5a7490;
            flex: 1 1 0;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .planner-assignment-actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.35rem;
        }

        .planner-assignment-actions .d-flex.gap-1 {
            gap: 0.25rem;
        }

        .planner-move-form {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            flex: 1 1 160px;
            min-width: 0;
        }

        .planner-move-select {
            flex: 1 1 0;
            min-width: 0;
            font-size: 0.78rem;
            padding: 0.22rem 1.8rem 0.22rem 0.5rem;
            height: 28px;
            line-height: 1.2;
            border: 1px solid #c8d6e8;
            border-radius: 6px;
            background-color: #f7fbff;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%235a7490' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.45rem center;
            background-size: 10px 8px;
            -webkit-appearance: none;
            appearance: none;
        }

        .planner-move-select:focus {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.2);
        }

        .planner-move-btn {
            width: auto;
            padding: 0 0.55rem;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .planner-session-inline-actions {
            justify-content: flex-start;
        }

        .planner-session-edit-grid>.is-actions.planner-session-inline-actions {
            justify-content: flex-start;
        }

        .planner-session-inline-actions .btn {
            white-space: nowrap;
        }

        .planner-chair-assignment-list {
            display: grid;
            gap: 0.55rem;
            margin-top: 0.8rem;
        }

        .planner-chair-assignment {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.7rem;
            flex-wrap: wrap;
            padding: 0.65rem 0.75rem;
            border: 1px solid #dce7f2;
            border-radius: 12px;
            background: #f9fbfe;
        }

        .planner-chair-assignment-meta {
            display: flex;
            align-items: center;
            gap: 0.45rem;
            min-width: 0;
            flex-wrap: wrap;
        }

        .planner-chair-assignment-name {
            color: #203246;
            font-size: 0.86rem;
            font-weight: 700;
            line-height: 1.4;
        }

        .planner-chair-assignment-note {
            color: #5f7387;
            font-size: 0.8rem;
            line-height: 1.45;
        }

        .planner-assignment-remove-form {
            margin: 0;
            flex: 0 0 auto;
        }

        .planner-assignment-remove-button {
            width: 30px;
            height: 30px;
            min-height: 30px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #f1c5c5;
            border-radius: 8px;
            background: #fff6f6;
            color: #c43e3e;
            transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
        }

        .planner-assignment-remove-button:hover,
        .planner-assignment-remove-button:focus {
            background: #ffeaea;
            border-color: #e39a9a;
            color: #a72b2b;
            outline: 0;
        }

        .planner-chair-assignment-actions {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            flex: 0 0 auto;
        }

        .planner-assignment-edit-button {
            width: 30px;
            height: 30px;
            min-height: 30px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #b8d0ec;
            border-radius: 8px;
            background: #f0f6ff;
            color: #2b6cb0;
            transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
        }

        .planner-assignment-edit-button:hover,
        .planner-assignment-edit-button:focus {
            background: #dbeafe;
            border-color: #7eb8e8;
            color: #1a4f8c;
            outline: 0;
        }

        .planner-assignment-edit-button.is-loading {
            opacity: 0.6;
            pointer-events: none;
        }

        .planner-session-footer-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
            align-items: center;
            justify-content: flex-end;
            margin-top: 0.85rem;
            padding-top: 0.85rem;
            border-top: 1px dashed #d9e4ef;
        }

        .planner-session-card:not(.is-open) .planner-session-body {
            display: none;
        }

        .planner-session-card:not(.is-open) .planner-session-head {
            border-bottom: 0;
        }

        .planner-session-title {
            margin-bottom: 0;
        }

        .planner-session-compact-note {
            color: #688096;
            font-size: 0.8rem;
            margin-top: 0.35rem;
        }

        .planner-details {
            margin-top: 0.55rem;
            border-top: 1px dashed #d6e1ec;
            padding-top: 0.55rem;
        }

        .planner-details summary {
            cursor: pointer;
            color: #526b82;
            font-weight: 700;
            outline: none;
        }

        .planner-timeline-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.9rem;
        }

        .timeline-wrap {
            overflow-x: auto;
            --px-per-minute: 2;
            padding-bottom: 0.25rem;
        }

        .timeline-ruler {
            position: relative;
            width: calc(var(--timeline-span, 60) * var(--px-per-minute) * 1px);
            min-width: 680px;
            height: 34px;
            margin: 0 0 0.75rem;
            background: #f8fbff;
            border: 1px solid #d8e4f3;
            border-radius: 10px;
            overflow: hidden;
        }

        .timeline-ruler-tick {
            position: absolute;
            top: 0;
            bottom: 0;
            left: calc(var(--tick-offset, 0) * var(--px-per-minute) * 1px);
            border-left: 1px solid #d7e3f1;
        }

        .timeline-ruler-label {
            position: absolute;
            top: 7px;
            left: 8px;
            transform: translateX(-50%);
            color: #5a7188;
            font-size: 0.74rem;
            font-weight: 700;
            white-space: nowrap;
            background: rgba(248, 251, 255, 0.92);
            padding: 0 0.28rem;
        }

        .timeline-lane {
            margin-bottom: 12px;
            border: 1px solid #dbe7f5;
            border-radius: 10px;
            background: #f8fbff;
            padding: 8px;
        }

        .timeline-lane-title {
            font-weight: 700;
            color: #1f3d5b;
            margin-bottom: 6px;
        }

        .timeline-track {
            position: relative;
            height: calc(18px + (var(--lane-rows, 1) * 82px));
            width: calc(var(--timeline-span, 60) * var(--px-per-minute) * 1px);
            min-width: 680px;
            background-color: #f7fbff;
            background-image:
                linear-gradient(to right, rgba(201, 217, 234, 0.45) 1px, transparent 1px),
                linear-gradient(to right, rgba(170, 193, 218, 0.7) 1px, transparent 1px);
            background-size:
                calc(15 * var(--px-per-minute) * 1px) 100%,
                calc(60 * var(--px-per-minute) * 1px) 100%;
            border-radius: 8px;
            border: 1px solid #d8e4f3;
        }

        .timeline-track.drag-over {
            border-color: #3a7ec0;
            box-shadow: inset 0 0 0 1px rgba(58, 126, 192, 0.08);
            background-color: #edf5ff;
        }

        .timeline-item {
            position: absolute;
            top: calc(9px + (var(--stack-row, 0) * 82px));
            left: calc(var(--start-offset, 0) * var(--px-per-minute) * 1px);
            width: calc(max(15, var(--duration-min, 15)) * var(--px-per-minute) * 1px);
            min-height: 68px;
            border-radius: 10px;
            padding: 8px 10px;
            background: #1f6fb2;
            color: #fff;
            font-size: 0.78rem;
            line-height: 1.35;
            overflow: hidden;
            box-shadow: 0 2px 6px rgba(16, 47, 80, 0.18);
            display: flex;
            flex-direction: column;
            gap: 0.28rem;
            cursor: grab;
            user-select: none;
        }

        .timeline-item:active {
            cursor: grabbing;
        }

        .timeline-item--break {
            background: #b55c1e;
        }

        .timeline-item--keynote_session {
            background: #0f6b6b;
        }

        .timeline-item--panel_session {
            background: #35597c;
        }

        .timeline-item-title {
            font-size: 0.9rem;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .timeline-item small {
            display: block;
            color: #d8ebff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .zoom-control {
            max-width: 260px;
        }

        .planner-back-to-top {
            position: fixed;
            right: 1.25rem;
            bottom: 1.25rem;
            z-index: 1080;
            width: 46px;
            height: 46px;
            border: 1px solid rgba(191, 207, 224, 0.95);
            border-radius: 50%;
            background: #1f3f5b;
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 12px 28px rgba(17, 44, 68, 0.22);
            opacity: 0;
            pointer-events: none;
            cursor: pointer;
            transform: translateY(10px);
            transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
        }

        .planner-back-to-top.is-visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .planner-back-to-top:hover,
        .planner-back-to-top:focus {
            background: #173149;
            color: #ffffff;
            outline: 0;
        }

        @media (max-width: 1199.98px) {
            .planner-grid {
                grid-template-columns: 1fr;
            }

            .planner-sidebar-nav-card {
                position: static;
                max-height: none;
            }

            .planner-sidebar-nav-card .card-body,
            .planner-sidebar-nav-scroll {
                max-height: none;
                overflow: visible;
            }
        }

        @media (max-width: 767.98px) {

            .planner-quick-add-grid>div,
            .planner-session-edit-grid>div,
            .planner-paper-actions,
            .planner-paper-row,
            .planner-assignment-row {
                grid-template-columns: 1fr;
            }

            .planner-quick-add-grid,
            .planner-session-edit-grid {
                grid-template-columns: 1fr;
            }

            .planner-session-edit-grid>.is-wide,
            .planner-session-edit-grid>.is-span-2,
            .planner-session-edit-grid>.is-span-3,
            .planner-session-edit-grid>.is-span-5,
            .planner-session-edit-grid>.is-span-6,
            .planner-session-edit-grid>.is-full {
                grid-column: span 1;
            }

            .planner-insert-assistant-grid .planner-insert-field-title,
            .planner-insert-assistant-grid .planner-insert-field-duration,
            .planner-insert-assistant-grid .planner-insert-field-slot,
            .planner-insert-assistant-grid .planner-insert-field-mode,
            .planner-insert-assistant-grid .planner-insert-field-room,
            .planner-insert-assistant-grid .planner-insert-field-placement {
                grid-column: span 1;
            }

            .planner-room-inline-actions-row {
                justify-content: flex-start;
            }

            .planner-session-footer-actions {
                justify-content: flex-start;
            }

            .planner-room-modal-grid {
                grid-template-columns: 1fr;
            }

            .planner-room-modal-field,
            .planner-room-modal-field.room-span-3,
            .planner-room-modal-field.room-span-4,
            .planner-room-modal-field.room-span-6,
            .planner-room-modal-field.room-span-8,
            .planner-room-modal-field.room-span-12 {
                grid-column: span 1;
            }

            .planner-paper-head-main {
                display: grid;
                gap: 0.45rem;
            }

            .planner-session-head {
                flex-direction: column;
                align-items: stretch;
            }

            .planner-session-toggle {
                align-self: flex-end;
            }

            .planner-session-workspace-head {
                flex-direction: column;
                align-items: stretch;
            }

            .planner-back-to-top {
                right: 0.9rem;
                bottom: 0.9rem;
                width: 42px;
                height: 42px;
            }
        }

/* Source: dashboard/dashboard_admin/program_publications.php */
.quick-stat {
            border: 1px solid #dde5ef;
            border-radius: 10px;
            padding: 10px 12px;
            background: #fff;
        }

        .tiny {
            font-size: 0.86rem;
            color: #52637a;
        }

/* Source: dashboard/dashboard_admin/program_sessions.php */
.session-edit-form .form-control,
        .session-edit-form .form-select {
            width: 100%;
            min-width: 0;
        }

        .session-edit-form {
            min-width: 260px;
        }

        .session-edit-grid {
            display: grid;
            gap: 0.55rem;
        }

        .session-form-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .session-table-title {
            font-weight: 700;
            color: #1c2940;
        }

        .session-meta-stack {
            display: grid;
            gap: 0.35rem;
        }

        .session-link-inline {
            color: #1d5f93;
            text-decoration: none;
            font-weight: 700;
        }

        .session-link-inline:hover {
            text-decoration: underline;
        }

        .session-form-stack {
            display: grid;
            gap: 1rem;
        }

        .session-inline-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem;
        }

        .session-mode-panel.is-hidden {
            display: none;
        }

        @media (max-width: 991.98px) {
            .session-edit-form {
                min-width: 0;
            }
        }

/* Source: dashboard/dashboard_admin/registration_details.php */
body{font-family:Arial,Helvetica,sans-serif;color:#222;margin:0;background:#f5f6f8}.wrap{max-width:860px;margin:20px auto;background:#fff;border:1px solid #ddd;padding:24px}.conference{text-align:center;margin-bottom:14px;background:#1f4f96;color:#fff;border-radius:12px;padding:16px 18px}.conference-name{font-size:20px;font-weight:700;margin:0 0 6px}.conference-meta{color:#e8f2ff;font-size:14px}.head{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px;border:2px solid #cfdff5;background:#f5f9ff;border-radius:10px;padding:14px 16px}.title{font-size:24px;font-weight:700;margin:0 0 6px}.muted{color:#666;font-size:13px}.num{font-size:26px;font-weight:700}table{width:100%;border-collapse:collapse;margin-top:10px}td,th{border:1px solid #ddd;padding:9px;vertical-align:top}th{background:#ecf4ff;color:#1f4f96;text-align:left}.footer{margin-top:18px;font-size:12px;color:#334;background:#f2f7ff;border-top:2px solid #d3e3fb;padding:12px;border-radius:8px}.no-print{margin:0 auto 10px;max-width:860px}.btn{display:inline-block;padding:8px 12px;background:#213b52;color:#fff;border-radius:6px;text-decoration:none;border:none;cursor:pointer}@media print{body{background:#fff}.wrap{margin:0;max-width:none;border:none}.no-print{display:none!important}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

/* Source: dashboard/dashboard_admin/registration_settings.php */
.waiver-percent-input {
            width: 110px;
        }
        body.home-page .card-header.card-header-nav {
            background: #dfe7f2 !important;
            border-color: #c8d6e8 !important;
            color: #17314d !important;
        }

/* Source: dashboard/dashboard_admin/registrations.php */
/* ── Shell ──────────────────────────────────────────────── */
        .reg-shell {
            background: linear-gradient(180deg,#f6fbff 0%,#fff 100%);
            border: 1px solid #d9e7f2;
            border-radius: 24px;
            padding: 24px;
            box-shadow: 0 18px 48px rgba(24,54,84,.08);
        }

        /* ── Status pill tabs ───────────────────────────────────── */
        .reg-status-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
        .reg-status-filter {
            display:inline-flex; align-items:center; gap:7px; min-height:34px;
            padding:.38rem .85rem; border:1px solid #bfd0df; border-radius:999px;
            color:#1d3f5f; background:#fff; font-size:.83rem; font-weight:700;
            text-decoration:none;
        }
        .reg-status-filter:hover,.reg-status-filter:focus { background:#eef6fb; color:#142e48; text-decoration:none; }
        .reg-status-filter.active { background:#1f3d59; border-color:#1f3d59; color:#fff; }
        .reg-status-filter-count {
            display:inline-flex; align-items:center; justify-content:center;
            min-width:22px; height:22px; padding:0 7px; border-radius:999px;
            background:rgba(31,61,89,.12); font-size:.74rem; font-weight:800;
        }
        .reg-status-filter.active .reg-status-filter-count { background:rgba(255,255,255,.18); }

        /* ── Filter bar ─────────────────────────────────────────── */
        .reg-search-row { margin-bottom:14px; }
        .reg-search-row .input-group .form-control {
            border-radius:12px 0 0 12px !important;
            min-height:46px; font-size:.97rem; border-color:#cbdceb;
        }
        .reg-search-row .input-group .reg-top-action {
            border-radius:0 12px 12px 0 !important; border-left:0;
        }
        .reg-filter-row { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; }
        .reg-filter-field { flex:0 0 auto; }
        .reg-filter-field label { font-size:.78rem; font-weight:700; color:#3a4e61; margin-bottom:4px; display:block; }
        .reg-filter-field .form-select,.reg-filter-field .form-control {
            width:auto; border-radius:8px; border-color:#cbdceb;
            background:#fff; font-size:.8rem;
            padding:.2rem .6rem; min-height:28px;
        }

        /* ── Action buttons (match participants.php top-action style) */
        .reg-top-action {
            display:inline-flex; align-items:center; gap:.5rem;
            min-height:44px; padding:.55rem 1.15rem;
            border:1px solid #cfdbe7; border-radius:10px;
            background:#fff; color:#28435e;
            font-size:.93rem; font-weight:800; line-height:1.2;
            cursor:pointer; white-space:nowrap; text-decoration:none;
            transition:background .18s,border-color .18s,color .18s;
        }
        .reg-top-action:hover,.reg-top-action:focus {
            background:#eef6fd; border-color:#8fb8d9; color:#17314d; text-decoration:none; outline:0;
        }
        .reg-top-action.reg-export { color:#0a6fa0; }
        .reg-top-action.reg-export i { color:#0a6fa0; }

        /* ── Summary bar ────────────────────────────────────────── */
        .reg-summary-bar {
            display:flex; align-items:center; justify-content:space-between;
            flex-wrap:wrap; gap:10px; margin:18px 0 10px;
            font-size:.88rem; color:#57708a;
        }

        /* ── Cards ──────────────────────────────────────────────── */
        .reg-card-list { display:grid; gap:14px; }
        .reg-card {
            border:1px solid #e2ecf4; border-radius:18px; background:#fff;
            box-shadow:0 8px 24px rgba(30,58,90,.06); overflow:hidden;
        }
        .reg-card-body { padding:16px 18px 10px; }
        .reg-card-grid {
            display:grid;
            grid-template-columns: minmax(0,2fr) minmax(0,1.5fr) minmax(0,1fr);
            gap:16px; align-items:start;
        }
        .reg-card-col { min-width:0; font-size:.9rem; color:#22384d; line-height:1.5; }
        .reg-card-title { font-weight:700; font-size:.97rem; color:#1b3452; margin-bottom:2px; }
        .reg-card-sub  { font-size:.8rem; color:#5d7690; }
        .reg-card-label{ font-size:.73rem; font-weight:700; color:#7a93a8; text-transform:uppercase; letter-spacing:.06em; margin-bottom:2px; }
        .reg-id-badge  {
            display:inline-block; padding:2px 9px; border-radius:999px;
            background:#eef4fb; color:#1d5378; font-size:.78rem; font-weight:800;
            margin-bottom:5px; border:1px solid #cfe1f0;
        }

        /* Quick view panel */
        .reg-quick-view { display:none; background:#f7fbff; border-top:1px solid #dfe8f2; padding:14px 18px; }
        .reg-quick-view.open { display:block; }
        .reg-qv-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
        .reg-qv-block { border:1px solid #dfe8f2; border-radius:10px; background:#fff; padding:10px 12px; }
        .reg-qv-title { font-weight:700; color:#2d4863; font-size:.82rem; margin-bottom:6px; }
        .reg-qv-line  { font-size:.8rem; color:#52637a; margin-bottom:2px; }

        /* Actions row */
        .reg-actions-row {
            display:flex; align-items:center; gap:14px; flex-wrap:wrap;
            padding:8px 18px 10px; border-top:1px solid #ecf2f7;
        }
        .reg-action-btn {
            display:inline-flex; align-items:center; gap:5px;
            border:0; background:transparent; color:#1d5378;
            font-size:.88rem; cursor:pointer; text-decoration:none;
            padding:0; font-weight:400;
        }
        .reg-action-btn span { text-decoration:underline; text-underline-offset:.15em; text-decoration-thickness:.08em; }
        .reg-action-btn:hover { color:#163249; text-decoration:none; }
        .reg-action-btn:hover span { text-decoration:none; }
        .reg-action-btn.danger { color:#963737; }
        .reg-action-btn.danger:hover { color:#7f2525; }

        /* Empty state */
        .reg-empty { padding:32px; text-align:center; color:#7a93a8; font-size:.95rem; }

        /* Badges */
        .badge-success  { background:#1d7a4a; color:#fff; }
        .badge-warning  { background:#e6a817; color:#fff; }
        .badge-danger   { background:#bf3535; color:#fff; }
        .badge-info     { background:#1a7fa3; color:#fff; }
        .badge-secondary{ background:#7f8ea0; color:#fff; }
        .badge-dark     { background:#2d3748; color:#fff; }

        /* Update modal compact */
        .reg-modal-label { font-size:.8rem; font-weight:700; color:#3a4e61; margin-bottom:4px; }
        .reg-modal-reg-name { font-weight:700; color:#1b3452; }

        @media (max-width:767.98px) {
            .reg-card-grid { grid-template-columns:1fr; gap:10px; }
            .reg-qv-grid   { grid-template-columns:1fr; }
            .reg-shell     { padding:14px; border-radius:16px; }
        }

/* Source: dashboard/dashboard_admin/reporting_audit.php */
.stat-card {
            border: 1px solid #dee7f2;
            border-radius: 12px;
            padding: 12px;
            background: #fff;
        }

        .stat-label {
            color: #5f6f83;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

/* Source: dashboard/dashboard_admin/reviewer_applications.php */
/* page-local only — layout handled by reviewer-management.css */
        .reviewer-actions form { display:block; margin:0; }

/* Source: dashboard/dashboard_admin/reviewers.php */
.reviewer-card{border:1px solid #dbe6f0;border-radius:14px;background:#fff;padding:16px;margin-bottom:14px}.reviewer-meta{color:#5d7085;font-size:.9rem}.reviewer-tag{display:inline-block;background:#edf6fb;color:#155f88;border-radius:999px;padding:.2rem .55rem;margin:.15rem;font-size:.82rem}

/* Source: dashboard/dashboard_admin/scheduled_mail.php */
.comm-card{border:1px solid #d9e3ef;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(25,52,84,.05)}.comm-card-header{padding:1rem 1.1rem;border-bottom:1px solid #e7edf5;background:#f8fbfe;font-weight:900;color:#17314d}.comm-card-body{padding:1rem 1.1rem}.comm-table{width:100%;border-collapse:collapse}.comm-table th,.comm-table td{padding:.65rem .7rem;border-bottom:1px solid #edf2f7;vertical-align:top}.comm-table th{font-size:.78rem;text-transform:uppercase;color:#53667a}

/* Source: dashboard/dashboard_admin/schema_activation.php */
.quick-stat {
            border: 1px solid #dde5ef;
            border-radius: 10px;
            padding: 10px 12px;
            background: #fff;
        }

        .tiny {
            font-size: 0.86rem;
            color: #52637a;
        }

/* Source: dashboard/dashboard_admin/sent_mail.php */
.comm-card{border:1px solid #d9e3ef;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(25,52,84,.05);}
        .comm-card-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.1rem;border-bottom:1px solid #e7edf5;background:#f8fbfe;font-weight:900;color:#17314d;}
        .comm-card-body{padding:1rem 1.1rem;}
        .comm-table{width:100%;border-collapse:collapse;}
        .comm-table th,.comm-table td{padding:.65rem .7rem;border-bottom:1px solid #edf2f7;vertical-align:middle;}
        .comm-table th{font-size:.78rem;text-transform:uppercase;color:#53667a;}
        .email-status{display:inline-flex;border-radius:999px;padding:.2rem .55rem;font-size:.78rem;font-weight:800;background:#eef4fb;color:#33516c;}
        .email-status.sent{background:#e8f7ee;color:#17633a}.email-status.failed{background:#fdeced;color:#a42430}.email-status.partial{background:#fff5df;color:#895600}.email-status.skipped,.email-status.suppressed{background:#eef2f7;color:#495568}.email-status.pending{background:#fff5df;color:#895600}
        .recipient-body{border:1px solid #dbe6f0;border-radius:10px;background:#fff;min-height:260px;}
        .recipient-body iframe{width:100%;min-height:420px;border:0;}
        .recipient-name{font-weight:700;color:#1f2f45;}
        .recipient-meta{color:#66788b;font-size:.88rem;}
        .btn-resend{white-space:nowrap;}

/* Source: dashboard/dashboard_admin/session_assignments.php */
.meta {
            font-size: 0.86rem;
            color: #516273;
        }

/* Source: dashboard/dashboard_admin/venues_rooms.php */
.room-admin-shell {
            display: grid;
            gap: 1.25rem;
        }

        .admin-surface-card>.card-header {
            background: #0d3578;
            color: #f3f7ff;
            border-bottom: 0;
            padding: 1rem 1.15rem;
        }

        .admin-surface-card>.card-header.card-header-nav {
            background: #dfe7f2 !important;
            border-bottom: 1px solid #c8d6e8 !important;
            color: #17314d !important;
        }

        .room-admin-form {
            display: grid;
            gap: 1rem;
        }


        .room-admin-grid {
            display: grid;
            grid-template-columns: repeat(12, minmax(0, 1fr));
            gap: 0.9rem 1rem;
        }

        .room-span-3,
        .room-span-4,
        .room-span-6,
        .room-span-8,
        .room-span-12 {
            grid-column: span 12;
        }

        .room-admin-field {
            display: grid;
            gap: 0.35rem;
        }

        .room-admin-form .form-control,
        .room-admin-form .form-select,
        .room-inline-form .form-control,
        .room-inline-form .form-select {
            min-height: 40px;
            padding: 0.5rem 0.75rem;
            border-radius: 10px;
            background: #ffffff;
            box-shadow: none;
        }

        .room-admin-form textarea.form-control,
        .room-inline-form textarea.form-control {
            min-height: 88px;
            resize: vertical;
        }

        .room-admin-form .form-control:disabled,
        .room-admin-form .form-select:disabled,
        .room-inline-form .form-control:disabled,
        .room-inline-form .form-select:disabled {
            background: #f2f5f8;
            color: #8a98a8;
        }

        .room-admin-actions,
        .room-inline-actions,
        .room-delete-action,
        .room-modal-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            align-items: center;
        }

        .room-admin-button,
        .room-inline-actions .btn,
        .room-delete-action .btn,
        .room-modal-actions .btn {
            min-height: 40px;
            padding: 0.55rem 1rem;
            border-radius: 10px;
            font-size: 0.92rem;
            font-weight: 700;
            text-transform: none;
            letter-spacing: 0;
        }

        .room-admin-button {
            min-width: 140px;
        }

        .room-modal-actions {
            justify-content: flex-end;
            width: 100%;
        }

        .room-modal-feedback {
            display: none;
            margin-top: 0.9rem;
            margin-bottom: 0;
        }

        .room-modal-feedback.is-visible {
            display: block;
        }

        .room-inline-form {
            display: grid;
            gap: 0.55rem;
            min-width: 250px;
        }

        .room-inline-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.55rem;
        }

        .room-stat-card {
            max-width: 220px;
        }

        .tiny {
            font-size: 0.86rem;
            color: #52637a;
        }

        .room-mode-pill {
            display: inline-flex;
            align-items: center;
            padding: 0.28rem 0.65rem;
            border-radius: 999px;
            background: #eef4fb;
            color: #33516c;
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: capitalize;
        }

        .room-table-wrap {
            overflow: hidden;
            border: 1px solid #dce7f2;
            border-radius: 16px;
            background: #fff;
        }

        .room-table {
            width: 100%;
            table-layout: fixed;
            border-collapse: separate;
            border-spacing: 0;
        }

        .room-table thead th {
            padding: 0.85rem 0.9rem;
            border-bottom: 1px solid #dce7f2;
            background: #f5f9fd;
            color: #4a637b;
            font-size: 0.76rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .room-table tbody td {
            padding: 0.8rem 0.75rem;
            border-bottom: 1px solid #ebf1f7;
            vertical-align: top;
            color: #23384d;
        }

        .room-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .room-table-title {
            color: #1f3145;
            font-size: 0.97rem;
            font-weight: 800;
            line-height: 1.4;
            margin-bottom: 0.25rem;
        }

        .room-table-subtitle {
            color: #62778c;
            font-size: 0.81rem;
            line-height: 1.45;
            word-break: break-word;
        }

        .room-table-stack {
            display: grid;
            gap: 0.4rem;
        }

        .room-table-stack .room-mode-pill,
        .room-table-stack .admin-chip {
            justify-self: start;
        }

        .room-action-group {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 0.45rem;
            align-items: center;
        }

        .room-action-button {
            width: 36px;
            min-width: 36px;
            height: 36px;
            min-height: 36px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 9px;
            background: #fff;
            font-size: 0.95rem;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            transition: background 0.14s, box-shadow 0.14s;
        }

        .room-action-group .room-action-button {
            width: 36px !important;
            min-width: 36px !important;
            height: 36px !important;
            min-height: 36px !important;
            padding: 0 !important;
        }

        .room-action-button.room-action-edit {
            border: 2px solid #2563eb;
            color: #2563eb;
        }

        .room-action-button.room-action-delete {
            border: 2px solid #dc2626;
            color: #dc2626;
        }

        .room-action-button:hover,
        .room-action-button:focus {
            outline: none;
        }

        .room-action-button.room-action-edit:hover {
            background: #eff6ff;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
        }

        .room-action-button.room-action-delete:hover {
            background: #fef2f2;
            box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
        }

        .room-action-button i,
        .room-action-button .room-action-glyph {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1;
            color: currentColor;
        }

        .room-action-button.room-action-delete .room-action-glyph {
            font-size: 1.05rem;
            font-weight: 800;
        }

        .room-col-id {
            width: 8%;
        }

        .room-col-name {
            width: 42%;
        }

        .room-col-mode {
            width: 13%;
        }

        .room-col-online {
            width: 21%;
        }

        .room-col-actions {
            width: 16%;
        }

        .room-edit-modal .modal-header {
            background: #f7fbff;
            border-bottom-color: #e5eef6;
        }

        .room-edit-modal .modal-footer {
            background: #fbfdff;
            border-top-color: #e5eef6;
        }

        @media (min-width: 992px) {
            .room-span-3 {
                grid-column: span 3;
            }

            .room-span-4 {
                grid-column: span 4;
            }

            .room-span-6 {
                grid-column: span 6;
            }

            .room-span-8 {
                grid-column: span 8;
            }
        }

        @media (max-width: 767.98px) {
            .room-inline-grid {
                grid-template-columns: minmax(0, 1fr);
            }

            .room-stat-card {
                max-width: none;
            }
        }

/* Source: dashboard/dashboard_author/contact_support.php */
.support-card {
            border: 1px solid #d6dee8;
            border-radius: 8px;
            box-shadow: 0 16px 36px rgba(15, 42, 71, 0.06);
        }
        .support-paper-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }
        .support-paper-list {
            display: grid;
            gap: 10px;
            max-height: 360px;
            overflow-y: auto;
            padding-right: 4px;
        }
        .support-paper-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #d5e1ec;
            border-radius: 8px;
            background: #f9fbfd;
            cursor: pointer;
            transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
        }
        .support-paper-item:hover {
            border-color: #8dbde1;
            background: #f5faff;
        }
        .support-paper-item:has(input:checked),
        .support-paper-item.is-selected {
            border-color: #0f6293;
            background: #eaf6fd;
            box-shadow: 0 0 0 2px rgba(15, 98, 147, 0.12);
        }
        .support-paper-item input {
            width: 20px;
            height: 20px;
            margin-top: 3px;
            flex: 0 0 auto;
        }
        .support-paper-id {
            font-weight: 700;
            color: #0f4468;
            margin-bottom: 3px;
        }
        .support-paper-title {
            color: #34495e;
            line-height: 1.35;
        }
        .support-selected-count {
            color: #5d6d7e;
            font-weight: 600;
        }
        .support-form-label {
            font-weight: 700;
            color: #34495e;
        }
        .support-template-panel {
            display: none;
            margin-top: 10px;
            padding: 12px;
            border: 1px solid #d6e4ef;
            border-radius: 8px;
            background: #f8fbfe;
        }
        .support-template-panel.is-visible {
            display: block;
        }
        .support-template-title {
            margin-bottom: 8px;
            color: #4f6072;
            font-weight: 700;
        }
        .support-template-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .support-submit-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            min-height: 38px;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.2;
            text-transform: none;
            box-shadow: 0 6px 14px rgba(3, 86, 138, 0.18);
        }
        .support-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        @media (max-width: 575.98px) {
            .support-paper-toolbar {
                align-items: flex-start;
            }
            .support-actions {
                width: 100%;
            }
        }

/* Source: dashboard/dashboard_author/edit_paper.php */
.author-edit-shell {
            display: grid;
            gap: 1.5rem;
        }
        .author-edit-card {
            border: 1px solid #dbe4ef;
            border-radius: 16px;
            background: #fff;
            box-shadow: 0 10px 24px rgba(20, 45, 72, 0.05);
            overflow: hidden;
        }
        .author-edit-card-header {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #e8eef5;
            background: linear-gradient(180deg, #f7fbff 0%, #f0f6fd 100%);
        }
        .author-edit-card-header h3 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 700;
            color: #213b52;
        }
        .author-edit-card-body {
            padding: 1.25rem;
        }
        .author-paper-key {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.35rem 0.8rem;
            border-radius: 999px;
            background: #eef4ff;
            color: #213b52;
            font-weight: 700;
            font-size: 0.9rem;
            margin-bottom: 0.85rem;
        }
        .author-paper-title {
            font-size: 1.3rem;
            line-height: 1.45;
            font-weight: 700;
            color: #1a2430;
            margin-bottom: 0.25rem;
        }
        .author-paper-note {
            color: #5b6877;
            margin-bottom: 0;
        }
        .author-status-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.9rem;
        }
        .author-status-card {
            border: 1px solid #e3ebf4;
            border-radius: 14px;
            padding: 0.9rem 1rem;
            background: #fbfdff;
        }
        .author-status-label {
            display: block;
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #728197;
            margin-bottom: 0.5rem;
        }
        .author-status-value {
            font-size: 1.02rem;
            font-weight: 700;
            color: #1f2a38;
            line-height: 1.35;
        }
        .author-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 110px;
            padding: 0.35rem 0.75rem;
            border-radius: 999px;
            border: 1px solid transparent;
            font-size: 0.82rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }
        .author-badge.accepted {
            background: #e7f8ec;
            border-color: #92d7aa;
            color: #15663c;
        }
        .author-badge.rejected {
            background: #fdeaea;
            border-color: #efb2b2;
            color: #a62b2b;
        }
        .author-badge.pending {
            background: #fff5db;
            border-color: #f2d28a;
            color: #9a6b00;
        }
        .author-badge.info {
            background: #eef4ff;
            border-color: #cfdcf2;
            color: #21456d;
        }
        .author-inline-link {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            font-weight: 600;
        }
        .author-paper-form .form-label {
            font-size: 0.88rem;
            margin-bottom: 0.38rem;
        }
        .author-paper-form .form-control {
            min-height: 42px;
            padding: 0.55rem 0.75rem;
            border-radius: 10px;
            font-size: 0.95rem;
            line-height: 1.45;
        }
        .author-paper-form textarea.form-control {
            min-height: 74px;
            resize: vertical;
        }
        .author-paper-form .author-textarea-title {
            min-height: 78px;
        }
        .author-paper-form .author-textarea-list {
            min-height: 86px;
        }
        .author-form-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }
        .author-form-actions .btn {
            min-height: 38px;
            padding: 0.48rem 0.9rem;
            border-radius: 6px;
            font-size: 0.9rem;
            font-weight: 700;
            line-height: 1.2;
            text-transform: none;
        }
        .author-form-actions .btn i {
            margin-right: 0.35rem;
        }
        .author-form-actions .btn-outline-secondary {
            border-color: #8a98a8;
            color: #4f6072;
            background: #fff;
        }
        .author-form-actions .btn-outline-secondary:hover {
            background: #f1f5f9;
            color: #263645;
        }
        @media (max-width: 767px) {
            .author-status-grid {
                grid-template-columns: 1fr;
            }
        }

/* Source: dashboard/dashboard_author/index.php */
.author-dashboard-shell {
            display: grid;
            gap: 1.1rem;
        }
        .author-paper-card {
            border: 1px solid #dce6f1;
            border-radius: 18px;
            background: #fff;
            box-shadow: 0 12px 30px rgba(20, 45, 72, 0.06);
            overflow: hidden;
        }
        .author-paper-card-body {
            padding: 1.3rem 1.4rem 1.2rem;
        }
        .author-paper-header {
            display: grid;
            grid-template-columns: 120px minmax(0, 1fr);
            gap: 1rem;
            align-items: start;
            padding-bottom: 1rem;
            border-bottom: 1px solid #e8eef5;
        }
        .author-paper-id {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            min-height: 56px;
            border-radius: 14px;
            background: #eef4ff;
            color: #213b52;
            font-size: 1.35rem;
            font-weight: 800;
        }
        .author-paper-title {
            font-size: 1.55rem;
            line-height: 1.35;
            font-weight: 700;
            color: #172230;
            margin-bottom: 0.75rem;
        }
        .author-paper-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem 1.4rem;
            color: #4f5e70;
        }
        .author-paper-meta strong {
            color: #2c3d51;
        }
        .author-summary-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem 1.35rem;
            align-items: center;
            padding: 1rem 0;
            border-bottom: 1px solid #edf2f7;
        }
        .author-summary-item {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            color: #4b5868;
            font-size: 1.05rem;
        }
        .author-summary-item strong {
            color: #2a3747;
        }
        .author-status-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 112px;
            padding: 0.38rem 0.88rem;
            border-radius: 999px;
            border: 1px solid transparent;
            font-weight: 800;
            font-size: 0.9rem;
            line-height: 1;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }
        .author-status-pill.success {
            background: #e7f8ec;
            border-color: #92d7aa;
            color: #15663c;
        }
        .author-status-pill.warning {
            background: #fff3da;
            border-color: #f0cd84;
            color: #956600;
        }
        .author-status-pill.danger {
            background: #fdeaea;
            border-color: #efb2b2;
            color: #a62b2b;
        }
        .author-status-pill.info {
            background: #e8f4fd;
            border-color: #90cbe8;
            color: #0b5a82;
        }
        .author-status-pill.muted {
            background: #eef2f6;
            border-color: #d4dde7;
            color: #5f7084;
        }
        .author-actions-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.65rem;
            align-items: center;
            padding-top: 1rem;
        }
        .author-actions-row .btn {
            border-radius: 10px;
            font-weight: 600;
        }
        .author-doc-note {
            color: #6a7787;
            font-size: 0.98rem;
        }
        .author-inline-form {
            margin-top: 1rem;
            padding: 1rem;
            border: 1px solid #e6edf5;
            border-radius: 14px;
            background: #f9fbfe;
        }
        .author-order-box {
            margin-top: 1rem;
            padding: 1rem 1.05rem;
            border: 1px solid #d9e4f0;
            border-radius: 14px;
            background: #f7fbff;
        }
        .author-order-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.65rem 1rem;
        }
        .author-order-grid div {
            color: #516174;
            font-size: 0.97rem;
        }
        .author-order-grid strong {
            color: #203547;
        }
        .author-line-items {
            margin-top: 0.9rem;
        }
        .author-line-items table {
            margin-bottom: 0;
        }
        .author-inline-form summary {
            cursor: pointer;
            list-style: none;
            font-weight: 700;
            color: #213b52;
        }
        .author-inline-form summary::-webkit-details-marker {
            display: none;
        }
        .author-inline-form-body {
            margin-top: 1rem;
        }
        @media (max-width: 767px) {
            .author-paper-header {
                grid-template-columns: 1fr;
            }
            .author-paper-title {
                font-size: 1.22rem;
            }
        }

/* Source: dashboard/dashboard_author/login.php */
.auth-card {
            border: 0;
            border-radius: 16px;
            box-shadow: 0 12px 32px rgba(4, 53, 167, 0.12);
        }
        .auth-card .card-header {
            background: #213b52;
            color: #fff;
            border: 0;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            font-weight: 600;
            letter-spacing: 0.2px;
        }
        .auth-card .card-body {
            background: #fff;
            color: #212529;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
        }
        .auth-card .form-label {
            color: #212529;
        }
        .auth-card .form-control {
            border-radius: 10px;
        }
        .auth-actions .btn {
            min-width: 140px;
            border-radius: 10px;
        }
        .auth-actions {
            justify-content: center;
        }
        .btn-auth {
            background: #213b52;
            color: #fff;
            border: 1px solid #213b52;
        }
        .btn-auth:hover,
        .btn-auth:focus {
            background: #fdc134;
            border-color: #fdc134;
            color: #213b52;
        }
        .auth-hint {
            color: #5b6b7a;
            font-size: 0.95rem;
        }

/* Source: dashboard/dashboard_author/my_schedule.php */
.author-schedule-list {
            display: flex;
            flex-direction: column;
            gap: 0.9rem;
        }

        .author-schedule-item {
            border: 1px solid #d6dee8;
            border-radius: 0.55rem;
            background: #fff;
            padding: 0.9rem 1rem;
        }

        .author-schedule-line {
            margin: 0;
            line-height: 1.45;
            color: #2f3b4a;
        }

        .author-schedule-line+.author-schedule-line {
            margin-top: 0.35rem;
        }

        .author-schedule-paper-id {
            font-weight: 700;
            margin-right: 0.5rem;
        }

        .author-schedule-paper-title {
            font-weight: 600;
        }

        .author-schedule-day {
            font-weight: 700;
            margin-right: 0.5rem;
        }

        .author-schedule-session {
            font-weight: 600;
            margin-right: 0.4rem;
        }

        .author-schedule-separator {
            color: #6c7a89;
            margin: 0 0.35rem;
        }

/* Source: dashboard/dashboard_author/request_code.php */
.auth-card {
            border: 0;
            border-radius: 16px;
            box-shadow: 0 12px 32px rgba(4, 53, 167, 0.12);
        }
        .auth-card .card-header {
            background: #213b52;
            color: #fff;
            border: 0;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            font-weight: 600;
            letter-spacing: 0.2px;
        }
        .auth-card .card-body {
            background: #fff;
            color: #212529;
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
        }
        .auth-card .form-control {
            border-radius: 10px;
        }
        .auth-actions {
            justify-content: center;
        }
        .btn-auth {
            background: #213b52;
            color: #fff;
            border: 1px solid #213b52;
            border-radius: 10px;
            min-width: 160px;
        }
        .btn-auth:hover,
        .btn-auth:focus {
            background: #fdc134;
            border-color: #fdc134;
            color: #213b52;
        }
        .auth-hint {
            color: #5b6b7a;
            font-size: 0.95rem;
        }
        .password-info {
            color: #6c757d;
            text-decoration: none;
        }
        .password-info:hover,
        .password-info:focus {
            color: #213b52;
        }

/* Source: dashboard/dashboard_author/request_invoice.php */
.invoice-paper-card {
            border: 1px solid #dbe3ef;
            border-radius: 12px;
            padding: 18px 20px;
            margin-bottom: 14px;
            background: #fff;
            box-shadow: 0 2px 10px rgba(33, 59, 82, 0.05);
        }
        .invoice-paper-id {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            background: #eef4ff;
            color: #213b52;
            font-weight: 700;
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        .invoice-paper-title {
            font-size: 1.2rem;
            line-height: 1.45;
            font-weight: 700;
            color: #1b1f24;
            margin-bottom: 10px;
        }
        .invoice-paper-title .label {
            color: #213b52;
            margin-right: 6px;
        }
        .invoice-paper-meta {
            margin-bottom: 12px;
            color: #3b4452;
        }
        .invoice-paper-meta strong {
            color: #1f2a38;
        }
        .invoice-action-box {
            border-top: 1px solid #ecf0f6;
            padding-top: 14px;
            margin-top: 10px;
        }
        .invoice-action-box .form-label {
            font-weight: 600;
            color: #213b52;
        }
        .invoice-action-box .btn {
            min-width: 150px;
            border-radius: 8px;
            font-weight: 600;
        }

/* Source: dashboard/dashboard_author/upload_payments.php */
.basket-card {
            border: 1px solid #dce6f1;
            border-radius: 16px;
            box-shadow: 0 12px 30px rgba(20, 45, 72, .05);
            overflow: hidden;
        }

        .registration-paper-list {
            border: 1px solid #dce6f1;
            border-radius: 12px;
            overflow: hidden;
        }

        .registration-paper-item {
            display: grid;
            grid-template-columns: 1.5rem minmax(0, 1fr) minmax(140px, auto);
            gap: 0.9rem;
            align-items: center;
            padding: 1rem 1.05rem;
            margin: 0;
            border-bottom: 1px solid #e6edf5;
            background: #fff;
        }

        .registration-paper-item:last-child {
            border-bottom: 0;
        }

        .registration-paper-check {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-width: 1.5rem;
        }

        .registration-paper-check .form-check-input {
            margin: 0.15rem 0 0;
        }

        .registration-paper-title {
            color: #24384d;
            font-weight: 700;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

        .registration-paper-authors {
            margin-top: 0.2rem;
            color: #4b5f73;
            font-size: 0.85rem;
            font-weight: 500;
        }

        .registration-paper-meta {
            margin-top: 0.35rem;
            color: #6b7c8f;
            font-size: 0.9rem;
        }

        .registration-paper-actions {
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
            align-items: flex-end;
        }

        .registration-status {
            border-radius: 999px;
            padding: 0.35rem 0.7rem;
            font-weight: 800;
            line-height: 1;
        }

        .registration-status.is-unpaid {
            background: #fff1e7;
            color: #b42318;
            border: 1px solid #ffc9b8;
        }

        .registration-status.is-submitted {
            background: #fff7d6;
            color: #7a4d00;
            border: 1px solid #f4d267;
        }

        .registration-status.is-paid {
            background: #e8f7ef;
            color: #146c43;
            border: 1px solid #a8e4c3;
        }

        .extra-page-control {
            display: grid;
            gap: 0.25rem;
            justify-items: end;
            margin: 0;
            color: #4b5f73;
            font-size: 0.82rem;
            font-weight: 700;
        }

        .extra-page-control input {
            width: 56px;
            text-align: right;
        }

        .payment-supported-row {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .payment-supported-label {
            font-size: 0.78rem;
            color: #6c757d;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .payment-supported-badge {
            display: inline-flex;
            align-items: center;
            padding: 0.3rem 0.75rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            letter-spacing: 0.01em;
            white-space: nowrap;
            border: 1.5px solid transparent;
        }

        .payment-supported-badge--paypal {
            background: #fef6e4;
            color: #003087;
            border-color: #ffd140;
        }

        .payment-supported-badge--stripe {
            background: #f0f0ff;
            color: #635bff;
            border-color: #c5c2ff;
        }

        .payment-supported-badge--org {
            background: #eef6f0;
            color: #1a5c38;
            border-color: #a8d5b5;
        }

        .extra-page-stepper {
            display: inline-flex;
            align-items: stretch;
            height: 40px;
            border: 1px solid #cbd8e5;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
        }

        .extra-page-stepper .extra-page-step,
        .extra-page-stepper .extra-pages {
            border: 0;
            border-radius: 0;
            height: 100%;
        }

        .extra-page-stepper .extra-page-step {
            width: 34px;
            padding: 0;
            background: #f4f8fc;
            color: #0b3671;
            font-size: 1.15rem;
            font-weight: 800;
            line-height: 1;
        }

        .extra-page-stepper .extra-page-step:hover,
        .extra-page-stepper .extra-page-step:focus {
            background: #e6f0fa;
            color: #07306a;
        }

        .extra-page-stepper .extra-page-step:disabled {
            color: #9aa8b8;
            cursor: not-allowed;
        }

        .extra-page-stepper .extra-pages {
            width: 48px;
            min-width: 48px;
            padding: 0 0.35rem;
            text-align: center;
            font-weight: 700;
            color: #26384b;
            box-shadow: none;
        }

        .extra-page-stepper .extra-pages:focus {
            box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.22);
        }

        .registration-type-control {
            max-width: 520px;
            margin-top: 1rem;
            display: none;
        }

        .coauthor-listener-panel {
            border: 1px solid #dce6f1;
            border-radius: 12px;
            background: #f8fbfe;
            padding: 1.1rem 1.25rem;
            margin-top: 1.25rem;
        }

        .coauthor-panel-header {
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #dce6f1;
        }

        .coauthor-panel-title {
            font-weight: 800;
            font-size: 0.97rem;
            color: #1b2e40;
        }

        .coauthor-panel-desc {
            font-size: 0.83rem;
            color: #5d7690;
            line-height: 1.4;
        }

        .coauthor-row-v2 {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.65rem 0;
            border-bottom: 1px solid #edf2f7;
        }

        .coauthor-row-v2:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

        .coauthor-row-check {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex: 1;
            cursor: pointer;
            min-width: 0;
        }

        .coauthor-row-check .form-check-input {
            position: static;
            margin: 0;
            flex-shrink: 0;
            width: 1.05em;
            height: 1.05em;
            float: none;
        }

        .coauthor-identity {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .coauthor-name-text {
            font-weight: 700;
            color: #1b2e40;
            font-size: 0.92rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .coauthor-email-text {
            font-size: 0.78rem;
            color: #6b7c8f;
        }

        .coauthor-mode-toggle {
            display: inline-flex;
            border: 1.5px solid #c9d8e8;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .coauthor-mode-btn {
            padding: 0.32rem 0.9rem;
            font-size: 0.8rem;
            font-weight: 700;
            border: none;
            background: #f4f8fc;
            color: #4b5f73;
            cursor: pointer;
            transition: background 0.13s, color 0.13s;
            line-height: 1.4;
        }

        .coauthor-mode-btn + .coauthor-mode-btn {
            border-left: 1.5px solid #c9d8e8;
        }

        .coauthor-mode-btn.active {
            background: #0b3671;
            color: #fff;
        }

        .coauthor-no-candidates {
            font-size: 0.85rem;
            color: #6b7c8f;
            margin: 0;
        }

        .reg-type-row {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 0;
            border-top: 1px solid #e6edf5;
            margin-top: 0.25rem;
            flex-wrap: wrap;
        }

        .reg-type-label {
            font-weight: 700;
            color: #1b2e40;
            font-size: 0.95rem;
            white-space: nowrap;
        }

        .reg-type-select-wrap {
            flex: 1;
            min-width: 200px;
            max-width: 480px;
        }

        .reg-paper-readonly {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 0.9rem 1rem;
            border-bottom: 1px solid #e6edf5;
        }

        .reg-paper-readonly:last-child {
            border-bottom: 0;
        }

        .reg-paper-info {
            flex: 1;
            min-width: 0;
        }

        .reg-paper-id-chip {
            display: inline-block;
            background: #eef3fa;
            border: 1px solid #c9d8e8;
            color: #0b3671;
            font-size: 0.78rem;
            font-weight: 800;
            padding: 0.1rem 0.5rem;
            border-radius: 5px;
            margin-right: 0.4rem;
            vertical-align: middle;
        }

        .reg-paper-status-col {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.3rem;
            flex-shrink: 0;
        }

        .reg-paper-status-label {
            font-size: 0.72rem;
            font-weight: 700;
            color: #6b7c8f;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }

        .coauthor-paper-group {
            border-top: 1px solid #e3ebf4;
            padding-top: 0.85rem;
            margin-top: 0.85rem;
        }

        .coauthor-paper-group:first-of-type {
            border-top: 0;
            padding-top: 0;
            margin-top: 0;
        }

        .coauthor-paper-title {
            color: #26384b;
            font-weight: 800;
            line-height: 1.4;
            overflow-wrap: anywhere;
        }

        .registration-paper-coauthors {
            margin: -0.2rem 0 0.6rem 2.4rem;
            padding: 0.7rem 0.9rem;
            background: #f7faff;
            border: 1px solid #e3ebf4;
            border-radius: 10px;
        }

        .registration-paper-coauthors .coauthor-panel-title {
            color: #4b5f73;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 0.4rem;
        }

        .coauthor-paper-title .paper-title-text {
            font-weight: 800;
        }

        .coauthor-listener-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
            gap: 0.75rem;
            align-items: center;
            padding: 0.55rem 0;
        }

        .coauthor-listener-row + .coauthor-listener-row {
            border-top: 1px solid #edf2f7;
        }

        .basket-summary-table {
            margin-bottom: 0;
        }

        .basket-summary-table td,
        .basket-summary-table th {
            vertical-align: middle;
        }

        .basket-summary-table .basket-money {
            text-align: right;
            white-space: nowrap;
        }

        .basket-summary-table .basket-total-row th {
            border-top: 2px solid #cbd8e5;
            font-size: 1.02rem;
        }

        .registration-action-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            min-height: 42px;
            border-radius: 10px;
            padding: 0.62rem 1rem;
            font-weight: 800;
            text-transform: none;
            letter-spacing: 0;
        }

        .pay-card-button {
            border-color: #9bd7ee;
            background: #dff6ff;
            color: #075985;
        }

        .pay-card-button:hover,
        .pay-card-button:focus {
            border-color: #67c2e4;
            background: #c8efff;
            color: #064e72;
        }

        .bank-transfer-button {
            border-color: #0f5e8c;
            background: #0f5e8c;
            color: #fff;
        }

        .bank-transfer-button:hover,
        .bank-transfer-button:focus {
            border-color: #0a4b70;
            background: #0a4b70;
            color: #fff;
        }

        @media (max-width: 767.98px) {
            .registration-paper-item {
                grid-template-columns: 1.5rem minmax(0, 1fr);
                align-items: start;
            }

            .registration-paper-actions {
                grid-column: 2;
                align-items: flex-start;
                flex-direction: row;
                flex-wrap: wrap;
            }

            .extra-page-control {
                justify-items: start;
            }

            .coauthor-listener-row {
                grid-template-columns: 1fr;
            }
        }

/* Source: dashboard/dashboard_participant/accept_invitation.php */
.accept-invitation-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            min-height: 38px;
            padding: 0.5rem 0.9rem;
            border-radius: 10px;
            border: 1px solid #0f79aa;
            background: #158ec8;
            color: #fff;
            font-size: 0.88rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            text-transform: none;
            box-shadow: 0 8px 18px rgba(21, 142, 200, 0.18);
        }

        .accept-invitation-btn:hover,
        .accept-invitation-btn:focus {
            background: #0f79aa;
            border-color: #0b668f;
            color: #fff;
        }

        .accept-invitation-actions {
            margin-top: 1rem;
        }

/* Source: dashboard/dashboard_participant/login.php */
.auth-card {
            border: 0;
            border-radius: 16px;
            box-shadow: 0 12px 32px rgba(4, 53, 167, .12);
        }

        .auth-card .card-header {
            background: #213b52;
            color: #fff;
            border: 0;
            border-top-left-radius: 16px;
            border-top-right-radius: 16px;
            font-weight: 600;
        }

        .auth-card .card-body {
            border-bottom-left-radius: 16px;
            border-bottom-right-radius: 16px;
        }

        .btn-auth {
            background: #213b52;
            color: #fff;
            border: 1px solid #213b52;
        }

        .btn-auth:hover,
        .btn-auth:focus {
            background: #fdc134;
            border-color: #fdc134;
            color: #213b52;
        }

        .auth-secondary-actions {
            margin-top: 1.15rem;
            padding-top: 1rem;
            border-top: 1px solid #e2e8f0;
            display: grid;
            gap: .7rem;
        }

        .auth-action-link {
            display: flex;
            align-items: center;
            gap: .75rem;
            padding: .8rem .9rem;
            border: 1px solid #d8e2ec;
            border-radius: 10px;
            background: #f8fbfe;
            color: #213b52;
            text-decoration: none;
            transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
        }

        .auth-action-link:hover,
        .auth-action-link:focus {
            background: #fff;
            border-color: #213b52;
            color: #213b52;
            text-decoration: none;
            box-shadow: 0 8px 18px rgba(33, 59, 82, .1);
            transform: translateY(-1px);
        }

        .auth-action-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #213b52;
            color: #fff;
            flex: 0 0 auto;
        }

        .auth-action-copy {
            min-width: 0;
        }

        .auth-action-copy strong {
            display: block;
            font-size: .94rem;
            line-height: 1.2;
        }

        .auth-action-copy span {
            display: block;
            margin-top: .15rem;
            color: #64748b;
            font-size: .82rem;
            line-height: 1.25;
        }

/* Source: dashboard/dashboard_participant/participant_menu.php */
.participant-menu-section-title {
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 700;
        color: #4b5d73;
        margin: 0 0 0.35rem;
    }

    .participant-menu-section+.participant-menu-section {
        margin-top: 0.8rem;
    }

/* Source: dashboard/dashboard_participant/register.php */
/* Registration-type selection cards, e.g. My Registration */
.reg-type-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 0.9rem;
        }

        .reg-type-grid-compact {
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 0.65rem;
        }

        .reg-type-card {
            position: relative;
        }

        .reg-type-input {
            position: absolute;
            opacity: 0;
            width: 1px;
            height: 1px;
            pointer-events: none;
        }

        .reg-type-card-label {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.45rem;
            height: 100%;
            border: 2px solid #d7e3ef;
            border-radius: 14px;
            padding: 1rem 1.1rem;
            background: #fff;
            cursor: pointer;
            transition: border-color .15s, box-shadow .15s, background .15s;
        }

        .reg-type-card-label:hover {
            border-color: #9fb7cf;
        }

        .reg-type-input:checked + .reg-type-card-label {
            border-color: #213b52;
            background: #eef4fb;
            box-shadow: 0 0 0 3px rgba(33, 59, 82, .12);
        }

        .reg-type-input:focus-visible + .reg-type-card-label {
            outline: 2px solid #213b52;
            outline-offset: 2px;
        }

        .reg-type-mode-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            background: #eef3f8;
            color: #213b52;
        }

        .reg-type-name {
            font-weight: 700;
            color: #213b52;
            font-size: 0.98rem;
            line-height: 1.3;
        }

        .reg-type-price {
            font-size: 1.1rem;
            font-weight: 800;
            color: #213b52;
        }

        .reg-type-price.free {
            color: #1a7f37;
        }

        /* Registration action buttons (Save Changes / Cancel registration), e.g. My Registration */
.reg-action-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.6rem;
            margin-top: 0.75rem;
        }

        .btn-reg-action {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            border-radius: 8px;
            padding: 0.4rem 0.9rem;
            font-weight: 600;
            font-size: 0.875rem;
            background: #213b52;
            border: 1px solid #213b52;
            color: #fff !important;
        }

        .btn-reg-action:hover,
        .btn-reg-action:focus {
            background: #fdc134;
            border-color: #fdc134;
            color: #213b52 !important;
        }

        /* Payment call-to-action box, e.g. My Registration / My Payments */
        .payment-action-box {
            background: #fff8e1;
            border: 1px solid #ffc107;
            border-radius: 10px;
            padding: 1rem 1.1rem;
        }

        .payment-action-title {
            color: #856404;
            font-weight: 700;
        }

        .payment-action-note {
            color: #6c757d;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }

        .payment-action-buttons {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.6rem;
            margin-top: 0.85rem;
        }

        .btn-payment-action {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            border-radius: 8px;
            padding: 0.45rem 0.9rem;
            font-weight: 600;
            font-size: 0.875rem;
            background: #fff;
            border: 1px solid #213b52;
            color: #213b52 !important;
        }

        .btn-payment-action:hover,
        .btn-payment-action:focus {
            background: #213b52;
            border-color: #213b52;
            color: #fff !important;
        }

        /* Participant dashboard sidebar menu (shared partial: participant_menu.php) */
#participant-menu .list-group {
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 12px 32px rgba(4, 53, 167, .08);
            border: 1px solid #e3ebf3;
        }

        #participant-menu .list-group-item {
            border: 0;
            border-bottom: 1px solid #eef2f7;
            padding: 0.85rem 1.1rem;
            font-weight: 600;
            color: #35506b;
            background: #fff;
            transition: background .15s, color .15s;
        }

        #participant-menu .list-group-item:last-child {
            border-bottom: 0;
        }

        #participant-menu .list-group-item:hover {
            background: #f4f8fb;
            color: #213b52;
        }

        #participant-menu .list-group-item.active {
            background: #213b52;
            color: #fff;
            border-color: #213b52;
        }

        /* Participant dashboard hero header, e.g. dashboard_participant/index.php */
        .participant-hero {
            background: linear-gradient(135deg, #0f1d2d, #12335b);
            border-radius: 16px;
            padding: 1.5rem 1.75rem;
            color: #fff;
            box-shadow: 0 18px 45px rgba(16, 24, 40, 0.15);
            display: flex;
            align-items: center;
            gap: 1.25rem;
            flex-wrap: wrap;
        }

        .participant-hero-avatar {
            flex-shrink: 0;
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: #fdc134;
            color: #213b52;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            font-weight: 800;
        }

        .participant-hero-name {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
            color: #fff !important;
        }

        .participant-hero-email {
            color: #b9c8dc !important;
            font-size: 0.92rem;
        }

        .participant-hero-roles {
            margin-top: 0.5rem;
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .participant-hero-role-badge {
            display: inline-flex;
            align-items: center;
            background: rgba(253, 193, 52, .18);
            color: #fdc134;
            border: 1px solid rgba(253, 193, 52, .4);
            border-radius: 999px;
            padding: 0.15rem 0.7rem;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .participant-hero-actions {
            margin-left: auto;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .btn-dashboard-action {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            border-radius: 8px;
            padding: 0.4rem 0.9rem;
            font-weight: 600;
            font-size: 0.85rem;
            background: rgba(255, 255, 255, .12);
            border: 1px solid rgba(255, 255, 255, .4);
            color: #fff !important;
        }

        .btn-dashboard-action:hover,
        .btn-dashboard-action:focus {
            background: #fdc134;
            border-color: #fdc134;
            color: #213b52 !important;
        }

        .btn-dashboard-action.btn-dashboard-logout {
            background: transparent;
            border-color: rgba(255, 255, 255, .3);
            color: #e7edf5 !important;
        }

        .btn-dashboard-action.btn-dashboard-logout:hover,
        .btn-dashboard-action.btn-dashboard-logout:focus {
            background: rgba(255, 255, 255, .12);
            border-color: rgba(255, 255, 255, .4);
            color: #fff;
        }

        /* Participant dashboard content cards */
        .participant-card {
            border: 0;
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(4, 53, 167, .07);
        }

        .participant-card .card-header {
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .participant-card .card-header i {
            color: #213b52;
        }

        .participant-role-badge {
            display: inline-flex;
            align-items: center;
            background: #eef4fb;
            color: #213b52;
            border: 1px solid #cbdceb;
            border-radius: 999px;
            padding: 0.25rem 0.75rem;
            font-size: 0.78rem;
            font-weight: 700;
        }

        .btn-payment-option-toggle {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            width: 100%;
            border: 0;
            background: #f8fafc;
            padding: 0.75rem 1rem;
            font-weight: 700;
            color: #213b52 !important;
            text-align: left;
        }

        .btn-payment-option-toggle:hover,
        .btn-payment-option-toggle:focus {
            background: #eef4fb;
        }

        .auth-wrapper-lg {
            max-width: 920px;
        }

        /* Icon-decorated inputs, e.g. attendee registration form */
        .icon-field,
        .password-field {
            position: relative;
        }

        .icon-field > .icon-field-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: #5d7690;
            pointer-events: none;
            font-size: 0.92rem;
        }

        .icon-field > .form-control,
        .icon-field > .form-select,
        .password-field > .form-control {
            min-height: 46px;
            border-radius: 10px;
            border-color: #cbdceb;
            transition: border-color .15s, box-shadow .15s;
        }

        .icon-field > .form-control,
        .icon-field > .form-select {
            padding-left: 2.6rem;
        }

        .icon-field > .form-control:focus,
        .icon-field > .form-select:focus,
        .password-field > .form-control:focus {
            border-color: #213b52;
            box-shadow: 0 0 0 3px rgba(33, 59, 82, .12);
        }

        .password-field > .form-control {
            padding-right: 2.9rem;
        }

        .password-field > .password-toggle-btn {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: #5d7690;
            border-radius: 8px;
            padding: 0;
        }

        .password-field > .password-toggle-btn:hover,
        .password-field > .password-toggle-btn:focus {
            color: #213b52;
            background: #eef3f8;
            outline: none;
        }

        #listener_registration_type {
            border: 2px solid #bfcfe0;
            border-radius: 10px;
            padding: 0.55rem 2.4rem 0.55rem 0.85rem;
            font-size: 0.97rem;
            font-weight: 500;
            color: #213b52;
            background-color: #f4f8fb;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23213b52' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 14px;
            appearance: none;
            -webkit-appearance: none;
            transition: border-color .18s, box-shadow .18s;
            cursor: pointer;
        }

        #listener_registration_type:focus {
            border-color: #213b52;
            box-shadow: 0 0 0 3px rgba(33,59,82,.13);
            outline: none;
            background-color: #fff;
        }

        #listener_registration_type option {
            font-weight: 400;
            color: #213b52;
            background-color: #fff;
        }

        #listener_card_notice,
        #listener_receipt_section {
            margin-top: 0.6rem;
        }

        #listener_card_notice .alert,
        #listener_receipt_section .alert {
            border-radius: 10px;
            font-size: 0.93rem;
        }

/* Source: dashboard/dashboard_participant/reviewer_interest.php */
.reviewer-application-card { border: 0; border-radius: 16px; box-shadow: 0 14px 36px rgba(24,54,84,.12); overflow: hidden; }
        .reviewer-application-card .card-header { background: #17314d; color: #fff; font-weight: 700; padding: 1rem 1.25rem; }
        .reviewer-application-card .form-control { border-radius: 10px; }
        .reviewer-submit-btn { display:inline-flex; align-items:center; gap:.45rem; border-radius:10px; background:#158ec8; border:1px solid #0f79aa; color:#fff; font-weight:700; padding:.55rem 1rem; }
        .reviewer-submit-btn:hover,.reviewer-submit-btn:focus { background:#0f79aa; border-color:#0b668f; color:#fff; }
        .reviewer-area-picker { min-height: 46px; display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; padding:.42rem .55rem; border:1px solid #cedbeb; border-radius:10px; background:#fff; }
        .reviewer-area-picker:focus-within { border-color:#86b7fe; box-shadow:0 0 0 .2rem rgba(13,110,253,.15); }
        .reviewer-area-picker.is-invalid { border-color:#dc3545; }
        .reviewer-area-chip { display:inline-flex; align-items:center; gap:.38rem; max-width:100%; padding:.28rem .55rem; border-radius:999px; background:#e8f5fb; color:#0b587d; border:1px solid #b8ddea; font-size:.88rem; font-weight:700; }
        .reviewer-area-chip button { border:0; background:transparent; color:#0b587d; padding:0; line-height:1; font-weight:700; cursor:pointer; }
        .reviewer-area-input { flex:1 1 220px; min-width:180px; border:0; outline:0; padding:.35rem .25rem; background:transparent; }
        .reviewer-area-help { color:#68798a; font-size:.85rem; margin-top:.35rem; }
        .reviewer-other-input { display:none; margin-top:.45rem; }
        .reviewer-other-input.is-visible { display:block; }
        .hp-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

        /* ── Password fields ─────────────────────────────────────────────── */
        .pw-label-row { display:flex; align-items:center; gap:.35rem; flex-wrap:wrap; margin-bottom:.35rem; }
        .pw-label-row .form-label { margin-bottom:0; }

        /* Info icon + requirements tooltip */
        .pw-info { position:relative; display:inline-flex; align-items:center; color:#0f79aa; cursor:pointer; font-size:.9rem; }
        .pw-req-box { display:none; position:absolute; z-index:1080; left:1.4rem; top:50%; transform:translateY(-50%);
                      background:#17314d; color:#fff; border-radius:10px; padding:.75rem 1rem;
                      width:230px; font-size:.78rem; line-height:1.5; box-shadow:0 6px 24px rgba(0,0,0,.25);
                      pointer-events:none; }
        .pw-req-box::before { content:''; position:absolute; right:100%; top:50%; transform:translateY(-50%);
                              border:6px solid transparent; border-right-color:#17314d; }
        .pw-req-box ul { margin:.3rem 0 0 1.1rem; padding:0; }
        .pw-info:hover .pw-req-box,
        .pw-info:focus .pw-req-box { display:block; }

        /* Generate button */
        .pw-generate-btn { display:inline-flex; align-items:center; gap:.3rem; margin-left:auto;
                           font-size:.76rem; font-weight:700; color:#0f79aa; border:1px dashed #0f79aa;
                           background:transparent; border-radius:6px; padding:.18rem .55rem;
                           cursor:pointer; line-height:1.4; white-space:nowrap; }
        .pw-generate-btn:hover { background:#e8f5fb; border-style:solid; }
        .pw-generate-btn i { font-size:.72rem; }

        /* Input wrapper with eye toggle */
        .pw-input-wrap { position:relative; }
        .pw-input-wrap .form-control { padding-right:2.4rem; }
        .pw-eye { position:absolute; right:.65rem; top:50%; transform:translateY(-50%);
                  border:none; background:transparent; color:#8eaabf; padding:0;
                  cursor:pointer; font-size:.95rem; line-height:1; }
        .pw-eye:hover { color:#17314d; }

        /* Strength bar */
        .pw-strength { margin-top:.3rem; height:3px; border-radius:2px; background:#e0ecf4;
                       overflow:hidden; transition:background .2s; }
        .pw-strength-bar { height:100%; width:0; border-radius:2px; transition:width .3s,background .3s; }

        /* Global guard: several leaked invoice/receipt-template rules earlier in this
           file define an unscoped ".btn{background:#213b52;color:#fff}" which, at equal
           CSS specificity, silently paints Bootstrap outline buttons (btn-outline-info,
           btn-outline-dark, etc.) solid navy (or, once background is neutralized, white
           text on a transparent background) across the whole dashboard. Restore the
           correct outline look (transparent fill, colored text/border) everywhere using
           the same colors Bootstrap 4 ships for each variant. Placed last so it wins the
           cascade for these properties; kept low-specificity so scoped "is-selected"/
           "active" state rules elsewhere still take precedence as intended. */
        .btn-outline-primary   { background-color: transparent; background: transparent; color: #007bff; border: 1px solid #007bff; }
        .btn-outline-secondary { background-color: transparent; background: transparent; color: #6c757d; border: 1px solid #6c757d; }
        .btn-outline-success   { background-color: transparent; background: transparent; color: #28a745; border: 1px solid #28a745; }
        .btn-outline-danger    { background-color: transparent; background: transparent; color: #dc3545; border: 1px solid #dc3545; }
        .btn-outline-warning   { background-color: transparent; background: transparent; color: #ffc107; border: 1px solid #ffc107; }
        .btn-outline-info      { background-color: transparent; background: transparent; color: #17a2b8; border: 1px solid #17a2b8; }
        .btn-outline-dark      { background-color: transparent; background: transparent; color: #343a40; border: 1px solid #343a40; }
        .btn-outline-light     { background-color: transparent; background: transparent; color: #f8f9fa; border: 1px solid #f8f9fa; }

        .btn-outline-primary:hover   { background-color: #007bff; color: #fff; }
        .btn-outline-secondary:hover { background-color: #6c757d; color: #fff; }
        .btn-outline-success:hover   { background-color: #28a745; color: #fff; }
        .btn-outline-danger:hover    { background-color: #dc3545; color: #fff; }
        .btn-outline-warning:hover   { background-color: #ffc107; color: #212529; }
        .btn-outline-info:hover      { background-color: #17a2b8; color: #fff; }
        .btn-outline-dark:hover      { background-color: #343a40; color: #fff; }
        .btn-outline-light:hover     { background-color: #f8f9fa; color: #212529; }

        /* Global base for .form-select / .form-select-sm. This app runs Bootstrap 4,
           which has no such class (it's Bootstrap 5 naming) — pages across the
           dashboard, especially under the Program menu, use it anyway, so without
           this rule these <select> elements render with no border and no dropdown
           arrow, making them look like plain text instead of a dropdown. Scoped
           page-specific ".form-select" rules elsewhere in this file are more
           specific and continue to take precedence where they exist; this just
           provides the missing consistent default everywhere else. */
        .form-select {
            display: block;
            width: 100%;
            min-height: 40px;
            padding: 0.5rem 2.25rem 0.5rem 0.75rem;
            font-size: 0.95rem;
            font-weight: 400;
            line-height: 1.5;
            color: #212529;
            background-color: #fff;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 14px 11px;
            border: 1px solid #ced4da;
            border-radius: 8px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            cursor: pointer;
        }

        .form-select:focus {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .25);
        }

        .form-select:disabled {
            background-color: #f2f5f8;
            color: #8a98a8;
            cursor: not-allowed;
        }

        .form-select-sm {
            min-height: 32px;
            padding-top: 0.28rem;
            padding-bottom: 0.28rem;
            padding-left: 0.55rem;
            font-size: 0.85rem;
            border-radius: 6px;
        }

        /* Global base for Bootstrap 5's `.row.g-*` gutters and `.gap-*` flex spacing.
           This app runs Bootstrap 4.5.3, which has neither utility — pages across the
           dashboard use them anyway, so without this shim, cards/buttons/badges built
           with `.row.g-3` or `d-flex gap-2` render with zero spacing between items. */
        .row.g-1 { margin-left: -0.125rem; margin-right: -0.125rem; }
        .row.g-1 > [class*="col"] { padding-left: 0.125rem; padding-right: 0.125rem; padding-bottom: 0.25rem; }
        .row.g-2 { margin-left: -0.25rem; margin-right: -0.25rem; }
        .row.g-2 > [class*="col"] { padding-left: 0.25rem; padding-right: 0.25rem; padding-bottom: 0.5rem; }
        .row.g-3 { margin-left: -0.5rem; margin-right: -0.5rem; }
        .row.g-3 > [class*="col"] { padding-left: 0.5rem; padding-right: 0.5rem; padding-bottom: 1rem; }

        .gap-1 { gap: 0.25rem !important; }
        .gap-2 { gap: 0.5rem !important; }
        .gap-3 { gap: 1rem !important; }
