#formPlace {
    height: 85%;
}

/*layout*/

.registrants-toolbar {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.toolbar-top,
.toolbar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.toolbar-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1d2939;
}

.toolbar-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mode-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-label {
    font-size: 13px;
    color: #667085;
    font-weight: 600;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #667085;
    font-weight: 600;
}

.toolbar-btn {
    border: none;
    border-radius: 100px;
    height: 46px;
    padding: 0 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .25s;
    cursor: pointer;
}

    .toolbar-btn.primary {
        background: #2563eb;
        color: white;
    }

        .toolbar-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(37,99,235,.25);
        }

    .toolbar-btn.secondary {
        background: #a9b5c1;
        color: black;
    }

        .toolbar-btn.secondary:hover {
            background: #82909f;
        }

.search-area {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 350px;
    width: -webkit-fill-available;
    max-width: 550px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 0 16px;
    height: 52px;
}

    .search-box input {
        flex: 1;
        border: none;
        background: none;
        outline: none;
        font-size: 15px;
        margin: 0 10px;
        width: 100%;
    }

    .search-box button {
        border: none;
        background: none;
        cursor: pointer;
        font-size: 24px;
    }

.toolbar-btn.search {
    background: var(--color-navy);
    color: white;
    text-align: center !important;
}

.selection-badge {
    background: #2563eb;
    color: white;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 600;
}

.batch-area {
    display: flex;
}

/*.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.filter-pill {
    cursor: pointer;
}

    .filter-pill input {
        display: none;
    }

    .filter-pill span {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        padding: 0 18px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #475467;
        font-weight: 600;
        transition: .2s;
    }

    .filter-pill input:checked + span {
        background: #2563eb;
        color: white;
        border-color: #2563eb;
        box-shadow: 0 6px 16px rgba(37,99,235,.25);
    }*/

/*-------------------------*/
/*.filter-tabs {
    display: flex;
    align-items: center;
    background: #f4f6f9;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 4px;
    gap: 4px;
}

.filter-tab {
    cursor: pointer;
}

    .filter-tab input {
        display: none;
    }

    .filter-tab span {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 42px;
        padding: 0 18px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 14px;
        color: #667085;
        transition: .25s;
        user-select: none;
    }

    .filter-tab:hover span {
        color: #344054;
    }

    .filter-tab input:checked + span {
        background: #fff;
        color: #2563eb;
        box-shadow: 0 2px 10px rgba(0,0,0,.08);
    }

        .filter-tab input:checked + span i {
            color: #2563eb;
        }

    .filter-tab i {
        font-size: 15px;
    }*/
/*--------------------------*/
.badge-filter-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    border-bottom: 1px solid #d7dce5;
    padding: 0 10px;
}

.badge-tab {
    margin: 0;
    cursor: pointer;
}

    .badge-tab input {
        display: none;
    }

    .badge-tab span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 120px;
        padding: 11px 24px;
        border-radius: 12px 12px 0 0;
        background: #eef2f7;
        color: #667085;
        font-weight: 600;
        transition: .2s;
        border: 1px solid transparent;
    }

    .badge-tab:hover span {
        background: #e7ecf5;
        color: #344054;
    }

    .badge-tab input:checked + span {
        background: #fff;
        color: #2563eb;
        border: 1px solid #d7dce5;
        border-bottom-color: #fff;
        margin-bottom: -1px;
        box-shadow: 0 -2px 8px rgba(0,0,0,.05);
        z-index: 2;
        position: relative;
    }

.toolbar-hidden {
    visibility: hidden;
}

.toolbar-view {
    visibility: visible;
}

/* Toggle Switch Style */
.form-switch .form-check-input {
    width: 45px;
    height: 20px;
    cursor: pointer;
}

.btn-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;

}

.btn-text {
    text-wrap: nowrap;
}

.btn-refresh:active {
    transform: scale(0.97);
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-refresh i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.spin {
    animation: spin 0.8s linear infinite;
}

/* Grid Scroll Container */
.gridjs-wrapper {
    max-height: calc(100vh - 340px);
    overflow: auto;
    border-radius: 25px !important;
    box-shadow: none !important;
    border: 1px solid #dee2e6;
}

body:has(#sidebar-wrapper.collapsed) .gridjs-wrapper {
    max-width: calc(100vw - 56px) !important;
}

.grid-scroll-container .gridjs-table {
    border-collapse: collapse;
    width: 100%;
}

.grid-scroll-container thead th.gridjs-th {
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    background: var(--color-green);
    color: black;
}

th.gridjs-th:first-child,
td.gridjs-td:first-child {
    padding: 16px;
}

.grid-scroll-container .gridjs-tr:hover td {
    background-color: #ccc;
}

/* Ensure the actions column sticks to the right */
.grid-scroll-container .gridjs-th[data-column-id='actions'],
.grid-scroll-container .gridjs-td:last-child {
    position: sticky;
    right: 0;
    z-index: 5;
}

.grid-scroll-container .gridjs-th[data-column-id='actions'] {
    z-index: 10;
}

.grid-scroll-container .gridjs-td:last-child td {
    background-color: #fff;
}

.grid-scroll-container .gridjs-td:last-child th {
    background-color: #f9fafb;
}

.grid-scroll-container .gridjs-footer {
    box-shadow: none;
    border: none;
}

.btn-icon-action {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: none;
    background-color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(237, 237, 237, 1);
}

    .btn-icon-action .spinner-border {
        width: 18px;
        height: 18px;
        border-width: 2px;
        color: black;
    }

.checkbox-input-reg {
    display: block;
    margin: auto;
    width: 20px;
    height: 20px;
}

span:has(.checkbox-input-reg) {
    display: block;
    width: 100%;
}

/* Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ── Mode Indicator ─────────────────────────────────────────── */
.mode-indicator-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

    .mode-indicator-badge.online {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffc107;
    }

    .mode-indicator-badge.onsite {
        background: #e9ecef;
        color: #495057;
        border: 1px solid #adb5bd;
    }

    .mode-indicator-badge.offline {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .mode-indicator-badge .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: currentColor;
        animation: pulse-dot 1.8s infinite;
    }

@keyframes pulse-dot {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}
