

.registration-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.registration-table th {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.registration-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.registration-table tbody tr:last-child td {
    border-bottom: 0;
}

.registration-table-note {
    margin: 0;
    padding: 10px 16px 0;
    font-size: 0.85rem;
}

.reg-col-number {
    width: 1%;
    white-space: nowrap;
}

.reg-col-status {
    min-width: 150px;
}

.reg-col-open {
    width: 28%;
}


.reg-badge.reg-badge-plain {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.92rem;
}

.reg-badge-plain .reg-badge-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.reg-badge-plain .reg-badge-copy {
    width: 22px;
    height: 22px;
    color: var(--color-text-muted);
}

.reg-badge-plain .reg-badge-copy .icon {
    width: 13px;
    height: 13px;
}

.reg-title-line {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
}

.reg-title-line .reg-title-icon {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--color-text-muted);
}

.reg-sub {
    display: block;
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 400;
}

.reg-title-line + .reg-sub {
    padding-left: 26px;
}


.reg-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reg-status-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-text-muted);
}

.reg-status-open { background: var(--color-link); }
.reg-status-waiting { background: var(--color-amber, #b45309); }
.reg-status-progress { background: var(--color-primary); }
.reg-status-done { background: var(--color-success); }
.reg-status-ended { background: var(--color-border-strong); }
.reg-status-draft { background: transparent; border: 1px solid var(--color-text-muted); }

.reg-col-status .reg-sub {
    padding-left: 16px;
}


.reg-open-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reg-open-pill {
    text-decoration: none;
    white-space: normal;
}

.reg-open-pill:hover,
.reg-open-pill:focus-visible {
    text-decoration: underline;
}


.reg-row-child td {
    background: var(--color-surface-alt);
}

.reg-child-mark {
    display: inline-block;
    margin-right: 6px;
    color: var(--color-text-muted);
    cursor: help;
}

.reg-depth-2 .reg-col-number { padding-left: 32px; }
.reg-depth-3 .reg-col-number { padding-left: 48px; }

.reg-row-ended .reg-title-line,
.reg-row-ended .reg-col-event {
    color: var(--color-text-muted);
}


.reg-draft-label {
    display: inline-block;
    padding: 1px 8px;
    border: 1px dashed var(--color-border-strong);
    border-radius: var(--radius-small);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.reg-row-draft .reg-col-open .button {
    white-space: nowrap;
}


.draft-table .reg-col-saved {
    width: 1%;
    white-space: nowrap;
}

.draft-table .reg-col-actions {
    width: 1%;
}

.reg-draft-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.reg-draft-actions .button {
    white-space: nowrap;
}


@media (min-width: 1100px) {
    .reg-draft-actions {
        flex-wrap: nowrap;
    }

    .draft-table .reg-col-event {
        min-width: 10rem;
    }
}

.reg-draft-delete-form {
    margin: 0;
}

.button-secondary.reg-draft-delete {
    color: var(--color-danger);
}

.button-secondary.reg-draft-delete:hover,
.button-secondary.reg-draft-delete:focus-visible {
    border-color: var(--color-danger);
    background: var(--color-danger-surface);
    color: var(--color-danger);
}

.reg-draft-variant {
    color: var(--color-text);
    font-weight: 500;
}

.reg-draft-closed-text {
    color: var(--color-amber, #b45309);
}

.reg-row-draft-closed .reg-title-line {
    color: var(--color-text-muted);
}


.pill.upload-from-team {
    border-color: var(--color-info-border);
    background: var(--color-info-surface);
    color: var(--color-link);
}

.pill.upload-from-team .icon {
    width: 12px;
    height: 12px;
}


@media (max-width: 760px) {
    .registration-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    
    .registration-table thead th {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        border: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .registration-table,
    .registration-table tbody,
    .registration-table tr,
    .registration-table td {
        display: block;
        width: 100%;
    }

    .registration-table tr {
        padding: 12px 16px;
        border-bottom: 1px solid var(--color-border);
    }

    .registration-table tbody tr:last-child {
        border-bottom: 0;
    }

    .registration-table td {
        display: grid;
        grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
        gap: 8px;
        padding: 4px 0;
        border-bottom: 0;
    }

    .registration-table td::before {
        content: attr(data-label);
        color: var(--color-text-muted);
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.6;
    }

    .reg-cell {
        min-width: 0;
    }

    .reg-col-number,
    .reg-col-status,
    .reg-col-open,
    .draft-table .reg-col-saved,
    .draft-table .reg-col-actions {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .reg-row-child {
        background: var(--color-surface-alt);
    }

    .reg-row-child td {
        background: transparent;
    }

    .reg-depth-2 .reg-col-number,
    .reg-depth-3 .reg-col-number {
        padding-left: 0;
    }

    .reg-title-line + .reg-sub,
    .reg-col-status .reg-sub {
        padding-left: 0;
    }
}
