.table-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
}

.btn-sm {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1;
    white-space: nowrap;
    border-radius: 10px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.status-chip--activa {
    background: #dcfce7;
    color: #166534;
}

.status-chip--borrador {
    background: #fef3c7;
    color: #92400e;
}

.status-chip--finalizada {
    background: #e5e7eb;
    color: #374151;
}

.status-chip--si,
.status-chip--asistio {
    background: #dcfce7;
    color: #166534;
}

.status-chip--no,
.status-chip--no_asistio {
    background: #fee2e2;
    color: #b91c1c;
}

.status-chip--pendiente {
    background: #fef3c7;
    color: #92400e;
}

.extra-row {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.extra-row:hover {
    border-color: #ddd6fe;
    box-shadow: 0 6px 18px rgba(91, 33, 182, 0.06);
}

.extra-row .form-grid {
    gap: 14px 18px;
}

.inline-check {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    color: #334155;
}

.inline-check--boxed {
    padding: 0.7rem 0.85rem;
    border: 1px solid #dbe1ea;
    border-radius: 12px;
    background: #fff;
}

.inline-check--boxed span {
    color: #475569;
    font-weight: 500;
}

.inline-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6d28d9;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-open {
    overflow: hidden;
}

.text-muted {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.records-table td:last-child,
.records-table th:last-child {
    width: 260px;
    min-width: 260px;
}

.records-table td {
    vertical-align: middle;
}

.modal-content--sm {
    width: min(520px, 92%);
}

.btn-danger {
    background: #b91c1c;
    color: #fff;
    box-shadow: none;
}

.btn-danger:hover {
    background: #991b1b;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.is-loading {
    pointer-events: none;
}

.empty-row td {
    padding: 2.2rem 1rem;
    text-align: center;
    color: #64748b;
}

.empty-row small {
    display: inline-block;
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 0.88rem;
}

.modal-content {
    border: 1px solid #ececf2;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d4d4d8;
    border-radius: 999px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-header {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.2rem;
}

.modal-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-header p {
    margin: 0.35rem 0 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.form-section h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: #1f2937;
}

.form-section {
    background: #fcfcfe;
}

.field-group label span {
    color: #b91c1c;
    font-weight: 700;
    margin-left: 0.2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 0.95rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.detail-item:hover {
    border-color: #ddd6fe;
    box-shadow: 0 6px 18px rgba(91, 33, 182, 0.06);
}

.detail-item strong {
    font-size: 0.85rem;
    color: #64748b;
}

.detail-item span {
    color: #111827;
    font-weight: 600;
}

.filters-shell {
    border: 1px solid #ececf2;
}

#campaignFiltersSummary {
    max-width: 100%;
}

#registroCamposExtraContainer .field-group,
#camposExtraContainer .field-group {
    margin-bottom: 0;
}

.campaign-base-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.campaign-base-item {
    padding: 0.9rem 1rem;
    border: 1px solid #ececf2;
    border-radius: 14px;
    background: #fafafa;
    color: #6b7280;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.3;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.campaign-base-item:hover {
    border-color: #ddd6fe;
    box-shadow: 0 6px 18px rgba(91, 33, 182, 0.05);
}

.campaign-base-item small {
    display: inline-block;
    margin-left: 0.25rem;
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 400;
}

#campaignDetailSection {
    margin-top: 1.5rem;
}

#campaignDetailSection .table-header {
    margin-bottom: 1.4rem;
}

#campaignDetailSection .stats-grid {
    margin-bottom: 1.6rem;
}

#campaignDetailSection .filters-shell {
    margin-bottom: 1.4rem;
}

#campaignDetailMeta {
    display: inline-block;
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.95rem;
}

#campaignDetailTitle {
    margin-bottom: 0.2rem;
}

#campaignDetailSection .dashboard-hero__actions,
#campaignDetailSection .table-header > div:last-child {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.records-table th,
.records-table td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.campaign-base-item,
.detail-item,
.extra-row,
.stat-card {
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.campaign-base-item:hover,
.detail-item:hover,
.extra-row:hover,
.stat-card:hover {
    border-color: #ddd6fe;
    box-shadow: 0 6px 18px rgba(91, 33, 182, 0.06);
}

@media (max-width: 900px) {
    .records-table td:last-child,
    .records-table th:last-child {
        width: 240px;
        min-width: 240px;
    }

    .table-actions {
        flex-wrap: wrap;
    }
}

.form-lock-notice {
    background: #f1f5f9;
    border: 1px solid #cbd5f5;
    color: #334155;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}